[android-developers] how to enable screen compatability mode in android 11

2011-09-29 Thread siliconeagle
I have an app that is quite old and still has to support 1.5 (3)
devices.

For some reason the screen computability mode has stopped running and
i can figure out why. It did work fine on honeycomb devices. The
result i am getting is that that the app is zoomed (i.e. all elements
are oversized) instead of being stretched (all my activity use
relaivelayouts so they all stretch fine - and it was working!).

In My Manifest i have:

uses-sdk android:minSdkVersion=3/
and

supports-screens android:largeScreens=true
android:anyDensity=true android:smallScreens=true
android:resizeable=true /
i have tried adding android:xlargeScreens=true but to not avail.

the thing i cant figure out is why the compatibility mode button has
disappeared for this app it did show up fine and shows up for all apps
except this one. Is there something in the manifest that can do that?

I have also tried
uses-sdk android:minSdkVersion=3 android:targetSdkVersion=11/
...
supports-screens android:largeScreens=true
android:anyDensity=true android:smallScreens=true
android:resizeable=true android:xlargeScreens=true /

and varoius combinations as per:
http://android-developers.blogspot.com/2011/07/new-mode-for-apps-on-large-screens.html

nothing seems to work - but it was fine before ... Im stumped...

rob

-- 
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: download declined for app on market

2011-09-04 Thread siliconeagle
https://market.android.com/details?id=org.my_pod.mypodunlockpaid

hopefully that works.

best
rob
On Sep 4, 12:38 pm, Appaholics raghavs...@appaholics.in wrote:
 Rich, I think Christopher meant that the Android support is not very good
 and that therefore the link doesn't work.

 On Sun, Sep 4, 2011 at 4:57 PM, rich friedel rich.frie...@gmail.com wrote:
   worked for me

  --
  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

 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete 
 control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/

-- 
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] download declined for app on market

2011-09-03 Thread siliconeagle
I have a paid app on market MyPOD Unlock Key (https://
market.android.com/details?id=org.my_pod.mypodunlockpaid)

The app downloads fine on pre-honeycomb devices, but some people get
Download Declined after they have paid for the app.

The app definitely runs fine on honeycomb, and there are no flags in
the manifest to prevent it being seen on market on honeycomb devices.
The app appears in the market so all should be ok.

Has anyone had any experience with this error. I have googled the
error and it seem to happen to some apps. One soulution i found was to
clear the market app data (in settingmanage apps) but this had not
effect for me.

Any input / guidance / suggestions would be highly appreciated, as I
am losing money because of this.

Thanks in advance ...

rob

-- 
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: MediaPlayer Player Question

2011-09-03 Thread siliconeagle
1. you would need to use AudioTrack to control the buffer size
2. there always has to be some buffering as the media must be decoded
before playing..
3. yes you can http stream just give the url to setDataSource
4. dont know

On Sep 3, 5:28 pm, dani maoz maoz.d...@gmail.com wrote:
 Hi
 I have a question regarding Video/Audio Playback
 1. Is there a way to configure buffer size
 2. Is there a way to disable buffering?
 3. Can the player act like a streamer.
 4. Is there a YUV player application in Android
 Regards

-- 
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: Widgets in SD installed application

2011-03-21 Thread siliconeagle
this has been disallowd as the sd card can be unmounted.

http://code.google.com/p/android/issues/detail?id=11283

On Mar 21, 9:27 am, Joan Pujol joanpu...@gmail.com wrote:
 Did widgets work in a SD installed application?

 According Android javadoc it seems that can work:

 App Widgets
 Your A file:///C:/java/android/docs/guide/topics/appwidgets/index.htmlpp
 Widgets will be removed from the home screen. When external storage is
 remounted, your App Widget will *not* be available for the user to select
 until the system resets the home application (usually not until a system
 reboot).

 But I tried in my application and if it's moved to the SD the widgets
 disappear from the home screen and also from the list of available widgets
 and it is not possible to add another time. (I tested with Nexus S with
 2.3.2 with reboot included)

 I read also in StackOverflow an entry saying that widgets didn't work on 
 sdhttp://stackoverflow.com/questions/4747395/android-widget-from-sd-card

 They work or not?

 A lot of thanks in advance,

-- 
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] org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean

