Questions tagged [android]

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.

Filter by
Sorted by
Tagged with
69 votes
4 answers
56k 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 ...
Rami Jemli's user avatar
49 votes
3 answers
32k views

Why was Java chosen for Android?

Why was Java chosen for Android, instead of something like C++? I have heard that Java uses quite a lot of memory and I would presume that low memory usage would be quite important on mobile devices. ...
cgt's user avatar
  • 1,911
49 votes
3 answers
186k views

Android development using C and C++ [closed]

I am a C, C++ developer. I am interested in mobile development. I want to know how can I develop Android apps using C and C++, I have read that they are providing a kit for C, C++ developers but it ...
user avatar
46 votes
5 answers
18k views

As a C# developer, would you learn Java to develop for Android or use MonoDroid instead? [closed]

I'd consider myself pretty well versed in C#. It's my language of choice at the moment, and it's where basically all my professional experience lies. Still, I'm puzzled by the existence of the ...
Dan Tao's user avatar
  • 1,201
41 votes
7 answers
5k 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, ...
Lama's user avatar
  • 521
36 votes
4 answers
20k views

Clean Architecture - Too many Use Case Classes

I'm going into Clean Architecture and lift my Android level from MVC to MVP, introducing DI with Dagger 2, Reactivity with RxJava 2, and of course Java 8. In MVP clean architecture there is a layer ...
Jackie Degl'Innocenti's user avatar
35 votes
3 answers
20k 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 ...
Gangnus's user avatar
  • 2,805
30 votes
8 answers
9k views

Should I spend time preventing piracy of my app? [duplicate]

The title says it all, the more I do research about piracy and the tools used to crack an app the more I think it is just wasted time. My biggest threat is that my app is being cracked and uploaded ...
Mike's user avatar
  • 446
29 votes
3 answers
50k 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 ...
Pierre's user avatar
  • 393
28 votes
7 answers
13k 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. ...
Rob S.'s user avatar
  • 2,058
27 votes
2 answers
14k 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, ...
Heinzi's user avatar
  • 9,748
26 votes
2 answers
23k 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 ...
Basbous's user avatar
  • 379
25 votes
1 answer
21k views

What to keep in mind when releasing an app which uses libraries licensed under the Apache 2.0 License? [closed]

I'm creating an Android app which is soon ready for release. I'm just going to implement a tab system using this library. I read that it is licensed under the Apache 2.0 License. I've never used any ...
Daniel Kvist's user avatar
24 votes
6 answers
21k views

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 ...
Rasmus's user avatar
  • 823
20 votes
8 answers
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 ...
user avatar
20 votes
3 answers
32k 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 ...
ysldl's user avatar
  • 401
20 votes
7 answers
5k 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 ...
angryITguy's user avatar
19 votes
1 answer
12k views

Access multiple entities in repository - clean architecture

I have a API call that returns a list of Payments, each Payment contains a User. I need to call it, save the results in the database, fetch all the payments and users and return them all to the ...
wise.potato's user avatar
17 votes
9 answers
15k views

How is Sencha Touch performing on Android in practice? [closed]

I'm just about to start a project using Sencha Touch, and just done some minor testing on my HTC desire device. All tutorial videos at Vimeo seems to be using an iPhone emulator running on a Mac. Im ...
user avatar
16 votes
5 answers
5k views

Functional Languages that compile to Android's Dalvik VM? [closed]

I have a software problem that fits the functional approach to programming, but the target market will be on the Android OS. I ask because there are functional languages that compile to Java's VM, ...
Berin Loritsch's user avatar
16 votes
5 answers
11k 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 ...
Stan's user avatar
  • 271
16 votes
3 answers
15k views

Why use Android Fragments?

I have read the documentation and some other questions' threads about this topic and I don't really feel convinced; I don't see clearly the limits of use of this technique. Fragments are now seen as ...
ahmed_khan_89's user avatar
15 votes
6 answers
42k views

Jump into Android or learn Java basics first? [closed]

I am quite proficient in C and know some C++, but never touched Java. Recently I got an idea for an app which I think has potential, and I want to develop it. I am planning to go Android first, ...
Daniel Scocco's user avatar
15 votes
2 answers
4k views

I'm porting my app from iOS to Android: what do I need to know? [closed]

What pitfalls should I avoid? What Java language paradigms do Objective-C developers consistently misunderstand? I learned to program in Java, but I have worked in nothing but Objective-C for years ...
kubi's user avatar
  • 487
15 votes
4 answers
10k views

Do Android developers have to pay sales taxes? [closed]

According to blog post by RetroDreamer Android developers have to pay sales taxes for their App sales in countries with have sales taxes while Apple developers don't as Apple pays the taxes directly. ...
Christian's user avatar
  • 415
14 votes
5 answers
34k views

Is Android a language or a framework/platform?

I know that Android uses the Java language with a limited Java SDK and that Google claims it isn't Java. But is it right to say that Android is a Programming language? Or is it more right to say that ...
user avatar
14 votes
5 answers
19k views

How should I choose the right Android phone for testing my app?

I am looking to buy an Android phone to test my first Android app on. What things should I pay attention to to make sure I pick the most suitable device?
Ohnomycoco's user avatar
13 votes
2 answers
81k views

String[] args vs (String . . . args)

When programming for android, whenever I use an AsyncTask the doInBackground method looks like this. protected String doInBackground(String... args) But when using the arguments anywhere in that ...
Dylan Meeus's user avatar
13 votes
2 answers
3k views

