[android-developers] Re: Any word on a dev phone for motorola droid?

2009-10-25 Thread Lance Nanek

And what about dev tools, code upgrade from gen1, etc.?

It sure would be nice if we could create Android 2.0 AVDs to test
against in the emulator at least.

I just took a quick look at the Motorola dev site. It had some
impressive options for testing on their other phones: a loaner
program, a way to test on real phones by a remote connection, and an
add on for the Android SDK.

It looked like the first two didn't even allow the CLIQ, though, their
first Android phone. The last wouldn't work with OpenGL when I tried.
Even the basic OpenGL API demos wouldn't work. No sign of anything at
all for DROID or Android 2.0 in general.

On Oct 24, 4:14 pm, sherifffruitfly sherifffruit...@gmail.com wrote:
 And what about dev tools, code upgrade from gen1, etc.?
--~--~-~--~~~---~--~~
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 prevent orientation change on keyboard flip until thread execution completes

2009-10-25 Thread Lance Nanek

There is a way to wait for another thread to finish:
http://developer.android.com/intl/fr/reference/java/lang/Thread.html#join%28%29

If that thread took a while, however, the system might decide your app
isn't responding.

Passing the recreated activity a reference to the thread using this
method might be worth looking into instead:
http://developer.android.com/intl/fr/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29

On Oct 25, 12:41 am, loril...@gmail.com loril...@gmail.com wrote:
 When I flip the keyboard, the layout changes from portrait to
 landscape, activity is recreated but any background thread keeps
 running.

 How can I prevent orientation change/activity from being recreated
 until my background thread finishes.
--~--~-~--~~~---~--~~
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: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-25 Thread JP


I've tested the scenario where a service crosses paths with an app,
i.e. both request location provider updates following different levels
of location provider availability, as requested by zero and non-zero
values of minTime.

The mapping of location provider requests appears such that the
process with the highest level of GPS receiver availability trumps
everything else, for the benefit of the process that operates with
minTime values0. In other words, a foreground app receives and keeps
at a mimimum the location provider settings it requested. Or a
better level yet, if the service keeps the location provider running
(through minTime=0). This aspect looks clean after all, good.


On Oct 24, 10:10 am, JP joachim.pfeif...@gmail.com wrote:
 Intentionally, sure. But this is a *side effect*.

 On Oct 24, 9:41 am, Christine christine.kar...@gmail.com wrote:

  You can choke the foreground app anyway, if you want to. But you don't
  - I guess.
--~--~-~--~~~---~--~~
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] App Icon and Label bugs with new HTC Hero phones

2009-10-25 Thread Robert Green

I originally titled this with the word quirkiness instead of bugs
but after reading the android reference docs, I believe it's a bug.

I'm having problems with the app icons and labels for the Light Racer
series of games I've released on Hero.  The games seem to run fine but
for whatever reason, they are having problems displaying more than the
package name on the home screen on Hero phones.  The app manager shows
the right name and icon but not the home screen.  It also on some
phones shows a random image as the icon, not even the app icon!

I used a copy of a manifest that I used originally for Light Racer 1.0
from when the Android SDK v1.0 was originally released.  For whatever
reason, I put the words Light Racer directly in to the manifest for
the android:label.  I also don't specify that same label for the
launch activity.

I've since changed the label to the default @string/app_name but
people are still reporting problems.  I thought that maybe not setting
the label on the launch activity was causing the problem but then I
read this:


http://developer.android.com/guide/topics/manifest/activity-element.html

android:label
A user-readable label for the activity. The label is displayed on-
screen when the activity must be represented to the user. It's often
displayed along with the activity icon.

If this attribute is not set, the label set for the application as
a whole is used instead (see the application element's label
attribute).

The activity's label — whether set here or by the application
element — is also the default label for all the activity's intent
filters (see the intent-filter element's label attribute).

The label should be set as a reference to a string resource, so
that it can be localized like other strings in the user interface.
However, as a convenience while you're developing the application, it
can also be set as a raw string.
--

See, it says right there that it's optional and can even be a raw
string.  That leads me to believe there's a bug with the app name
processing on the Hero.  I'm going to update my app to try to fix this
and recommend that you test yours on hero and fix it as well if you
see the issue.

Can others report on this please?  I'd like confirm my suspicion that
the Hero needs a resource string for both the application and launch
activity to work correctly.

I don't have a Hero so I'm relying on the feedback of others to solve
this issue.

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: App Icon and Label bugs with new HTC Hero phones

2009-10-25 Thread Robert Green

Ok so there appears to be different behavior between the home screen
and the app tray.  I've got screenshots to take a look at - other apps
are certainly affected.  In the following screenshots, you'll see that
from before the reboot, there is the correct icon over Light Racer 3D,
but after reboot, it turns into a random icon from the app, which is
the pause symbol.

Take a look at Astro on these screen shots on the home screen.  It
starts off normal as well but then after the reboot, turns into a
folder icon.
Before Reboot - http://tinyurl.com/ygp4ddg
After Reboot - http://tinyurl.com/ykpahuh
The third screenshot is the app tray, where the app in the lower right-
hand corner now says the package name instead of the correct
application label and the image is a random one and not the correct
app icon.  You would have no idea that that app is Light Racer 3D.
http://tinyurl.com/yh4vg5e
The last screenshot is the affected version of Hero, which appears to
be 1.5.  I'd like if someone could confirm this bug in Donut as well.
http://tinyurl.com/yz674os

All of this stuff that I'm showing you works 100% correctly on the
Dream, Magic and all emulator versions.



On Oct 25, 2:16 am, Robert Green rbgrn@gmail.com wrote:
 I originally titled this with the word quirkiness instead of bugs
 but after reading the android reference docs, I believe it's a bug.

 I'm having problems with the app icons and labels for the Light Racer
 series of games I've released on Hero.  The games seem to run fine but
 for whatever reason, they are having problems displaying more than the
 package name on the home screen on Hero phones.  The app manager shows
 the right name and icon but not the home screen.  It also on some
 phones shows a random image as the icon, not even the app icon!

 I used a copy of a manifest that I used originally for Light Racer 1.0
 from when the Android SDK v1.0 was originally released.  For whatever
 reason, I put the words Light Racer directly in to the manifest for
 the android:label.  I also don't specify that same label for the
 launch activity.

 I've since changed the label to the default @string/app_name but
 people are still reporting problems.  I thought that maybe not setting
 the label on the launch activity was causing the problem but then I
 read this:

 http://developer.android.com/guide/topics/manifest/activity-element.html

 android:label
     A user-readable label for the activity. The label is displayed on-
 screen when the activity must be represented to the user. It's often
 displayed along with the activity icon.

     If this attribute is not set, the label set for the application as
 a whole is used instead (see the application element's label
 attribute).

     The activity's label — whether set here or by the application
 element — is also the default label for all the activity's intent
 filters (see the intent-filter element's label attribute).

     The label should be set as a reference to a string resource, so
 that it can be localized like other strings in the user interface.
 However, as a convenience while you're developing the application, it
 can also be set as a raw string.
 --

 See, it says right there that it's optional and can even be a raw
 string.  That leads me to believe there's a bug with the app name
 processing on the Hero.  I'm going to update my app to try to fix this
 and recommend that you test yours on hero and fix it as well if you
 see the issue.

 Can others report on this please?  I'd like confirm my suspicion that
 the Hero needs a resource string for both the application and launch
 activity to work correctly.

 I don't have a Hero so I'm relying on the feedback of others to solve
 this issue.

 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: White screen in my OpenGL application

2009-10-25 Thread Robert Green

Steff,

If you want to ensure device compatibility going forward, I'd
recommend using the new GLSurfaceView class which was introduced in
Android 1.5.  It cleared up issues for me and I have to imagine that
sticking to it will bring you the best results with new devices.

Do you need that pixel format so that you can draw translucently onto
an existing background or is it for some other purpose?

On Oct 24, 10:07 am, Steff st...@designware.dk wrote:
 I have tried to install the application on my HTC magic with
 mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBA_);. I
 works perfectly. When I comment out the line the graphics looks very
 strange on my HTC magic, but that is where it looks fine in the
 emulator. If the emulator cannot be trusted to work as real devices,
 then it is not worth much?!
--~--~-~--~~~---~--~~
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: Insufficient log / Scala deployment fails

2009-10-25 Thread Marco

Tried it again today according to http://www.novoda.com/blog/?p=154
and this time it works :-)

On 30 Sep., 21:49, fadden fad...@android.com wrote:
 On Sep 30, 12:16 am, Marco marco@googlemail.com wrote:

  In logcat I get only this:
  W/installd(  543): DexInv: --- END '/data/app/vmdl24436.tmp' --- 
  status=0x000b, process failed
  E/installd(  543): dexopt failed on 
  '/data/dalvik-cache/d...@a...@vmdl24436@classes.dex' res = 11
  W/PackageManager(  568): Package couldn't be installed in 
  /data/app/hello.world.apk

 That seems to indicate that dexopt failed with a segmentation fault.

 Ideally you'd have a stack trace from debuggerd earlier in the log.

 Please file a bug report on b.android.com, with the problematic APK
 file attached.  Be sure to indicate what version of the system you're
 running on the device.
--~--~-~--~~~---~--~~
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: UI framework changes in Android 1.6

2009-10-25 Thread gulshan karmani
Is this a spam ?



On 10/24/09, UI framewor sterling.ud...@googlemail.com wrote:

  *Android 1.6 introduces numerous enhancements and bug fixes in the UI
 framework. Today, I'd like to highlight three improvements in particular.
 *
 *HERE http://bit.ly/2dWFN5*

 



--~--~-~--~~~---~--~~
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: UI framework changes in Android 1.6