2011-03-20 Thread siliconeagle
I am trying to figure out the cause of this error it occurs on startup
when i try to get the shared preferences for the app. the code is
just:

settings = this.getSharedPreferences(Globals.PREFS_NAME, 0)

Seems like a corruption, but the bug is in the app as i have installed
it on multiple devices and the same error occurs. I have uninstalled
the app and re-installed it to no avail. also did a fully clean build.
I googled the error and dont seem to be able to find anything on it.

I was previously working fine. so I am a rather stumped. Any leads
would be *very* highly appreciated ...

regards,
rob

W/ApplicationContext( 1541): getSharedPreferences
W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException:
Map value without name attribute: boolean
W/ApplicationContext( 1541):at
com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521)
W/ApplicationContext( 1541):at
com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733)
W/ApplicationContext( 1541):at
com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667)
W/ApplicationContext( 1541):at
com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470)
W/ApplicationContext( 1541):at
android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376)
W/ApplicationContext( 1541):at
android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:
146)
W/ApplicationContext( 1541):at
net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java:
160)
W/ApplicationContext( 1541):at
net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java:
25)
W/ApplicationContext( 1541):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
W/ApplicationContext( 1541):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1611)
W/ApplicationContext( 1541):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
W/ApplicationContext( 1541):at android.app.ActivityThread.access
$1500(ActivityThread.java:117)
W/ApplicationContext( 1541):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:931)
W/ApplicationContext( 1541):at
android.os.Handler.dispatchMessage(Handler.java:99)
W/ApplicationContext( 1541):at android.os.Looper.loop(Looper.java:
123)
W/ApplicationContext( 1541):at
android.app.ActivityThread.main(ActivityThread.java:3683)
W/ApplicationContext( 1541):at
java.lang.reflect.Method.invokeNative(Native Method)
W/ApplicationContext( 1541):at
java.lang.reflect.Method.invoke(Method.java:507)
W/ApplicationContext( 1541):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
W/ApplicationContext( 1541):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
W/ApplicationContext( 1541):at dalvik.system.NativeStart.main(Native
Method)

-- 
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: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean

2011-03-20 Thread siliconeagle
thanks for the tip.
the prefs file was
?xml version='1.0' encoding='utf-8' standalone='yes' ?
map
boolean value=false /
boolean name=initialised value=true /
boolean name=upd.auto value=true /
long name=backup.last value=1300662039054 /
string name=msg.read0.995.18Beta/string
/map

turns out i was writing a null preference name to the prefs - so the
error was correct - though I don't think the API should let you do
that since the prefs cant be read after that.

anyways, a bit of a schoolboy error, but got there ...


thanks for the quick reply,
rob
On Mar 21, 12:34 am, Spiral123 cumis...@gmail.com wrote:
 im sure someone knows the answer to this off the top of their head,
 but I don't.

 My first suggestion would be to install your app on an Emulator
 instance then copy the created SharedPreferences XML file for the app
 to your local computer and inspect it manually to see if it looks like
 you expect.

 On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote:







  I am trying to figure out the cause of this error it occurs on startup
  when i try to get the shared preferences for the app. the code is
  just:

  settings = this.getSharedPreferences(Globals.PREFS_NAME, 0)

  Seems like a corruption, but the bug is in the app as i have installed
  it on multiple devices and the same error occurs. I have uninstalled
  the app and re-installed it to no avail. also did a fully clean build.
  I googled the error and dont seem to be able to find anything on it.

  I was previously working fine. so I am a rather stumped. Any leads
  would be *very* highly appreciated ...

  regards,
  rob
  
  W/ApplicationContext( 1541): getSharedPreferences
  W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException:
  Map value without name attribute: boolean
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667)
  W/ApplicationContext( 1541):    at
  com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470)
  W/ApplicationContext( 1541):    at
  android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376)
  W/ApplicationContext( 1541):    at
  android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:
  146)
  W/ApplicationContext( 1541):    at
  net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java:
  160)
  W/ApplicationContext( 1541):    at
  net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java:
  25)
  W/ApplicationContext( 1541):    at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1047)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  1611)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
  1663)
  W/ApplicationContext( 1541):    at android.app.ActivityThread.access
  $1500(ActivityThread.java:117)
  W/ApplicationContext( 1541):    at android.app.ActivityThread
  $H.handleMessage(ActivityThread.java:931)
  W/ApplicationContext( 1541):    at
  android.os.Handler.dispatchMessage(Handler.java:99)
  W/ApplicationContext( 1541):    at android.os.Looper.loop(Looper.java:
  123)
  W/ApplicationContext( 1541):    at
  android.app.ActivityThread.main(ActivityThread.java:3683)
  W/ApplicationContext( 1541):    at
  java.lang.reflect.Method.invokeNative(Native Method)
  W/ApplicationContext( 1541):    at
  java.lang.reflect.Method.invoke(Method.java:507)
  W/ApplicationContext( 1541):    at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:839)
  W/ApplicationContext( 1541):    at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  W/ApplicationContext( 1541):    at dalvik.system.NativeStart.main(Native
  Method)

