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

0
votes
2answers
57 views

Store and access my objects using an int id

I have created a class HidDevice to form objects which concatenates input from each HIDDevice separately until a special key (ENTER) is pressed. So each instance of HidDevice have fields like int ...
2
votes
2answers
149 views

Is 20 Java classes for just making a REST call too much?

In an Android project, I am using dagger 2 for dependency injection, applying mvp design pattern, and I am writing interface for almost every class. Although it does achieved the separation of ...
1
vote
1answer
40 views

Android: Design for fetching update/syncing from server

I'm building a meeting app where users can create, join (by invite), and edit events like meetings, outings etc. Think What's app chat groups. So I'm looking into designing how the android app would ...
1
vote
1answer
41 views

Reactive programming android app architecture

I am going to create a stock market android app. Stock quotes change every few seconds, so to keep the app updated I decided to implement a reactive functional design. My IDEAL design would be: ...
27
votes
7answers
9k views

What are the best strategies for selling Android apps? [closed]

I'm a young developer hoping to sell my apps I made for Android soon. My applications are basically 99% finished so I'm investigating what would be the best marketing strategy to use to sell my apps. ...
4
votes
3answers
4k views

What method is the easiest/fastest way for developing Android Apps

Which one of these is the easiest/fastest choice for developing simple Android apps/games? I'm familiar with all this technologies. • Android SDK or NDK • C# on MonoDroid platform • Adobe ...
10
votes
5answers
857 views

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

Is it compulsory to have an Android device to learn programming for Android ? Currently, Java is my primary programming language.
-5
votes
0answers
56 views

Is programming for Android 3 similar to programming for Android 6? [closed]

I am interested in creating apps for android, and my school library just happened to have a book for Android 3. I will be finding tutorials online, and seeking newer resources online (obviously) but ...
0
votes
0answers
47 views

How to shift elements within a matrix?

I have a grid of objects that occupy cells in a grid. Basically similar to android launcher - with icons and widgets and whatnot, because that's what I am building. To keep track of which cells are ...
0
votes
1answer
89 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 case:...
0
votes
1answer
187 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 ...
2
votes
3answers
1k views

Cache Json on disk with fast read back in java/android

summary: I need a way to cache a large JSONArray on disk, and be able to quickly read AND CONVERT it back to JSONArray at a later time. NOTE: my output MUST be a >>JASONarray<<, and not a ...
2
votes
1answer
482 views

Decoupled architecture in Android

I am building an app for Android that will have multiple data sources depending on who is using it. N-tier architecture with a repository pattern seems like the right way to go about this but I am ...
1
vote
2answers
680 views

How to get collaborators for an Android project?

How do I get people to want to collaborate on a project idea I have/actually contribute? I am a bit sensitive about my idea for a couple reasons: I don't want people to take my idea. I have gotten a ...
0
votes
0answers
36 views

Sockets (SignalR) vs Push notifications

I'm developing a Xamarin.Forms app with a .Net Web API backend. I definitely don't want to do long polls on my app to the server, but I need the app to remain updated with the server information. I ...
0
votes
0answers
61 views

How to manage state in MVP pattern?

I am currently using MVP pattern to develop an android application. I have to implement pagination (i.e. on scrolling at the bottom of the RecyclerView I need to fetch new data). So what is the best ...
29
votes
3answers
17k views

Is Model-View-Presenter (MVP) scheme useful for Android?

How to separate View and Presenter in Android, while the reactions on the user actions (Presenter part of MVP) are set into the same activities that shows GUI elements (View part of MVP). "In model ...
18
votes
3answers
19k 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 ...
0
votes
1answer
249 views

Can Qt desktop programs be recompiled for Android/iOS as-is?

One of the advantages of open-source programs is that they can be ported easily to any platform simply by recompiling. Qt is also a cross-platform toolkit that can work on several platforms simply by ...
-1
votes
0answers
28 views

Is it better in practice to pass data to a Fragment or make a Fragment retrieve it?

If we instantiate a Fragment in an Android application and the Fragment is supposed to display database-backed information, is it better in convention to retrieve information and pass it to a Fragment ...
4
votes
1answer
89 views

If I develop a media player for mobile or desktop do I have to pay for a license if my player is able to read MP3 files?

I know MP3 is not open source format but proprietary and I found this website http://mp3licensing.com/help/developers.html that states that you need a license for basically everything that uses MP3. ...
1
vote
2answers
58 views

What should I do if I published an app with a wrong package name?

I found out that the package name should follow the web domain you own for this application / developer Id. I published an app starting with com.health... (example) because I didn't know better at ...
15
votes
5answers
14k views

Design pattern for syncing data in android

I have been seeing two implementations for syncing data between the server and the client on majority of the apps. This assumes no GCM is set up:- Running an intent service periodically which ...
0
votes
0answers
26 views

The best implementation for fromJson factory method and json-mappings with inheritance?

I have BaseComponent (with field "type") and it's subclasses TextComponent, ListComponent, etc. Some of them has same fields. I want to create them and init their fields from json. Some of possible ...
0
votes
1answer
91 views

Android Studio, HTML and Java Correlation

I've recently started designing apps in Android Studio, and I've noticed that the same operations (for example, using a widget) can be completed by either going into the activityname_java file and ...
3
votes
1answer
99 views

Getting posts from users that are being followed: two different implementations

