[android-developers] ProgressBar/thumb height

2010-05-06 Thread cvance383
Ok so I am getting a huge headache trying to do a pretty simple thing,
I want to create a seekbar with a custom look.

-I want create a custom progress drawable with 3 layers (background,
secondary progress, progress) from nine patch images I have already.
-I want to use a thumb w/ a custom image (that will be taller than the
progress height)

When I set the seekbar layout_height, the thumb fits perfectly but the
progress bar itself is too tall (It matches the thumb height). If I
set the seekbar height smaller, it chops the thumb. I have tried
setting the height in the progress drawable xml, but it doesnt seem to
respect that.


http://schemas.android.com/apk/res/android";
  android:height="15dip">



 



 



But it still draws the progress the same size of the thumb. I have
searched this forum and google relentlessly but no solution. Any help
will be majorly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming issue with mediaplayer on android 2.0

2009-12-21 Thread cvance383
***UPDATE***

http://stream29l.grooveshark.com/collin.php

this mp3 will stream fine if you go to the url on android 1.5, but not
on 2.0. If you download the mp3, and put it on the phone it works on
2.0, just not when you stream it.


On Dec 20, 5:11 pm, cvance383  wrote:
> I've tried that too. No one has any clue as why this might happen?
>
> On Dec 19, 4:52 pm, Mark Murphy  wrote:
>
>
>
> > cvance383 wrote:
> > > any ideas?
>
> > If the problem occurs only on the DROID, not on the 2.0.1 emulator, you
> > might consider posting your question on a MOTODEV board:
>
> >http://developer.motorola.com
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to Android Development_ Version 2.8
> > Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming issue with mediaplayer on android 2.0

2009-12-20 Thread cvance383
I've tried that too. No one has any clue as why this might happen?

On Dec 19, 4:52 pm, Mark Murphy  wrote:
> cvance383 wrote:
> > any ideas?
>
> If the problem occurs only on the DROID, not on the 2.0.1 emulator, you
> might consider posting your question on a MOTODEV board:
>
> http://developer.motorola.com
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 2.8
> Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: streaming issue with mediaplayer on android 2.0

2009-12-19 Thread cvance383
any ideas?

On Dec 18, 7:16 pm, cvance383  wrote:
> I have an app that streams mp3's from a server, works fine on 1.5 and
> lower. But on the droid, for certain songs the mediaplayer buffers to
> like over 50% but onPrepared() is never called. These same songs work
> fine on 1.5 or on a 2.0 emulator but for some reason they just hang on
> the actual droid phone. No mediaplayer errors are thrown but if i call
> stop or reset it while it is hanging like this, it throws this,
>
> 12-18 19:14:05.230: ERROR/MediaPlayer(15718): stop called in state 4
> 12-18 19:14:05.230: ERROR/MediaPlayer(15718): error (-38, 0)
> 12-18 19:14:05.238: ERROR/PlayerDriver(987): Command (6) was cancelled
>
> it is only for certain files (yes they are all mp3s) and only on the
> droid. Anyone have any ideas why these songs would hang? I already
> checked the http headers and they are correct. Thanks for any help, it
> will be greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] streaming issue with mediaplayer on android 2.0

2009-12-18 Thread cvance383
I have an app that streams mp3's from a server, works fine on 1.5 and
lower. But on the droid, for certain songs the mediaplayer buffers to
like over 50% but onPrepared() is never called. These same songs work
fine on 1.5 or on a 2.0 emulator but for some reason they just hang on
the actual droid phone. No mediaplayer errors are thrown but if i call
stop or reset it while it is hanging like this, it throws this,

12-18 19:14:05.230: ERROR/MediaPlayer(15718): stop called in state 4
12-18 19:14:05.230: ERROR/MediaPlayer(15718): error (-38, 0)
12-18 19:14:05.238: ERROR/PlayerDriver(987): Command (6) was cancelled


it is only for certain files (yes they are all mp3s) and only on the
droid. Anyone have any ideas why these songs would hang? I already
checked the http headers and they are correct. Thanks for any help, it
will be greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Issue creating shared preferences file in 2.0

2009-11-19 Thread cvance383
bump...

