Android is Google's open source OS and system for smart phones and tablets. For user questions, see http://android.stackexchange.com

learn more… | top users | synonyms

-3
votes
0answers
14 views

Confused About next Condition in android [on hold]

enter code here package com.example.guess; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import ...
-1
votes
0answers
48 views

Backend development [on hold]

Being new to the programming world I've been learning for about a year now. Having a sometimes fragmented knowledge about programming and concepts I would like your guidance in this. I want to create ...
0
votes
0answers
17 views

Display sensors values on screen [on hold]

For my first Android application, I try to simply get the value returned by the temperature sensor, but I think I miss something stupid, I try to do it since this morning without success... Do you ...
-4
votes
0answers
35 views

how to set color for each item of my arraylist <integer>..PLEASE HELP! [closed]

int semana; int aux; int aux2=1; Resources resources = getResources(); SpannableStringBuilder builder = new SpannableStringBuilder(); View v = new ...
0
votes
0answers
21 views

how to separate the logic of different views when using android viewFlipper?

I use a ViewFlipper in a dialog. I want to fetch the data from the EditText in both of them and also add click listeners to both of them. I can write the whole code in one big file, but i want to ...
0
votes
0answers
8 views

How to save n number of values of a counter and then list it? [migrated]

Basically what I want is to save, lets say 10 values(From the counter) with 10 different names and then show all these names in a list and let the user select one name.I have inflated a menu where i ...
-1
votes
0answers
18 views

Possible for Desktop/Mobile App to sync files via dropbox? [closed]

I would like to create a cross platform app that syncs its files across devices. The desktop app would function much like iTunes, with its own local 'library' of files. What I would like to know is ...
-3
votes
0answers
6 views

my app with broadcast receiver and wifi [migrated]

I, this is my firt app with android and i'm trying to comunicate with hardware because for me it's exciting! when i disable wifi or i change network.... i need to make toast and vibrate. IT RUNS only ...
-2
votes
1answer
43 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 ...
0
votes
0answers
53 views

Publish an app on Google Play from Iran [duplicate]

I'm a high school student and I'm really into computers and programming, I mostly program in java and 3 months ago I started developing for Android. It was pretty easy and straight forward aside from ...
0
votes
1answer
41 views

What is the meaning of MODULE_LICENSE_BSD_LIKE in Android source code? [closed]

In Android source code, we see files like MODULE_LICENSE_APACHE2, MODULE_LICENSE_BSD_LIKE, MODULE_LICENSE_W3C. An outside observer would think that these specify the intended license that applies to ...
-1
votes
1answer
55 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 ...
3
votes
2answers
167 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 ...
2
votes
1answer
72 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
1answer
55 views

How does package naming affects Android application once deployed

Are there conventions to follow when naming an application package for an Android application? I'm coding in Xamarin Studio, using .Net, so I feel far from this "com.myapp.etc" naming convention. Are ...
1
vote
1answer
35 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
1answer
97 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 ...
0
votes
2answers
77 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 ...
0
votes
0answers
57 views

