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

-2
votes
0answers
10 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 ...
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
votes
0answers
47 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
30 views

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

int semana; int aux; int aux2=1; Resources resources = getResources(); SpannableStringBuilder builder = new SpannableStringBuilder(); View v = new ...
0
votes
0answers
20 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 ...
25
votes
3answers
7k views

Why was Java chosen for Android?

Why was Java chosen for Android, instead of something like C++? While I certainly am no expert, I have heard that Java uses quite a lot of memory and I would presume that low memory usage would be ...
-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 ...
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 ...
-1
votes
1answer
54 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 ...
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
0answers
54 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 ...
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 ...
0
votes
1answer
96 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
1answer
34 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 ...
3
votes
2answers
187 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 ...
0
votes
2answers
75 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
1answer
236 views

How similar is Android/smartphone development to Android/other-platform development? [closed]

The more I program on the Android for smartphones platform the more I like. The way they made task management and inter-task messaging clean and easy is a treat (e.g. - AsyncTask, broadcasters, ...
1
vote
2answers
118 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
5answers
4k views

Application Development: Python or Java (or PHP) [closed]

I'm looking to get into application development, such as Facebook or Android apps and games. I am doing this for fun and to learn. Once my skills are to par I would like to have some side income from ...
11
votes
3answers
4k 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 ...
27
votes
3answers
63k views

Android development using C and C++

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 ...
1
vote
1answer
123 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 ...
1
vote
1answer
229 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
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
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
votes
2answers
269 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 ...
10
votes
6answers
14k 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, ...
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 ...
7
votes
2answers
54 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 ...
0
votes
2answers
107 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 ...
1
vote
7answers
460 views

What difference with Android when iOS is not open?

My question may seem silly, but, I've read in many Android books that the better part of Android is Android is open, and iOS is closed. But, from a programmer viewpoint, who cares about this point? ...
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 ...
-2
votes
2answers
169 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 ...
1
vote
0answers
280 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 ...
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 ...
0
votes
1answer
123 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 ...
3
votes
3answers
876 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
459 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. ...
11
votes
4answers
4k 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. ...
0
votes
1answer
215 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 ...
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 ...