On Nov 17, 4:48 pm, cvance383  wrote:
> Trying to create shared preferences for my class representing my api
> and one for my main class. I create a shared preference file by making
> this call in my api & main classes
>
> String PREF_NAME = "API";
>
> this.pref = context.getSharedPreferences( PREF_NAME,
> Context.MODE_PRIVATE );
>
> the log gives me this
>
> 11-17 16:18:19.786: ERROR/ApplicationContext(13584): Couldn't create
> directory for SharedPreferences file /data/data/com.*.android/
> shared_prefs/API.xml
>
> which I believe is because of the call I make above. I do not get this
> error however when I run the app on my 1.5 phone, only when i run it
> on my 2.0 droid.
>
> I believe this is leading to the major problem I am having, I get a
> null pointer on the 2.0 phone when it makes this call of my code...
>
> OutputStream out = this.context.openFileOutput( fileName,
> Context.MODE_PRIVATE );
>
> with this in the log
>
> 11-17 16:47:25.350: ERROR/AndroidRuntime(13584):
> java.lang.NullPointerException
> 11-17 16:47:25.350: ERROR/AndroidRuntime(13584):     at
> android.app.ApplicationContext.openFileOutput(ApplicationContext.java:
> 395)
> 11-17 16:47:25.350: ERROR/AndroidRuntime(13584):     at
> android.content.ContextWrapper.openFileOutput(ContextWrapper.java:158)
>
> I'm pretty sure these are related because I get them both on the 2.0
> phone, and neither when I run on 1.5 . Any help will be awesome and
> greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Issue creating shared preferences file in 2.0

2009-11-17 Thread cvance383
Trying to create shared preferences for my class representing my api
and one for my main class. I create a shared preference file by making
this call in my api & main classes

String PREF_NAME = "API";

this.pref = context.getSharedPreferences( PREF_NAME,
Context.MODE_PRIVATE );

the log gives me this

11-17 16:18:19.786: ERROR/ApplicationContext(13584): Couldn't create
directory for SharedPreferences file /data/data/com.*.android/
shared_prefs/API.xml

which I believe is because of the call I make above. I do not get this
error however when I run the app on my 1.5 phone, only when i run it
on my 2.0 droid.

I believe this is leading to the major problem I am having, I get a
null pointer on the 2.0 phone when it makes this call of my code...

OutputStream out = this.context.openFileOutput( fileName,
Context.MODE_PRIVATE );

with this in the log

11-17 16:47:25.350: ERROR/AndroidRuntime(13584):
java.lang.NullPointerException
11-17 16:47:25.350: ERROR/AndroidRuntime(13584): at
android.app.ApplicationContext.openFileOutput(ApplicationContext.java:
395)
11-17 16:47:25.350: ERROR/AndroidRuntime(13584): at
android.content.ContextWrapper.openFileOutput(ContextWrapper.java:158)


I'm pretty sure these are related because I get them both on the 2.0
phone, and neither when I run on 1.5 . Any help will be awesome and
greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: trouble running app on 2.0 emulator

2009-11-05 Thread cvance383
i downloaded and installed the ndk but how do i recompile the fast md5
library? do i also need a line within my project like...

static
{
System.loadLibrary(x);
}

?? thanks for all your help so far.

On Nov 5, 3:57 pm, Xavier Ducrohet  wrote:
> ah I understand now.
>
> Here's what happens:
>
> fast-md5.jar is not 100% java and has a native component to it. That
> native component is in multiple form for different os
> (linux/mac/windows) and architectures (x86/ppc).
>
> Just this is going to not make it work. You would have to make sure to
> recompile the native library with our NDK, and make sure it's packaged
> properly with the apk (NDK does this for you) and make sure the java
> code of the jar loads it like other NDK libraries.
>
> The problem that you are seeing is that packaging 3rd party jar files
> has 2 steps:
> - take the .class files inside the jar file and dex them into
> classes.dex with the other code from the project (or other jar files)
> - take the non .class files from the java and put them into the apk
> (which is a zip file like jar files), with the same folder structure
> so that Java code accessing resources through
> Class.getResourceAsStream() (or similar) can find and load those
> resources
>
> So it looks like fast-MD5.jar contains lib/arch/darwin_x86/MD5.jnilib
> and other libraries. The problem is that this conflicts with where the
> NDK libraries are supposed to be and the package manager on the device
> complains.
>
> Note that in 1.5 this check is not there but the app will only work if
> it doesn't call into method of this jar file that uses native
> implementation.
>
> On our side we should definitively check this during packaging and
> generate a warning/error when we detect a potential conflict.
>
> Xav
>
>
>
>
>
> On Thu, Nov 5, 2009 at 10:54 AM, cvance383  wrote:
> > when i extract the apk, in the lib/arch/darwin_ppc/ is a file:
> > MD5.jnilib . In my project the files in my lib folder are commons-
> > httpclient-3.1.jar ,  fast-md5.jar, gson-1.2.3.jar . Is this where my
> > problem is stemming from?
>
> > O Nov 4, 8:44 pm, Xavier Ducrohet  wrote:
> >> what is all that lib/arch/darwin_ppc/ stuff?
>
> >> It looks like you're putting native code compiled for
> >> mac/linux/windows in your apk?
>
> >> It works on 1.5 because the package manager back then didn't check for
> >> native code.
> >> Starting with 1.6, it only accepts an apk if the native code packaged
> >> in the apk match the device. The emulator emulates a basic ARMv5
> >> device and expects native code to be in lib/armeabi/libfoo.so
>
> >> Do you happen to have a libs folder in your project that contains this
> >> "arch" folder (and subfolders)?
>
> >> Xav
>
> >> On Wed, Nov 4, 2009 at 5:08 PM, cvance383  wrote:
> >> > correction it works fine on 1.5, but not 1.6 or 2.0 , im thinking this
> >> > is an sdk issue, but i still dont know. any help is greatly
> >> > appreciated.
>
> >> > On Nov 4, 7:51 pm, cvance383  wrote:
> >> >> it prints out all the drawable files and this
>
> >> >>  2540  2009-11-03 19:26   AndroidManifest.xml
> >> >>     61100  2009-11-03 18:57   resources.arsc
> >> >>    719304  2009-11-03 19:26   classes.dex
> >> >>       453  2009-11-03 19:26   assembly-descriptor.xml
> >> >>     12580  2009-11-03 19:26   lib/arch/darwin_ppc/MD5.jnilib
> >> >>      9040  2009-11-03 19:26   lib/arch/darwin_x86/MD5.jnilib
> >> >>      7346  2009-11-03 19:26   lib/arch/linux_x86/MD5.so
> >> >>     13312  2009-11-03 19:26   lib/arch/win32_x86/MD5.dll
> >> >>     25714  2009-11-03 19:26   META-INF/MANIFEST.MF
> >> >>     25767  2009-11-03 19:26   META-INF/CERT.SF
> >> >>       980  2009-11-03 19:26   META-INF/CERT.RSA
> >> >> -                     ---
> >> >>   1955356                     303 files
>
> >> >> ... btw this is the first time i have had a problem installing the
> >> >> apk, if i switch back to 1.5 or 1.6, there isnt any issues.
>
> >> >> On Nov 4, 7:09 pm, David Turner  wrote:
>
> >> >> > hmm, can you tell us the content of your .apk, i.e. what does running 
> >> >> > "unzip
> >> >> > -l .apk" prints out ?
> >> >> > (feel free to obfuscate names if needed, but the first four 
> >> >> > characters of
> >> >> > each line are important).

