Android is Google's open source OS and system for smart phones and tablets. For user questions, see http://android.stackexchange.com

learn more… | top users | synonyms

-1
votes
0answers
15 views

GridLayout of colours [on hold]

I want to create a GridLayout 6 rows and 3 columns.Every element in grid is a different color. And I want to use wrap_content in the layout to show the rectangle coloured shapes. As I am using ...
-5
votes
0answers
29 views

Object Oriented Programming help [on hold]

I have two classes A and B in android programming, class B extends from class A and implements view.onclicklistner, class A is my base class which is extends from Activity. Now i am trying to ...
4
votes
1answer
556 views

Capturing mobile device system (output) audio

I'm trying to figure out a way to capture the system audio of an Android and/or Windows Phone. The idea is to provide a stream based on the music I'm currently playing on my phone. What I'm not sure ...
0
votes
0answers
15 views

Database search results by deviation from query in Java

When every i try something new, I always 'throw myself in the deep end'. I'm in the initial stages of an android app build (my first android app, and first attempt at anything java) I want to know ...
-1
votes
0answers
32 views

System Architecture: Transferring Digital Assembly Instructions [closed]

Assignment: Transferring Digital Assembly Instructions (Ship Building) to Android Devices. Since I am inexperiente I am looking for opinions on how to build this system and what technologies ares ...
-2
votes
0answers
33 views

Android HTML to docx Docx4j issues [closed]

I am trying to convert html string to docx using the below code as per github code recommended on previous stackoverflow questions. I added the following libraries other than the ones used in Android ...
1
vote
2answers
92 views

How to test android apps that depend on telecom provider connection?

I am planning to write an app that needs phone number and contact list. Is there any way that I can test my app without buying a telecom provider connection for my android phone. Without a sim the ...
0
votes
1answer
46 views

How to integrate Google Cloud Messaging with Cloud Endpoints and Google App Engine

I am trying to build a simple chat messaging app with Android. I have an Android Studio project with a Cloud Endpoints module. I use this Cloud Endpoints API which is published on my Google App ...
0
votes
0answers
52 views

Using JDK in Google Android Studio License Issues

I'm new to android developing and maybe my question is strange. If I want to make commercial apps, libraries, or services for android and use Google Android Studio + Oracle JDK (not OpenJDK) is there ...
3
votes
2answers
156 views

Do I need a web-service for this case? Data-synchronization over multiple clients

I'm new in this area and a little bit confused about my current thoughts on a web-service implementation for my application. I want to synchronize all connected clients with the current data on a ...
8
votes
2answers
3k views

Why use Android Fragments?

I have read the documentation and some other questions' threads about this topic and I don't really feel convinced; I don't see clearly the limits of use of this technique. Fragments are now seen as ...
16
votes
5answers
4k views

Functional Languages that compile to Android's Dalvik VM? [closed]

I have a software problem that fits the functional approach to programming, but the target market will be on the Android OS. I ask because there are functional languages that compile to Java's VM, ...
1
vote
0answers
42 views

How to create calendar events in android (that will work with iPhone later too)

I'm developing an Android app right now with a cloud back-end using Google App Engine + Cloud Endpoints (a RESTFUL service). Eventually, I will find an iPhone developer to make my app for iPhone ...
3
votes
1answer
369 views

Large Scale Application Development in Android

Since, I am fairly new to large scale app development in Android and Java, I thought I would ask for advice. My team is faced with developing a prototype of a fairly complex medical software. ...
1
vote
1answer
5k views

How to connect Android App to MongoDB deployed on Google Cloud

Currently I am working on a simple app which will be able to connect to MongoDB which is deployed in Google Cloud. I have set it up MongoDB ocaly on my computer and I have made a little JAVA console ...
1
vote
1answer
85 views

Android & OutOfMemoryError: Possible causes besides memory leak?

In my application I keep receiving crash reports where the root cause is an OutOfMemoryError. The app is quite image heavy (I use Picasso for all the image loading) and also has a WebView component ...
0
votes
0answers
55 views