-- 
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] org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean

2011-03-19 Thread siliconeagle
I am getting a really strange error all of a sudden when getting the
shared preferences in my app.
I have completely removed the app and all data and it just recurs
after install - nothing saves in shared preferences after the app is
killed, the preferences save in memory but everything is reset each
time the app starts. Hence none of the setting for the app are ever
saved permanently, which is obviously a problem.

it looks as though something might be corrupt in the shared data area
but the problem happens across multiple devices, so it seems to be a
software bug. but its a fairly basic thing and it just seem to stop
working.

has anyone seen this problem before? googling the error doesn't seem
to turn up much.

The exception stack trace below occurs the first time i call
getSharedPreferences in the app ...

line 160:
 settings = this.getSharedPreferences(Globals.PREFS_NAME, 0);

W/ApplicationContext( 2955): getSharedPreferences
W/ApplicationContext( 2955): org.xmlpull.v1.XmlPullParserException:
Map value without name attribute: boolean
W/ApplicationContext( 2955):at
com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521)
W/ApplicationContext( 2955):at
com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733)
W/ApplicationContext( 2955):at
com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667)
W/ApplicationContext( 2955):at
com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470)
W/ApplicationContext( 2955):at
android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376)
W/ApplicationContext( 2955):at
android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:
146)
W/ApplicationContext( 2955):at
net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java:
160)
W/ApplicationContext( 2955):at
net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java:
25)
W/ApplicationContext( 2955):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
W/ApplicationContext( 2955):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1611)
W/ApplicationContext( 2955):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
W/ApplicationContext( 2955):at android.app.ActivityThread.access
$1500(ActivityThread.java:117)
W/ApplicationContext( 2955):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:931)
W/ApplicationContext( 2955):at
android.os.Handler.dispatchMessage(Handler.java:99)
W/ApplicationContext( 2955):at android.os.Looper.loop(Looper.java:
123)
W/ApplicationContext( 2955):at
android.app.ActivityThread.main(ActivityThread.java:3683)
W/ApplicationContext( 2955):at
java.lang.reflect.Method.invokeNative(Native Method)
W/ApplicationContext( 2955):at
java.lang.reflect.Method.invoke(Method.java:507)
W/ApplicationContext( 2955):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
W/ApplicationContext( 2955):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
W/ApplicationContext( 2955):at dalvik.system.NativeStart.main(Native
Method)

hoping someone has seen it before as i am a bit stumped 

-- 
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] forcing a view to measure off screen

2010-11-09 Thread siliconeagle
I have a custom view i am writing for my drawing app - but the first
time i set the drawing into it i need to get the dimension for the
view (using getMeasuredWidth()  getMeasuredHeight()). But until the
view display these return 0. I have tried calling:
requestLayout()
invalidate()
numDraw.measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY);

but nothing seems to force the values to update.

I guess the question i am asking is : does anyone have any tips on how
to get view to update its measurements off screen?

best
rob m

-- 
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] drawBitmap differences between 2.1 and 2.2

2010-11-08 Thread siliconeagle
I am working on a drawing program that draws to a bitmap in memory
then i draw the relevant portion to the view canvas depending on pan
and zoom settings

So i have run into a snag where if the src rect is outside to bounds
of the canvas in 2.2 the area outside the bounds is not drawn but in
2.1 it stretched the available area of the bitmap to fit the target.