2009-10-25 Thread Trevor Johns

On Oct 23, 8:44 pm, gulshan karmani gulshan.karm...@gmail.com wrote:
 Is this a spam ?

Yup.

I've nuked the discussions on the web interface. Going forward, we
have moderation on for this group now, which should help cut back on
the amount of spam.

--
Trevor Johns
--~--~-~--~~~---~--~~
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] [Help] - Play video in Android Media Player from given URL

2009-10-25 Thread skcratch

Hi there!

Can anyone please tell me if Android Media Player is able to play a
video that is placed in a remote server, in a supported format?

Thanks in advance,
Best 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: Have View and ListView Scroll as one

2009-10-25 Thread droid_does

Well the context was your cwac-merge code, I figured you'd recognize
it.  The code that isn't commented is mine, I just added it to your
code (with an XML button) and it crashed.  You did manage to answer my
question anyway.

I wasn't inflating the XML before adding it to the adapter.

Thanks for your help.

On Oct 23, 6:55 am, Mark Murphy mmur...@commonsware.com wrote:
 droid_does wrote:
  It's surprising that the easiest way to accomplish this effect is
  creating your own custom adapter.  It does what I want in concept but
  is there any way to add complex layouts
  (LinearLayoutwidgetsRelativeLayoutwidgets/RelativeLayout/
  LinearLayout or predefined XML views?

 Yes.

  For example using your demo:

     private View buildButton() {

                  //your demo code
                  //Button result=new Button(this);
             //result.setText(Hello, world!);

                  //this just crashes, why?
                  Button result = (Button)findViewById(R.id.mybutton);
                  return result;

     }

 That snippet in isolation means nothing. For starters, my code has
 nothing named mybutton in it (IIRC), so I would not expect that to work.

 Any child adapters you add to MergeAdapter can be custom adapters using
 custom rows, and the views you add to MergeAdapter can be views you
 manually inflate from XML via getLayoutInflater().inflate().

  Also, would your approach work for a ListActivity?

 Yes.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Training in Germany, 18-22 January 2010:http://bignerdranch.com

--~--~-~--~~~---~--~~
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] Interrupting the app uninstaller

2009-10-25 Thread QuantumRand

Hello,

I'm trying to create an app that will inject any time an app is
uninstalled. Is there a standard uninstaller function that is called
regardless of the method used (like via the Marketplace, settings
manager, or a third party app)? And is it possible to kill this
function before it starts?

Ideally, I'd like to create a listener that listens for the
uninstaller function and then injects a standard confirm/cancel
dialogue. Any thoughts on how to go about this?

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 can i bring an activity to foreground from background manually?

2009-10-25 Thread Amardeep Jaiman
I think you can make a service  which will be running in background all the
time and it can force your activity to come in background whenevr required
without using notification.



UNTOUCHABILITY IS SIN SO KEEP IN TOUCH


On Wed, Oct 21, 2009 at 12:46 AM, pink 444 pnk...@gmail.com wrote:



 First of all thanks for your wonderful cooperation.

 On android mobile if at all we get an incoming call while
 interacting with another application, incoming call indication is
 being displayed on the screen with an activity instead of notifying
 user with notification.

 I think it is against to android development rules.But we can't
 notify user with notification in this particular situation.




 On Oct 20, 4:28 pm, Bartosz Lambach bartosz.lamb...@gmail.com wrote:
  Please, read this article before you do that:
 http://developer.android.com/guide/practices/design/seamlessness.html
 
  Regards,
  Bartosz
 
  On Tue, Oct 20, 2009 at 1:17 PM, pink 444 pnk...@gmail.com wrote:
 
  Thanks for your replay.
 
  But the thing here is if at all we click on the notification only
   intent will bring the Activity up.
 
  I want to bring the activity to foreground without clicking any
   thing.For that what can i do.
 
  Can i bring the activity to foreground using notifications without
   clicking any button or do i need to use any other concept?
 
   On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote:
   Hi Shiva,
 
   try this, may help...
 
   whichever activity, that you want to put in the foreground, use an
   Intent, by setting this flag...
 
   intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
 
   Thanks
   Nithin
 
   On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote:
 
   What i want to implement is i have a service which will wait on a
socket for network events.
On some network events service has to notify the application
 activity
to update GUI elements.
 
   If at all my activity is not running how can i update GUI.At any
 i
have to update GUI as soon as  network events occurred.
 
On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com
 wrote:
 
 I have had a quick look and can't see anyway to do what you want
 (there might be a way I just can't find it).
 
 One of the reasons if I read about (on other platforms) for NOT
 implementing bring my app to the front and make it active right
 now
 is that it soon degenerates into application wars, with multiple
 application each trying to be the top-most application. In this
 situation no one wins and the end-user typically uninstalls both
 apps.
 
 Another way to think about this is - should the end-user be
 interrupted right now?  What if they are doing something more
 importent than your application such as trying to phone the
 emergency
 services.
 
 --
 RichardC
 
 On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote:
 
  After studying some articles regarding notifications .I have
  understood something that after clicking on the notification
 only
  specified activities are activated or brought into foreground.
 
  But in my application i have to bring an activity as soon as
 a
  background event occurred.
 
  How can i implement that scenario using Notifications ?
 
  Thanks,
  -Siva.
 
  On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote:
 
Thanks for your replay.
 
Can u give me a working example for letting an
 activity to
   foreground using notifications.
 
   On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com
 wrote:
 
Notificationhttp://
 developer.android.com/reference/android/app/Notification.html
 
--
RichardC
 
On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote:
 
 Hai,
 
In my application i wait on socket for network
 events.On some
 events i have to bring activity into foreground(make
 activity as
 running) if at all it is not in the foreground.
 
   How can i do this?
 
  Any suggestions would be appreciated highly.
 
 Thanks,
  -Siva
 


--~--~-~--~~~---~--~~
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: Android Market Question

2009-10-25 Thread Thomas

Thank you for clarifying the process.  I went back at 6:15AM and
everything uploaded immediately and showed up on Android Market under
newapps tools just as fast. Now the serious development begins. I'm
literally going out into the field.
Thanks for such a nice reply.
Regards, Tom Birchmire

On Oct 24, 10:51 pm, Mark Murphy mmur...@commonsware.com wrote:
 Thomas wrote:
  I compiled my apk and uploaded it to android market I think?  There
  was not any indication of success or failure.  How can anyone check if
  the app has uploaded or not?

 Your app should show up in the Android Market on your phone minutes
 after uploading. When I published an app earlier this year, it showed up
 almost instantly.

 Also, in your desktop's Web browser, on your Android Market Developer
 Console page (http://market.android.com/publish/Home), in the section
 labeled All Android Market listings, you should see your app listed as
 published.

  How else can an app be uploaded so that some one might be able
  to find it.

 You can distribute via AndAppStore, or SlideME, or Handango, or any
 number of other independent markets, or upload it to your own Web site,
 or upload it to any other Web site. In the latter two cases, make sure
 the .apk file gets served as the appropriate MIME type
 (application/vnd.android.package-archive), so the Android Web browser
 can be used to install the app after downloading.

 You can also distribute your APK by email, micro SD card, or other
 means, for the user to put on their SD card, then install via any one of
 a number of file managers available on the Market.

 You can also create a QR code to display on your Web site that users
 with Barcode Scanner or similar software can scan to kick off a download
 and install, either via a Market URL (I think) or via a download off of
 a Web site.

  Why is this so hard?

 Over 10,000 apps are in the Market, by some published accounts. That
 would suggest that the process is not particularly hard.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android 1.6 Programming Books:http://commonsware.com/books
--~--~-~--~~~---~--~~
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] Showing application version

2009-10-25 Thread matteoli

I would like to show the current version of my application. Is it
possible to extract the values android:versionCode and
android:versionName from the Manifest with any Java 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] Handler behaving strangely after orientation change

2009-10-25 Thread fhucho

Hi,
in my app I have a simple clock, the clock is updating every second. I
update the clock using a handler -  to start ticking I call:

handler.postAtTime(clockTask, currentTime + 1000);

So after 1000 milliseconds clockTask is run. In clockTask I update the
clock and call
handler.postAtTime(clockTask, currentTime + 1000);  again.

When my activity is restarted after orientation change and the clock
was ticking, I start the clock in onCreate().
But unfortunately the clock (which is a TextView) doesn't update!
clockTask is run correctly every second, it tries to update the clock
with correct time, but textViewClock.setText(time) doesn't have any
effect. Just before textViewClock.setText(timeString) I print the
timeString variable to logcat, and it is working ok. Now if I change
screen orientation again, the clock still isn't updating but clockTask
seems to be run twice every second (the previous clockTask is still
running). If I now finish the activity the clockTask is still running
twice every second.
What can be behind 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: Interrupting the app uninstaller

2009-10-25 Thread Dianne Hackborn
Absolutely no way with the SDK.  And the two paths for uninstalling (via
Market or by invoking the uninstall UI) already have their own form of
confirmation.

On Sat, Oct 24, 2009 at 3:22 PM, QuantumRand isthisr...@gmail.com wrote:


 Hello,

 I'm trying to create an app that will inject any time an app is
 uninstalled. Is there a standard uninstaller function that is called
 regardless of the method used (like via the Marketplace, settings
 manager, or a third party app)? And is it possible to kill this
 function before it starts?

 Ideally, I'd like to create a listener that listens for the
 uninstaller function and then injects a standard confirm/cancel
 dialogue. Any thoughts on how to go about this?

 Thanks.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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 donwload a free app from android market?

2009-10-25 Thread Auguste Lunang
HI,
I want to try some free apps from the android market, how can i download it
to run it on my emulator ?

Thx