[android-developers] Re: trouble running app on 2.0 emulator

2009-11-05 Thread cvance383
when i extract the apk, in the lib/arch/darwin_ppc/ is a file:
MD5.jnilib . In my project the files in my lib folder are commons-
httpclient-3.1.jar ,  fast-md5.jar, gson-1.2.3.jar . Is this where my
problem is stemming from?

O Nov 4, 8:44 pm, Xavier Ducrohet  wrote:
> what is all that lib/arch/darwin_ppc/ stuff?
>
> It looks like you're putting native code compiled for
> mac/linux/windows in your apk?
>
> It works on 1.5 because the package manager back then didn't check for
> native code.
> Starting with 1.6, it only accepts an apk if the native code packaged
> in the apk match the device. The emulator emulates a basic ARMv5
> device and expects native code to be in lib/armeabi/libfoo.so
>
> Do you happen to have a libs folder in your project that contains this
> "arch" folder (and subfolders)?
>
> Xav
>
>
>
>
>
> On Wed, Nov 4, 2009 at 5:08 PM, cvance383  wrote:
> > correction it works fine on 1.5, but not 1.6 or 2.0 , im thinking this
> > is an sdk issue, but i still dont know. any help is greatly
> > appreciated.
>
> > On Nov 4, 7:51 pm, cvance383  wrote:
> >> it prints out all the drawable files and this
>
> >>  2540  2009-11-03 19:26   AndroidManifest.xml
> >>     61100  2009-11-03 18:57   resources.arsc
> >>    719304  2009-11-03 19:26   classes.dex
> >>       453  2009-11-03 19:26   assembly-descriptor.xml
> >>     12580  2009-11-03 19:26   lib/arch/darwin_ppc/MD5.jnilib
> >>      9040  2009-11-03 19:26   lib/arch/darwin_x86/MD5.jnilib
> >>      7346  2009-11-03 19:26   lib/arch/linux_x86/MD5.so
> >>     13312  2009-11-03 19:26   lib/arch/win32_x86/MD5.dll
> >>     25714  2009-11-03 19:26   META-INF/MANIFEST.MF
> >>     25767  2009-11-03 19:26   META-INF/CERT.SF
> >>       980  2009-11-03 19:26   META-INF/CERT.RSA
> >> -                     ---
> >>   1955356                     303 files
>
> >> ... btw this is the first time i have had a problem installing the
> >> apk, if i switch back to 1.5 or 1.6, there isnt any issues.
>
> >> On Nov 4, 7:09 pm, David Turner  wrote:
>
> >> > hmm, can you tell us the content of your .apk, i.e. what does running 
> >> > "unzip
> >> > -l .apk" prints out ?
> >> > (feel free to obfuscate names if needed, but the first four characters of
> >> > each line are important).
>
> >> > thanks in advance
>
> >> > On Wed, Nov 4, 2009 at 3:17 PM, cvance383  wrote:
> >> > > downloaded the new 2.0 sdk the other day, and tried testing my app on
> >> > > 2.0 via the emulator. I am using eclipse, and when i click run, the
> >> > > new emulator runs with my 2.0 avd. but when eclipse tries to install
> >> > > it i get this in the console...
>
> >> > > Installation error: INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
> >> > > Please check logcat output for more details.
>
> >> > > the log has this
> >> > > 11-04 18:16:01.818: ERROR/PackageManager(53): Package com.
> >> > > (package).android has mismatched uid: 10025 on disk, 10026 in
> >> > > settings; read messages:
> >> > > 11-04 18:16:01.818: ERROR/PackageManager(53): Read completed
> >> > > successfully: 41 packages, 6 shared uids
>
> >> > > 11-04 18:16:01.906: WARN/PackageManager(53): Install failed: .apk has
> >> > > native code but none for arch armeabi
> >> > > 11-04 18:16:01.932: WARN/PackageManager(53): Package couldn't be
> >> > > installed in /data/app/com.(packagename).android.apk
>
> >> > > I can not figure out why it does this. I have searched aimlessly for
> >> > > answer and this is one of my last resorts. Thanks for any help
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups "Android Developers" group.
> >> > > To post to this group, send email to 
> >> > > android-developers@googlegroups.com
> >> > > To unsubscribe from this group, send email to
> >> > > android-developers+unsubscr...@googlegroups.com >> > >  cr...@googlegroups.com>
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: trouble running app on 2.0 emulator

