android

Unable to launch Android application in Eclipse; An internal error occurred during: "Launching myApp"

I'm unable to start up my Android application in Eclipse, I'm getting the following error when I select "Run as Android Application" I have my Android Virtual Device running, can't see any issues with that (I'm able to navigate around the OS on the emulator etc) When I try to "Run as Application" I get the following popup from eclipse ...

LazyLoad: 'Source Not Found' when I try to DisplayImage

Hi - I'm trying to use Fedor's LazyAdapter, but keep getting a "Source Not Found" error when I return the view for a row in my array adapter. Here's the main activity code, along with the array adapter: package com.briancsinger.testlist; import java.net.URL; import java.util.ArrayList; import javax.xml.parsers.SAXParser; import javax...

Android Threading Issue

I have the following code that I want to be able to loop every 30 seconds. MyLocation myLocation = new MyLocation(); public LocationResult locationResult = new LocationResult() { @Override public void gotLocation(final Location location) { GeoPoint myGeoPoint = new GeoPoint( (int) (loc...

Android - What is the best way to maintain multiple images?

During my game loop I am constantly loading images using BitmapFactory.decodeResource(getResources(), R.drawable.objectx); Most of the time I'm calling images that have already been decoded earlier. Am I slowing down execution by decoding the resource every time? Is it better to store every image into a Map (or Dictionary) at the begi...

Unknown URL content:Unknown URL content:\com.mohit.provider.FormulaProvider\formulas

I get this error everytime I try to use my content provider to insert a URI. Here is the method: private void sample() { ContentValues values; values = new ContentValues(); values.put(Formulas.TITLE, "Formula1"); values.put(Formulas.FORMULA, "someformula"); getContentResolver().insert(getIntent().getData(), values);...

Trouble with getting a button along with gridview

I have a gridview that is inflated by multiple buttons. I used just a gridview and it worked fine. The grid was in correct order and was centered. Although, I wanted to add a button below the grid of buttons that was different and centered. To do this I decided to section off the gridview and then add the button (therefore it wouldn't be...

"usb connected" notification while cable is not attached on android

Since 2 months I have the new samsung galaxy S (I9000) android phone. This is the best phone I have ever had but since this week it manifests a verry weird problem. After a few hours of running time it displays the "usb connected" message. After wich the device shuts down and will only restart with the cable connected. Altough that is p...

EditText not capturing ViewFlipper flings?

This is maddening. I have the following XML layout: <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shadow" android:focusable="true" android:focusableInTouchMode="true"> <ViewFlipper android:id="@+id/flipper" android:layout_width="fill_parent" android:layout_height="...

Android - Another button question

Its a dumb question. Prepare yourself. My main.xml is this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/white"> <ImageButton android:src="@drawable/button"...

Converting to dalvik format failed when I try to add external Jars

Hi, I am using Zend Studio 7.2 as my main IDE. I develop android apps. I wanted to work with html parsers, however adding external jars I get always the same problem Converting to dalvik format failed and eclipse needs a lot of time to build workspace. any ideas? ...

How do I handle the back button when startActivityForResult is active?

I have a simple form where a user can add, edit, and delete people from a list. When a user has chosen to edit a person it executes startActivityForResult so it can make the appropriate changes and refresh the list once the edit is complete. If the user clicks the back button from the edit screen a force close error appears. I believe...

Use JAR (library) In Android Application

Hi, I've created an Android application from Windows command line (not using Eclipse), how do I add a JAR file and make it part of my application? I've copied the JAR I created to the lib folder. ...

Android Orientation problem

I am using Eclipse and developed an app that has 3 tabs using Android 1.5. The program works just fine. 1st problem--whenever the app is run, it change orientations, but does not show the scroll bars, thus allowing to scroll down(or up). Is this suppose to be happening? And how is it corrected? 2nd problem--if you are on say tab2, th...

Dynamically update autocomplete box in Android?

I will like to know if we can continuously call some service for fetching results and displaying in Autocomplete list. I have one screen with the text box and when user starts entering in that textbox the autocomplete should get filled with the data. The data will not be hardcoded and will be fetched through http connection. I think I n...

remove extra real-estate from top of custom dialog

I created a custom dialog that I'm dynamically putting views into via a RelativeLayout. Every time the dialog is displayed, it shows all my child views just great, but it has some space at the top that I can not account for. I'm assuming this is reserved for a "title" of the dialog (which I won't have). Is there a way to remove that s...

How can I compile Dalvik to run it locally on Linux?

What are the minimal steps necessary (including retrieving the source code) to compile and run just the Dalvik virtual machine on Linux? Thanks. ...

import fonts into eclipse to support unicode

how can i import musica fonts into eclipse to support musical unicode? Any workaround? ...

What's the difference between ViewFlipper and ViewSwitcher

They both inherits ViewAnimator. I know that ViewSwitcher allows only two views, while ViewFlipper allows more. But why did Android create ViewSwitcher if it is just a ViewFlipper with 2 views? Is there any other differences? What condition will make using one superior than the other? ...

IPhone/Android SMS intercept and redirection to an application.

Is it possible to intercept an SMS coming from a certain number and direct it to a certain application on the iPhone/Android where it will be processed? Thanks. ...

How to prevent Custom Views from losing state across screen orientation changes

I've successfully implemented onRetainNonConfigurationInstance() for my main activity to save and restore certain critical components across screen orientation changes. But it seems, my custom views are being re-created from scratch when the orientation changes. This makes sense, although in my case it's inconvenient because the custom...