[android-beginners] Application crashes when I try to retrieve colums from a dbRow

2009-06-14 Thread Kevin J. Brooks
The LaunchFav crashes at the first i.putExtra. The error is "The application Track My Drinks (process.parisj13.trackmydrinks) has stopped unexpectedly. What am I doing wrong? private Intent LaunchFav() { Cursor c = mFavDrink.fetchAllDrinks(); Inte

[android-beginners] How can I do this?

2009-06-08 Thread Kevin J. Brooks
This is what I need. I need to allow the user to continue to work at the same time I need to run one of my methods every 60 seconds. I looked at TimerTask, but I am not sure it this will do the job. I tried to implement TimerTask but the compiler didn't like it. --~--~-~--~~--

[android-beginners] Timer

2009-06-08 Thread Kevin J. Brooks
Hey Everyone, I need a method that will notify me every 60 seconds until I cancel it. Anyone have a suggestion? Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group

[android-beginners] Text in a image button and updating that text at run time.

2009-05-14 Thread Kevin J. Brooks
I have a question. Is it possible to have an image button, with text also in the button, and have part of that text change. Here is the situation. I want the button to be pretty wide. To the far left of the button, I want an image. Next to the image I want a label such as "Button 1" Then to

[android-beginners] Settings not saving

2009-05-13 Thread Kevin J. Brooks
Neither of my ListPreference values persist from one run to the next. Sometimes even in the same run, if I bring up preferences the ListPreference values will be back to the default values. Here is the Settings xml http://schemas.android.com/apk/res/android";>

[android-beginners] Re: Dreaded "Stopped Unexpectedly"

2009-05-12 Thread Kevin J. Brooks
Here it is: 05-12 19:29:59.462: INFO/Process(213): Sending signal. PID: 213 SIG: 9 05-12 19:29:59.831: INFO/ActivityManager(53): Process com.parisj13.trackmydrinks (pid 213) has died. 05-12 19:30:00.063: INFO/WindowManager(53): WIN DEATH: Window{434f49e0 com.parisj13.trackmydrinks/com.parisj13.tr

[android-beginners] Dreaded "Stopped Unexpectedly"

2009-05-11 Thread Kevin J. Brooks
I am trying to bring up a Preferences screen. Here is the XML for the screen. http://schemas.android.com/apk/res/android";> Here is the matching Java: package com.parisj13.trackmydrinks; import android.content.Context; import android.os.Bundle; i

[android-beginners] Selecting list item

2009-05-10 Thread Kevin J. Brooks
When my Activity starts I want to set which item is already selected. I can't seem to make it happen. I have tried setSelection() and setItemChecked(). When the screen comes up the item I want is not highlighted. Any ideas? --~--~-~--~~~---~--~~ You received t

[android-beginners] putExtra

2009-05-09 Thread Kevin J. Brooks
I am trying to pass a simple string in to a new activity. I feel a little dense. I have looked at the samples, and I just can't seem to get it through my thick head. What do I need in the first parameter. public static final String DRINK_TYPE = "type"; . . . Intent i = new Inte

[android-beginners] Re: Listview again

2009-05-09 Thread Kevin J. Brooks
Thanks Mark, I finally figured it out. On Sat, 2009-05-09 at 19:55 -0400, Mark Murphy wrote: > > I am at a loss. I have tried multiple ways to get this done. I have > > tried setListAdapter also with the same results. The ListView is always > > blank. > > > > What am I doing wrong? > > When y

[android-beginners] Listview again

2009-05-09 Thread Kevin J. Brooks
Hey People, I am at a loss. I have tried multiple ways to get this done. I have tried setListAdapter also with the same results. The ListView is always blank. What am I doing wrong? ListView lvDrinks = (ListView)this.findViewById(android.R.id.list);

[android-beginners] Re: Why is this not working?

2009-05-09 Thread Kevin J. Brooks
BTW the list is blank. The code is the onCreate method. On Sat, 2009-05-09 at 12:07 -0400, Kevin J. Brooks wrote: > I thought this would work, but obviously I am doing something wrong. > > setListAdapter(new ArrayAdapter(this, > android.R.layout.simple

[android-beginners] Why is this not working?

2009-05-09 Thread Kevin J. Brooks
I thought this would work, but obviously I am doing something wrong. setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1,R.array.beers)); --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-beginners] ListView Entries

2009-05-08 Thread Kevin J. Brooks
Is there a way to set the Entries of a ListView through the program code? Something like ListView.setEntries(R.layout.stringarray); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post

[android-beginners] Re: What is causing this error?

2009-05-05 Thread Kevin J. Brooks
That is solved, but when I use the emulator and click on an item in the list, I the item does not stay clicked. What do I need to do? On Tue, 2009-05-05 at 06:10 -0400, Mark Murphy wrote: > Kevin J. Brooks wrote: > > When I try to bring this one screen up I get the Application ha

[android-beginners] What is causing this error?

2009-05-04 Thread Kevin J. Brooks
When I try to bring this one screen up I get the Application has stopped unexpectedly. 05-04 20:53:22.584: INFO/ActivityManager(50): Starting activity: Intent { comp={com.parisj13.trackmydrinks/com.parisj13.trackmydrinks.BeerScreen} } 05-04 20:53:26.681: DEBUG/AndroidRuntime(237): Shutting down V