2009-11-04 Thread cvance383
correction it works fine on 1.5, but not 1.6 or 2.0 , im thinking this
is an sdk issue, but i still dont know. any help is greatly
appreciated.

On Nov 4, 7:51 pm, cvance383  wrote:
> it prints out all the drawable files and this
>
>  2540  2009-11-03 19:26   AndroidManifest.xml
>     61100  2009-11-03 18:57   resources.arsc
>    719304  2009-11-03 19:26   classes.dex
>       453  2009-11-03 19:26   assembly-descriptor.xml
>     12580  2009-11-03 19:26   lib/arch/darwin_ppc/MD5.jnilib
>      9040  2009-11-03 19:26   lib/arch/darwin_x86/MD5.jnilib
>      7346  2009-11-03 19:26   lib/arch/linux_x86/MD5.so
>     13312  2009-11-03 19:26   lib/arch/win32_x86/MD5.dll
>     25714  2009-11-03 19:26   META-INF/MANIFEST.MF
>     25767  2009-11-03 19:26   META-INF/CERT.SF
>       980  2009-11-03 19:26   META-INF/CERT.RSA
> -                     ---
>   1955356                     303 files
>
> ... btw this is the first time i have had a problem installing the
> apk, if i switch back to 1.5 or 1.6, there isnt any issues.
>
> On Nov 4, 7:09 pm, David Turner  wrote:
>
>
>
> > hmm, can you tell us the content of your .apk, i.e. what does running "unzip
> > -l .apk" prints out ?
> > (feel free to obfuscate names if needed, but the first four characters of
> > each line are important).
>
> > thanks in advance
>
> > On Wed, Nov 4, 2009 at 3:17 PM, cvance383  wrote:
> > > downloaded the new 2.0 sdk the other day, and tried testing my app on
> > > 2.0 via the emulator. I am using eclipse, and when i click run, the
> > > new emulator runs with my 2.0 avd. but when eclipse tries to install
> > > it i get this in the console...
>
> > > Installation error: INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
> > > Please check logcat output for more details.
>
> > > the log has this
> > > 11-04 18:16:01.818: ERROR/PackageManager(53): Package com.
> > > (package).android has mismatched uid: 10025 on disk, 10026 in
> > > settings; read messages:
> > > 11-04 18:16:01.818: ERROR/PackageManager(53): Read completed
> > > successfully: 41 packages, 6 shared uids
>
> > > 11-04 18:16:01.906: WARN/PackageManager(53): Install failed: .apk has
> > > native code but none for arch armeabi
> > > 11-04 18:16:01.932: WARN/PackageManager(53): Package couldn't be
> > > installed in /data/app/com.(packagename).android.apk
>
> > > I can not figure out why it does this. I have searched aimlessly for
> > > answer and this is one of my last resorts. Thanks for any help
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: trouble running app on 2.0 emulator

2009-11-04 Thread cvance383
it prints out all the drawable files and this

 2540  2009-11-03 19:26   AndroidManifest.xml
61100  2009-11-03 18:57   resources.arsc
   719304  2009-11-03 19:26   classes.dex
  453  2009-11-03 19:26   assembly-descriptor.xml
12580  2009-11-03 19:26   lib/arch/darwin_ppc/MD5.jnilib
 9040  2009-11-03 19:26   lib/arch/darwin_x86/MD5.jnilib
 7346  2009-11-03 19:26   lib/arch/linux_x86/MD5.so