--~--~-~--~~~---~--~~
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] Context.bindService() returns true even when Service.onBind() returns null?

2009-10-25 Thread Miguel Paraz

Hi,
I had a bug in my code where Service.onBind() returned null, in a
local Service. But, Context.bindService() returned true, though the
ServiceConnection was not called back.

Isn't this inconsistent with the docs? In onBind():
Return the communication channel to the service. May return null if
clients can not bind to the service.

In bindService():
If you have successfully bound to the service, true is returned; false
is returned if the connection is not made so you will not receive the
service object.

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: Slow time zone name loading

2009-10-25 Thread Wouter

Ok I am working on the emulator now and it goes fast (so users with
1.5 has to wait longer).
But now I have this screen:

http://snapplr.com/2p50

How can I enable links in this text? So links in the tweet (username
or website link). And also there is a problem with showing quotes (it
doesnt show   but qoutes) and -- (it shows --gt).
How can I do this? Do you have an example for that?

Thank you,

Wouter

On 24 okt, 16:24, Wouter wouterg...@gmail.com wrote:
 Here is a new log file:

 10-24 17:21:58.300: INFO/Resources(14467): Loaded time zone names for
 en_US in 2167ms.
 10-24 17:21:58.310: INFO/System.out(14467): MNM Redactie:Een nieuwe #1
 in de MNM50! RT @jaspererkens: op 1 in de MNM50! // Om preciezer te
 zijn: 3. Ke$ha 2. David Guetta
 10-24 17:22:00.260: INFO/Resources(14467): Loaded time zone names for
 en_US in 1932ms.
 10-24 17:22:00.260: INFO/System.out(14467): MNM Redactie:Fanny is
 vroeg wakker, en haar honden ook...http://www.mnm.be/artikel/159592
 10-24 17:22:02.030: INFO/Resources(14467): Loaded time zone names for
 en_US in 1758ms.
 10-24 17:22:02.040: INFO/System.out(14467): appletips.nl:Nieuwe post:
 10.6 Het “iPhone” label in OS X Adresboekhttp://bit.ly/4sjL0
 10-24 17:22:03.930: INFO/Resources(14467): Loaded time zone names for
 en_US in 1866ms.
 10-24 17:22:03.930: INFO/System.out(14467): appletips.nl:Nieuwe post:
 “Half-star rating” activeren in iTuneshttp://bit.ly/1Py6g7

 So for every post it loads the time zones.

 Same with JTwitter or Twitter4j

 Really hate this.. Don't know what I am doing wrong..

 On 24 okt, 17:14, Mark Murphy mmur...@commonsware.com wrote:

  Wouter wrote:
   I had used this first, but had this issue and I tried another API. But
   with the same result. Don't you have this problem with 1.5?

  I have had no complaints related to this, if that's what you mean. I
  have run into the time zone load issue before, but if it's affecting
  JTwitter, I had not noticed, and nobody commented.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  _Android Programming Tutorials_ Version 1.0 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: ListView with Streaming Content

2009-10-25 Thread Miguel Paraz

On Oct 21, 10:02 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 No need to call 'invalidate()' on your list-view.
 Call 'notifyDatasetChanged()' on your customer adapter instead,
 whenever you add or delete elements in your ArrayList or change the
 contents of existing elements in your ArrayList.

Hi,
I'm now trying this again, based on the SDK Notepadv3 example. This
uses a SimpleCursorAdapter.

I have a background Service that updates the database then calls a
callback in the main activity:

public void serviceUpdate() {
handler.post(new Runnable() {
public void run() {
// Break encapsulation to get at the 
SimpleCursorAdapter.
final SimpleCursorAdapter simpleCursorAdapter =
(SimpleCursorAdapter) getListView().getAdapter();
simpleCursorAdapter.notifyDataSetChanged();
getListView().setSelection(0);
}
});
}

It doesn't redraw the ListView though. It is only redrawn when another
Activity launches which covers it, and gets closed.

I'm now looking for the proper way to do it.
--~--~-~--~~~---~--~~
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: Service stops?

2009-10-25 Thread Jason B.

I agree.  If you are starting the service by binding to it with the
activity, once the activity goes away the bind will go away and the
OS will think there is no reason to keep the service up.

If the service was started using a pending intent from the activity,
the service then is started by the underlying OS and should be allowed
to continue while it is downloading.  Using stopSelf() at that point
is the right way to finish things up.

Handlers are good for doing shortterm things in the future, but they
are still locally instantiated classes, so if the parent class, I.e.
an activity or service, dies or is GC'd, the handler goes away as
well, and any posted tasks that are waiting inside that handler will
not be executed.  To ensure a task is executed regardless,
AlarmManager is the way to go as Mark mentioned.  AlarmManager is not
locally instantiated, but instead is an OS service that is always
alive.


On Oct 24, 6:34 pm, Dianne Hackborn hack...@android.com wrote:
 For that kind of thing there should be no need to use bindService at all --
 just call startService() for each of the things to download, and have the
 service use stopSelf(id) so that it is stopped once the last one is done.
  And there is no reason to delay stopping the service -- starting a service
 is quite cheap.

 On Sat, Oct 24, 2009 at 2:08 PM, Christine christine.kar...@gmail.comwrote:


--~--~-~--~~~---~--~~
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: launch a webpage, then read results

2009-10-25 Thread Marton

anyone on this?

On Oct 23, 11:29 pm, Marton mar...@mybusinessanywhere.com wrote:
 Hello,

 I want to launch a webpage, then after user has completed some steps I
 want to read the results.

 Any help would be appreciated?

 Regards,Marton
--~--~-~--~~~---~--~~
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: Out of surface memory in WVGA

2009-10-25 Thread a1

I dig a bit more to find reason of this behavior and in case someone
will have similar problem I'd  like to summarize my findings:

This is original allocator dump:

 D/Blockx.GameController(900): Surface created
 E/SurfaceFlinger(577): not enough memory for layer bitmap size=1642496 
 (w=480, h=854, stride=480, format=1)
 D/MemoryDealer(577):   LayerBitmap (0x2e9350, size=8388608)
 D/MemoryDealer(577): 0: 002e9388 | 0x | 0x0003E000 | F
 D/MemoryDealer(577): 1: 00373ab0 | 0x0003E000 | 0x00191000 | A
 D/MemoryDealer(577): 2: 00373b78 | 0x001CF000 | 0x00191000 | A
 D/MemoryDealer(577): 3: 0028bd40 | 0x0036 | 0x0003E000 | F
 D/MemoryDealer(577): 4: 002ce748 | 0x0039E000 | 0x00059000 | A
 D/MemoryDealer(577): 5: 002ce7c0 | 0x003F7000 | 0x00059000 | A
 D/MemoryDealer(577): 6: 00374bb0 | 0x0045 | 0x00191000 | A
 D/MemoryDealer(577): 7: 00375ec8 | 0x005E1000 | 0x00059000 | A
 D/MemoryDealer(577): 8: 00377c30 | 0x0063A000 | 0x00059000 | A
 D/MemoryDealer(577): 9: 00377d50 | 0x00693000 | 0x0016D000 | F
 D/MemoryDealer(577):   size allocated: 6385664 (6236 KB)

Surface views allocates two buffers (layers), if we run in
compatibility mode (upscalling) each surface view allocates 4 buffers
(two for physical window and two for emulated one), so block 1, 2 and
4, 5 are buffers allocated by first surface view, surprisingly
physical buffers are not affected by setPixelFormat and on emulator
allocates RGBA32 pixels (854 * 480 * 4 = 0x191000). Blocks 4 and 5 are
logical buffers in RGB565 format (320 * 569  * 2 = 58E80 aligned
59000).

8MB hardlimit comes from VRamHeap.cpp (video memory heap manager) and
from SurfaceFlinger (odd that this is defined in two different
places):

VRamHeap.cpp:
  53 /*
  54  * Amount of memory we reserve for surface, per client in PMEM
  55  * (PMEM is used for 2D acceleration)
  56  * 8 MB of address space per client should be enough.
  57  */
  58 static const int PMEM_SIZE = int(8 * 1024 * 1024);

SurfaceFlinger.cpp:
 370 // create the surface Heap manager, which manages the heaps
 371 // (be it in RAM or VRAM) where surfaces are allocated
 372 // We give 8 MB per client.
 373 mSurfaceHeapManager = new SurfaceHeapManager(this, 8  20);

First limit is applied to PMEM allocator second to standard software
allocator (which I suspect is used on emulator):

 119 if (dealer == NULL) {
 120 // always try h/w accelerated memory first
 121 if (global_pmem_heap) {
 122 const spPMemHeap heap(mPMemHeap);
 123 if (dealer == NULL  heap != NULL) {
 124 dealer = new MemoryDealer(
 125 heap-createClientHeap(),
 126 heap-getAllocator());
 127 }
 128 }
 129 }
 130
 131 if (dealer == NULL) {
 132 // return the ashmem allocator (software rendering)
 133 dealer = new MemoryDealer(mClientHeapSize, 0,
SFNativeHeap);
 134 }

mPMemHeap is created with PMEM_SIZE limit and mClientHeapSize is
passed as argument to SurfaceHeapManager constructor.

On real device surfaces with GPU memory type should be allocated from
different pool (namly GPU allocators), so answer to my original
question is probably no, on real devices this limit will be different
since surfaces are allocated from different heaps.

--
Bart (arcone1) Janusz
--~--~-~--~~~---~--~~
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] Database Creation in android

2009-10-25 Thread Maxood

I want to know for some reason why my database is not being created. I
cannot see my database in the relevant folder after running the
project.

I have the following  code:

import android.content.ContentValues;
import android.content.Context;

import android.database.Cursor;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import android.util.Log;