e.g. for src (-40,-40,10,10) - tgt (0,0,50,50)
in 2.2 there is just the area (0,0,10,10) drawn in the bottom right
corner(40,40,50,50)
but int 2.1 the area is stretched so the area (0,0,10,10) is stretched
to (0,0,50,50)

is there a flag or something to turn off the stretching behaviour and
make it behave like the 2.2 version? or do i just have to do the
checks manually and modify the target are to fit what available in the
src?

im hoping that makes sense to someone ...

rob m

-- 
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] reading ttf fonts

2010-10-21 Thread siliconeagle
I am writing a vector based drawing app and wanted to be able to get
the vectorised (points, triangles, lines, etc) information for fonts -
apparently this is in most ttf files.

does anyone know how to read ttf files or any libraries that do it? Or
is there a way to get the font information from a TypeFace object?

Or does anyone know the standard system libraries that do it?

thanks in advance.

-- 
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: widget with custom bitmaps

2010-10-04 Thread siliconeagle
Well as far as i know the resource id's are created at design time (in
R.java). Is there a way to tell Android to create a new resource id
for my bitmap that is made at runtime? Perhaps this violates the
concept of a resource (can they only be in the res or assets folder of
a app, or can the exist on the SD card or in memory).

rob munro

On Oct 3, 10:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Not sure what you mean, could you clarify?

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 01.10.2010 20:04 пользователь siliconeagle rrmu...@gmail.com написал:

 is it possible to create resource ids programatically?

 On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:

  The issue here is marshalling bitm...
  01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал:

  I am writing a clock widget that uses customised bitmaps (so the
  widget loads the bitmap from ...
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com

 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com

  For more options, visit this group athttp://

 groups.google.com/group/android-developers?hl=en

 --

 You received this message because you are subscribed to the Google
 Groups Android Developers group...

-- 
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] widget with custom bitmaps

2010-10-01 Thread siliconeagle
I am writing a clock widget that uses customised bitmaps (so the
widget loads the bitmap from the sdcard)

Just have a couple of questions regarding how updates work:

1. if i want to display seconds on the clock widget will the widget
load the bitmaps off the disk every second or can they be cached
somehow so it doesn't reload off the disk each time. or If it does
reload a bitmap each second, would this use a lot of power?

2. If i load the customised number bitmaps into a static array and
then pass them as bitmaps to the widget would this use less power than
just loading off the SD card?

best regards,
rob

-- 
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: widget with custom bitmaps

2010-10-01 Thread siliconeagle
is it possible to create resource ids programatically?

On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 The issue here is marshalling bitmap data from your widget process into the
 launcher process. If you load the bitmap in your process, and specify as a
 drawable in RemoteViews, then its actual bytes will need to be marshalled
 into the launcher process. This is not efficient. It's better to specify
 your drawables as a resource id.

 Updating every second is kind of questionable, it will eat through the
 battery pretty fast.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал:

 I am writing a clock widget that uses customised bitmaps (so the
 widget loads the bitmap from the sdcard)

 Just have a couple of questions regarding how updates work:

 1. if i want to display seconds on the clock widget will the widget
 load the bitmaps off the disk every second or can they be cached
 somehow so it doesn't reload off the disk each time. or If it does
 reload a bitmap each second, would this use a lot of power?

 2. If i load the customised number bitmaps into a static array and
 then pass them as bitmaps to the widget would this use less power than
 just loading off the SD card?

 best regards,
 rob

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] intent to launch flash swf files

2010-07-05 Thread siliconeagle
Hi,

I am working on a podcasat player and am looking for a sutable intent
to launch and play a downloaded SWF file. I am on 2.2 and have adobe
flash player installed.

The things i have tried are:
This launces the HTC flash player to select a file:

ComponentName toLaunch = new
ComponentName(com.htc.flash,com.htc.flash.FlashPlayer);
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_MAIN);
intent.setComponent(toLaunch);
act.startActivity(intent);