I have two different implementations for retrieving posts from the users someone is following and I want to know which one you would recommend using. First I'l show you the tables, and then the two ...
0
votes
0answers
12 views

RubyMotion deployments

I would like to start an application for iOS and Android and I'm considering the option of using RubyMotion for that. I know that you can write Ruby and then deploy to the desired platform. After ...
3
votes
2answers
144 views

How to check if app is offline

I am developing internal Android apps for the company I work for. In various places in the apps I need to connect to an internal server. This server is shutdown for maintenance for a period of time ...
1
vote
1answer
231 views

Why are there no cross-platform mobile applications?

As a part of my master's thesis, I am carrying a research topic on why there are no cross platform mobile applications. As applications developed in Java can run on any operating system using the JVM,...
3
votes
1answer
51 views

versioning data schema in android internal storage

I am using Android's internal storage to hold data for my application and I am trying to find a good way to handle reading data of an older schema. For example, let's say I have serialized and written ...
-1
votes
1answer
116 views

What is the proper or recommended way to save String[]'s, Array's, ArrayList's and int[]'s to Android?

I've looked up this question many many times but keep seeing different answers, what is the BEST way to save array's? It seems ludicrously infantile that there is no standard or easy way to save ...
0
votes
0answers
55 views

Should fragments register directly to an event bus or should only activites do so?

Please correct me if I'm wrong about any of the following. I understand that if a fragment wants to make a network call it tells it's activity then the activity makes the call and returns the answer ...
-2
votes
1answer
100 views

Duplicate code to avoid performance decrease due to function calls? [closed]

I have a simple list in Java that I need to search using one of two methods. The first method simply returns the position in the list of the first matching element. The second filters out any elements ...
4
votes
4answers
259 views

JSON API or Plain JSON

There is a debate in my company on whether we should use the JSON API specification or stick to plain JSON for developing APIs that will be consumed by mobile apps, mainly iOS and Android. One ...
15
votes
5answers
6k views

Proper workaround for multiple inheritence in Java (Android)

I have a conceptual problem with a proper implementation of code which seems require multiple inheritance, that would not be a problem in many OO languages, but as the project is for Android, there ...
1
vote
0answers
56 views

Building back end for iOS/Android app using Django and Heroku

Background: I'm currently building a music streaming app (many requests per second) for a friend and am second-guessing my approach to it. The plan is to have an iOS app and an Android app, though I ...
-1
votes
1answer
56 views

Synchronize local data with server data in an android application [closed]

I'm starting to develop an android application where I have to persist user data. For server data I want to use Google Cloud with noSQL but I don't know what to use to save data in local memory when ...
0
votes
1answer
81 views

How to associate images in SQLite

I'm a newbie and couldn't find anywhere, concise information regarding which approach I should be taking when working with images. The thing is I'm developing an app whose main purpose is to keep ...
2
votes
1answer
345 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 ...
0
votes
0answers
149 views

Can MVP be implemented in Android with Activities and Fragments as Presenters and Custom Views?

Lately my team has started considering the implementation of MVP pattern in some of our applications. We followed the several guides and tutorials out there, basically ending up with regular ...
-2
votes
1answer
52 views

Android Apps: How can I view an apps code/files?

I love taking apart applications, software, and websites to see how developers were able to create a feature or how a game handles AI. Something I'd like to be able to do is view an app's files (...
3
votes
0answers
93 views

Finger Paint path gets huge over time and slows the app

So I am writing a Finger paint app. I have multiple color which user can select. I save the path and paint information inside an array. ArrayList<PaintPath> arrayPaintPath = new ArrayList<...
3
votes
2answers
127 views

Can you charge for apps that use open source software?

I don't know where else to ask this. I have an Android app I want to release on the store, and I want to charge a low fee for it. But if part of my application uses code I did not write (i.e. code I'...
1
vote
1answer
45 views

Am I making use of REST if I have implemented an Android app that connects to a localhost?

Would I be using REST or would my app be considered RESTful if I was using the Google Volley library to connect to a database on localhost?
0
votes
3answers
790 views

What is selection and what is projection

I am working on Android with the query() method of the ContentResolver class and it accepts 6 parameters, (uri,projection,selection,selectionArgs,sortOrder,cancellationSignal) for selection and ...
0
votes
1answer
51 views

Where to put peripheral use cases in android while using clean architecture

I'm trying to work myself into the Clean Architecture by Bob Martin with respect to android applications. It seems to me like there are Use Cases which do not encapsulate the Domain Layer, but belong ...
0
votes
0answers
13 views

How would I go about creating a dequeing system annotation system like Mapkit

I simply can't do anything animation based in Android maps. You can't animate markers as custom views like you can with Mapkit. How would I go about creating an overlay projection that dequeues ...
0
votes
0answers
39 views

interoperability between two independent platforms via HL7 FHIR

Mobile app: (Patient) I've developed an android mobile application which you can register, login, enter your personal information, enter your blood pressure factors, heart rate, and blood sugar. In ...
0
votes
3answers
106 views

Can the Linux kernel be described as a Server?

I am developping an Android application that is using NDK in order to access to data from the Linux kernel. As you may know, this is done using IPC (Inter Process Communication) through Android's ...
2
votes
3answers
137 views

What is the least bad way of knowing the type of a key from Json file

in our app we have a Json file that contains several properties used for menu configuration. One of the keys should tell us if a menu item should be displayed. The thing is that the value for this key,...