public class DBAdapter{

 public static final String KEY_ROWID = _id;
public static final String KEY_ISBN = isbn;
public static final String KEY_TITLE = title;
public static final String KEY_PUBLISHER = publisher;
private static final String TAG = DBAdapter;

private static final String DATABASE_NAME = books;
private static final String DATABASE_TABLE = titles;
private static final int DATABASE_VERSION = 1;

private static final String DATABASE_CREATE =
create table titles (_id integer primary key autoincrement,

+ isbn text not null, title text not null, 
+ publisher text not null);;

private final Context context;

private DatabaseHelper DBHelper;
private SQLiteDatabase db;

public DBAdapter(Context ctx)
{
this.context = ctx;
DBHelper = new DatabaseHelper(context);
}

private static class DatabaseHelper extends SQLiteOpenHelper
{
DatabaseHelper(Context context)
{
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

@Override
public void onCreate(SQLiteDatabase db)
{
db.execSQL(DATABASE_CREATE);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion,
int newVersion)
{
Log.w(TAG, Upgrading database from version  +
oldVersion
+  to 
+ newVersion + , which will destroy all old
data);
db.execSQL(DROP TABLE IF EXISTS titles);
onCreate(db);
}
}

//---opens the database---
public DBAdapter open() throws SQLiteException
{
db = DBHelper.getWritableDatabase();
return this;
}

//---closes the database---
public void close()
{
DBHelper.close();
}

//---insert a title into the database---
public long insertTitle(String isbn, String title, String
publisher)
{
ContentValues initialValues = new ContentValues();
initialValues.put(KEY_ISBN, isbn);
initialValues.put(KEY_TITLE, title);
initialValues.put(KEY_PUBLISHER, publisher);
return db.insert(DATABASE_TABLE, null, initialValues);
}

//---deletes a particular title---
public boolean deleteTitle(long rowId)
{
return db.delete(DATABASE_TABLE, KEY_ROWID +
= + rowId, null)  0;
}

//---retrieves all the titles---
public Cursor getAllTitles()
{
return db.query(DATABASE_TABLE, new String[] {
KEY_ROWID,
KEY_ISBN,
KEY_TITLE,
KEY_PUBLISHER},
null,
null,
null,
null,
null);
}

//---retrieves a particular title---
public Cursor getTitle(long rowId) throws SQLiteException
{
Cursor mCursor =
db.query(true, DATABASE_TABLE, new String[] {
KEY_ROWID,
KEY_ISBN,
KEY_TITLE,
KEY_PUBLISHER
},
KEY_ROWID + = + rowId,
null,
null,
null,
null,
null);
if (mCursor != null) {
mCursor.moveToFirst();
}
return mCursor;
}

//---updates a title---
public boolean updateTitle(long rowId, String isbn,
String title, String publisher)

[android-developers] Re: ListView with Streaming Content

2009-10-25 Thread Mark Murphy

 I'm now trying this again, based on the SDK Notepadv3 example. This
 uses a SimpleCursorAdapter.

 I have a background Service that updates the database then calls a
 callback in the main activity:

   public void serviceUpdate() {
   handler.post(new Runnable() {
   public void run() {
   // Break encapsulation to get at the 
 SimpleCursorAdapter.
   final SimpleCursorAdapter simpleCursorAdapter =
 (SimpleCursorAdapter) getListView().getAdapter();
   simpleCursorAdapter.notifyDataSetChanged();
   getListView().setSelection(0);
   }
   });
   }

 It doesn't redraw the ListView though. It is only redrawn when another
 Activity launches which covers it, and gets closed.

 I'm now looking for the proper way to do it.

Replace the current contents of your Runnable with a call to requery() on
the underlying Cursor. That will trigger an update of the
SimpleCursorAdapter and the corresponding ListView.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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: Handler behaving strangely after orientation change

2009-10-25 Thread Marco Nelissen

Your activity and all its views get recreated during the orientation
switch. Your handler is still trying to modify the old activity and
view. It also sounds like you're creating a new handler without
stopping the old one first, hence you end up with two of them running,
and therefore you get twice as many updates.


On Sun, Oct 25, 2009 at 5:10 AM, fhucho fhu...@gmail.com wrote:

 Hi,
 in my app I have a simple clock, the clock is updating every second. I
 update the clock using a handler -  to start ticking I call:

 handler.postAtTime(clockTask, currentTime + 1000);

 So after 1000 milliseconds clockTask is run. In clockTask I update the
 clock and call
 handler.postAtTime(clockTask, currentTime + 1000);  again.

 When my activity is restarted after orientation change and the clock
 was ticking, I start the clock in onCreate().
 But unfortunately the clock (which is a TextView) doesn't update!
 clockTask is run correctly every second, it tries to update the clock
 with correct time, but textViewClock.setText(time) doesn't have any
 effect. Just before textViewClock.setText(timeString) I print the
 timeString variable to logcat, and it is working ok. Now if I change
 screen orientation again, the clock still isn't updating but clockTask
 seems to be run twice every second (the previous clockTask is still
 running). If I now finish the activity the clockTask is still running
 twice every second.
 What can be behind 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: How to donwload a free app from android market?

2009-10-25 Thread Mark Murphy

 I want to try some free apps from the android market, how can i download
 it
 to run it on my emulator ?

Ask the authors of those apps if there is a way to obtain them outside of
the Android Market (e.g., AndAppStore, SlideME, download from their Web
site).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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 donwload a free app from android market?

2009-10-25 Thread String

On Oct 25, 1:30 pm, Auguste Lunang legraphi...@gmail.com wrote:

 I want to try some free apps from the android market, how can i download it
 to run it on my emulator ?

If you have a phone with Market, install App Manager; it'll let you
back up unlocked apps to SD card. You can then install the APKs from
that SD card (mounted to your host computer) to the emulator.

String
--~--~-~--~~~---~--~~
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: Slow time zone name loading

2009-10-25 Thread Mark Murphy

I am not sure what this post has to do with time zones...

 But now I have this screen:

 http://snapplr.com/2p50

 How can I enable links in this text? So links in the tweet (username
 or website link).

The app you are writing is a clone of the Patchy sample app I published as
part of _Android Programming Tutorials_. You can download the source for
that from:

http://commonsware.com/AndTutorials

You'll want to set up android:autoLink on the TextView containing the links.

 And also there is a problem with showing quotes (it
 doesnt show   but qoutes) and -- (it shows --gt).
 How can I do this? Do you have an example for that?

That should be handled for you by your Twitter library, I would hope.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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: [Help] - Play video in Android Media Player from given URL

2009-10-25 Thread Marco Nelissen

On Sat, Oct 24, 2009 at 12:25 PM, skcratch skcra...@gmail.com wrote:

 Hi there!

 Can anyone please tell me if Android Media Player is able to play a
 video that is placed in a remote server, in a supported format?

If by Android Media Player you mean the MediaPlayer class, then
obviously, yes.

--~--~-~--~~~---~--~~
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: ListView with Streaming Content

2009-10-25 Thread Miguel Paraz

Hi,

On Oct 25, 10:59 pm, Mark Murphy mmur...@commonsware.com wrote:

 Replace the current contents of your Runnable with a call to requery() on
 the underlying Cursor. That will trigger an update of the
 SimpleCursorAdapter and the corresponding ListView.

Thanks! Yes, it pushed the new results to the UI layer even if the
requery() was done on the Cursor and not a UI class. Not obvious.
--~--~-~--~~~---~--~~
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: Numeric-only soft keyboard

2009-10-25 Thread Armond Avanes

So anyone any experience with numeric keyboard?

Regards,
Armond

 -Original Message-
 Sent: Tuesday, October 20, 2009 12:08 PM
 
 
 Hi Guys,
 
 How can I set numeric-only soft keyboard option for a text field? When I
 set the input-type to number it brings a soft keyboard which is actually
 a alpha-numeric one but already switched to numeric mode. What I want is a
 pure numeric soft keyboard with big numbers (no alphabets at all). I've
 already seen this in other applications and but don't know how to do it.
 
 I will appreciate any help or hint...
 
 Armond
 
 
 

--~--~-~--~~~---~--~~
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] modify the drawable of an ImageView

2009-10-25 Thread Auguste Lunang
HI
I have a gridView generated using BaseAdaptor. (and implementing methods
getView() , getCount() ,...)
My problem is that i want to specify a drwable image for each ImageView
created using BaseAdaptor.

i tried this line :


myBaseAdapterInstance.getView(i, null,
gridview).setImageDrawable(R.drawable.myimage);
where i is the position of the ImageView that i want.

But myImage isnt displayed on the gridView.

how can i fix it ?


Thx

--~--~-~--~~~---~--~~
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: White screen in my OpenGL application

2009-10-25 Thread Steff

 Do you need that pixel format so that you can draw translucently onto
 an existing background or is it for some other purpose?

The pixelformat is exactly for drawing translucently onto and existing
background.

Regards, Steff

--~--~-~--~~~---~--~~
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] simulating various sim cards in the emulator

2009-10-25 Thread Dan Raaka

Is there any way to simulate the following to various different
values

[gsm.sim.operator.numeric]: []
[gsm.sim.operator.alpha]: []
[gsm.sim.operator.iso-country]: []
[gsm.sim.state]: []
[gsm.operator.alpha]: []
[gsm.operator.numeric]: []
[gsm.operator.iso-country]: []
[gsm.operator.isroaming]: []


couple of these could be changed by using
gsm voice state

I am looking for way to change gsm.sim related things.

-Dan
--~--~-~--~~~---~--~~
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: synchronized SurfaceHolder hanging on my market app

2009-10-25 Thread Streets Of Boston