[android-beginners] How do I return a value from an Activity

2009-05-03 Thread Kevin J. Brooks
I am starting an activity from the main. The user will select and option from a list in the second activity and I need to return the value of the users selection. What is the best way to do that? --~--~-~--~~~---~--~~ You received this message because you are su

[android-beginners] Re: This is not centering in a Relative Layout

2009-05-02 Thread Kevin J. Brooks
That worked except on problem. There is a large gap between the inner Relative Layout and the Textview above it. Is there a way I can close up the gap? On Sat, 2009-05-02 at 13:17 -0400, Mark Murphy wrote: > Kevin J. Brooks wrote: > > However now I have anothe

[android-beginners] Re: This is not centering in a Relative Layout

2009-05-02 Thread Kevin J. Brooks
Kevin On Sat, 2009-05-02 at 12:18 -0400, Mark Murphy wrote: > Kevin J. Brooks wrote: > > This is the first Widget in a relative layout. Even though I hav the > > gravity set to center horizontal, it is aligned to the left. > > > > >

[android-beginners] This is not centering in a Relative Layout

2009-05-02 Thread Kevin J. Brooks
This is the first Widget in a relative layout. Even though I hav the gravity set to center horizontal, it is aligned to the left. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post

[android-beginners] Good size for picture background

2009-05-02 Thread Kevin J. Brooks
I have an application that has a picture for the background. The picture is pretty large. I want to shrink it down so it won't use so much memory. I also am having a problem if the orientation changes, the program crashes. However I am sure I know how to fix that part. So all I really want to

[android-beginners] Re: Why does Android Market give me this error?

2009-04-26 Thread Kevin J. Brooks
I figured this out guys. Thanks. :) On Sat, 2009-04-25 at 20:35 -0400, Kevin J. Brooks wrote: > I receive the following error when I try to upload my application to the > Android Market, "Market requires the minSdkVersion to be set in > AndroidManifest.xml". > > The name

[android-beginners] Why does Android Market give me this error?

2009-04-25 Thread Kevin J. Brooks
I receive the following error when I try to upload my application to the Android Market, "Market requires the minSdkVersion to be set in AndroidManifest.xml". The name of my apk is AskTheSheik, but in the app I have com.sheik.magic8. I don't know if that is the problem or not. Here is my Manife

[android-beginners] Only first control displays

2009-04-16 Thread Kevin J. Brooks
I am trying to put three controls in my layout but only the Edit control displays. I don't really need to access any of them except to respond to the button. I thought I didn't need the ID but I put it in just to see if it would cause them to display. Can anyone spot what I am doing wrong? ht

[android-beginners] Re: Why does this give an error.

2009-04-16 Thread Kevin J. Brooks
I found the problem. I had it inside one of the methods of the class. Thanks for the help. On Wed, 2009-04-15 at 16:57 -0700, fadden wrote: > On Apr 15, 4:37 pm, "Kevin J. Brooks" > wrote: > > I took out the key word static and fixed the problem. > > You now have

[android-beginners] Re: Why does this give an error.

2009-04-15 Thread Kevin J. Brooks
I took out the key word static and fixed the problem. On Wed, 2009-04-15 at 18:57 -0400, Kevin J. Brooks wrote: > Yes it is Eclipse giving the error and your assumption is correct. > > On Wed, 2009-04-15 at 10:15 -0700, deepdr...@googlemail.com wrote: > > Does Eclipse show you

[android-beginners] Re: Why does this give an error.

2009-04-15 Thread Kevin J. Brooks
= new String[]{"test1", "test2"}; > > (assuming you do not mean the "" literally) > > -- > > http://www.deepdroid.com > > > On Apr 15, 2:15 am, "Kevin J. Brooks" > wrote: > > This gives the following error &qu

[android-beginners] Why does this give an error.

2009-04-14 Thread Kevin J. Brooks
This gives the following error "illegal modifier for strSheikResp" static final String[] strSheikResp = new String[]{}; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this

[android-beginners] Re: Problem creating new app

2009-03-16 Thread Kevin J. Brooks
Thanks Ralf. I upgraded to 3.4 and now it works fine. On Sun, 2009-03-15 at 23:00 -0700, Ralf wrote: > I don't think ADT supports Eclipse 3.2 anymore. Could you please try > with Eclipse 3.3 or 3.4? > > R/ > > On Sun, Mar 15, 2009 at 4:41 PM, Kevin J. Brooks > wrot

[android-beginners] Re: The process...stopped unexpectedly. Please try again

2009-03-01 Thread Kevin J. Brooks
ject I am working on. I then moved it to my current project. That didn't create the reference R.java, so I deleted it, then created it again from scratch. I don't know if that will help. Kevin On Sun, 2009-03-01 at 19:06 -0500, Faber Fedor wrote: > > > On Sun, Mar 1, 20

[android-beginners] Re: The process...stopped unexpectedly. Please try again

