Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9007

Android is Google's open source OS and system for smart phones and tablets. Use this tag for software engineering questions about Android; for user questions, visit our sister site Android Enthusiasts Stack Exchange.

2 votes
Accepted

In Android, is there any reason to set up a content provider for a local database?

from http://developer.android.com/guide/topics/providers/content-providers.html You don't need to develop your own provider if you don't intend to share your data with other applications. Howeve …
k3b's user avatar
  • 7,536
1 vote

What to put into an app about dialog?

The about-box requirements may depend on requirements of the libs/dataservices and other resources you use. i.e. for openstreetmap see http://www.openstreetmap.org/copyright. If you put app version i …
k3b's user avatar
  • 7,536
0 votes

Android MVC with the Activity being the controller?

In my own debatable opinion, using MVC or MVVM is not helpful in Android context. … In practical Android programming I do not see any advantage to split the GUI into view and controller or into view and viewmodel. …
k3b's user avatar
  • 7,536
0 votes

What makes more sense: (a) To have multiple apps accessing the same DB (b) single app

I donot know if this is "best practice" but this is how google has decided that android should work as (b): In android local databases are private to the app that owns the database. … If you want to use a public local database you need this android workaround …
k3b's user avatar
  • 7,536
1 vote

Drop table if it already exists and then re-create it?

The Android specific virtual method SQLiteOpenHelper::OnUpgrade public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) {...} …
k3b's user avatar
  • 7,536
1 vote
Accepted

Best practice for combining a Java Applet/ Android interface?

gui-s for android, applet, j2se, j2me. … But eaven keeping biz logic seperate is difficuilt because in the android world many api-s are based on the android Context which is the gateway to the operating system. …
k3b's user avatar
  • 7,536
4 votes

Develop for Desktop and mobile use?

How easy could this be converted into an Android app? You can develp with html5/js and wrap this app into a native mobile app using phonegap …
k3b's user avatar
  • 7,536
6 votes
Accepted

Proper workaround for multiple inheritence in Java (Android)

I am afraid you can-t implement your classsystem without codeduplication in android/java. …
k3b's user avatar
  • 7,536
1 vote

Unit Testing DatabaseOpenHelper class in Android

Instead of verifying that colum1 is name, colum2 is birthday, colum3 is .... i would just test if these colums exist after upgrade. To do this I would create an integration test that start …
k3b's user avatar
  • 7,536
2 votes

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

What strategy would one adopt to test such a form? You have to separate the GUI from the decision logic by adding a decision function that only depends on business attributes and not on GUI eleme …
k3b's user avatar
  • 7,536
1 vote

Is it ok to have many libraries for modularity?

I agree that splitting feturesets into vertical-slices is a good thing on the level of classes/namespaces. On the level of different/independant moduls/libs i see more harm than benefit to have a spe …
k3b's user avatar
  • 7,536
9 votes
Accepted

Why does Android's Bundle API accept ArrayLists rather than Lists

Just a guess: Maybe Bundele-content must be be serializable and not every Lists implementation is serializable. From sdk-doc public Bundle.Bundle (ClassLoader) Constructs a new, empty Bundle that …
k3b's user avatar
  • 7,536
5 votes
Accepted

Should data be stored to local database in Android when heavily using REST services?

you should already have a serialisation format for the transportation from service to android client (JSON, XML, ....) why not using this format for the file cache, too …
k3b's user avatar
  • 7,536
6 votes

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

In most cases you do not need c/c++ to develop for android. According to Android NDK Overview II. … Android NDK Non-Goals: The NDK is not a good way to write generic native code that runs on Android devices. …
k3b's user avatar
  • 7,536
0 votes
Accepted

Architectural problem for Activity communication in an Android app

Do you have a model/businscomponent/service that is responsible for managing the data? for me your description sounds as if your gui elements (activity/fragment) are doing the work. The usual way wou …
k3b's user avatar
  • 7,536

15 30 50 per page