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
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.
--~--~-~--~~--
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
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
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";>
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
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
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
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
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
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);
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
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
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
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
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
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
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
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.
> >
> > >
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
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
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
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
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
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
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
= 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
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
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
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
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
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
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:
>
>
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
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
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)
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
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
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
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
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.
>
>
>
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
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
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
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
45 matches
Mail list logo