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
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: ...
6
votes
2answers
724 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 ...
1
vote
1answer
306 views

Can I borrow parts of an apache-licensed project for something not open-source?

If I want to make a card game app or android, could I legally borrow parts of the Apache-2.0-licensed Solitaire-for-Android? Would I be able to charge such a project? (I was unable to understand the ...
3
votes
2answers
369 views

How to keep my Activity code readable and maintainable?

I have written a rather small App with only one activity. From my understanding an activity has to be seen as kind of a view and controller in one class. But even for a little app, with 3 dialogs ...
-2
votes
1answer
212 views

How does one generate challenging different puzzles like the one in AirLock android game [closed]

here's the link of the app: https://play.google.com/store/apps/details?id=com.iatll.airlock I had studied AI in the final year of b.tech cs programme, and i do remember some algorithm of ...
7
votes
5answers
900 views

Why does Java use so many middlemen? [closed]

For example to read data from a website we do: HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); is = ...
0
votes
1answer
2k views

Android game loop in separate thread

I am about to port a game that was initially written for iOs and I am having some doubts how certain things should be done. I have been looking many of the examples of the game loops for android, and ...
1
vote
1answer
425 views

Android design advice - services & broadcast receivers

I'm in the process of learning the Android SDK and creating some projects to get a grasp on the system. The current project I'm working with works just fine but I'd like to get some advice about ...
1
vote
1answer
3k views

How can I access my Handler/runnable class from all my other classes in Android?

I am trying to create a class which allows me to do something every 5 seconds and I want to be able to start and stop this from running from any of the other classes. Here is my Timer class: public ...
0
votes
2answers
1k views

.Net application on Android OS

I am Database Administrator, but now I need to know something about android applications. I need to run an existing .Net application in Android Operating System, while surfing on the internet I came ...
41
votes
7answers
4k views

I want to publish an android app, but I'm afraid of software patents [closed]

I wrote an application that helps you to save energy. Actually it is very simple. I check the current location of the phone and I make some changes to the configuration like "sound off, dark display, ...
1
vote
1answer
661 views

Pros and cons of sending data from android to php in string and/or json

I have seen some tutorials and some stackoverflow discussions on how to send data from android to php page. most of the cases i have seen people sending data in string format but returning in json ...
-1
votes
1answer
298 views

Compile GPL-code into a JNI-capable shared library and use it in commercial software [closed]

I am developing an application for Android in JAVA which calls GPLed C-code via JNI. I have modified & capsulated a GPL-software under a JNI-interface and compile it as a shared library (.so) ...
19
votes
8answers
2k views

“Public APIs are forever: Only one chance to get it right”?

In an OS book I just read that, "Public APIs are forever: Only one chance to get it right". Is it true? Is it applicable only in APIs of Operating Systems or other APIs too? For example, will this be ...
2
votes
2answers
3k views

Java Xml intraction in Android

I'm working on Android application development. There is a question that always comes to my mind that: How XML interacts with Java code?. I mean Button inside XML is a view, but Button inside Java is ...
5
votes
2answers
2k views

Why Android created emulator rather simulator?

From http://stackoverflow.com/questions/4544588/difference-between-iphone-simulator-and-android-emulator The difference between emulators and simulators is that emulators mimic the software and ...
6
votes
2answers
241 views

Is tracking Android OS.Buid/Manufacturer info a privacy issue?

On the Android operating system details about the phone are available via the Android.OS.Build class. These details include things such as the phone manufacturer, model, version, etc. The customer may ...
0
votes
1answer
89 views

Handle invalid text on server or fix on client in Client-Server application

I have developed a protocol for a Client-Server application and developed it in conjunction with another developer. The client application at this moment is written for the mobile phone. The ...
1
vote
0answers
124 views

What will be the better way for data retrieval on application that needs to handle limited amount of data? [duplicate]

Just moved this question from Stack Overflow. Since, adding my code snippets itself would make this question really long. Instead, I am pretty interested in knowing a better ways for data retrieval on ...
1
vote
2answers
178 views

What will be the better way for data retrieval on application that needs to handle limited amount of data.?

This is not really a coding question since, I am not adding any code in here. Since, adding my code snippets itself would make this question really long. Instead, I am pretty interested in knowing a ...
2
votes
2answers
4k views

Realtime (almost) bidrectional communication in Java

I will explain the context of the problem first. For a University project I'm going to implement an Android application. The Android application (and others) will be able to send data to a remote ...
2
votes
1answer
344 views

Restrict access to backend

This might be one of those "not answerable" or "just opinions"-questions but I thought I'd give it a shot. I'm developing an app with health care information with a friend who's a doctor. The basics ...
3
votes
3answers
2k views

Is the meaning and usage of the term “ROM” different in different devices?

ROM - Read Only Memory Does this term mean the memory which should only be read and not written to , or the memory which can only be read ? "ROM in PC's and laptops are usually seperate chips in the ...
3
votes
3answers
5k views

Multi-platform Mobile Development? [closed]

So my question is this: Is there any easy way for a single developer to release an app on iOS and Android? I am a web developer that primarily plays in PHP, Node, Ruby, AS, and JS. I have dabbled a ...
7
votes
3answers
1k views

Unit Testing DatabaseOpenHelper class in Android

I've written several unit tests for an already existing DatabaseOpenHelper class. I covered the creation scenario and migration from old schema to new one. Unfortunately, I don't feel that my tests ...
15
votes
5answers
5k 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 ...
8
votes
1answer
2k views