Best approach for an android local database-based application containing non-sensitive data

What's the best approach to design an android application with the question title specification? The application will show a first list of buttons with an alphabetical classification (like button1: ...
0
votes
2answers
48 views

Android. HTTP Communcation, and GCM

I have an app that sends/receive data via HTTP POST, and communicates with PHP/SQL on the backend. I however wanted to integrate GCM to I can tell the app to "check for an update" to query the ...
2
votes
2answers
1k views

Can you program Android Apps in a functional language?

Can you program Android Apps in a functional language? I meant is it possible to program for Android in a language that was designed from the ground up to be functional? I'm aware that you can use ...
5
votes
4answers
586 views

Is it possible to use the Android layout system in a desktop java application? [closed]

I am lazy, thus, if possible, I would like to only have to design and program a UI once. If I want to create an App for Android and as a basic Java desktop application, is there a way to reuse the UI ...
0
votes
1answer
59 views

Using open source apps source code under Apache v2 [closed]

I modified some code and added few (minor) changes to an open source Android app. Now I want to publish it on play store. The app is licensed under Apache license v2. The license file is included in ...
4
votes
0answers
48 views

Android: Pattern for checking requirements at startup?

My app's launcher activity checks a bunch of requirements like whether GPS is enabled, there's a network connection, the app has device administrator privileges, etc. Some of these checks display ...
1
vote
2answers
405 views

Class becoming God Object what pattern to use

I am developing Android app and my MainActivity is becoming God Object. By the way native Activity class implementation is some sort of God Object already. The problem is that my activity class is ...
0
votes
1answer
47 views

Api for CMS And Mobile applications either separate or same

I would like to ask an architect based question What is more secure and most standard way to follow.For let's say a mobile application, Should the Api for mobile interaction with server be ...
0
votes
1answer
37 views

MainService vs. Application

My conceptual question circles around Android. What I like to do is running a service that acts as the central point for application-wide things and combine this with an event-system. For instance, ...
0
votes
0answers
28 views

Android Service vs Simple class with thread for network access

I am in quite a dilemma about how to solve my problem regarding network access. I checked this question but it does not really gives a solution for my problem. All of my REST based requests are ...
1
vote
1answer
476 views

Is it possible to offer an affiliate program for your iOS or Android app? [closed]

Independent of the App Store or Google Play, is there a way to track where new downloads or paying customers came from? For example, if an app advertises my app in theirs - is there a way for me to ...
7
votes
3answers
606 views

When learning Android, should I focus on the latest and greatest?

I'm a Java developer and I'm going to start working with Android to get familiar with mobile apps. I've worked with Ajax toolkits, but haven't done any mobile development. I've seen a huge change ...
6
votes
3answers
685 views

I am learning Java and thinking about how and when to learn Android?

I am learning Java and I was wondering about when it would be best for me to try to develop something for Android? I have two specific concerns. 1.How is the Android API different from the main Java ...
9
votes
5answers
731 views

Is it necessary to have an Android device to learn programming for the Android?

Is it necessary to have an Android device to learn programming for the Android? Currently, Java is my primary programming language.
1
vote
1answer
76 views

Method documents differs between Java docs and Android docs

Some times I see problematic differences between Java doc and Android doc in about method documents.For example in about setReadable (boolean readable, boolean ownerOnly) method you can see java doc ...
1
vote
2answers
169 views

how can the presenter or view interact with the model in the MVP pattern?

I'm learning the MV* patterns. MVP in this case. I'm trying to refactor an old android application into the MVP pattern to make things less tightly coupled, but I'm struggling one one concept. I know ...
92
votes
8answers
1k views

How to reconcile my support of open-source software and need to feed and house myself?

I have a bit of a dilemma and wanted to get some other developers' opinions on it and maybe some guidance. So I have created a 2D game for Android from the ground up, learning and re factoring as I ...
0
votes
0answers
80 views

Adding functionality to the activity (inheritance, decoration, strategy … ) or multiple inheritance

