Questions tagged [android-development]

Used to tag questions related to Android programming and new development features. Android is a platform and complete development stack from the Operating System to the APIs. developer.android.com is the official site for information about Android development.

Android is a complete stack of development for developing applications that are portable on Mobile phones and Tablets having Android as an underlying Operating System. Android uses the Java programming language for application development, though there are other tools available allowing development in various programming languages such as Ruby, JavaScript, etc.

https://developer.android.com is the official site for about Android development.

110 questions
27
votes
2 answers

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, and my first instinct (coming from a .net…
Heinzi
  • 9,646
  • 3
  • 46
  • 59
24
votes
6 answers

Design 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 downloads the data from the network and stores in the…
Rasmus
  • 823
  • 2
  • 7
  • 15
15
votes
2 answers

What to do when request is sent to server and while waiting for response internet connectivity lost?

I am sending a huge amount of data to server. Now while I have sent the data and waiting for server response, suddenly my android device gets internet connection lost. So what I used to do is, showing an alert dialog of connection lost, but at…
mayank_droid
  • 253
  • 1
  • 2
  • 6
11
votes
5 answers

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.
user1449
11
votes
2 answers

Strategies to troubleshoot an error that only happens on a specific device

As an Android developer, the target market I create apps for is very fragmented. While I can specify certain requirements - e.g. my app only supports Android version x.x or above, sometimes errors may occur that are only evident on one specific…
9
votes
2 answers

Development on Android without using Java

As the title of this question suggests, I am looking forward to develop app(s) on Android platform without using Java at all. It doesn't mean I have some kind of vendetta against this beautiful language or I don't know how to develop apps in Java.…
8
votes
2 answers

Pure Dependency Injection - How to implement it

I'm doing an Android project for an online course. I would like to use DI in that project, so I started to use dagger2, but now I started to have typical newbie problems that are holding me back. As the project deadline is coming, I decide to…
alexpfx
  • 293
  • 3
  • 12
8
votes
1 answer

Why does the new ADT create a static inner class Fragment by default?

Honestly, I can't help but feel that this is done merely to confuse newcomers. Most of the errors on Stack Overflow by complete Android newbies mostly stem from that they have a static inner class Fragment that they don't understand how it works,…
Zhuinden
  • 181
  • 4
8
votes
1 answer

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

I'm new to Android and while going through a tutorial on saving Activity state to a Bundle, I noticed that instead of accepting the more generic List interface, Bundle's put methods are expecting…
jramoyo
  • 610
  • 5
  • 13
8
votes
4 answers

Is there a sequence to read through the Android developer site for a user new to Android?

To summarize: I can buy a book, people say "Just read the developer site", I like to be spoon-fed the early learning piece for a technology, what path through the developer site will give me that spoonfeeding I need (that is, examples tied directly…
Paul
  • 730
  • 3
  • 13
7
votes
2 answers

What's the best implementation for offline mobile app synchronization?

We have an Android app written as a Cordova AngularJS SPA which has now grown so that we need to add some work to it meaning we have to improve the synchronization part of the app. The app is mainly used offline. I can't give details of the…
7
votes
2 answers

How to sync the data from the same user across multiple devices

I'm working on a small fitness app in which the user (whom is authenticated with the a server) could create their own workout plan which will be synced with a server. The problem with this is that What if the user has installed the app on multiple…
edwinj
  • 173
  • 1
  • 6
7
votes
3 answers

How do people deal with Android fragmentation?

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 frustrating cliche to experienced Android programmers,…
Bill
  • 972
  • 8
  • 12
5
votes
3 answers

Why using ViewModel when using also Repository?

I read this guide about recommended app architecture for Android. Here is a graphical summery: The role of ViewModel is clear, but I don't understand why we need it if we use Repository. The purpose of ViewModel is to keep the data persistent…
5
votes
1 answer

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 stay in sync with any new or updated events that…
roverred
  • 397
  • 3
  • 8
1
2 3 4 5 6 7 8