android

Top Android Apps

Anyone know where I can get a CSV file of top Android Apps by category which has information like app name, developer, app category etc. Putting together a report for class and I've been combing the web...no luck. :( ...

Custom titlebar positioning

Hi, I've created a custom titlebar for my Android application. All is well except I've placed a checkbox on the titlebar and I want my checkbox to be positioned farther left (so I can line it up with the checkboxes in each list item). I can not figure out how to move it farther left. It's almost like that's as far as it will let me p...

Overlay onTap not working after Android Back button?

I have several Overlays drawn on a MapView with ItemizedOverlay, and an onTap that works when I first start my app. However, if I press the Back button on the Android then start my app again the onTap does not work at all. Other touch sensative operations work fine, like long press on the map and several face buttons. It is also fine ...

Android - how to inflate a complex layout and add to another layout?

I have an android question: I've successfully created a countdown kitchen timer activity, however my goal is to have an activity that has 3 timers on it that all work independently. I created a separate layout just for the timer itself and moved the timer code into a class and I've used layoutinflater to create the views and then added t...

Android's AsyncTask issue

Hi, could anyone advise on the following: I'm trying to execute code from Android's help page, but it doesn't work for me: public class DownloadFilesTask extends AsyncTask<String, Integer, Long> { protected Long doInBackground(String... urls) { Log.e("TuneWiki", "Exec"); return 1l; } @Ove...

What's the best approach to build the same Android apps for different public?

I'm working on an app that is meant to be used by fans of a sport team. In the future, I expect to use the same app but for any different team. So, what changes would be the colors, team logo, app name and the like. So, is there any technique that allows me to build binaries for different teams without having duplicated resources? ...

Prevent soft keyboard from being dismissed

There are many questions related to how to programatically show/hide the soft keyboard. However, as we all know the android back button will cause the keyboard to be dismissed. Is there a way to prevent the user from dismissing the keyboard with a back button press? I tried to capture the back button, but when the keyboard is displayed...

Android application uninstall batch/shell script?

I have developed a small application that consists of 5 different apk files. I'm developing on a lot of PCs and have a lot of developing phones. Every time I change the PC, the signature of the generated APK file is changed and I have to uninstall the applications on the phone. This is very time consuming. So is there a possibility to wr...

Getting the android username stored in the phone

I am writing an application that requires to retrieve the android username [email protected] from the phone. I have been looking at AccountManager class. This is what I have for now in my code. AccountManager accountManager = AccountManager.get(this); Account[] accounts = accountManager.getAccountsByType("com.google"); ...

Java server to handle Client requests and respond to it ?

Im looking for the concept of creating Java Server to handle Client requests and respond to it , i want to use Google App engine which does not allow Socket connections , so is the client & server in this case will communicate using Http requests? i'll be glad if someone could clarify the logic to me and provide a few lines of code. Tha...

Android SDK plug-in appears to impact Eclipse heavily

Am I the only Eclipse developer whose workbench quickly sputters, wheezes, crashes or hangs and makes me use Windows 7 Task Manager to hard-bounce it? I've got dedicated, Android-only (as it were) installations of Eclipse Helios (3.6) and Galileo (3.5) with the very latest Android SDK (0.9.7.v201005071157-36220) using android-sdk_r06-wi...

Anroid - Tab Navigation <while Spanning a new activity>

Hi, I have defined a HomeActivity with three tabs and each tab is a seperate activity.I used the example in the android developer site. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Tab B's (second tab) UI conatins a text and button (named Search).When the user clicks the search button,it should contact a ...

Can I reuse Facebook OAuth token to open a Facebook page in a browser?

I'm thinking this may not be possible... but I have an Android application that is using the Facebook Graph API to get some information. They can tap the view there and open up a browser with a full-fledged Facebook page, but it asks the user to log in again. I'd like to be able to skip the initial sign in (I know the browser can remem...

Looking up a contact by a phone number

Hello, I am getting contact details for a given phone number using the following code: Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNum)); Cursor cursor = context.getContentResolver().query(uri,null,null,null,null); There is a case though when the cursor contains 3 records with the same phone number ...

Android database recreates everytime application is launched

Why is SQLiteOpenHelper calling onCreate() every time my application starts up. Here's my code for onCreate() @Override public void onCreate(SQLiteDatabase db) { Log.i("onCreate()", "Enter"); //create cards table db.execSQL( "create table circles" + "("+ "id integer primary key,"+ "x inte...

Attempting to remove an object off screen moves all the objects in play?! - Android. Please Help!!

Hi there I am building an android game where objects randomly come in from either side of the screen towards a sprite in the middle of the screen. When one passes the tripwire on the central sprite it is dealt with by my collision detection which sets the enemy objects co-ordinates to somewhere off the screen, thats desired but as this ...

startActivityForResult not working properly with launchMode singleInstance

Hi, I'd like Activities on my application's Activity stack to only have one instance. I have several screens which are ListActivities and I'd like to not go through the pain and suffering of updating the lists in a previous instance of the ListActivity when another instance of that ListActivity is changed (added to, edited, removed fro...

Android: Unable to display png image in an ImageView

Greetings: I am writing an Android app that includes an ImageView. The image to be included in the view resides on the local app directory of the emulator. The image is not being displayed in the view. The relavent XML and method used to display the image are given below. The image file is a "png" format file and is able to be opene...

android get contact's name and phonenumber for android 1.5

So far I have this code from examples I have seen on here: public class testLayout extends Activity { final int PICK_CONTACT = 0; ImageView image = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);...

Android - Layout question - Textviews top center and bottom center

I have a layout question. Say I have a RelativeLayout appearing at the bottom of my screen. In this, I want to add 2 textviews, in the center, one in the top center and one in the bottom center. |--------------------------| | Text1 | | Text2 | |--------------------------| Something like that :-...