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

-2
votes
0answers
35 views

Porting a program to Android studio

I'm a little out of my depth but im going to push on anyway. Im trying to implement a program called openSMILE in android studio. Ideally for my test phase i just want an activity to call the library ...
0
votes
0answers
26 views

Handling multiple rest api versions within Android Java client

Actual architecture I have an app where a model is attached to every activity. The model ask a repository for information that can come from server or local db depending on many factors. When it asks ...
0
votes
0answers
38 views

Sqlite Social Networking Concepts for Android [on hold]

Is it good or bad, if I try to insert too many downloaded data (example 300 rows) in a transaction in SQLite Android or should I try to run each insert operation separately, as it takes more overhead. ...
0
votes
1answer
38 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 ...
3
votes
5answers
719 views

How do you manage the testing of your Android software on physical devices?

I'm in charge of managing mobile application development at my company, and I am currently building a mobile device "library" for testing. Essentially, we want to have a representative device in-house ...
1
vote
1answer
73 views

Is IntentService an implementation of Command Pattern?

According to Wikipedia: In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or ...
2
votes
2answers
4k 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: ...
0
votes
0answers
33 views

Libgdx texture and sound disposing

I'm writing a game and in the game, I use an asset manager that is in a singleton class, which holds my textures and sounds. If I create several enemies (lets say 4) which call upon my asset manager, ...
0
votes
0answers
28 views

How to get dual UI for an ionic app?

I would like to get some suggestions for building a new app. This app has two faces/UI to it, buyer/seller. Users would have same account, and it would be seller and buyer. Its something similar to ...
1
vote
1answer
40 views

A way to update a list an Android application displays

I just started working on an Android app that should display posts from my site and then a three-column list of some products. The three columns on the list contain the product names, a short ...
9
votes
3answers
5k views

Continuous integration (with iOS and Android projects)

I'm trying to make some positive changes in my company and one of the changes is implementing continuous integration. We do mobile development (iOS/Android) so I need a CI that supports both types of ...
23
votes
7answers
3k views

what should a developer know/address to build commercial Android Apps? [closed]

Android and mobile development is an exciting area of development. As it is a new discipline, what would be expected of an android developer to build commercially robust applications in terms of ...
7
votes
2answers
10k views

Are ads within average Android applications profitable?

I know ads can be profitable for some incredibly popular applications, but how do average applications fare? I am about to release an application and I think it will be pretty popular, but it's not ...
8
votes
2answers
111 views

How can I best manage Android Intent filter Strings across multiple projects?

In my project IntentExamples, I have this filter, corresponding to a service. <intent-filter> <action android:name="biz.rpcodes.apps.intentexamples.START_SERVICE" /> ...
-2
votes
1answer
80 views

How should a service communicate with an activity in real-time?

How should a service communicate with an activity in real-time? BroadcastReceivers seem too slow and unreliable. Sometimes they appear too slow or stop working entirely. As an example, there was a ...
0
votes
1answer
430 views

offline application development for mobile devices