what should I save in local android DB to be more efficient and to last more than one session (and shouldn't be stored in the server only)?

I write an android app. The user sends the server its location and get places relevant to him. He then can up-vote or down-vote any offer. I wonder if I should write to local DB and when? I ...
1
vote
1answer
124 views

Private apps for iOS and Android

Is it possible to develop private apps for iOS (iPhone/iPad) and Android? With "private apps" I mean apps that do not appear on the public app store, but can be downloaded and used only by selected ...
0
votes
1answer
82 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 ...
1
vote
1answer
235 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 ...
1
vote
0answers
73 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. It also can destroy and recreate UI ...
1
vote
1answer
190 views

Android Data persistence question

I have an android app in which users have sets of items, and each item has about 10 properties. What I do at the moment: items are stored in the server database when the user logs in, I get all the ...
-1
votes
2answers
271 views

I want to learn how to develop Android apps, should I learn Java first? [duplicate]

I've been thinking about it, but I don't know where to start... I found Google's dev page here, it seems to have some pretty decent tutorials but I'm not sure if it's enough for someone who doesn't ...
-2
votes
1answer
92 views

Alternative to SIP, voice communication in Android [closed]

Is it exists any alternative to SIP protocol? I want implement voice & video chat option in my application. I don't want use SIP, because I need only simple communication without call for ...
0
votes
0answers
85 views

Problem combining SlidingMenu and ExpandableListView

As said i'm trying to combine SlidingMenu (https://github.com/jfeinstein10/SlidingMenu) with an ExpandableListView, but i'm having an issue that i don't know how to fix, so i'm hoping some one here ...
0
votes
2answers
109 views

Use of LGPL libraries on android devices (in a single closed source .apk) [duplicate]

Well this question is actually asked multiple times here already. but the answers are contradictory So that's why I ask it again (maybe time changed things). Can LGPL licensed libraries be used in ...
-1
votes
1answer
58 views

Make an app that communicates with an app on a server over wifi [closed]

This is a very broad question, and I'm just looking for a pointer in the right direction more than a specific answer, but it's something I've always wondered and never known. Lets say I have a ...
-2
votes
2answers
170 views

What language is used to write Android applications? [closed]

What language is used to write Android applications? I know that mostly applications have to be written in Java but is there any other option? I have nothing against Java I just need to know is ...
0
votes
1answer
50 views

Is it good approach to open a keyboard at Actvity start where only one EditTextbox is present [closed]

I am working with Forgot password, where I have single EditTextBox and a single submit button. So whenever I am opening this Forgot password page, my keyboard is opened at the start of this page. In ...
1
vote
2answers
119 views

Emulating communication between Android and microcontroller using threads or services or… other?

I am not sure what is the best way for the tasks below: threads, AsyncTasks, Loopers, services? Why? Are there other candidates? I need threads/Tasks/Services/other for: Plotting data, (refreshing ...
1
vote
0answers
284 views

How to get local device time corresponding to NTP server timestamp?

So, I'm trying to use an NTP server to help me synchronize an app across two Android devices (to have them perform some action at the exact same time, give or take < 20 ms). I'm using the SNTP ...
0
votes
1answer
125 views

How to get involved in open-source project? (Android/java programmer) [closed]

My question might sound stupid and not suitable for this site, but i dont have any better place to ask then here, so please bear with me. Im a college student that love playing with android. Around ...
2
votes
1answer
179 views

GPL - Writing an exception for a plugin interface under section 7 of GPLv3

The problem I've written a application for Android licensed under GPLv3 which needs to use Google Play Services, a proprietary library, as a plugin to the app. Now I'd also like to add libspotify as ...
7
votes
2answers
55 views

Where to show copyright messages?

In my Android application, I am using a couple of open source libraries. The only requirement these libraries have is that I must show their respective copyright notices in my application. I am trying ...
3
votes
3answers
888 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 ...
0
votes
1answer
464 views

Mobile development project architecture model/pattern

I would like to hear some improvement suggestions for mobile development (Android/iOS) project architectures. I would like to go for a "safe" design, modular and that can be easily maintained in time. ...
1
vote
1answer
120 views

Image strategy on Android

I am creating an application with lots of photos. They will take > 100 mb on memory. So far I have 3 ideas: Place it in @drawable - app will be heavy Download by JSON and place in java ...
0
votes
1answer
216 views

Can IndexedDB be used in offline hybrid android apps?

Can IndexedDB be used in offline hybrid android apps? I have tried the [example presented in this post,1 while it is working in my laptopn on Google Chrome, it is not working inside the WebView in my ...
0
votes
2answers
135 views

Who should provide the Requirement doc / SRS? [duplicate]

I am creating a Mobile application (CRM) for another software company. They told me they need these these stuff from here and there, within 15-30 minutes. But they never provided a detailed client ...
3
votes
2answers
189 views

How does browsing speed differ in native apps, web apps, and websites?

I read an article online which I give the reference to below which compare between Native apps and web apps, in addition to standard website. It seems from that article that native apps are faster ...
4
votes
4answers
884 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 ...
3
votes
1answer
133 views

Object oriented parser model review

First time I make use of Code Review. At the moment I'm creating an Android application and the company I'm developing it for, has a specific file format that can be used to give text based data ...
1
vote
0answers
76 views

What are the tradeoffs involved in referencing Context in a library?

Context is one of the core classes of Android, and many functions it contains are useful in Android library projects, particularly accessing configuration. What are the trade offs involved in ...
1
vote
1answer
112 views

Managing large downloadable content on mobile devices

This is a general question of how to best manage large downloadable content on mobile devices. Lets consider a situation whereby a mobile app needs to download a number of very large content items, ...
0
votes
1answer
221 views

Main activity design too busy

I have a main activity that contains many buttons. I don't want to have a list of buttons like this. I know this looks bad, only cause I threw this together to show you what I have. As you can see, I ...
0
votes
1answer
247 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 ...
3
votes
1answer
227 views

Using private vs company devices for development at work

I'm employed at a mobile app development company since 4 months as Android developer. It's my first job as developer. Currently I'm using my two private Android devices for development. Is it common ...
3
votes
1answer
67 views

An extensible logging architecture for Android?

The end goal is to have a variety of data sets that can all be graphically plotted against eachother. All data should correspond to a date, so that when plotted against each other, they show the ...