13312  2009-11-03 19:26   lib/arch/win32_x86/MD5.dll
25714  2009-11-03 19:26   META-INF/MANIFEST.MF
25767  2009-11-03 19:26   META-INF/CERT.SF
  980  2009-11-03 19:26   META-INF/CERT.RSA
- ---
  1955356 303 files

... btw this is the first time i have had a problem installing the
apk, if i switch back to 1.5 or 1.6, there isnt any issues.


On Nov 4, 7:09 pm, David Turner  wrote:
> hmm, can you tell us the content of your .apk, i.e. what does running "unzip
> -l .apk" prints out ?
> (feel free to obfuscate names if needed, but the first four characters of
> each line are important).
>
> thanks in advance
>
>
>
> On Wed, Nov 4, 2009 at 3:17 PM, cvance383  wrote:
> > downloaded the new 2.0 sdk the other day, and tried testing my app on
> > 2.0 via the emulator. I am using eclipse, and when i click run, the
> > new emulator runs with my 2.0 avd. but when eclipse tries to install
> > it i get this in the console...
>
> > Installation error: INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
> > Please check logcat output for more details.
>
> > the log has this
> > 11-04 18:16:01.818: ERROR/PackageManager(53): Package com.
> > (package).android has mismatched uid: 10025 on disk, 10026 in
> > settings; read messages:
> > 11-04 18:16:01.818: ERROR/PackageManager(53): Read completed
> > successfully: 41 packages, 6 shared uids
>
> > 11-04 18:16:01.906: WARN/PackageManager(53): Install failed: .apk has
> > native code but none for arch armeabi
> > 11-04 18:16:01.932: WARN/PackageManager(53): Package couldn't be
> > installed in /data/app/com.(packagename).android.apk
>
> > I can not figure out why it does this. I have searched aimlessly for
> > answer and this is one of my last resorts. Thanks for any help
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] trouble running app on 2.0 emulator

2009-11-04 Thread cvance383
downloaded the new 2.0 sdk the other day, and tried testing my app on
2.0 via the emulator. I am using eclipse, and when i click run, the
new emulator runs with my 2.0 avd. but when eclipse tries to install
it i get this in the console...

Installation error: INSTALL_FAILED_CPU_ABI_INCOMPATIBLE
Please check logcat output for more details.

the log has this
11-04 18:16:01.818: ERROR/PackageManager(53): Package com.
(package).android has mismatched uid: 10025 on disk, 10026 in
settings; read messages:
11-04 18:16:01.818: ERROR/PackageManager(53): Read completed
successfully: 41 packages, 6 shared uids

11-04 18:16:01.906: WARN/PackageManager(53): Install failed: .apk has
native code but none for arch armeabi
11-04 18:16:01.932: WARN/PackageManager(53): Package couldn't be
installed in /data/app/com.(packagename).android.apk


I can not figure out why it does this. I have searched aimlessly for
answer and this is one of my last resorts. Thanks for any help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can't get my widget to show up?

2009-08-11 Thread cvance383

hmm?