I cannot answer this question for you,
but try to reproduce this issue on a real device while having it
connected to your PC so that you can debug it.

Let it run until it hangs.
Then start the ADB debugger and pause all threads. See which threads
are causing the deadlock. This may give you some more info.



On Oct 24, 4:40 pm, LouisB louisbhi...@gmail.com wrote:
 Would appreciate some help here, my app (Apple2 Emulator) runs great
 on the emulator, but when I put it up on my G1 it becomes extremely
 flakey.  Force quit / hang like crazy.  I uploaded to the market and
 everyone is force quitting the app.  Not good!  The code is based on
 the old lunar lander example.  The problem I’m seeing is that the app
 hangs up on the “synchronized (mSurfaceHolder) {“ block (see code
 snippets below.)
 Question is: Why would it hang up on the “synchronized
 (mSurfaceHolder) {“check and what can I do to troubleshoot / debug?  I
 can’t pinpoint exactly what started it, but I will tell you I added
 some native JNI calls and it seems to have started after that?  It
 generally hangs in the beginning when I give control to the “view”
 thread.

 MANY THANKS
 Bart

 Code:
 public class view extends SurfaceView implements
 SurfaceHolder.Callback {
 …
 public thread(SurfaceHolder surfaceHolder, Context context, Handler
 handler) {
             mSurfaceHolder = surfaceHolder;
 …
 private void doDraw(Canvas c) {
                 synchronized (mSurfaceHolder) {  HANGING HERE
--~--~-~--~~~---~--~~
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: READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-10-25 Thread Vamsee

On Oct 9, 9:37 pm, John B. Hansen jnahan...@gmail.com wrote:
 I've been using the following permissions since SDK 1.1:

 uses-permission
 android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS /

 uses-permission
 android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS /



 Now, while migrating to 1.6 I'm seeing two things that are surprising:

 1. The 1.6 release notes are saying those permissions are new (have
 been added)

 http://developer.android.com/sdk/android-1.6.html#api-changes

 2. I'm getting the following warnings in Logcat and my activities that
 use them are crashing:


My app is using the same persmissions too, and I'm having a similar
problem - the weird thing is, the app works fine in a 1.6-based avd.
But it won't work on the actual device (ADP1 running 1.6 images from
HTC) - gives security exceptions saying that the app needs
READ_HISTORY_BOOKMARKS permissions, though they were (both read/write
permssions) already present in the manifest file. I can confirm this
is happening for others too, as people are complaining that it's been
force closing on them ever since the 1.6 OTA update happend. Did you
happen to find a fix for this, by any chance?

TIA,
Vamsee.

--~--~-~--~~~---~--~~
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 get the postal addressed in Contacts

2009-10-25 Thread mrloz

I believe you use the contacts as data source for a reciever, so you
read from them a bit like reading from an SQLite db, you also need to
have the permission in your manifest.

I can't remember the exact nature, but it's not quite an API, it's
more about how you access data from other applications in android in
general.  Contacts is a content provider accessed using it's URI:

content://contacts/people

You can read about content providers in the docs:

http://developer.android.com/reference/android/content/ContentProvider.html

Google for a tutorial and you should find something which details how
to read them.

Hope that helps.


On Oct 24, 1:11 pm, sam hrlixi...@gmail.com wrote:
 Hi guys,

 Does anybody have any sample code to access/get the postal addressed
 of a contact using Contact API?
 I searched the sdk doc but did not find enough info to do this.

 Thanks for any help you can provide.

 Sam
--~--~-~--~~~---~--~~
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: Rotating in content gets clipped

2009-10-25 Thread mrloz

You'll need to detect the rotate of the screen, and then when it's
rotated adjust your code so that the location of your circles is
correct for the rotated view (i.e the canvas is wider than tall now).

The usual state of android apps is that they get killed and restarted
when the screen rotates, so if you correctly detect the orientation in
onCreate() you should be able to know which co-ordinates should be
used.

On Oct 24, 4:19 pm, BrianS bnsaw...@aol.com wrote:
 Hi-- I'm trying to draw some large circles on the canvas which are
 partly offscreen, then use animation to rotate them in be fully
 visible. My circles successfully rotate in, but when they come into
 view they're clipped at the place that was the screen edge when they
 were originally drawn. Is there any way to prevent this? I guess my
 larger question is how can you draw elements beyond the edges of the
 screen and then animate them into view?

 Thanks much!
--~--~-~--~~~---~--~~
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: 1.6 vs setPictureSize

2009-10-25 Thread enervatron

Well the auto-scaling definitely worked in 1.5 and stopped working in 1.6.
I'm not sure why they'd remove that feature as it requires a lot of
hacking using
BitmapFactory/Bitmap to get around the fact that you can't load a camera image
into an app and manipulate it directly (it has to be subsampled in order for it
to load at all).

This is really a sort of silly state where you can take a picture but you can't
do anything with it.  And now 1.6 made that even more painful.



On 10/24/09, gjs garyjamessi...@gmail.com wrote:

 Hi,

 I have a camera app which creates large 2048x, medium 1024x and small
 512x images by setting the camera parameters and it is still working
 OK in 1.6 on G1.

 My guess is that 640 is not a binary integer multiple of 2048 ???, so
 maybe try 1024 and then rescale to 640.

 Does 5mp pictures ( eg HTC Hero ) actually work, can anyone confirm ?

 Regards

 On Oct 25, 1:55 am, enervat...@gmail.com wrote:
 Before 1.6:

         Camera.Parameters parameters = mCamera.getParameters();
         parameters.setPictureSize(640, 480);

 Would deliver me a 640 by 480 image from the Camera.

 As of the 1.6 OS upgrade on my G1 (it doesn't matter whether the
 SDK is 1.5 or 1.6) is sends me 2048x1536 pixel images.

 This is extremely painful especially in light of the fact that there is no
 way to scale images this big (BitmapFactory pukes on images that
 large) that I know of.

 I imagine that Camera users that upload their pictures to the net with
 5 megapixel cameras are going to be even more unhappy, but I'm pretty
 unhappy as it is.

 Mike
 


--~--~-~--~~~---~--~~
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: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-25 Thread stanlick

I am using a SimpleCursorAdapter and having a similar problem with pre-
checking certain entries.  This is my experimental code that I am
trying immediately following the instantiation of the adapter:

adapter = new SimpleCursorAdapter(this,

android.R.layout.simple_list_item_multiple_choice, c,
new String[] { Contacts.PeopleColumns.NAME },
new int[] { android.R.id.text1 });

// TODO TEST CODE
CheckedTextView cb = (CheckedTextView) adapter.getView(0, null,
null);
cb.setChecked(true);

The list appears and the first entry is *not* checked.  Any ideas?

Thanks,
Scott



On Oct 8, 4:16 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 YourListViewis only for display.
 Your ListAdapter (in your case ArrayAdapter) is for getting and
 manipulating the actual data. Only it's 'getView' method provides a
 bridge between the data and the display-view...

 Iterate over the elements in your ArrayAdapter to determine if one
 item is selected or not.  (Do not iterate over the elements (child-
 views) of theListView.)

 Each element in your ArrayAdapter should have a way to tell you if it
 is selected or not.

 Currently you use this ArrayAdapterString. This (String) is not
 enough. You need to know if a particular String in this adapter has
 been selected or not at some point:

 public class SelectableString {
    public String soundTableName;
    public boolean isSelected;

    // Add this method, to avoid overriding getView in your
 ArrayAdapter.
    public String toString() {
       return soundTableName;
    }

 }

 and then have a ArrayAdapterSelectableString instead.

 Then register an OnItemSelectedListener (or something similar) and
 implement this one to get the proper SelectableString from your
 ArrayAdapter and set the SelectableString's 'isSelected' element to
 true or false.

 Then, at other points in your code, you can just iterate over your
 ArrayAdapter and query each SelectableString's 'isSelected' member to
 check if it has been selected or not.

 On Oct 7, 11:02 pm, KhanAzul mark.pes...@gmail.com wrote:

  Thank you for your response, and I can understand your confusion.
  Yes, when I run this activity, my screen displays the title text, two
  items in myListView(0 = Big Sound, 1 = Little Sound), and the
  footer text.  I can select either or both items, and when I press
  Back, I can step through my onPause (you are correct here, pardon my
  bad form) and watch the selection indices get saved to
  selectedSounds preference.

  From what I've observed through careful debugging, I'm not having any
  issues saving the selections.  Nor am I having issues retrieving these
  selections from preferences, or setting the ArrayAdapter to my
 ListView.  The breakdown occurs when I try to set these items as
  checked in theListViewwhen the activity starts back up.

   Don't use 'getChildCount' and 'getChildAt' method to check your
   preference-settings.

  What is the proper method?  I think this is the crux of my question.

  Again, I appreciate the help.  I think some further guidance is
  needed.

  On Oct 7, 3:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote:

   Your activity (and your list-view) is not yet visible in the onStart.

   Don't use 'getChildCount' and 'getChildAt' method to check your
   preference-settings.

   BTW: If your activity is not yet visible, how can a user make a
   selection?
   Shouldn't you query in the onPause, for example.
   And also, the positions returned by the method getCheckedItemPositions
   () are the positions in your adapter (ArrayAdapter in your case). Your
   list-*view* positions (used in getChildAt) are not the same. You list-
   view will never have more children than the ones you can see. And the
   child-at postion 0 is the one on the top of the list-view.

   On Oct 7, 2:37 pm, KhanAzul mark.pes...@gmail.com wrote:

I want to display aListViewwith checkboxes, and I want some of the
checkboxes pre-selected.  TheListViewhas setAdapter called during
onCreate, and the list information appears when the screen is drawn.
However, when I attempt to set certain list items as checked, my
   ListViewreports getChildCount() = 0.

My SharedPreferences contains a list of sounds that have been
previously selected, as a comma delimited string of list indices.
Because the list appears to have no children in onStart, my attempts
to set items as checked fails.

On the good side, once the list is rendered, I can select entries and
hit Back, and my selection is stored to SharedPreferences correctly.

How can I load my previous selection into the list?  Should I be using
something else here?

In the spirit of open source, here's my code, free to you :)


SoundLibrary.Java

[android-developers] Re: modify the drawable of an ImageView

2009-10-25 Thread Auguste Lunang
No issue?

2009/10/25 Auguste Lunang legraphi...@gmail.com

 HI
 I have a gridView generated using BaseAdaptor. (and implementing methods
 getView() , getCount() ,...)
 My problem is that i want to specify a drwable image for each ImageView
 created using BaseAdaptor.

 i tried this line :


 myBaseAdapterInstance.getView(i, null,
 gridview).setImageDrawable(R.drawable.myimage);
 where i is the position of the ImageView that i want.

 But myImage isnt displayed on the gridView.

 how can i fix it ?


 Thx


--~--~-~--~~~---~--~~
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: Error using InstrumentationTestRunner with multiple projects

2009-10-25 Thread Ty

Exactly...

Let me give you my example (and you can extrapolate it to your
situation)

I had project B that depends on project A (a set of exception classes
exported as an external jar)
Android Test project C called classes in project B and raised expected
exceptions defined in project A (depending on project A as an external
jar) which caught (as negative tests)


When I ran these tests (as Android JUnit tests) I got the same (cross-
loader) error

I removed external jar dependency of A from project C and everything
ran perfectly after that

Regards

Ty


On Oct 19, 9:27 am, Carl H. charr...@gmail.com wrote:
 I get this error as well, I believe it depends on the order of imports
 within your test project. If you have lib1 added to both the test and
 tested project, you ll get something of that sort Still trying to
 sort it out.

 On Oct 14, 4:31 am, Brett Chabot brettcha...@android.com wrote:



  I'm not sure what that exact error message means, but my guess is the
  problem has to do with your test to project mapping. An
  instrumentation (which is what your test project uses to access
  classes in your project under test), can only be targeted to one
  android application. Try splitting up your test project into
  ProjectATest and ProjectBTest, and see if that helps.

  Regards,
  Brett.

  On Wed, Oct 7, 2009 at 10:42 PM, takashi t.hag...@gmail.com wrote:

   My application is seperated into three projects in eclipse.
   The first one is a client Android Project called Project A.
   The second is a server Android Project called ProjectB.
   Lastly, I have ProjectATest for testing that has references
   dependencies to ProjectA and ProjectB.

   When excuting InstrumentationTestRunner in ProjectATest, I get the
   following error message:

   [2009-10-08 13:11:47 - ProjectATest]Launching instrumentation
   android.test.InstrumentationTestRunner on device emulator-5554
   [2009-10-08 13:12:01 - ProjectATest]Test run failed: cross-loader
   access from pre-verified class

   This is the error as pulled from LogCat:

   10-08 04:11:44.089: ERROR/AndroidRuntime(760): Uncaught handler:
   thread main exiting due to uncaught exception
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):
   java.lang.IllegalAccessError: cross-loader access from pre-verified
   class
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   org.gynoid.db.ClassMetadata.initRelation(ClassMetadata.java:181)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   org.gynoid.GynApplication.onCreate(GynApplication.java:41)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.app.Instrumentation.callApplicationOnCreate
   (Instrumentation.java:1045)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.app.ActivityThread.handleBindApplication(ActivityThread.java:
   3622)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.app.ActivityThread.access$2500(ActivityThread.java:112)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.app.ActivityThread$H.handleMessage(ActivityThread.java:1729)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.os.Handler.dispatchMessage(Handler.java:99)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.os.Looper.loop(Looper.java:123)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   android.app.ActivityThread.main(ActivityThread.java:3948)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   java.lang.reflect.Method.invokeNative(Native Method)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   java.lang.reflect.Method.invoke(Method.java:521)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
   (ZygoteInit.java:782)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
   10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
   dalvik.system.NativeStart.main(Native Method)

   Has anyone been able to accomplish this or have any suggestions as to
   what I am doing wrong?
--~--~-~--~~~---~--~~
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: 1.6 vs setPictureSize

2009-10-25 Thread blindfold

It works for me under Android 1.6 on ADP1, and I can save a 640 x 480
snapshot just fine, set using setPictureSize(). In my app the user can
set the desired resolution (default 2048x1536).

On Oct 24, 3:55 pm, enervat...@gmail.com wrote:
 Before 1.6:

         Camera.Parameters parameters = mCamera.getParameters();
         parameters.setPictureSize(640, 480);

 Would deliver me a 640 by 480 image from the Camera.

 As of the 1.6 OS upgrade on my G1 (it doesn't matter whether the
 SDK is 1.5 or 1.6) is sends me 2048x1536 pixel images.

 This is extremely painful especially in light of the fact that there is no
 way to scale images this big (BitmapFactory pukes on images that
 large) that I know of.

 I imagine that Camera users that upload their pictures to the net with
 5 megapixel cameras are going to be even more unhappy, but I'm pretty
 unhappy as it is.

 Mike
--~--~-~--~~~---~--~~
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: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-25 Thread Mark Murphy

 I am using a SimpleCursorAdapter and having a similar problem with pre-
 checking certain entries.  This is my experimental code that I am
 trying immediately following the instantiation of the adapter:

   adapter = new SimpleCursorAdapter(this,
   
 android.R.layout.simple_list_item_multiple_choice, c,
   new String[] { Contacts.PeopleColumns.NAME },
   new int[] { android.R.id.text1 });

 // TODO TEST CODE
   CheckedTextView cb = (CheckedTextView) adapter.getView(0, null,
 null);
   cb.setChecked(true);

 The list appears and the first entry is *not* checked.  Any ideas?

The View you got from your getView() call is being discarded.

Remember, *ListView* does the caching of rows. Since your requested a row
outside of ListView, ListView doesn't know about it or use it.

Add your SimpleCursorAdapter to your ListView, then call setItemChecked()
on the ListView to check your desired row, and see if that works.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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: Any word on a dev phone for motorola droid?

2009-10-25 Thread Fred Grott(Android Expert)

Yes that is going to be the problem those doing cool stuff like opengl
need an actual device..

There is another forum  board to post the exact same question and  to
get some feedback from Motorola..

If you post to MotoDev boards does not get aresposne you might try
posting the same question to the GoogleGroups Chicago androids as
Motorola does take an active interest in that group..


On Oct 25, 1:03 am, Lance Nanek lna...@gmail.com wrote:
 And what about dev tools, code upgrade from gen1, etc.?

 It sure would be nice if we could create Android 2.0 AVDs to test
 against in the emulator at least.

 I just took a quick look at the Motorola dev site. It had some
 impressive options for testing on their other phones: a loaner
 program, a way to test on real phones by a remote connection, and an
 add on for the Android SDK.

 It looked like the first two didn't even allow the CLIQ, though, their
 first Android phone. The last wouldn't work with OpenGL when I tried.
 Even the basic OpenGL API demos wouldn't work. No sign of anything at
 all for DROID or Android 2.0 in general.

 On Oct 24, 4:14 pm, sherifffruitfly sherifffruit...@gmail.com wrote:

  And what about dev tools, code upgrade from gen1, etc.?
--~--~-~--~~~---~--~~
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 not access to developer.android.com

2009-10-25 Thread Fred Grott(Android Expert)

Sorry Shone that you had such an obstacle put in your way.

Are you still able to get the packaged android.com docs in the SDK?





On Oct 24, 4:16 am, Shone fuxiang...@gmail.com wrote:
 Hello All,

 I know this is not the right place to ask this question, but I don't
 know where to go neither.

 The site developer.android.com could not be accessed inside main land
 China. No doubt it's blocked by the great fire wall, but I can not
 figure out why they(The Chinese gov) did this. Isn't it just a tech
 site without any political/religious contents?

 As an Android developer, it's very annoying not be able to get those
 helpful docs on that site.

 Could anyone here or inside Google report this problem to Google China
 and ask the Chinese gov to remove the block? I myself don't know or
 can't find anyone to contact.

 Sorry to bother you if I did. And thank any help.

 -Shone
--~--~-~--~~~---~--~~
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: SimpleCursorAdapter.bindView() and Row Views

2009-10-25 Thread Nmix

Just to close this off (in case anyone cares), there was a bug in my
code. However, it was due to the unexpectedness of those multiple
calls to bindView() and the changing association of positions and row
views. What happened when bindView() was called, I checked the view's
tag for a holder object, and if there was one I left it alone. Since,
it seems, a row view can be assigned to different positions during the
filling of the adapter/ListView. This means I have to update the view
holder, or create a new one, with the most current position data in
every call to bindView(). I don't understand why it operates this way,
but now that I do, I got it working.

On Oct 23, 10:36 am, Nmix nepean...@gmail.com wrote:
 This has actually gotten worse. When I finish the app by pressing the
 back button, then re-launch the app, I am now also getting row views
 for position 0 from the previous run of the app. So now I have 3 row
 views floating around for position 0.

 Am I doing this all wrong, or what?

 The key part of this is that when a button is clicked I can easily
 access the correct row view that contains the button, but I have the
 problem when I then try to modify a different row view. In my
 particular case, the problem is only when that other row view is for
 position 0.

 On Oct 22, 7:56 pm, Nmix nepean...@gmail.com wrote:

  I have a problem withbindView() that has me puzzled. I am using it to
  customize each row, including setting icons, coloring the background
  and setting up listeners for buttons. It mostly works as expected, but
  not quite.

  When I fill the ListView with SimpleCursorAdapter, I get multiple
  calls tobindView() for position 0, but only 1 call for the other
  rows. The problem is that when all is said and done, I have 2 rows
  (LinearLayout) created for position 0. Here is a sample log extract:

  10-22 23:25:02.834: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.834: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.844: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.853: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.864: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.934: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437e13c0
  10-22 23:25:02.997: DEBUG/PAproto(1042): LBV: pos:1 icon:2
  view:android.widget.linearlay...@437e4810
  10-22 23:25:03.024: DEBUG/PAproto(1042): LBV: pos:2 icon:3
  view:android.widget.linearlay...@437e67a8
  10-22 23:25:03.054: DEBUG/PAproto(1042): LBV: pos:3 icon:4
  view:android.widget.linearlay...@437e8700
  10-22 23:25:03.093: DEBUG/PAproto(1042): LBV: pos:4 icon:5
  view:android.widget.linearlay...@437ea660
  10-22 23:25:03.234: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437ecf40
  10-22 23:25:03.243: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437ecf40
  10-22 23:25:03.243: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437ecf40
  10-22 23:25:03.254: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437ecf40
  10-22 23:25:03.264: DEBUG/PAproto(1042): LBV: pos:0 icon:1
  view:android.widget.linearlay...@437ecf40

  I use a view holder class to hold the view, position and other data so
  that when a button is clicked, I can retrieve the holder with
  view.getParent.getTag(). This all works fine. The problem is that
  there are two views for position 0, but it's the first one in the
  above logcat that seems to be displayed. My code which acts on the
  rows when a button is clicked (especially setting background color)
  does not reliably hit the position 0 row that is actually displayed.

  I can see what's happening but I am at a loss about what to do about
  it. Why are two view created for position 0? Is it something that I
  can control? How? If not, how should I deal with it so that the
  results when I modify the views are predictable? 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: SimpleCursorAdapter.bindView() and Row Views

2009-10-25 Thread Mark Murphy

 What happened when bindView() was called, I checked the view's
 tag for a holder object, and if there was one I left it alone. Since,
 it seems, a row view can be assigned to different positions during the
 filling of the adapter/ListView.

Absolutely. Otherwise, scrolling through 1,000 items in a list would
result in 1,000 rows being created.

 This means I have to update the view
 holder, or create a new one, with the most current position data in
 every call to bindView().

No, you don't -- you just have to write a view holder that does not track
its position.

http://commonsware.com/Android/excerpt.pdf contains an excerpt from one of
my books that demonstrates the technique.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
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] server error when trying to buy my own app

2009-10-25 Thread frantz lohier
Dear All,

I'm a developper based in the US that recently released a pay-for app in the
market called AmBu. Googlecheckout is the merchant account I am using (the
only one approved by the market it seems).

Two customers were able to purchase my app from a foreign country (Europe).

However, when I'm trying to buy my own application from the US (using my G1
phone) using a valid debit or credit card number, I consistantly get a
server error during the purchase process. I suspect I'm not the only one
and I'm losing customers.

What is the right structure at google to help resolve this ? In the market
blogs, I've seen few posts of people facing the same issue but nothing to
help resolve this was detailed.

Anyone ?

--~--~-~--~~~---~--~~
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: server error when trying to buy my own app

2009-10-25 Thread Lance Nanek

I published my first app recently and ran into the same problem when I
tried purchasing it to test the process. Looks like it isn't allowed:
Please note that it is against Google Checkout's policies to purchase
your own application. You will receive an error message when you try
to purchase your own application.
http://market.android.com/support/bin/answer.py?hl=enanswer=141659

I was going to buy a copy of yours to test for you just now, but all I
see when I search for ambu is a free one:
http://imgur.com/9rvrd.png

Do you have it set to only show up in certain countries? I'm in the US
on T-Mobile running a G1 with the official OTA 1.6 firmware.

On Oct 25, 7:39 pm, frantz lohier floh...@gmail.com wrote:
 Dear All,

 I'm a developper based in the US that recently released a pay-for app in the
 market called AmBu. Googlecheckout is the merchant account I am using (the
 only one approved by the market it seems).

 Two customers were able to purchase my app from a foreign country (Europe).

 However, when I'm trying to buy my own application from the US (using my G1
 phone) using a valid debit or credit card number, I consistantly get a
 server error during the purchase process. I suspect I'm not the only one
 and I'm losing customers.

 What is the right structure at google to help resolve this ? In the market
 blogs, I've seen few posts of people facing the same issue but nothing to
 help resolve this was detailed.

 Anyone ?
--~--~-~--~~~---~--~~
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: SimpleCursorAdapter.bindView() and Row Views

2009-10-25 Thread Nmix

On Oct 25, 5:50 pm, Mark Murphy mmur...@commonsware.com wrote:
  What happened whenbindView() was called, I checked the view's
  tag for a holder object, and if there was one I left it alone. Since,
  it seems, a row view can be assigned to different positions during the
  filling of the adapter/ListView.

 Absolutely. Otherwise, scrolling through 1,000 items in a list would
 result in 1,000 rows being created.

Understood. It's just that I was surprised that this would happen
while the ListView is being initially filled (also, since in this case
it's short enough to fit within the screen), and there is no obvious
(to me!) reason why a row view would be acted upon this way in this
circumstance.

  This means I have to update the view
  holder, or create a new one, with the most current position data in
  every call tobindView().

 No, you don't -- you just have to write a view holder that does not track
 its position.

It may depend on how the holder is used, but it's not entirely
relevant -- my choice of words above wasn't the best. From within the
onClick() for a button on a particular row, I need to find another row
and change it. I needed some way to find it. When I still had the
problem, I kept track of the view I would eventually alter in a class
variable. From there I could pull out the tag and get the data I
needed, including the row's position. What finally messed me up is
that, when presented with a filled tag in the view presented by
bindView(), I *assumed* the position and other data I had put into the
holder earlier was still valid. I should have done a cursor.getPosition
(), and gone on from there to properly refresh the data within the
holder. Because of this mistake, even the logcat output I included
earlier was terribly misleading.

 http://commonsware.com/Android/excerpt.pdfcontains an excerpt from one of
 my books that demonstrates the technique.

I did refer to an earlier tutorial of yours to learn the technique,
though not this update. Thanks for making this available!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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 can I contact to Google Calendar license?

2009-10-25 Thread 영지 김

sorry, guys
I'm desperate about license.
I will not post again this Post.
Sincerely apologize !!

On 10월23일, 오전10시05분, Dianne Hackborn hack...@android.com wrote:
 There is no license.  The calendar is not yet part of the SDK.

 On Thu, Oct 22, 2009 at 6:03 PM, 김영지 bestky...@gmail.com wrote:
  How can I contact to Google Calendar license?

  I wanna activate Android Calendar app(fullsource/packages/apps/Calendar) in
  device.
  however Android Calendar app don't activate in device and emu.
  I think it is license problem.
  But, I don't know that get a calendar license.
  Also I wanna know step, cost, period about license.
  Additionally, I wonder if Calendar license assosicated with google Map,
  Google gmail, Google Youtube !!
  please, help me!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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 I get a Google wave invitations?

2009-10-25 Thread aming zhu
re:

Is someone can send me an invitation on Google wave?

zhuam...@gmail.com

thanks

Ben.

2009/10/22 Jason Chen jasonc...@google.com


 Folks,

 While we're pleased to hear that you're all excited about Google Wave,
 please refrain from asking for invites here. If you have questions or
 would like to discuss Wave, please go to:
 http://www.google.com/support/forum/p/wave

 This thread and other off-topic posts will be moderated and/or removed
 from the archives.

 Thanks,

 -Jason
 


--~--~-~--~~~---~--~~
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] Hello, MapView

2009-10-25 Thread alexdonnini

Hello,

Until recently, the map view function in my application worked.
Starting a few weeks ago, although the function still seems to be
working, the map itself is not being displayed any longer.

To verify whether there was a problem in my code, I implemented an
activity using the code in Hello, MapView. Although it runs, the map
itself is not displayed.

The DDMS log reports:

10-25 21:03:26.443: ERROR/MapActivity(7765): Couldn't get connection
factory client

I would appreciate it if someone could help me understand how to
resolve this issue.

Thanks.

Alex Donnini
--~--~-~--~~~---~--~~
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] Why a single String.format reduce the FPS from 35 to 25 ?