What is the ideal learning path to building Android apps with Scala, without prior Java experience

Unfortunately, there are not currently any books on the subject of 'Learn Android Development with Scala', which would be the ideal solution. I'm guessing that I'll need to pick up at least 3 books ...
fourk's user avatar
  • 139
12 votes
3 answers
16k views

Should business logic be in the app or in the backend?

I've recently started applying the Clean Architecture while developing an Android application. And so I divided my application in 4 different parts. Data layer Contains the implementation of ...
Ludvig W's user avatar
  • 231
12 votes
7 answers
11k views

Do I need an IDE to develop Android apps?

After reading some articles on Google, I decided to start working on Android apps since it's an open source platform from Google. So I wanted to create some apps.I have Android 2.2 Os So I just ...
niko's user avatar
  • 2,119
12 votes
4 answers
1k views

Why don't mobile platforms support generational garbage collection?

Both Windows Phone/Xbox and Android lack support for generational garbage collection. This is frustrating for a lot of programmers. There seems to be a legitimate engineering reason to it, but I can't ...
Rei Miyasaka's user avatar
  • 4,551
12 votes
3 answers
7k views

How can I find contract Android work?

Two years ago, following 15+ years in Win32 and SymbianOS, I decided to intensively focus on Android. I took the best part of 2009 off work to learn the new platform thoroughly, and that seems to have ...
Reuben Scratton's user avatar
12 votes
3 answers
5k views

Android, OpenGL and extending GLSurfaceView?

This question is part-technical, part-meta, part-subjective and very specific: I'm an indie game dev working on android, and for the past 6 months I've struggled and finally succeeded in making my ...
Spoon Thumb's user avatar
11 votes
5 answers
961 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.
user avatar
11 votes
1 answer
3k views

Why doesn't CharSequence define contains(CharSequence)?

This applies to to both Java SE & Android, as the contracts are identical. CharSequence documentation for Java SE CharSequence documentation for Android CharSequence does not define a contains(...
Dioxin's user avatar
  • 943
11 votes
3 answers
2k views

Why was Android's ContentProvider created?

The title sums up my question, but to elaborate basically what I want to understand is why the Android designers want apps that need to work with shared data to use a Content Provider rather than just ...
satur9nine's user avatar
11 votes
2 answers
5k views

How to publish paid Android apps if you're not from US/UK

I was pretty excited while creating one of my apps but as it turns out you can't actually sign up for Google Checkout if you don't live either in the USA or in the UK. And since Google Checkout is the ...
Aman Alam's user avatar
  • 219
11 votes
1 answer
497 views

Besides the IDE, libraries, and language, what are the main differences between iOS and Android development? [closed]

I'm coming from the iOS side. I'm particularly interested in knowing if there are similar hurdles on the Android side on these points: developer fee -- do you have to pay $99 a year to build for ...
dan's user avatar
  • 2,273
10 votes
3 answers
3k views

Any hard evidence on how much smart phone app developers have actually earned? [closed]

I am considering making a smart phone app. Before I start, I want to see whether it is worthwhile at all. Unfortunatelly, I find it very hard to find any hard evidence on how much the developers of ...
David's user avatar
  • 4,429
10 votes
3 answers
6k views

Continuous integration (with iOS and Android projects) [closed]

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 ...
paxx's user avatar
  • 211
10 votes
1 answer
11k 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 created ...
Stack User 5674's user avatar
10 votes
2 answers
10k views

What is the proper way to implement the OnClickListener interface for many buttons

My Android Activity contains multiple buttons that all need an OnClickListener. I've seen lots of different ways of doing this such as:: Implementing the interface in activity class Creating a ...
slayton's user avatar
  • 203
10 votes
2 answers
2k views

Developing Android apps for someone else

We have developed several apps and published them on Android Market. We are now writing an app that another company will brand and sell through their own publisher account. The other company has no ...
Ted Hopp's user avatar
  • 308
10 votes
1 answer
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 ...
Anthony Naddeo's user avatar
9 votes
4 answers
17k views

What's meant by, "TODO Auto-generated method stub"? [closed]

I am using eclipse for android programming, and every here and there i see the statement, "TODO Auto-generated method stub." I understand that these methods were generated automatically by eclipse ...
user avatar
9 votes
6 answers
5k views

How to develop line-of-business tablet apps as a .NET developer? [closed]

My company has a lot of experience in .NET development, and one of our products in an ERP system. Recently, a customer asked us if we could provide a tablet interface to that system, i.e., a software ...
Heinzi's user avatar
  • 9,748
9 votes
2 answers
6k views

Two or one git repo for Android app + web service backend?

I'm wondering what the best practice is for my git repository structure where I have an Android application + a web service backend. In general, I'd like to release these two independently (e.g., perf ...
Weston Hutchins's user avatar
9 votes
1 answer
5k views

In MVP pattern should the View instantiate a Model object based on UI contents, or just pass these contents as parameters to the Presenter?

I'm using MVP pattern in an android app that I'm developing. I have basically 4 elements: The AddUserView where a new user can be added: The AddUserPresenter The UserInfo (the pojo) The ...
Rômulo.Edu's user avatar
9 votes
2 answers
1k views

Developing professionally for iOS, Android and web - an insight

This is not really a question on how to develop all three, I know various cross platform ways and so on. But I more want to know from developer standpoint how hard it is to basically develop iOS, ...
Scott Roberts's user avatar

1
2 3 4 5
12