On Aug 5, 2:02 pm, cvance383  wrote:
> bump.. anyone?
>
> On Aug 4, 1:42 pm, cvance383  wrote:
>
> > I followed the tutorial off code.google.com to add widgets to your
> > app. For some reason, when I run the app on the phone for testing,
> > then long click the home screen to add widgets, my widget is not an
> > option. I imagine I am doing something wrong, but I thought I followed
> > the tutorial pretty well. Here is some of my code, please offer a
> > suggestion of why I can't add my widget. BTW i dont care that it
> > doesnt do anything yet, or even if it breaks, I just want to see it as
> > an option first (small steps). Thanks for any help or feedback
>
> > Any * you see, is just a place holder for the real name.
>
> > My widget provider
>
> > public class * extends AppWidgetProvider {
>
> >     public void onUpdate(Context context, AppWidgetManager
> > appWidgetManager, int[] appWidgetIds) {
> >         final int N = appWidgetIds.length;
>
> >         // Perform this loop procedure for each App Widget that
> > belongs to this provider
> >         for (int i=0; i >             int appWidgetId = appWidgetIds[i];
>
> >             // Create an Intent to launch ExampleActivity
> >             Intent intent = new Intent(context, MobileApp.class);
> >             PendingIntent pendingIntent = PendingIntent.getActivity
> > (context, 0, intent, 0);
>
> >             // Get the layout for the App Widget and attach an on-
> > click listener to the button
> >             RemoteViews views = new RemoteViews(context.getPackageName
> > (), R.layout.widget);
> >             views.setOnClickPendingIntent(R.id.widget_next_label,
> > pendingIntent);
>
> >             // Tell the AppWidgetManager to perform an update on the
> > current App Widget
> >             appWidgetManager.updateAppWidget(appWidgetId, views);
> >         }
> >     }
>
> > }
>
> > My manifest
>
> > 
> > http://schemas.android.com/apk/res/android";
> >       package="com.*.android"
> >       android:versionCode="1"
> >       android:versionName="1.0.0">
>
> >    >     android:label="*">
>
> >      >       android:name=".MobileApp"
> >       android:label="*"
> >       android:configChanges="orientation|keyboardHidden"
> >       android:theme="@style/Theme.NoBackground"
> >       android:icon="@drawable/icon_gs">
> >       
> >           
> >           
> >       
> >                 
> >      > android:exported="false" android:enabled="true" />
> >   
>
> > 
> >     
> >          > android:name="android.appwidget.action.APPWIDGET_UPDATE" />
> >     
> >      >                android:resource="@xml/app_widget_info" />
> > 
>
> >   
> >         
> >   
> >    > android:name="android.permission.ACCESS_NETWORK_STATE"/>
> >   
> > 
>
> > and my info .xml file...
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >     android:minWidth="294dp"
> >     android:minHeight="72dp"
> >     android:updatePeriodMillis="8640"
> >     android:initialLayout="@layout/widget" >
> > 
>
> > my widget layout file
>
> > 
> >  >         xmlns:android="http://schemas.android.com/apk/res/android";
> >     android:layout_width="wrap_content"
> >     android:layout_height="wrap_content">
>
> >          >                 android:id="@+id/widget_play_button"
> >                 android:layout_width="25px"
> >                 android:layout_height="25px"
> >                 android:layout_alignParentLeft="true"
> >                 android:layout_centerVertical="true"
> >                 android:text="Play"   />
>
> >          >                 android:id="@+id/widget_next_button"
> >                 android:layout_width="25px"
> >                 android:layout_height="25px"
> >                 android:layout_toRightOf="@id/widget_play_button"
> >                 android:text="Next" />
>
> >          >                 android:id="@+id/widget_song_label"
> >                 android:layout_width="wrap_content"
> >        

[android-developers] Re: Can't get my widget to show up?

2009-08-05 Thread cvance383

bump.. anyone?

On Aug 4, 1:42 pm, cvance383  wrote:
> I followed the tutorial off code.google.com to add widgets to your
> app. For some reason, when I run the app on the phone for testing,
> then long click the home screen to add widgets, my widget is not an
> option. I imagine I am doing something wrong, but I thought I followed
> the tutorial pretty well. Here is some of my code, please offer a
> suggestion of why I can't add my widget. BTW i dont care that it
> doesnt do anything yet, or even if it breaks, I just want to see it as
> an option first (small steps). Thanks for any help or feedback
>
> Any * you see, is just a place holder for the real name.
>
> My widget provider
>
> public class * extends AppWidgetProvider {
>
>     public void onUpdate(Context context, AppWidgetManager
> appWidgetManager, int[] appWidgetIds) {
>         final int N = appWidgetIds.length;
>
>         // Perform this loop procedure for each App Widget that
> belongs to this provider
>         for (int i=0; i             int appWidgetId = appWidgetIds[i];
>
>             // Create an Intent to launch ExampleActivity
>             Intent intent = new Intent(context, MobileApp.class);
>             PendingIntent pendingIntent = PendingIntent.getActivity
> (context, 0, intent, 0);
>
>             // Get the layout for the App Widget and attach an on-
> click listener to the button
>             RemoteViews views = new RemoteViews(context.getPackageName
> (), R.layout.widget);
>             views.setOnClickPendingIntent(R.id.widget_next_label,
> pendingIntent);
>
>             // Tell the AppWidgetManager to perform an update on the
> current App Widget
>             appWidgetManager.updateAppWidget(appWidgetId, views);
>         }
>     }
>
> }
>
> My manifest
>
> 
> http://schemas.android.com/apk/res/android";
>       package="com.*.android"
>       android:versionCode="1"
>       android:versionName="1.0.0">
>
>        android:label="*">
>
>            android:name=".MobileApp"
>       android:label="*"
>       android:configChanges="orientation|keyboardHidden"
>       android:theme="@style/Theme.NoBackground"
>       android:icon="@drawable/icon_gs">
>       
>           
>           
>       
>                 
>      android:exported="false" android:enabled="true" />
>   
>
> 
>     
>          android:name="android.appwidget.action.APPWIDGET_UPDATE" />
>     
>                     android:resource="@xml/app_widget_info" />
> 
>
>   
>         
>   
>    android:name="android.permission.ACCESS_NETWORK_STATE"/>
>   
> 
>
> and my info .xml file...
>
> 
> http://schemas.android.com/apk/res/
> android"
>     android:minWidth="294dp"
>     android:minHeight="72dp"
>     android:updatePeriodMillis="8640"
>     android:initialLayout="@layout/widget" >
> 
>
> my widget layout file
>
> 
>          xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="wrap_content"
>     android:layout_height="wrap_content">
>
>                          android:id="@+id/widget_play_button"
>                 android:layout_width="25px"
>                 android:layout_height="25px"
>                 android:layout_alignParentLeft="true"
>                 android:layout_centerVertical="true"
>                 android:text="Play"   />
>
>                          android:id="@+id/widget_next_button"
>                 android:layout_width="25px"
>                 android:layout_height="25px"
>                 android:layout_toRightOf="@id/widget_play_button"
>                 android:text="Next" />
>
>                          android:id="@+id/widget_song_label"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:layout_toRightOf="@id/widget_next_button"
>                 android:layout_marginTop="5px"
>                 android:text="Song Name by Song Artist"
>                 android:textSize="16px"/>
>
>                          android:id="@+id/widget_next_label"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:layout_toRightOf="@id/widget_next_button"
>                 android:layout_below="@id/widget_song_label"
>                 android:layout_marginTop="5px"
>                 android:textSize="10px"
>                 android:text="Next Song by Next Artist"/>
>
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Can't get my widget to show up?

