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

1
vote
1answer
56 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 ...
-4
votes
0answers
20 views

How to digitally sign data in android [on hold]

I am sending a string from my Servlet to Android client and i want my Android client to digitally sign that data and send it back to the servlet.How can the Android client digitally sign the data?I ...
-3
votes
0answers
31 views

What is the best framework to develop an Android app that connects to an existing MySQL database through a web service? [on hold]

I have experience developing Android apps using both Eclipse (Java) and Xamarin (C#). I have never tried connecting my apps to a database until now. It sounds like I need to use Android tools to call ...
-2
votes
0answers
21 views

connecting to different servlets through android client [on hold]

I am trying to connect to a servlet on application load and connecting to a different servlet on button click in android using urlconnection.But on application load it is connecting to the servlet but ...
0
votes
1answer
27 views

Guidance on android type app to connect to sql-server

Excuse my ignorance but we've got an application that we'd like to sample out on a mobile app The app is a C#/asp.net application connected to our sql server database. If we are going to write an ...
5
votes
1answer
308 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 ...
1
vote
2answers
228 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
votes
0answers
47 views

Android Set Device DIscoverable (bluetooth) without any dialog [migrated]

How can I set the dialog to be hidden / suppress it to Yes when I try to execute the following code below? discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); ...
-1
votes
0answers
41 views

Wifi Communication between two device without intermediary device [closed]

I want to develop an app that will be deployed in two android devices for making them communicate through wifi. And here is the case: Two devices are turning on their Wifi They're not connected to ...
0
votes
2answers
286 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
2answers
70 views

What is selection and what is projection

I am working on Android with the query() method of the ContentResolver class and it accepts 6 parameters, (uri,projection,selection,selectionArgs,sortOrder,cancellationSignal) for selection and ...
0
votes
0answers
24 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
2answers
247 views

Dalvik + Java licensing question

This is a licensing question about the Dalvik and J2SE core libraries. In particular the license governing java.util.concurrent.SynchronousQueue. The license header of the class in the JDK source ...
0
votes
0answers
3 views

What method call in HttpsURLConnection actually sends the HTTP request? [migrated]

I am new to the HttpsURLConnection class in java, and looked on the doc and found it not very enlightening. I have inherited this code on a project I am working on (I did not write it myself) and ...
0
votes
1answer
46 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
1answer
212 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
1answer
288 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
1answer
45 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 ...
30
votes
3answers
8k 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 ...
0
votes
0answers
4 views

Android Library (CardsLib) - No resource identifier for attribute 'list_card_layout_resourceID' [migrated]

In my search for an easy way to display a Card UI in android I found "CardsLib". I have several days trying to test the demo they offer on github but I can not run it. This is the error I have: ...
6
votes
2answers
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 ...
8
votes
1answer
745 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 ...
0
votes
1answer
52 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 ...
5
votes
7answers
6k 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 ...
-1
votes
0answers
25 views

android socket readObject EOFException [migrated]

In Android I make a siglenton pattern and when a send object the readObject the shows me the messaage: W/System.err(6034): Exception reading Streams: java.io.EOFException but when I put String I ...
0
votes
1answer
52 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
2answers
156 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
0answers
30 views

How to publicize new Android's HTTP requests library [duplicate]

I don't know if this really belongs here, but I developed an open-source HTTP requests library for Android called Unite. This library was built mainly to significantly facilitate the work and coding ...
0
votes
0answers
54 views

Android From Local DB (DAO) to Server sync (JSON) - Design issue

I sync data between my local DB and a Server. I'm looking for the cleanest way to modelise all of this. I have a com.something.db package That contains a Data Helper and couple of DAO classes that ...
-1
votes
0answers
8 views

android socket can't connect with java server [migrated]

i have one java server socket and i connected with other java client but with android i can't i dont know why. my code: and i have in manifest the internet access //public class MainActivity extends ...
1
vote
0answers
94 views

ASP.NET MVC WebService - Security for Industrial Android Clients [closed]

I'm trying to design a system that will allow a bunch of Android devices to securely log into an ASP.NET MVC REST Web service. At present neither side are implemented. However there is an ASP.NET ...
0
votes
1answer
115 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
1answer
47 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 ...
0
votes
0answers
33 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 ...
15
votes
2answers
7k 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 ...
0
votes
1answer
69 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
1answer
50 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 ...
9
votes
3answers
5k views

What have my fellow Delphi programmers done to make Eclipse/Java more like Delphi?

I am a veteran Delphi programmer working on my first real Android app. I am using Eclipse and Java as my development environment. The thing I miss the most of course is Delphi's VCL components and ...
1
vote
1answer
144 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
0answers
16 views

versioning data schema in android internal storage

I am using Android's internal storage to hold data for my application and I am trying to find a good way to handle reading data of an older schema. For example, let's say I have serialized and written ...
0
votes
1answer
390 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, ...
0
votes
0answers
49 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 ...
-2
votes
1answer
82 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
58 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
57 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
185 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
75 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
98 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
87 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
91 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 ...