2009-03-01 Thread Kevin J. Brooks
In my original post I included the declaration. That is what has me confused. On Sun, 2009-03-01 at 18:35 -0500, Faber Fedor wrote: > On Sun, Mar 1, 2009 at 6:22 PM, Kevin J. Brooks > wrote: > > Here is the output from logcat: > > 03-01

[android-beginners] Re: The process...stopped unexpectedly. Please try again

2009-03-01 Thread Kevin J. Brooks
d wait for 30ms On Sun, 2009-03-01 at 15:44 -0500, Faber Fedor wrote: > On Sun, Mar 1, 2009 at 1:24 PM, Kevin J. Brooks > wrote: > > Hello all, > > When I click on Menu, then settings I receive an error that > says, "The

[android-beginners] Re: The process...stopped unexpectedly. Please try again

2009-03-01 Thread Kevin J. Brooks
The line right after the one you commented on. The line the is a call to startActivity(i). Where would I find the logcat. On Sun, 2009-03-01 at 15:44 -0500, Faber Fedor wrote: > On Sun, Mar 1, 2009 at 1:24 PM, Kevin J. Brooks > wrote: > >

[android-beginners] The process...stopped unexpectedly. Please try again

2009-03-01 Thread Kevin J. Brooks
Hello all, When I click on Menu, then settings I receive an error that says, "The application Snake (process com.brooks.snake) has stopped unexpectedly. Please try again. I have run it in debug and it seems happen at the startActivity function. Here is the code most of my code. Where did I go

[android-beginners] Re: Signing APK

2009-02-08 Thread Kevin J. Brooks
Never mind guys, I got this figured out. Thanks. On Sun, 2009-02-08 at 10:01 -0500, Kevin J. Brooks wrote: > When I try to sign my APK file using Keytool I get an error that says > failed to sign JAR file. Here is the Session Log > > java.util.zip.ZipException: invalid entry com

[android-beginners] Signing APK

2009-02-08 Thread Kevin J. Brooks
When I try to sign my APK file using Keytool I get an error that says failed to sign JAR file. Here is the Session Log java.util.zip.ZipException: invalid entry compressed size (expected 1192 but got 1197 bytes) at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:206)

[android-beginners] Asking again

2009-02-03 Thread Kevin J. Brooks
Hey Everyone, Now that I have a project that works in the emulator, and I have built the project, what do I package for distribution to the users? Thanks again, Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Distributing

2009-02-01 Thread Kevin J. Brooks
Ok, I have my project working finally. Thanks everyone for you help. I have built the project, so what do I distribute? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this gro

[android-beginners] Re: R.java file is not getting updated

2009-01-31 Thread Kevin J. Brooks
This fixed my problem. Try building your project. On Fri, 2009-01-30 at 07:57 -0500, Mark Murphy wrote: > Ashwani Rao wrote: > > HI, > > > > I have created xml file for UI. > > I later added identifiers (@+/id) to few elements but the R.java file > > is not getting updated. > > There are ma

[android-beginners] Re: R.java file is not getting updated

2009-01-31 Thread Kevin J. Brooks
This is the very problem I am having. Are you using Eclipse? On Fri, 2009-01-30 at 07:57 -0500, Mark Murphy wrote: > Ashwani Rao wrote: > > HI, > > > > I have created xml file for UI. > > I later added identifiers (@+/id) to few elements but the R.java file > > is not getting updated. > > Th

[android-beginners] Re: Why doesn't this add an ID in r.java

2009-01-31 Thread Kevin J. Brooks
g mistake...make it xmlns:android > > On 1/30/09, Kevin J. Brooks wrote: > > I have the following code in a separate xml file from > main. When I save > the file it it does not add webkit into R.java. > > >

[android-beginners] Why doesn't this add an ID in r.java

2009-01-29 Thread Kevin J. Brooks
I have the following code in a separate xml file from main. When I save the file it it does not add webkit into R.java. http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent"/> On Tue, 2009-01-13 at 18:04 +0530, PRATAP SOLAPUR w

[android-beginners] Re: Code Example

2009-01-26 Thread Kevin J. Brooks
If I don't want to launch the browser, do I need to create a view in the Manifest? Thanks for you help, Kevin On Tue, 2009-01-13 at 13:08 -0800, James Yum wrote: > Hi, > > You can use a WebView within your app ass Pratap suggested. > > If you want to launch the browser application, it's fairly

[android-beginners] Re: Code Example

2009-01-25 Thread Kevin J. Brooks
Ok, I think I am making this harder than it has to be. What else do I need in my application to make this work? On Tue, 2009-01-13 at 18:04 +0530, PRATAP SOLAPUR wrote: > > import > > android.app.Activity; > > import > > android.os.Bundle; > > import > > android.webkit.WebView; > > publi

[android-beginners] Re: Web App

2009-01-08 Thread Kevin J. Brooks
Jonathan, Thanks for the help, but I am still stuck. I am very new at developing with android. How to I launch the web browser? Kevin On Tue, 2008-12-30 at 13:01 +1100, Jonathan Parker wrote: > Maybe just call the browser with the URL of the site. Have a look > at http://code.google.com/androi