I cannot decide what approach should I use in the next situtation. One activity from my app need to have different functionality, here is the leak of multiple inheritence comes into play. ...
1
vote
2answers
65 views

Is ART an installation process? Or an OS? Or a virtual Machine?

When attempting to understand Android Runtime, I came across the wikipedia page. The graphic shown there adds to my confusion. If .dex is getting converted entirely to ELF, why is ART needed anymore? ...
2
votes
1answer
102 views

What to keep in mind when releasing an app which uses libraries licensed under the Apache 2.0 License?

I'm creating an Android app which is soon ready for release. I'm just going to implement a tab system using this library. I read that it is licensed under the Apache 2.0 License. I've never used any ...
0
votes
0answers
46 views

Android, access 1 activity from 2 cases, what design pattern is this?

I'm developing an Android app, encounter this case. There are 2 ways we can enter an activity (named activityB): either from activityA or from notification. 1st case: ActivityA -> activityB 2nd ...
0
votes
1answer
93 views

Use GPL code in commercial android app by spawning a separate process [duplicate]

As I understand, GPL allows use of a GPL program along with a proprietary program as long as they are separate programs and communicate at arms length. In order to do this, if I spawn a process from ...
7
votes
3answers
9k views

Force users to update to the latest version of my app on the Google Play Store

Is there a way to have a "critical update" for my app on the Google Play Store that would require the user to update the app to keep using it? For instance, let say I push an update that brings a few ...
-1
votes
2answers
146 views

Hardware for a team of programmers (iOS / Android / Web developers) [closed]

My question is not directly connected to the art of programming but about setting good working conditions for a team of developers, and I hope I can have some feedback here. I am looking for ...
2
votes
1answer
58 views

What layer would an Audio Player Service fall under in a an MVP system?

I'm trying to completely overhaul an app I wrote a while back that plays audio, and I'm learning how the MVP pattern of organization works, but I'm not sure how/where an audio playback service would ...
2
votes
7answers
1k views

What difference with Android when iOS is not open?

My question may seem silly, but, I've read in many Android books that the better part of Android is Android is open, and iOS is closed. But, from a programmer viewpoint, who cares about this point? ...
0
votes
1answer
64 views

Usage of github libraries

So far there had been a lot of external libraries provided for us to reduce our efforts on coding and utilising the time to provide quality apps to the play store. Now, I am keen to understand ...
0
votes
2answers
145 views

Uploading text data to server from SQLite is faster or text files?

My application receives a lot of data every milliseconds(name,id,value,.. of a signal from a simulator device). and I should upload this data to MySQL server. First I need to save them in a database ...
1
vote
1answer
103 views

What to test for in a simple form where the value of one input field dictates other fields?

Note:- I have added android and iOS tags to this question but it is not necessarily restricted to those platforms. Consider a simple registration form where the the value of one field dictates what ...
0
votes
0answers
82 views

Android runtime - does ART miss optimization opportunities over Dalvik?

Is ART a strict improvement over Dalvik, or there are optimizations that an ahead-of-time compiler will miss compared to JIT, but Google decide they don't matter in practice? For example, with JIT, ...
1
vote
1answer
2k views

setSoftInputMode versus InputMethodManager

I have seen and used both of the methods to hide the on screen keyboard while coding Android: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); and: ...
2
votes
1answer
996 views

Guidance on android type app to connect to sql-server

Excuse my ignorance but we've got an application that we'd like to sample out on a mobile app The app is a C#/asp.net application connected to our sql server database. If we are going to write an ...
7
votes
2answers
170 views

Where to show copyright messages? [duplicate]

In my Android application, I am using a couple of open source libraries. The only requirement these libraries have is that I must show their respective copyright notices in my application. I am trying ...
2
votes
0answers
142 views

Building a news app for both phones and tablets

I am building a news app. In phone mode it should have a navigation drawer which slides out when you tap on a hamburger button or slide your finger. That navigation drawer has a fragment with static ...