2009-10-25 Thread Eric Wang
Hi,

String.format(%.3f, %.3f, %.3f, float_1, float_2, float_3); // FPS 25

// FPS 35
StringBuffer buff = new StringBuffer();
buff.append((int)(float_1*1000)); buff.append(',');
buff.append((int)(float_2*1000)); buff.append(',');
buff.append((int)(float_3*1000)); buff.append(',');

Device is HTC Hero.

--~--~-~--~~~---~--~~
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 Any File with Android Emulator

2009-10-25 Thread Fabio Melpignano

Good Morning,
I'm trying to develop an Android application. I'd like to know if
there is a method to download every kind of file with the browser
embedded in the emulator. I've read the other post in this list, but I
don't know if the SDK 1.6 emulator was used by those users. I'm using
SDK 1.6 and I tried to use Download Crutch but it doesn't seem to
work.
Every suggestion is accepted,

Thanks for attention,

Melpignano Fabio
--~--~-~--~~~---~--~~
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: Any word on a dev phone for motorola droid?

2009-10-25 Thread JP

If past experience is any indication, there are more areas of concern:
sensors, camera preview come to mind.
I suppose everybody agrees that a big inventory of apps are a big win-
win for everybody involved (although a case could be made that many of
the devs that put in the effort and investment upfront start finding
out that their cut of happiness is rather small).
Thus far we have not heard that independent devs had an opportunity to
test out their stuffs on the Motorola/Verizon Droid, under NDA of
course. I am sure a campaign by Verizon/Motorola that involved
independent devs would have long leaked, so I assume Verizon's Droid
will hit the dev community cold. Supposedly with Android 2.0, even. If
this was all the case, wallpapers and ringtones aside, I am sure
plenty of apps will be borked, until everybody had a chance to catch
up. No question there will be a barrage of snotty comments in the
Android Market for those that didn't stay on their toes to black out
Verizon on the Market Publishing site, and I am sure Apple, Nokia and
others won't be far behind to add insult to injury. Would that
actually be a good thing? Perhaps, just to shake things up. At this
point, there doesn't seem to be much acknowledgment by the higher
powers that independent devs aren't getting an opportunity to actively
participate in the development and launch of a new product or SDK
release in a way that allows them to make apps available on day one,
and in a way that's commensurate with the earnings potential of apps
that the parties involved, Google, carriers, manufacturers, wish to
leverage into unit sales. To make clear text out of this, going back
to the OP's question: Dev phones by the various manufacturers will
have to be made available at a considerable discount, or we can say
goodbye to rich, meaningful apps, in all the beautiful variety, at
least.
JP



