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
7 votes
3 answers
2k 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 ...
0 votes
1 answer
2k views

Could we drop support for Android native browser on our web site? [closed]

I work with an interactive web portal that has a few single-page apps and complex html structure. The aim is to support all browsers that our customers use. We have implemented responsive web design ...
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 ...
0 votes
1 answer
1k views

Is it bad to feel guilty using lots of libraries? [duplicate]

So I'm an android programmer,have been programming for about 3 years,but it wasn't until 5 months ago that I started really taking it seriously. Recently I got my first internship,and I'm happy with ...
1 vote
2 answers
2k 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\...
8 votes
1 answer
8k views

How can one presenter be used for multiple views in MVP

I am using MVP for creating an android application, which takes data from server and sets to activity. I am forced to create one presenter for each view. Each view is unique because each view has ...
0 votes
1 answer
592 views

Android, using a Fragment to hold/edit complex object, accesible from any Activity

I'll do my best to describe the problem, but I'm still very new to several concepts that I think this problem requires to be solved (namely interfaces and threads). I should preface this by saying ...
5 votes
2 answers
801 views

Does having many duplicated methods and deep inheritance hierarchies in GUI APIs (Java Swing, Android SDK) violate the SOLID design principles?

For those unfamiliar with the SOLID principles you can start reading here: Wikipedia article. However, most of my understanding comes from: http://www.objectmentor.com/resources/publishedArticles.html ...
1 vote
4 answers
914 views

How to ensure multiple clients don't poll the server at the same time?

I am making an android app which will talk to a web service to get data. The web service has a rate limit of 100 calls per minute. Is there a way, recommended method to ensure that the app across ...
0 votes
1 answer
258 views

Android: Is root absolutely required to re-link libs in Play Store APKs?

This question pertains to the re-link clause of the LGPL specifically on the Play Store. There's lots of unclear information about this topic. Assuming there's an application on the Play Store that ...
0 votes
1 answer
2k 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
2 answers
383 views

Snapchat clone: How do I secure pre-downloaded notifications so that they cannot be opened outside of the app?

Say I'm making a snapchat clone app for Android and iOS. Let's say that I get a snapchat from Baz. I want to pre-download the audio for this snapchat. However, as the developer, I want to secure this ...
0 votes
1 answer
125 views

How to format Android view IDs

I struggle with this every time I work on a project. I am not entirely sure what the standard conventions are for creating view ids. I usually use something like view_more_button but then if we ...
3 votes
1 answer
388 views

Android testing - bugs not reproducible [duplicate]

We have the following problem: at the end of the iteration we give our Android app to our customers to test. Our customers report bugs that are not reproducible on our test devices. How can we deal ...
0 votes
1 answer
2k views

What is the legality of making a mobile app version of an existing card or board game? [closed]

I see that the market is full of mobile apps based on card/board games. For example, do a search for "Taboo" and there are many results which are not published by Hasbro Inc. Is this legal? The top "...
3 votes
1 answer
3k views

How to implement await in Android

This is a general question to understand how await in C# works, and particularly I am interested in implementing it in Android. So C# await allows you to go in to waiting mode in the middle of the ...
2 votes
1 answer
9k views

Moving a multi-activity android app into a navigation drawer activity

I'm making an Android app and have it structured as a simple multi-activity app. I want to add a navigation drawer to it, and it looks like I will need to completely restructure the app and load ...
0 votes
1 answer
213 views

Broadcast receiver Or Services

I am creating an "Alarm Clock" app in Android. I learned that we can implement OnReciever() method and write those things which we want the alarm to do after an intent is fired. But I have now come ...
4 votes
1 answer
2k views

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

Let's say I have an application that has constantly changing data. Changes are so frequent that you basically need to refresh data every time you open some screen and keep refreshing it. Is it worth ...
5 votes
1 answer
417 views

What are the benefits of Android way of "saving memory" - explicitly passing Context objects everywhere?

Turned out, this question is not easy to formulate for me, but let's try. In Android, pretty much any UI object depends on a Context, and has defined lifetime. Android can also destroy and recreate UI ...
1 vote
4 answers
7k 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 ...
1 vote
2 answers
558 views

Android SDK and Iphone SDK limitations

I have an idea that would require triggering a call or text message simply by pressing or dialing a certain number. Example: Pressing 2324 on the pin code. Despite it not being your pin code to ...
3 votes
0 answers
71 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 ...
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 ...
2 votes
2 answers
983 views

source code file system layout for 2 very similar projects (with git)

we're working on "two" android apps that are very similar; in fact, they're the same apps with different graphics and color schemes, slightly different configuration and one or two unique activities ...
0 votes
1 answer
533 views

Android Icons Square [closed]

I created an action bar icon for an Android app I'm working on and it seems to downscale my icon. The thing is, it isn't a square icon. The width is greater than the height. Do I really HAVE to ...
1 vote
1 answer
112 views

Ensuring submitted hiscores are not fake

I have a small game that I would like to keep track og global hiscores for. The basic is simple: username and score is submitted to a server for storage and later polling. However how do I ensure that ...
1 vote
1 answer
194 views

Use camera to analyze homogeneity

