Keep getting "The constructor SimpleCursorAdapter(MyProgram, int, Cursor, int) is undefined" and am not sure why. Here is my code.
Cursor c = mDbHelper.getAllTypes();
startManagingCursor(c);
SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.list_item1, c, R.id.text1);
setListAdapter(notes);
Any ideas?
...
Hello,
I'm writing an application for Android phones for Human vs. Human chess play over the internet. I was looking at some tutorials, to learn how to develop Android applications and found a very nice example of making galleries (it was a GridView usage example for making a gallery about dogs) and the idea came to draw the chess table...
I am using emulator Android 2.1 with Eclipse. For few days I had the emulator working ... was able to debug... I had 2 AVDs created and was using one of them. Earlier today I had to move my classes to a different package. Ever since I did that the configuration that I had has disappeared . So now I had to create configuration - I select ...
Hi,
i'm developing an android app, and what i have is a String array of restaurants in one class...
static final String[] AtoZ = new String[] {
"Ananda",
"Brambles Cafe", "Brannigans", "Buona Sera",
"Cafe Mao", "Cafe Mimo",
"Dante",
"Eddie Rockets",
"Frango's World Cuisine",
"Nando's",
"Overends Restaura...
Hi,
Basically what I need to do is to perform digest authentication. First thing I tried is the official example available here.
But when I try to execute it(with some small changes, Post instead of the the Get method) I get a
org.apache.http.auth.MalformedChallengeException: missing nonce in challange
at org.apache.http.impl.auth.Dig...
My application calls Runtime.exec() to launch an executable in a
separate process at start up time. I would like this child process to
get killed when the parent activity exits. Now I can use onDestroy()
to handle regular cases, but not "Force quit", shutdowns from DDMS, or
kill from the console since those don't run onDestroy().
The add...
First of all let me say that this questions is slightly connected to another question by me. Actually it was created because of that.
I have the following code to write a bitmap downloaded from the net to a file in the sd card:
// Get image from url
URL u = new URL(url);
HttpGet httpRequest = new HttpGet(u.toURI());
HttpClient httpclie...
I successfully created the Database and inserted a row however I cannot Query it for some reason. My Droid crashes everytime.
// Create a new row of values to insert.
ContentValues newValues = new ContentValues();
// Assign values for each row.
newValues.put("value", "kunjan");
// Insert...
I was wondering how I could query my database of 1400 items and get only the DISTINCT types and row ids. Below is the actual sql that I want to run by my program crashes if I dont return ids.
return mDb.rawQuery("SELECT DISTINCT Type from the_foods",null);
Any ideas?
...
Successfully loaded a KML file into the DDMS Emulator Tab, which shows up as a series of Latitude and Longitude coordinates in the Location Controls window. Is there a way to step through each Placemark, vs. having the entire series play automatically? There are forward and back buttons on the Location Controls window, but no documentati...
In windows text files are displayed with notepad icon. When we double click the particular file it open’s the notepad and displays the file.
Like that I need to open the file from the download folder in android. I have used the intent-filter for register my ics file’s mime type. When I select the file in the download folder it just open...
Hi, I have a ListView in a custom ArrayAdapter that displays an icon ImageView and a TextView in each row. When I make the list long enough to let you scroll through it, the order starts out right, but when I start to scroll down, some of the earlier entries start re-appearing. If I scroll back up, the old order changes. Doing this re...
hi
i have activity1 and activity2 and i want to go activity2 from activity1 using rotation animation if do you have any code so please send me......
...
I have created a php webpage. I now want to create a launcher application in android phone, it simply opens the browser with the url "http://<mywebsite>/m".
I use uri intent to launch the browser in onCreate function.
public void onCreate(...)
{
....
startActivity(new Intent(Intent.ACTION_VIEW, new Uri(http://<mywebsi...
Description
I have used the code tip from http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ to copy a pre-filled data file to the target and handled this in a asynch task
Problem : On starting the application it gives error and shuts down first time, starting again without any change it works perf...
How can I easily get date and time as integer values in Android?
...
I'm developing an app that starts with a main menu, and then continues through three different steps (activities) to a final activity where the task is marked complete. On this last activity, i have several additional options (add note, share, etc..) and i also have a return to main menu button.
My question is.. how do i stack the activ...
Hi guys,
I am facing to android application signing problem. My application contains Google MapView.
When I compile the app and run on the emulator, MapView works fine. But signed the app, MapView doesn't work. I've get Google Map API. This works on the simulator.
I could sign the app once 2 months ago. Then I've upgraded the app. Now...
I am developing an Android app, it will connect to the internet to load some data back.
I tested it with WIFI and it works well. But when I switched to use EDGE/GPRS, it always timed out, I have set a big timeout parameter for httpclient, but it did not help.
It may caused by the server side that it did not return back a Content-Length...
Hi
i made a small test app with 2 screens. the first screen contains an EditText and a Button. The second screen is just a simple ListActivity showing 3 static items.
The ListActivity is started when the user clicks the Button on the first screen or when the enter key was hit in the TextEdit. The weird thing is if the ListActivity was s...