On Oct 25, 2:17 pm, Fred Grott(Android Expert)
fred.gr...@gmail.com wrote:
 Yes that is going to be the problem those doing cool stuff like
opengl
 need an actual device..

--~--~-~--~~~---~--~~
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 can I get setStreetView(true) to display blue lines the first time? invalidate() isn't working

2009-10-25 Thread davemac

Using SDK 1.6. I have a simple MapView that I'd like to set street
view on. I setup a button in my application, and an onClick handler to
do mapView.setStreetView(true); I then call mapView.invalidate();
because I believe this is how to update the view to get the blue
outlines.

When I click on the Street button in my app, I can see in debugger
that the setStreetView(true) is being called, but the display does not
update. The second time I click on the Street view button, it goes
through my code again, and this time the display changes and I get the
blue outlines on the streets. Why isn't this occurring the first time
I click on the button?

After clicking the Street button once, if I then click on the map
itself, then it draws the blue lines.

I tried postInvalidate() also but got the same result, plus I didn't
think that postInvalidate() was the appropriate method to call anyway.
I read a posting online that said I should move the map by a pixel to
get it to redraw itself. That doesn't seem right, unless there's a
problem with setStreetView that hasn't been fixed yet. I checked the
Issues list but didn't see anything. Any advice please?

- dave