We are working with some screens whose in the production process change their state from a transparent state to a colored state. This colored state is achieved to block light transmittance. In this ...
2 votes
2 answers
2k views

Is it okay if we use an arbitrary string as UUID?

I found the tutorial of client (android) and server (pc) bluetooth tutorial from here. But my question is about the UUID. Is that okay if we define it randomly without the proper format? Because I ...
1 vote
2 answers
5k views

Android Design - Service vs Thread for Networking

I am writing an Android app, finally (yay me) and for this app I need persistant, but user closeable, network sockets (yes, more than one). I decided to try my hand at writing my own version of an ...
0 votes
0 answers
556 views

What are the implications of the cache when using notifyDataSetChanged?

I use Volley to return JSON from an API. I parse this JSON and add StoreItem objects to a List, then use an adapter to display in a listview. I use the cache functionality in Volley, and I'm ...
2 votes
1 answer
573 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 ...
0 votes
1 answer
758 views

What's the best way to store options with multiple/boolean choices in an Android app?

I'm working on an Android social app which connects to a Postgresql database for up-to-date user data and is going to use lookups for dropdown menus, and these lookups will either have multiple ...
5 votes
1 answer
2k views

Which mobile development platform is easiest to develop? [closed]

From your experience in developing mobile apps, which mobile development platform is easiest to develop? iOS, Android or WinPhone 7? And why would do you think it is the easiest? If you can order it ...
0 votes
1 answer
289 views

Analogy for Android fragments [closed]

I'm trying to understand the flow of Android apps. I come from a RoR background, so I try and use that background to understand new concepts in Android. Here's my question: How can I think about ...
0 votes
1 answer
318 views

Sortable listview using SQLite [closed]

I'm implementing a sortable listview using bauerca's library here. This works, but now I need to define some things where I need some help. This is the functionality of my app_ I can create up to 5 ...
0 votes
1 answer
2k views

Inserting data to database from Android

I have to build an application where the requirement is that my clients will send data from their Android device and I have to save that data to a database. I have done the part of coding that ...
0 votes
1 answer
241 views

Android -> Ruby Server Interface -> Mongodb

I've been wrecking my brain about this for a few days. I'll run my scenario by you and hopefully you can help me. In my head this is how it goes: I have an Android App. I want my Android App to make ...
1 vote
0 answers
49 views

Online error reporting without network access

I have developed an application for android requiring no permissions, but the biggest downside of this is that I don't have error reporting. So, I was playing around for the past week with any ...
0 votes
1 answer
2k views

Android proprietary app including Apache-2.0 licensed code from Google

My Android app contains some Apache-2.0 licensed code from Google (in-app billing example) and links to com.android.vending.billing library in the form of a InAppBillingFile.aidl file (same license?). ...
0 votes
1 answer
3k views

Android DB With Some Multi-Language Data

I have a SQLite Database in my Android app with a "Question" table, among others. That table contains "default" or "pre-loaded" data (in this case the questions asked by the app). Some of its columns ...
3 votes
1 answer
4k views

Shouldn't Android's TextView.getText() return String instead of possibly mutable CharSequence?

I've just spent hours debugging some code because I forgot (actually never considered it) that TextView.getText() returns CharSequence that may be in fact a mutable class... Shouldn't it return (...
0 votes
1 answer
444 views

How Data Transfers differ on Smart Phones: Iphone vs. Android vs. Windows Phone [closed]

I am interested in how each individual smart phone is allowed to handle data transfers within a third-party app. I am interested in designing apps that allow customers to update, transfer, download, ...
-1 votes
1 answer
4k views

calling an abstract method in abstract class

Suppose i have an abstract base class Parent which defines an abstract Method A(some parameter) taking a parameter, also it defines an instance Method B which calls method A(parameter) inside its ...
3 votes
2 answers
323 views

Tablet development for a dedicated system

I need to make an architectural decision for developing (actually porting) my embedded solution on a tablet. The choice comes down to Ubuntu or Android, so I have some specific questions to help me ...
-1 votes
1 answer
4k views

is there a way to leave notificationManager and alarmManger alive even when the app is closed?

how would you recommend for me to design an android app where i want it to 1) send location update every 10 minutes 2) to show push notification I want both actions be available even when the app ...
4 votes
1 answer
293 views

Architectural problem for Activity communication in an Android app

I maintain an open source Flickr app Glimmr for Android. There is currently an architectural issue around pagination that I've been trying to solve for quite a while, and would appreciate ideas. ...
0 votes
1 answer
2k views

In Android can we let a fragment know other fragments?

I think I have found contradictory design guidance within the Google Android documentation on fragmentation. The first statement below advises each fragment be unaware of other fragments and always ...
1 vote
1 answer
398 views

Android apps and GPLv2 classpath exception

My Android app needs javax.activation and javax.mail (both GPLv2 licensed). However, I don't want to make my app GPL-licensed. What are the possibilities to not break the license requirements ...
0 votes
2 answers
448 views

outOfMemoryException in android emulator [duplicate]

I'm developing an Android application which is responsible for showing multimedia such as videos and photos to user. I have a certain activity for a gallery of photos. In my phone where I'm ...

1
6 7
8
9 10
12