2009-08-04 Thread cvance383

I followed the tutorial off code.google.com to add widgets to your
app. For some reason, when I run the app on the phone for testing,
then long click the home screen to add widgets, my widget is not an
option. I imagine I am doing something wrong, but I thought I followed
the tutorial pretty well. Here is some of my code, please offer a
suggestion of why I can't add my widget. BTW i dont care that it
doesnt do anything yet, or even if it breaks, I just want to see it as
an option first (small steps). Thanks for any help or feedback

Any * you see, is just a place holder for the real name.

My widget provider

public class * extends AppWidgetProvider {

public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] appWidgetIds) {
final int N = appWidgetIds.length;

// Perform this loop procedure for each App Widget that
belongs to this provider
for (int i=0; i
http://schemas.android.com/apk/res/android";
  package="com.*.android"
  android:versionCode="1"
  android:versionName="1.0.0">

  


  
  
  
  


  










  

  
  
  



and my info .xml file...



http://schemas.android.com/apk/res/
android"
android:minWidth="294dp"
android:minHeight="72dp"
android:updatePeriodMillis="8640"
android:initialLayout="@layout/widget" >



my widget layout file


http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content">










--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification Manager Help

2009-07-15 Thread cvance383

bump?

On Jul 14, 5:24 pm, cvance383  wrote:
> Just trying to create a simplenotification, but keep getting an
> illegalarguementexception "contentIntent required". Which is weird
> because I believe I am passing the content intent.  Here is my code...
>
> {
>                notification= newNotification(iconID, message,
> System.currentTimeMillis());
>                 PendingIntent appIntent = 
> PendingIntent.getActivity(mobileApp, 0,
> new Intent(), PendingIntent.FLAG_NO_CREATE);
>                notification.setLatestEventInfo(mobileApp,"Now Playing: ",
> detailedMessaged, appIntent);
>                 nManager.notify(MOBILE_APP_ID,notification);
>                 Log.d( this.getClass().toString(), "Launching 
> NewNotification" );
>         }
>
> I dont even care if thenotificationdoes anything when u click on it.
> I just want anotificationthe user can see. I construct an empty
> intent "new Intent()", but have also tried it with a non-empty intent.
> I also tried passing null for contentIntent, and get the same
> exception. Whats the deal-o? Thanks for any help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notification Manager Help

2009-07-14 Thread cvance383

Just trying to create a simple notification, but keep getting an
illegalarguementexception "contentIntent required". Which is weird
because I believe I am passing the content intent.  Here is my code...


{
notification = new Notification(iconID, message,
System.currentTimeMillis());
PendingIntent appIntent = PendingIntent.getActivity(mobileApp, 
0,
new Intent(), PendingIntent.FLAG_NO_CREATE);
notification.setLatestEventInfo(mobileApp,"Now Playing: ",
detailedMessaged, appIntent);
nManager.notify(MOBILE_APP_ID, notification );
Log.d( this.getClass().toString(), "Launching New Notification" 
);
}

I dont even care if the notification does anything when u click on it.
I just want a notification the user can see. I construct an empty
intent "new Intent()", but have also tried it with a non-empty intent.
I also tried passing null for contentIntent, and get the same
exception. Whats the deal-o? Thanks for any help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread cvance383

Normally I agree, but this is really inconvenient when the text field
is for a password. 1) most passwords arent words, so it wont help 2)
it shows the password in visible text 3) it makes the password hard to
enter, since it autocorrects

On Jul 1, 2:12 pm, Andrew Burgess  wrote:
> I haven't really looked into this, but I think that since this is a user
> preference, it should be up to the user whether suggested words pop up or
> not.
>
> On Wed, Jul 1, 2009 at 1:54 PM, cvance383  wrote:
>
> > ?? i know this is a simple thing i just cant find it anywhere. I have
> > searched for hours
>
> > On Jun 29, 12:29 pm, cvance383  wrote:
> > > bump. anyone?
>
> > > On Jun 26, 2:26 pm, cvance383  wrote:
>
> > > > How can I hide the suggested words or turn off auto complete for the
> > > > virtual keyboard? Thanks ;)
>
> --
> Andrew Burgess
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-07-01 Thread cvance383