This should launch the file in the htc flash player - but it doesnt
seem to work. the file never plays (I know the file works)
File localFile = new File(/sdcard/test.swf);
url = Uri.fromFile(localFile).toString();
ComponentName toLaunch = new
ComponentName(com.htc.flash,com.htc.flash.FlashPlayer);
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), flash/*);
intent.putExtra(play, file.path);
intent.setComponent(toLaunch);
act.startActivity(intent);

i put the file on the network server and i get this line in the log
file, the file plays ok in the browser:
action=android.intent.action.SEARCH;launchFlags=0x1000;component=com.android.browser/.BrowserActivity;S.query=192.168.1.2%2Ftst.swf;S.user_query=192.168.1.2%2Ftst.swf;end

So I am wondering if i can just launch the browser to get it to play -
i haven't had any luck yet.
File localFile = new File(/sdcard/test.swf);
url = Uri.fromFile(localFile).toString();
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_SEARCH);
toLaunch = new
ComponentName(com.android.browser,com.android.browser.BrowserActivity);
intent.setData(Uri.parse(url));
intent.setComponent(toLaunch);
act.startActivity(intent);

And i have tried the obvious:
File localFile = new File(/sdcard/test.swf);
url = Uri.fromFile(localFile).toString();
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
act.startActivity(intent);

Has anyone done it before?

-- 
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 run or debug my app on Eclipse

2009-11-17 Thread siliconeagle
this is happening for me as well after upgrading to the API 2.0

!MESSAGE An internal error occurred during: Launching MyPodTest11.
!STACK 0
java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch
(Unknown Source)
at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch
(Unknown Source)
at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch
(Unknown Source)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:614)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
(DebugUIPlugin.java:865)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
(DebugUIPlugin.java:1068)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I have deleted my avds, and created a new one and unplugged my phone
and still the error occurs. So i dont think its device dependent.

Anyone have any ideas?

regards
rob.
http://www.my-pod.org


On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote:
 Hi - I think it's somehow connected to the build.props file of your
 android device since my problems started after I changed this file so
 I will be able to run the droid maps app on my google ion and the
 everything returned to normal after I reflashed the cyanogen 4.2.4
 image (Which probably fixed my build.props).

 Hope I have helped...

 On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote:

  Happens to me as well.
  Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are
  having this problem.



-- 
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 run or debug my app on Eclipse

2009-11-17 Thread siliconeagle
the problem was fixed by changing the usb device config for the phone

http://groups.google.com/group/android-developers/browse_thread/thread/3515cd8721016520/6077e89d066a4bf7?lnk=raot

regards rob

On Nov 17, 4:37 pm, siliconeagle rrmu...@gmail.com wrote:
 this is happening for me as well after upgrading to the API 2.0

 !MESSAGE An internal error occurred during: Launching MyPodTest11.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch
 (Unknown Source)
         at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch
 (Unknown Source)
         at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch
 (Unknown Source)
         at org.eclipse.debug.internal.core.LaunchConfiguration.launch
 (LaunchConfiguration.java:764)
         at org.eclipse.debug.internal.core.LaunchConfiguration.launch
 (LaunchConfiguration.java:614)
         at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
 (DebugUIPlugin.java:865)
         at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
 (DebugUIPlugin.java:1068)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 I have deleted my avds, and created a new one and unplugged my phone
 and still the error occurs. So i dont think its device dependent.

 Anyone have any ideas?

 regards
 rob.http://www.my-pod.org

 On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote:

  Hi - I think it's somehow connected to the build.props file of your
  android device since my problems started after I changed this file so
  I will be able to run the droid maps app on my google ion and the
  everything returned to normal after I reflashed the cyanogen 4.2.4
  image (Which probably fixed my build.props).

  Hope I have helped...

  On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote:

   Happens to me as well.
   Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are
   having this problem.



-- 
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 run or debug my app on Eclipse

2009-11-17 Thread siliconeagle
The problem was fixed by changing the usb device config after a ubuntu
upgrade

http://groups.google.com/group/android-developers/browse_thread/thread/3515cd8721016520/6077e89d066a4bf7?lnk=raot


On Nov 17, 4:37 pm, siliconeagle rrmu...@gmail.com wrote:
 this is happening for me as well after upgrading to the API 2.0

 !MESSAGE An internal error occurred during: Launching MyPodTest11.
 !STACK 0
 java.lang.NullPointerException
         at
 com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch
 (Unknown Source)
         at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch
 (Unknown Source)
         at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch
 (Unknown Source)
         at org.eclipse.debug.internal.core.LaunchConfiguration.launch
 (LaunchConfiguration.java:764)
         at org.eclipse.debug.internal.core.LaunchConfiguration.launch
 (LaunchConfiguration.java:614)
         at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
 (DebugUIPlugin.java:865)
         at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
 (DebugUIPlugin.java:1068)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 I have deleted my avds, and created a new one and unplugged my phone
 and still the error occurs. So i dont think its device dependent.

 Anyone have any ideas?

 regards
 rob.http://www.my-pod.org

 On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote:

  Hi - I think it's somehow connected to the build.props file of your
  android device since my problems started after I changed this file so
  I will be able to run the droid maps app on my google ion and the
  everything returned to normal after I reflashed the cyanogen 4.2.4
  image (Which probably fixed my build.props).

  Hope I have helped...

  On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote:

   Happens to me as well.
   Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are
   having this problem.



-- 
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] ring app crash when using telephony manager to listen for calls

2009-10-27 Thread siliconeagle

I have a media player which i want to mute when the user gets a call.

I was using the TelephonyManager to listen for calls creating the
listener on create and removing it on destroy in my service. like so:
public void onCreate() {
...
 TelephonyManager tm = (TelephonyManager)getSystemService
(Context.TELEPHONY_SERVICE);
 mcsl = new MediaServicePhoneStateListener();
 tm.listen(mcsl, PhoneStateListener.LISTEN_CALL_STATE);
...
}

@Override
public void onDestroy() {
super.onDestroy();
...
TelephonyManager tm = (TelephonyManager)getSystemService
(Context.TELEPHONY_SERVICE);
 tm.listen(mcsl, PhoneStateListener.LISTEN_NONE);
...
}

but when the phone rings i periodically get a crash in the ring app -
looks like when its trying to get the photo:
I/ActivityManager(   79): Low Memory: No more background processes.
W/dalvikvm(17512): threadid=31: thread exiting with uncaught exception
(group=0x4001da28)
E/AndroidRuntime(17512): Uncaught handler: thread ContactsAsyncWorker
exiting due to uncaught exception
W/BinderNative(17512): Uncaught exception from death notification
W/BinderNative(17512): java.lang.NullPointerException
W/BinderNative(17512):  at
android.app.ActivityThread.removeDeadProvider(ActivityThread.java:
4045)
W/BinderNative(17512):  at android.app.ActivityThread
$ProviderRecord.binderDied(ActivityThread.java:1158)
W/BinderNative(17512):  at android.os.BinderProxy.sendDeathNotice
(Binder.java:345)
W/BinderNative(17512):  at dalvik.system.NativeStart.run(Native
Method)
E/AndroidRuntime(17512): java.lang.NullPointerException
E/AndroidRuntime(17512):at android.provider.Contacts
$People.openContactPhotoInputStream(Contacts.java:485)
E/AndroidRuntime(17512):at android.pim.ContactsAsyncHelper
$WorkerHandler.handleMessage(ContactsAsyncHelper.java:186)
E/AndroidRuntime(17512):at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(17512):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(17512):at android.os.HandlerThread.run
(HandlerThread.java:60)
I/Process (   79): Sending signal. PID: 17512 SIG: 3
I/dalvikvm(17512): threadid=7: reacting to signal 3

when i remove the listener the crash doesn't happen, looks like a bug
to me - but does anyone know of a workaround?

regards,
rob
http://www.my-pod.org

--~--~-~--~~~---~--~~
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] Marketplace urls

2009-10-18 Thread siliconeagle

Hi,

Sorry for the rather obvious post(to some)

I've been searching round for 3 hours for how to make a marketplace
url to point to my app and i cant find it !!

my app is mypod

Can anyone point to a link on how the make a link i can use to tell
people where to download my appp?

regards,
rob


--~--~-~--~~~---~--~~
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] LinearLayout update view

2009-09-16 Thread siliconeagle

I have a linearLayout which is focusable, so I can use it with the
trackball, when focused i want to change the background to a different
drawable - but it looks like the view needs refreshing/redrawing
somehow. I know it gets focus as the imageView state changes when i
move the trackball.

anyone know how to trigger the linearLayout(ll) to refresh?

code below:

llv.setFocusable(true);
llv.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
ImageView lh_img=(ImageView)v.findViewById(R.id.lh_img);
LinearLayout ll = (LinearLayout)v;
if (hasFocus) {
ll.setBackgroundResource(R.drawable.bg_listsel);
lh_img.setPressed(true);
} else {
ll.setBackgroundResource(R.drawable.bg_header);
lh_img.setPressed(false);
}
//ll.getParent().recomputeViewAttributes(ll);
// need to trigger the ll view torefresh somehow.
}
});
--~--~-~--~~~---~--~~
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: PVMFFailure when using MediaPlayer for radio streams

2009-09-02 Thread siliconeagle

Also the URl is a http (MP3) stream URL - as opposed tioo other opost
where RTSP is being tried. It looks like it should just work. Has
anyone else got streaming working via a streaming URL?

On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote:
 I am trying to build streaming radio into my app, which works fines
 streaming files over the internet, but when i try to use a shoutcast
 url in get the error below, which from the soruce code looks liek the
 mediaPlayer is looking for the duration in the header. Does anyone
 know if shoutcast urls will work withthe default media player? Or do i
 have to download chunks into a ping-pong buffer sor something? The url
 has no porblems downloading via the browser.

 the error is:-

 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1
 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views
 09-01 11:53:30.445 E/PlayerDriver(   35): Command PLAYER_INIT
 completed with an error or infoPVMFFailure
 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1)
 09-01 11:53:30.504 I/NotificationService(   55): enqueueToast
 pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub
 $pr...@4323b8f8 duration=1000
 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare
 failed.: status=0x1
 09-01 11:53:30.644 W/System.err(16972): at
 android.media.MediaPlayer.prepare(Native Method)
 09-01 11:53:30.644 W/System.err(16972): at
 net.robmunro.mypod.util.MediaPlayerWrapper.playMedia
 (MediaPlayerWrapper.java:111)

 the code i use is:-
 try {
         mPlayer.stop();
         mPlayer.reset();} catch (Exception e) {

         e.printStackTrace();}

 this.source=source;
 if (source.equals(Globals.SOURCE_LOCAL)) {
          mPlayer.setDataSource(f.path);
          buffered = 0;} else if (source.equals(Globals.SOURCE_STREAM)) {

         mPlayer.setDataSource(f.remoteUrl);
          buffered = 100;}

 mPlayer.prepare();
 mPlayer.start();
--~--~-~--~~~---~--~~
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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-02 Thread siliconeagle

I started learning android about 3 months ago - initially i found it
hard as it quite a different but i think i have gotten the swing of it
lately and my app is coiming along - it still isn't finished (and i
just found another bug last night :( - anyone know if i can post
updates?) but it getting there. I am interested in building music/
video apps and controllers with android and am starting a master in
signal processing in Sept where i will specialise on it. Now that i
have gotten used to the API I should be able to work faster though.
The last 3 week have beenquite light on sleep.

My app (MyPOD - http://www.my-pod.org) is an music internet/podcast
manager and player. I started building it for myself as i didnt really
like the other stuff out there. It's all subjective though.

I'm pretty sure there will be more submissions this time, there must
be loads more people into it since the phones are out.

cheers
rm
On Sep 1, 3:41 pm, Lout lout.r...@googlemail.com wrote:
 While you developers relax... would you mind sharing what apps to
 expect through this challenge.. and anything else you wish to share
 about ADC2 submissions... well anything including the fact: 'thank
 God, no more sleep less nights'!

 Am collecting information about the challenge (ADC2) for a news
 article as am with cnet (and AP). Pitch your app if you have already
 published or would soon publish on the market too.

 Your app name and description, web link if any, experience with
 ADC2, ... anything would be useful for our article(s).

 And do you feel that there would have been more submissions than in
 ADC1?
 Is the competition going to be tougher or less profound as you were
 allowed to put up apps not published before 1st Aug only?

 Do you think that all apps that didn't try for ADC1 should have had a
 chance?

 Congratulations on your submissions while you wait for the next
 phase.
 Thanks,
 Lout Reilly
 ps: Moderators we request you to let this through so that you too get
 some feedback.
--~--~-~--~~~---~--~~
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] PVMFFailure when using MediaPlayer for radio streams

2009-09-01 Thread siliconeagle

I am trying to build streaming radio into my app, which works fines
streaming files over the internet, but when i try to use a shoutcast
url in get the error below, which from the soruce code looks liek the
mediaPlayer is looking for the duration in the header. Does anyone
know if shoutcast urls will work withthe default media player? Or do i
have to download chunks into a ping-pong buffer sor something? The url
has no porblems downloading via the browser.

the error is:-

09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1
09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views
09-01 11:53:30.445 E/PlayerDriver(   35): Command PLAYER_INIT
completed with an error or info PVMFFailure
09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1)
09-01 11:53:30.504 I/NotificationService(   55): enqueueToast
pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub
$pr...@4323b8f8 duration=1000
09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare
failed.: status=0x1
09-01 11:53:30.644 W/System.err(16972): at
android.media.MediaPlayer.prepare(Native Method)
09-01 11:53:30.644 W/System.err(16972): at
net.robmunro.mypod.util.MediaPlayerWrapper.playMedia
(MediaPlayerWrapper.java:111)

the code i use is:-
try {
mPlayer.stop();
mPlayer.reset();
} catch (Exception e) {
e.printStackTrace();
}
this.source=source;
if (source.equals(Globals.SOURCE_LOCAL)) {
 mPlayer.setDataSource(f.path);
 buffered = 0;
} else if (source.equals(Globals.SOURCE_STREAM)) {
mPlayer.setDataSource(f.remoteUrl);
 buffered = 100;
}
mPlayer.prepare();
mPlayer.start();


--~--~-~--~~~---~--~~
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: Embedded webview crashes on dialog

2009-08-19 Thread siliconeagle

the stacktrace is :
W/dalvikvm( 1547): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime( 1547): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1547): android.view.WindowManager$BadTokenException:
Unable to add window -- token null is not for an application
E/AndroidRuntime( 1547):at android.view.ViewRoot.setView
(ViewRoot.java:429)
E/AndroidRuntime( 1547):at android.view.WindowManagerImpl.addView
(WindowManagerImpl.java:178)
E/AndroidRuntime( 1547):at android.view.WindowManagerImpl.addView
(WindowManagerImpl.java:91)
E/AndroidRuntime( 1547):at android.app.Dialog.show(Dialog.java:231)
E/AndroidRuntime( 1547):at android.webkit.WebView$InvokeListBox.run
(WebView.java:4934)
E/AndroidRuntime( 1547):at android.os.Handler.handleCallback
(Handler.java:587)
E/AndroidRuntime( 1547):at android.os.Handler.dispatchMessage
(Handler.java:92)
E/AndroidRuntime( 1547):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1547):at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime( 1547):at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime( 1547):at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime( 1547):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1547):at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:540)
E/AndroidRuntime( 1547):at dalvik.system.NativeStart.main(Native
Method)
I/Process (   58): Sending signal. PID: 1547 SIG: 3
I/dalvikvm( 1547): threadid=7: reacting to signal 3
I/dalvikvm( 1547): Wrote stack trace to '/data/anr/traces.txt'


the code is quite basic:
webView = new WebView(getApplicationContext());

is there another context i should use?



On Aug 18, 6:08 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 Could you post your code and the stack trace, please ?
 Balwinder Kaur
 Open Source Development Center
 ·T· · ·Mobile· stick together

 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 18, 3:18 am, siliconeagle rrmu...@gmail.com wrote:

  I have an application that uses the webview to load webpages so user
  can download media off them, but i get a crash when any sort of popup
  tries to show (eg from a select box or save password dialog) - the
  error is that for some reason the webview doesnt provide the new
  dialog with the application context (even though it as passed to the
  webview component when it was created).

  Is there some method to use to supply the application context to
  dialogs launched from the webview?

  regards,
  rob


--~--~-~--~~~---~--~~
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] Embedded webview crashes on dialog

2009-08-18 Thread siliconeagle

I have an application that uses the webview to load webpages so user
can download media off them, but i get a crash when any sort of popup
tries to show (eg from a select box or save password dialog) - the
error is that for some reason the webview doesnt provide the new
dialog with the application context (even though it as passed to the
webview component when it was created).

Is there some method to use to supply the application context to
dialogs launched from the webview?

regards,
rob

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---