Useful design patterns for working with FragmentManager on Android

When working with fragments, I have been using a class composed of static methods that define actions on fragments. For any given project, I might have a class called FragmentActions, which contains ...
2
votes
2answers
403 views

Can I use a project code which has New BSD license but uses a GPL license library?

I want to use the ICSOpenVpn project source code in my commercial application. If we see the ICSOpenVpn project, it states that its license is New BSD but the libopenvpn.so library it uses is under ...
7
votes
3answers
1k views

How do people deal with Android fragmentation? [closed]

I've spent the past few years working on iOS apps, and I'm now giving some serious consideration to creating an Android port of one of my apps. I'm sure that complaints about fragmentation are a ...
1
vote
2answers
1k views

Android Card Game Database for Deck Building

I am making a card game for Android where a player can choose from a selection of cards to build a deck that would contain around 60 cards. Currently, I have the entire database of cards created that ...
2
votes
1answer
1k views

Android Application(Client) and Server(C#.Net) Communication

I am confused which approach to choose - Poll (which waste battery), GCM or any other approach which suits best? Scenario is: my client is Android and server is C#.Net. Server sends Invitation to ...
8
votes
4answers
4k views

Is it important to know C/C++ for Android development?

Is it possible to use only Java (without C++ /NDK) for building good, fast, beautiful Android apps (including 3D development)? When I look for Android developer position requirements (vacancies), I ...
4
votes
2answers
939 views

Supporting early versions of Android

What policy do developers have when it comes to supporting earlier versions of Android? I still support , but this means that I am unable to use features such as the action bar. Over 40% of my users ...
3
votes
2answers
3k views

Is it required to start a business to sell Android Apps (US)?

I know you can sell apps using your own personal tax information, but what if there are several people working on the app? Our plan is to just have one of us register for the Google Merchant account ...
2
votes
1answer
1k views

Use Android NDK for portability with iOS?

I am currently planning to implement a little painting app using OpenGL ES 1.1. I believe this question applies to any OpenGL ES project. I am starting development on Android and I would like to ...
11
votes
3answers
16k views

Why to use web services instead of direct access to a relational database for an android app?

I searched on the web how to access in an efficient manner to a central database at a remote location and I met suggestions to use web services instead direct access (i.e. JDBC etc ) to a database.I ...
2
votes
1answer
3k views

About anonymous objects

In Java particularly Android development, is there any difference between declaring an object like SomeObject object = new SomeObject(); someField.setObject(object); compared to an anonymous ...
11
votes
1answer
10k views

What are the differences between AppMobi and PhoneGap?

I am new to the cross platform application development. I came across the very similar cross platform frameworks AppMobi and PhoneGap. I want to know Is there any differences between apk/ipa ...
2
votes
1answer
77 views

Can each mobile app have its own client account for payments? (Windows Phone, Android and iPhone)

My company has many clients wanting mobile applications and having the payments come into our account and then sorting the payments would be a real pain. So can a company have a main account to ...
1
vote
1answer
439 views

Best strategy for supporting multiple server communication from iPhone/android app?

I'm making an app that will be used in multiple hospitals in the US. As per HIPAA compliance requirement, every hospital will have its own server that complies with these requirements of ensuring ...
2
votes
2answers
497 views

How to translate formulas into form of natural language?

I am recently working on a project aiming at evaluating whether an android app crashes or not. The evaluation process is 1.Collect the logs(which record the execution process of an app). ...
1
vote
1answer
111 views

Filtering lists in an Android App offline or online?

I have an android app that fetches a list of about 100 Items. Trying to get the server load down, I've built a filtering feature that does everything offline, so basically instead of calling the ...
1
vote
4answers
5k views

Should Android development be done on Windows or OSX? Is there any difference? [closed]

I have the option to install the Android SDK on Windows or OSX. Which platform provides a better (easier) development experience? To keep this constructive, I'm looking for any difference that ...
0
votes
1answer
307 views

What are some feasible ideas for building a smart-device/console development portfolio? [closed]

I would like to start getting more contracts in the mobile, smart-device, and console development space and, having little prior work experience in the field, I need to build a portfolio of example ...
0
votes
1answer
242 views

Coincidence or rule?

I was reading about Assemblies (modules, which Microsoft CLR works with). The Assembly contains so called Manifest, which by definition describes a set of files in the Assembly. I know that Android ...
2
votes
1answer
1k views

How to store data in Gujarati language in SQLite?

I am developing an Android application for Gujarat's farmers. So this app should be in Gujarati also. Is there any way so that I can store my data in Gujarati in SQLite?
2
votes
3answers
2k views

Does mobile based (Android) development, benefit from Object Oriented Programming?

My development on Android is based on scientific programs and while I'm building these most of the code is in one or two long classes. When I come to deploy these programs I try to decouple everything ...
1
vote
1answer
476 views

Allow app analytics opt-out?

Given that mobile app analytics reporting can cost a customer data traffic that, unlike a web app, use of the mobile app may otherwise not require, should a mobile app provide a user accessible ...
23
votes
2answers
11k views

Does it make sense to use ORM in Android development?

Does it make sense to use an ORM in Android development or is the framework optimized for a tighter coupling between the UI and the DB layer? Background: I've just started with Android development, ...
0
votes
2answers
426 views

SQLite resources or any other storage concept for mobile applications?

I would like to know what storage concepts are used for mobile or handheld devices, where an app is operated on?. AFAIK one of them is SQlite. Can anyone shed a light on this concept? perhaps links ...