?? i know this is a simple thing i just cant find it anywhere. I have
searched for hours

On Jun 29, 12:29 pm, cvance383  wrote:
> bump. anyone?
>
> On Jun 26, 2:26 pm, cvance383  wrote:
>
> > How can I hide the suggested words or turn off auto complete for the
> > virtual keyboard? Thanks ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to hide user dictionary? or suggested words on keyboard

2009-06-29 Thread cvance383

bump. anyone?

On Jun 26, 2:26 pm, cvance383  wrote:
> How can I hide the suggested words or turn off auto complete for the
> virtual keyboard? Thanks ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to hide user dictionary? or suggested words on keyboard

2009-06-26 Thread cvance383

How can I hide the suggested words or turn off auto complete for the
virtual keyboard? Thanks ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Unlock my dev phone

2009-06-22 Thread cvance383

So I may a pretty stupid mistake by clicking reset under settings. I
just wanted to erase my apps and preferences. Well instead it locked
my phone. The phone was bought on ebay (idk if it is a dev phone or
simply an unlocked phone). When I restared the phone it said "No sim"
and emergency call only.  I put a sim in, and it wants an unlock pin.
Does anyone know a way t-mobile or google or whoever can unlock my
phone for free? Someone I can call and explain the situation to? I
dont know what to do and don't want to pay $20 to some sketchy company
for a pin and I dont think my boss would either :( . Any ideas? Thanks
and I already know it was a dumb mistake no need to remind me lol.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AIDL issue with 1.5sdk and eclipse plugin

2009-06-02 Thread cvance383

*problem resolved*

thanks tho

On Jun 1, 8:00 pm, cvance383  wrote:
> Hey I've been working on an app for a couple months now. I just
> downloaded the sdk and installed the newest plugin. Unfortunately my
> app broke after this finished. I have tried setting the build target
> to 1.1 and 1.5, still no luck. I believe the problem is stemming from
> the .aidl files causing other classes to break. The error in the aidl
> files says cannot find import for my Song class, which has worked up
> until now. Any ideas? Let me know if posting code or errors will help,
> as of now I'm all out of ideas. Thanks for any help or suggestions.
>
> Collin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AIDL issue with 1.5sdk and eclipse plugin

2009-06-02 Thread cvance383

ok here is one of the aidl's

package com.grooveshark.android.audio;

import com.grooveshark.android.audio.Song;

interface IAudioEvent
{
int getState();
int getEvent();
int getSongIndex();
  Song getSong();
}

and it throws an error saying "couldn't find import for class
com.grooveshark.android.audio.Song" which exists in the same folder,
it has never had this problem before 1.5 or the new adt version. There
is the exact same problem on a similar .aidl. Is that enough
information? btw the song class is a parcelable.

On Jun 2, 12:30 am, Raphael  wrote:
> You could start by posting the exact error messages you see.
>
> R/
>
> On Mon, Jun 1, 2009 at 5:00 PM, cvance383  wrote:
>
> > Hey I've been working on an app for a couple months now. I just
> > downloaded the sdk and installed the newest plugin. Unfortunately my
> > app broke after this finished. I have tried setting the build target
> > to 1.1 and 1.5, still no luck. I believe the problem is stemming from
> > the .aidl files causing other classes to break. The error in the aidl
> > files says cannot find import for my Song class, which has worked up
> > until now. Any ideas? Let me know if posting code or errors will help,
> > as of now I'm all out of ideas. Thanks for any help or suggestions.
>
> > Collin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AIDL issue with 1.5sdk and eclipse plugin

2009-06-01 Thread cvance383

Hey I've been working on an app for a couple months now. I just
downloaded the sdk and installed the newest plugin. Unfortunately my
app broke after this finished. I have tried setting the build target
to 1.1 and 1.5, still no luck. I believe the problem is stemming from
the .aidl files causing other classes to break. The error in the aidl
files says cannot find import for my Song class, which has worked up
until now. Any ideas? Let me know if posting code or errors will help,
as of now I'm all out of ideas. Thanks for any help or suggestions.

Collin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] EditText & Tabhost problem

2009-04-20 Thread cvance383

The problem I am having is I have a framelayout with a tabhost (&
widget & tabcontent) then I have another layout over top of the tabs
that looks like a form. It has two editTexts but when I type in the
them, the tabs steal focus and put what i typed in the edittext i have
within the tabcontent. If I remove the tabs from my xml and app, the
top level edittext works fine. Anyone know why the tabs steal focus
when I type in the form in the foreground. Any solutions? I appreciate
any help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---