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
...
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...
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...
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...
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);...
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...
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...
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="...
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"...
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?
...
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...
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.
...
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...
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...
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...
What are the minimal steps necessary (including retrieving the source code) to compile and run just the Dalvik virtual machine on Linux?
Thanks.
...
how can i import musica fonts into eclipse to support musical unicode? Any workaround?
...
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?
...
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.
...
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...