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 a best site to learn about android development.

learn more… | top users | synonyms

24
votes
2answers
12k 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, ...
15
votes
5answers
14k views

Design pattern 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 ...
10
votes
5answers
821 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.
9
votes
2answers
333 views

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 ...
8
votes
4answers
636 views

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

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 ...
8
votes
1answer
1k views

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 ...
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 ...
5
votes
2answers
4k views

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 ...
5
votes
2answers
4k views

Benefits to using fragments in Android projects

I am learning Android programming and right now and i'm reading about fragments. I understand what fragments are, but either the tutorial is missing some steps or i'm missing something. So my question ...
5
votes
2answers
4k views

Development on Android without using Java [closed]

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 ...
4
votes
1answer
3k views

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 ...
4
votes
1answer
216 views

Register user in mobile app without e-mail

We are currently developing an app for Android and iOS which requires the user to perform a registration. However we don't want the user to go through all this e-mail and password activation link ...
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 ...
3
votes
2answers
130 views

How to check if app is offline

I am developing internal Android apps for the company I work for. In various places in the apps I need to connect to an internal server. This server is shutdown for maintenance for a period of time ...
3
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: ...
2
votes
2answers
381 views

Android: Not able to experiment on own? [closed]

I have just started learning Android App Development a few days ago, with prior knowledge of C/C++, HTML and CSS. This is the situation I am facing Repeatedly: I am learning from a Video Tutorial ...
2
votes
1answer
2k 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 ...
2
votes
1answer
596 views

Can you help me understand this design pattern made by Java expert?

I inherited the project from a very experienced Java developer. The project is Android app and the guy who coded is is very experienced in coding regular Java apps. He introduced some file structures ...
2
votes
1answer
159 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
1answer
325 views

Building a news app for both phones and tablets

I am building a news app. In phone mode it should have a navigation drawer which slides out when you tap on a hamburger button or slide your finger. That navigation drawer has a fragment with static ...
2
votes
0answers
73 views

Android Development: Styling the application

How do you approach theme and styling of an Android application? I have all the functionality and I'm now styling and dealing with colors, etc. This is my first big time Android app, and it seems like ...
2
votes
0answers
87 views

How to limit users of a service to a specific program

I have built an android game - I would like to add a "high score" leaderboard to it, such that people can show off how high they managed to score. How should I design it so that people can't "hack" it ...
2
votes
0answers
52 views

Android network Lib development

I have to develop an Android library that should frequently communicate with a server in the background. Access to the lib Object should be guaranteed everywhere in the Apps that will use it, so I ...
2
votes
0answers
323 views

Are Calls to a WCF Service via JSONP Secure?

I am looking at developing a complete HTML5/JS mobile app that can be deployed to Android, iOS and Windows platforms. I am using DevExtreme tools to help me do that. I already have a WCF service that ...
1
vote
2answers
48 views

What should I do if I published an app with a wrong package name?

I found out that the package name should follow the web domain you own for this application / developer Id. I published an app starting with com.health... (example) because I didn't know better at ...
1
vote
2answers
229 views

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 ...
1
vote
2answers
440 views

Managing multiple versions of the same Android Library Project

I have an Android Library Project which I intensively used in a few projects. I started a new project in which I am also using this library. I want to improve some things in library (method signatures\...
1
vote
1answer
34 views

Storing mutliple selected values in DB

In my Android app, there is a question like "Which of the following foods did you eat today?" (not the actual question), with a fixed list of foods (e.g. "Apples, Banana, Pizza, Burgers") from which ...
1
vote
1answer
199 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 ...
1
vote
1answer
96 views

excute Vs excuteOnExecutor [closed]

There are two ways to execute AsynTask, i.e., execute and executeOnExecutor. I already know that execute works serially and executeOnExecutor works in parallel. So my question is: Which one to use? ...
1
vote
2answers
165 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 ...
1
vote
1answer
295 views

OnClickListener good practice

Which one of the ways has better performance, or is a good programming practice, making the holder activity extend OnClickListener and make a Switch() clause for getItemId() or making one ...
1
vote
1answer
459 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
31 views

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 ...
1
vote
0answers
32 views

How to turn off third party app store and side loading except my app store

I want to prevent installing apps using third party app stores but except only one app store. This specific app store is in my control. I can change it's code to send a message to the mobile device ...
1
vote
2answers
94 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 ...
1
vote
0answers
115 views

Gradle Flavors vs. App Projects

I've inherited a pretty big and old project with a tiny bit of technical debt which is still under active development. A couple of months ago we made the jump from Eclipse+Ant to Android Studio+Gradle....
1
vote
0answers
2k views

Android, PHP session and JSON object retrieval

I am working on an app in android studio.. it currently has a login and registration system that are linked to a database and both work perfectly. I am now trying to carry over the user id value ...
0
votes
2answers
491 views

Why use XML in Android?

From what I understand, isn't XML used for layouts and to setup how an activity looks? My book says that XML files are converted into Java code but then, why not just write everything in Java?
0
votes
1answer
172 views

How to deal with product owner who refuses to follow UI design rules

We develop Android application. We base on old version of similar application developed in our company. This old application was designed by some noobs which didn't follow UI Android design rules. ...
0
votes
1answer
810 views

Proxy to redirect DNS during development [closed]

I am using Genymotion to test an app. The app is basically a browser that connects to my website. I do not have the app's source. I do the development and testing of the website in a domain like this: ...
0
votes
1answer
1k views

How can I test my camera-dependent android app on most devices? [duplicate]

We are developing an app for taking photos faster. We do this by actually taking videos instead of photos and processing the individual images in the video on the fly and combine them to create a high-...
0
votes
1answer
184 views

Project has become so complex and big that I am lost [closed]

Hello this has never happened with me before . I am making an online shopping android app which has become huge and complex . While developing the code I have followed all the clean naming conventions ...
0
votes
1answer
53 views

Restructure Service - Http - Notification communication

I am trying to restructure a project to make components reusable and clearer. Consider the following scenario: A WakefulBroadcastReceiver (in my case called SimpleWakefulReceiver) will start my ...
0
votes
2answers
169 views

Good design pattern to enable/disable certain functionality based on condition

I am working on a paint type application in android. I got toolbar on left contains tools like undoCut, redoCut, box, frame, cutting, coloring, next, previous etc. I wanted to know what is the best ...
0
votes
1answer
80 views

How to associate images in SQLite

I'm a newbie and couldn't find anywhere, concise information regarding which approach I should be taking when working with images. The thing is I'm developing an app whose main purpose is to keep ...
0
votes
1answer
185 views

Usage of github libraries

So far there had been a lot of external libraries provided for us to reduce our efforts on coding and utilising the time to provide quality apps to the play store. Now, I am keen to understand ...
0
votes
1answer
354 views

2D Game Data Structure in OpenGL ES 2.0

I'm trying to come up with some data structures for rendering my map on OpenGL. It is going to be ~ 100x100 blocks(squares) total, with each block being around 100 pixels. However, the screen will ...
0
votes
2answers
2k views

What could be used to get data from server to android as fast as it reaches server?

What is the best way to get data from server as fast as it gets to it? (Like instant message, or simple broadcast for example). I first thought about using miniature web server in android and get ...
0
votes
1answer
6k views

how much memory should android app use [closed]

We are planning to develop an android application. the application will use API and data transfer will be via SSL. I should write documentation and set functional and system requirements for the ...