android

How do I register my Google Account in the android emulator running 2.2 api level 8?

I'm trying to register a Google Account with the Android emulator running 2.2 API level 8. Forums suggest that you can do this by going to Settings -> Accounts, however for me I only have the option to add a "corporate" account, i.e. an Exchange account, not a Google Account. I wish to add this Google Account to test c2dm from the emula...

Options for Mobile Device VPN (Virtual Private Network)

My employer uses a Juniper product for web based VPN - it apparently has all the connection settings preset. But It requires Java/JRE so it does NOT run on Mobile devices like RIM, Apple or Android. Are there any good alternatives for VPN applications. Perhaps something that would connect to the same independant back end? How safe it...

Want a phone to develop android apps on must it be unlocked?

I want to test my android app on a phone. I do not have an android phone so I was going to purchase one. Question, I can get a phone on eBay etc without a contract will this work to test my app? Or must it be an unlocked or rooted phone? Can I install and test my apps on a phone that has not been unlocked and does not nave a contract?...

Error: Unable to open class file R.java

Did a fresh install of Eclipse, JDK and android-sdk. I am currently receiving this error when creating a new project [2010-09-26 16:07:56 - Test] ERROR: Unable to open class file C:\workspace\Test\gen\com\example\test\R.java: No such file or directory What's the reason for this and how I fix it? Eclipse Helios 32 bit java version...

How do some app make their service running (relaunching it) even after killed ? Can android have any way to boot on power connect ?

I have 2 questions: How do some android app make their service restart even if killed from task manager? A good example is Lookout security app. What I guess is that it has registered for all common events that are announced like app installed - unistalled, interenet available ,etc. Is this a way to keep your service running ? Another ...

check network in android

how to check any kind of network status in android... please give me code for this.. thnx... ...

Set Audible selection option programmatically in Android

Hi, I am creating an application in Android for which I need to be able to enable or disable programmatically, the audible selection option that we see in the Sound and DIsplay settings. I am not able to find the API for this. Please help me with it. cheers, Dhruwat ...

Repositioning the alert dialog on Android

I'm unable to resize and reposition the alert dialog box. Please help me do this! ...

LinearLayout problem

I am facing problem to customize Linear Layout. My xml is as follows: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" >...

OnUpgrade not using drop table/create table/insert into

I really like this approach for handling sqlite database when developing for Android but I have a question when it comes to upgrading the database during an upgrade of the application. Is this method recommended or is it so much safer to do the standard procedure (as it seem to be) with drop table/create table/insert into, within a trans...

android widget and localservice bind

I writing player, it has main activity that runs localservice. I can't find how bind localservice to widget. When i trying to bind it like in activity it fails. Plz help me. Adding #1 How can I contact with background service when? http://www.developer.com/ws/data/article.php/10944_3843561_1/Handling-Lengthy-Operations-with-Android-App...

Where is the Visual Editor for Eclipse with the ADT plugin

I thought ADT should come with a visual editor for building GUI : http://stackoverflow.com/questions/851882/easy-way-to-build-android-ui However, I just cannot find it. I was wondering where is the Visual Editor for Eclipse with the ADT plugin. I can run HelloWorld application without problem. However, whenever I click on main.xml at t...

How to achieve better organisation

Hi, I am new to android and only have a little experience with HTML and Basic, after much time and frustration I finally managed to make my listview clickable, I made an intent based on position like this; if (position == 3) { Intent intent = new Intent(this, Bradford.class); startActivity(intent); } ...

Threaded web service call

I am requesting information from a web service in my android app. The web service returns a list of items, each item having a base64 image and some info First method: simply access the web service and get the result. This means freeze of UI until data is downloaded. Not a good solution Second method: put the data download in a thread, ...

How should this be achieved? Activity/ActivityGroup or ViewFlipper?

Hello! I have a ListView with let's say 5 items. When I click on one of these it automatically start a new activity based on the position of my ListView. Then, in the new activity, it shows like "1 of 5". I have two buttons (back and next) to show 2 of 5 etc, but how should I implement so it loads new content without starting a lot of ...

Android: Slide gesture and animation for switching between tabs.

I'm sure this has been answered somewhere, already, but I just can't find it: I have a TabHost with three tabs, each containing different views (not Activities). What I want is to make a swiping gesture from right to left and let the current view slide out to the left and the next view slide in from the right, thus changing the current t...

How to pick contacts only from google contacts (not facebook etc) with phone numbers?

Hello, I need to fix a bug in an old app of mine. Part of the bug is how I select contacts. Here is what I need: The contact must be from the 'normal' google contacts list, i.e. I don't want to get any contacts from facebook or similar. The contact must have at least one phone number. The contact must be from the old android.provider....

LVL error - cant reference LVL in my project

Hi, I am following the android licensing documentation (http://developer.android.com/guide/publishing/licensing.html) and when i get to the step that I add the reference of the licensing project (in eclipse) to my project, I get an error in the console (see below) and my project doesnt build. Any ideas on how i can around this? I tried ...

eclipse (windows) cannot recognize HTC Evo

Hey, I have been developing on the HTC Hero for a while now, and just got another testing phone: the Evo. However, when I plug it in, nothing that I can do will get the system to recognize the EVO as something worthy of testing on. I got the USB drivers. I went to the device manager to tell the system where the drivers are, and to ass...

checking if android list item (Drawable) is still visible.

Let's assume i got a list of ImageView and TextView with LinearLayout. Now i'm using simple ArrayAdapter extension that gets Strig[][] as items which is an array of double strings (each entry contains String[2] where the first string is a uri to the image and the second one is the text. i override getView to display the image and text , ...