I am looking to develop an application whereby field staff can complete forms in an offline capacity (when onsite I`m assuming no internet connection) on an Apple or Android device and post the ...
2
votes
1answer
114 views

How are objects treated in an anonymous inner class?

Lets take this for example... entryText.addTextChangedListener(new TextWatcher() { TextView wordCount = (TextView) findViewById(R.id.wordCount); TextView charCount = (TextView) ...
2
votes
2answers
504 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
94 views

Conflict resolution for two-way sync offline sync

How do you manage two-way synchronization between a 'main' database server and many 'secondary' servers, in particular conflict resolution, assuming a connection is not always available(offline ...
1
vote
1answer
187 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 ...
5
votes
2answers
296 views

How Should I Design JSON Serializable Data Classes To Respect Future @NonNull Fields

I have an app that uses Gson to serialize/deserialize data classes and persist data between runs. My code uses @NonNull annotations for many fields/parameters/method returns and one thing that was ...
-4
votes
2answers
60 views

Store Android file to cloud and compare on application installed [closed]

I want to make my app secure from attackers and I want to do the following to prevent my app to be cracked: Store my Java file to the cloud (before publishing the app) User install my app and on ...
3
votes
1answer
88 views

why use authentication token instead of session_id for app(android side) in REST API

in normal php web application after login we use session_id that came from web browser to check if user loged in or not. But in REST API authentication I read some tutorials that say php should send ...
1
vote
2answers
153 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 ...
-4
votes
1answer
22 views

Protect settings on rooted device [closed]

I have an app and it stores data in shared preferences which can be easily changed using something like root explorer. So, how can I keep settings and be sure that user won't be able to edit them even ...
10
votes
5answers
810 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.
2
votes
1answer
267 views

Best practices for MVP pattern on Android

my team has had great success introducing MVP and the associated unit tests that go with the presenter. We are wondering how granular we should make the interaction between the View and the ...
1
vote
0answers
25 views

Integrate non-free (with permission) / differently licenced logos in GPL repository

I'm planning to open source an Android app that I developed against the API of a (small regional) social network. This app is the 'official' version for the website and thus allowed to use the logo ...
7
votes
3answers
913 views

Uncle Bob's clean architecture - An entity/model class for each layer?

BACKGROUND : I'm trying to use Uncle Bob's clean architecture in my android app. I studied many open source projects that are trying to show the right way to do it, and I found an interesting ...
6
votes
2answers
722 views

Capturing mobile device system (output) audio [closed]

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
2answers
3k views

Sync SQLite using only HTTP

I currently have a SQLite DB on my server that is needed by an android app I am currently developing. I download the DB to the android device using HTTP each time the contents are changed. Does ...
0
votes
1answer
123 views

Android Service vs Simple class with thread for network access [duplicate]

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 ...
2
votes
1answer
375 views

Why do Android programmers use Hungarian notation? [duplicate]

I see Hungarian notation in almost all Android code I see. It is used in the source code, in the samples, in code from other programmers I get to see, in code that presenters show at Android ...
0
votes
0answers
50 views

How to associate images in SQLite

I'm a newbie and couldn't find anywhere concise information about whether approach should I take when working with images. The thing is I'm developing an app whose main purpose is to keep track of ...
2
votes
1answer
68 views

How are native applications (C, C++) deployed on android?

I am curious how to deploy android native (that is, using android NDK or Qt C++) application to the end users. AFAIK, the apk files are much like jar files, so I assume native programs can't be ...
3
votes
1answer
197 views

Why throw a 'must implement this function' exception rather than making the function abstract?

In the Android support libraries here the destroyItem and instantiateItem functions throw an exception if they aren't overriden: 175 throw new UnsupportedOperationException( 176 ...
2
votes
1answer
3k views

Private apps for iOS and Android

Is it possible to develop private apps for iOS (iPhone/iPad) and Android? With "private apps" I mean apps that do not appear on the public app store, but can be downloaded and used only by selected ...
0
votes
0answers
32 views

Pseudorandom in Android

I am building a security mechanism and I need a Pseudorandom functionality in my app. More particularly I need to convert a String to fix length. My strings are random already, they just to long so I ...
-1
votes
2answers
4k views

Application vs middleware development in android [closed]

I have 1 year and 6 months of experience on Android. All of my experience has been into application development. Recently I have got offers from two companies. One is offering me a profile to work on ...
1
vote
2answers
82 views

Efficient 2d per pixel lighting on Android [closed]

I am trying to create a simple 2d game to learn on my own. My current task is creating a lighting scheme. My goal is to make the screen appear dark except where I create lights. I have a light class ...
26
votes
3answers
15k 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 ...
3
votes
2answers
263 views

Qt, LGPL, Android and GooglePlay licensing

So, you can build Qt apps and deploy them to android. Taking a look at this post, I was wondering if making a game using Qt would be fine with LGPL legal terms given the following facts: The app ...
2
votes
1answer
284 views

Is Activity/Fragment already a presenter?

An Activity or a Fragment is where you handle the logic of updating views with model data. However, they are tighly coupled with the Android's framework. Are these classes already presenters? ...
2
votes
1answer
248 views

Android App with Ruby Backend Server

I'm working on a personal project to help me branch out and learn some new/different technologies. I'm a .NET programmer but I want to learn Ruby and how to develop Android apps. I have developed ...
1
vote
1answer
173 views

Developing an Android application while dogfooding it

I started learning Java and Android development recently, and I'm learning by building a small app for myself. Nothing fancy, it's just a simple mileage tracker for my car. I know there are tons of ...
20
votes
3answers
13k views

What is the best way to structure an Android application?

I am starting a new Android application. What is the best structure to use? I am planning to make it a multi-package design as follows: Main package, including the Activity Service and data layer ...
-2
votes
2answers
335 views

Server-Side Development for Android Developers [closed]

I'm a Java/Android Developer, I recently graduated college and currently working as a Jr. Android Developer. I feel very comfortable around Android and Java in general, also I'm always reading and ...
-2
votes
1answer
179 views

3D visualization of moment using accelerometer on Android device [closed]

Is it possible to reconstruct the movement of an Android device in 3D space using data from accelerometer? For example, I may draw a circle with my hand in the air, holding an Android device. Is ...
6
votes
2answers
139 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
0answers
238 views

Abstract Alert Dialog Builders (Same Method Calls, Different Objects)

Currently I'm working on an Android library that creates a dialog which allows to select colors from a palette (examples at the end) and I've stumbled upon an interesting design problem. To create ...