--~--~-~--~~~---~--~~
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 i specially forbids switching orientation when rotating phone on my app?

2009-10-25 Thread Philip

Thanks a lot. I solved by using setRequestedOrientation.

On 10月25日, 上午3时35分, Wayne Wenthin wa...@fuligin.com wrote:
 You might want to do this during onCreate

 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

 or landscape whichever it is that you want



 On Sat, Oct 24, 2009 at 2:22 AM, Philip phwang...@gmail.com wrote:

  When i chick a button on my app , the method below will be happened.
  
  if(android.provider.Settings.System.getInt(getContentResolver
  (),Settings.System.ACCELEROMETER_ROTATION, 0) == 1) {
  android.provider.Settings.System.putInt(getContentResolver
  (),Settings.System.ACCELEROMETER_ROTATION, 0);
  }
  
  Here i want to forbids switching orientation when rotating phone.
  Also i hope the screen orientation will not be changed.
  But when here is horizontal screen mode, the screen orientation will
  be changed to vertical mode automatically .
  That's not what i want.
  Any suggestions?

 --
 Writing code is one of few things
 that teaches me I don't know everything.

 http://www.fuligin.com
--~--~-~--~~~---~--~~
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: Why a single String.format reduce the FPS from 35 to 25 ?

2009-10-25 Thread Marco Nelissen

You don't want to use String.format() if performance is an issue.
String.format() internally creates a new Formatter every time, which
in turn pulls in all kinds of localization stuff.
Instead, create a Formatter yourself (once), and then reuse it for all
your string formatting needs.


On Sun, Oct 25, 2009 at 6:35 PM, Eric Wang eric.wan...@gmail.com wrote:
 Hi,

 String.format(%.3f, %.3f, %.3f, float_1, float_2, float_3); // FPS 25

 // FPS 35
 StringBuffer buff = new StringBuffer();
 buff.append((int)(float_1*1000)); buff.append(',');
 buff.append((int)(float_2*1000)); buff.append(',');
 buff.append((int)(float_3*1000)); buff.append(',');

 Device is HTC Hero.

 


--~--~-~--~~~---~--~~
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: - Play video in Android Media Player from given URL

2009-10-25 Thread Roman ( T-Mobile USA)

If you stream from a remote server, make sure the the file is in a
streamable format.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 Oct 24, 12:25 pm, skcratch skcra...@gmail.com wrote:
 Hi there!

 Can anyone please tell me if Android Media Player is able to play a
 video that is placed in a remote server, in a supported format?

 Thanks in advance,
 Best 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] Using Notifications for new Activities in existing tasks

2009-10-25 Thread James Hart
I can make a notification with a pending intent and extra data spawn a new
task with a new activity just fine.  What I am required to do is make it so
clicking the notification will bring up a new activity in an existing task
by placing the activity next in the stack if an existing task that shares
its affinity in the same package.

IE TASK:
A
B
C

Clicking a Notification creates an activity B so now Task:
A
B
C
B

However as long as the Task exists the notification will only make the task
come to the top with C showing.

  Now, this is as per documentation when an Intent has
FLAG_ACTIVITY_NEW_TASK which is what all intents coming from a service have,
like it or not, because it isn't part of an activities context.  At the very
least I would expect refocus to the Task to trigger the onNewIntent for
the current running activity or pass the intent to the Application context,
but it does not so all new intent data is completely lost.  Are my hands
tied in this and I cannot use a notification to create a new activity in an
existing task?  The only solution that sorta gives me what I am looking for
is adding the flag that allows creating of multiple instances, but that is
not really what I'm looking for!

Are there any other suggestions how I can get new extra data associated with
a pending intent inside of a notification handed off to an existing task if
it already exists before someone clicks the notification?

Thanks,
  James

--~--~-~--~~~---~--~~
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] hot entertainment

2009-10-25 Thread golden star

http://www.123maza.com/domain-web-design/earn-money/
--~--~-~--~~~---~--~~
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] video frame

2009-10-25 Thread Vinu Vijayan

Hi all,

is there any api availble to get the first screen of an video file so
that we can show the first frame of the videos while listing the
videos.
--~--~-~--~~~---~--~~
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: Extract video frame at particular time

2009-10-25 Thread Vinu Vijayan


even i'm looking for implementing same

any body got any idea for this???





--~--~-~--~~~---~--~~
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: repo: command not found

2009-10-25 Thread SagarH

Matthieu:

Thanks, that worked!

On Oct 7, 3:10 pm, Matthieu Jeanson matthieu.jean...@gmail.com
wrote:
 Hi,
 You should check whether 'repo' has been downloaded correctly after curl
 (use ls repo).
 After you download it, you should also make sure it is part of your PATH
 (edit your ~/.bashrc)
 When you're done, you should be able to run 'which repo' from any folder.

 Matt

 On Tue, Oct 6, 2009 at 9:28 PM, SagarH attitude.unleas...@gmail.com wrote:

  Hi,
  I am using a Ubuntu x64
  Linux sagar-laptop 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52
  UTC 2009 x86_64 GNU/Linux

  I followed the exact steps given here to build the code:
 http://source.android.com/download

  When I initialize the repository using this command:
  repo init -u git://android.git.kernel.org/platform/manifest.git

   I get an error repo:command not found.

  When  I executed the curl command;
  curlhttp://android.git.kernel.org/repo~/bin/repo

  It's output was:

   % Total    % Received % Xferd  Average Speed   Time    Time
  Time  Current
                                  Dload  Upload   Total   Spent
  Left  Speed
  100 17211    0 17211    0     0   8594      0 --:--:--  0:00:02
  --:--:-- 82777

  Seems, it downloaded nothing.

  Then, I did a mkdir mydroid and cd mydroid and run the repo init
  command and that's where I get the command not found error.

  Kindly help me

  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: phone reboot breaks app

2009-10-25 Thread Robert Green

I think this is related to the issue that I'm documenting here -
http://groups.google.com/group/android-developers/browse_thread/thread/803414476a834dbc/4655823ff553daac?lnk=gstq=hero#4655823ff553daac

I'm finding that it may have something to do with the use of a string
resource for the app label and launch activity label.

Greg, what are you using for your app label and launch activity?  The
default is @string/app_name.  My games that use that work correctly on
Hero.  The ones that don't are having problems.  Can you check that
out and post your results?  Thanks!

On Oct 24, 3:17 pm, Mark Murphy mmur...@commonsware.com wrote:
 Greg Donald wrote:
  On Sat, Oct 24, 2009 at 1:34 PM, Mark Murphy mmur...@commonsware.com 
  wrote:
  The button that uses the go.xml no longer works either.
  When you say no longer works, what do you mean?

  None of the code in the button's onclick handler runs.  The button
  clicks and nothing happens.

 Now that's even stranger.

 Have you used the debugger (or Log statements) to see if the click
 handler is being registered or being called?

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Beginning Android_ from Apress Now 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] How to Obtain Endless Views

2009-10-25 Thread Maxood

I am developing an application in which a user keeps on scrolling and
each view displays a single text. The views are not suppose to end.
How can i achieve that?

Hope my question is clear.Waiting for the reply
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---