[android-developers] Does Geocoder. getFromLocationName handle local business search?

2008-12-30 Thread Rafael Fernandes

Hi Guys,
Just to let you know that I've found this bug here
http://code.google.com/p/android/issues/detail?id=1537 that made me
realize that GeoCoder might not handle business searches which makes
totally sense (currently searching for addresses it works like a
charm)...
now my question is: Is it true to say that GeoCoder does not handle
local business searches? if it was supposed to be true, how can we fix
that? because I've been debugging the location framework for some time
and the Masf google framework is closed source and this is the one
that actually performs the real query... no way to debug this one

can anybody from Google confirm that? because if this is true, I'd
have to redesign my app... and I believe many other apps as well...

Thanks,
rafa

On Dec 30, 10:36 pm, Rafael Fernandes  wrote:
> well I've tried my code on my real device and I'm facing the same
> error...
> you all are correct, the cupcake branch has fixed the issue (I have
> the new source here)...
> even though the error remains for me (even recompiling the platform
> core etc, bla bla bla)...
>
> by the way, I've tried your app here and I've got the same error...
> however if I type only piz it shows me one record but if I type pizza,
> it gives me this bloody forwardGeocode(): no feature in GLocation
> error...
> if you type pizza munich for example, do you get anything there?
>
> cheers,
> rafa
>
> On Dec 30, 9:45 pm, "Alistair." 
> wrote:
>
> > Maybe this has been fixed in the latest sdk as I have been using it
> > and it seems to work for me.
>
> >http://code.google.com/p/netthreads-for-android/source/browse/trunk/p...
>
> > Al.
>
> > On Dec 30, 6:06 pm, DMT  wrote:
>
> > > Hi All: anyone know if the Geocoder.getFromLocationName() method is
> > > currently working?
> > > Has anybody been able to get it to work?
> > > If not, when will it be fixed (in what android release)?
> > > 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] Device id

2008-12-30 Thread jsm

I have an application where I need to check whether the user is using
the actual device not a emulator or others.  I have seen the API where
there is device id method from phone service.
I need a generic way to check if the user is on the real device.
For example if he has downloaded the app from the market, i need to
know the device id of the user, this is strictly for licensing and
restricting the use of app.

Any ideas?
--~--~-~--~~~---~--~~
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: AndroidManifest.xml reg.

2008-12-30 Thread Dianne Hackborn
You can only have one application tag.  There really should be no need for
having multiple.

Also, please don't use a package name in the "com.android" namespace.  The
android.com domain is owned by the OHA, it is not for use by others.

On Tue, Dec 30, 2008 at 10:22 PM, anand  wrote:

>
> Hi All,
>
> I was playing around with the Hello Android program and got the
> following questions regarding the AndroidManifest.xml file:
>
> 1. An application can have multiple "Activity"-ies, likewise is it
> possible to declare multiple applications in a single manifest file?
> If yes how to shift focus between the declared applications?
>
> 2. Modified the HelloAndroid manifest file as shown below:
>
> 
> http://schemas.android.com/apk/res/android";
>  package="com.android.hello"
>  android:versionCode="1"
>  android:versionName="1.0.0">
>
> android:label="MyTestApp">
>
> 
>
> MyTestApp.java is located in the src/com/android/hello directory.
>
> package com.android.hello;
>
> class MyTestApp
> {
>public static void main(String args[])
>{
>System.out.println("MyTestApp:main() called");
>}
> }
>
> The project built fine but generated the following messages which I
> could not understand:
>
> [2008-12-30 13:16:38 - HelloAndroid] The Manifest defines no activity!
> [2008-12-30 13:16:38 - HelloAndroid] The launch will only sync the
> application package on the device!
> [2008-12-30 13:16:38 - HelloAndroid] Only Syncing Application Package
>
> Questions:
> a. Is it possible to have an application without any associated
> activity? Can such an application have intents (and intent filters) to
> process?
>
> b. Please explain what the message "The launch will only sync the
> application package on the device!" mean.
>
> Thanks in advance. And thanks for patiently reading this far...
> >
>


-- 
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.  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] Will anyone back to China From USA, pls bring my Android Dev phone to Nanjing.

2008-12-30 Thread mawei1981

Hi, All


Will anyone back to China From USA, pls bring my Android Dev phone to
Nanjing.


Thanks a lot


Peter


--~--~-~--~~~---~--~~
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: AndroidManifest.xml reg.

2008-12-30 Thread Xavier Ducrohet

You can certainly have an application with no activity if all your
application does is in the background with no UI.
You application should probably have one (or more) Service,
ContentProvider, or BroadcastReceiver though.

When ADT pushes a new apk on the emulator/device for debug it attempts
to launch an activity.
It looks for an activity setup (through intent filters) to appear on
the home screen, and starts it, simulating the user starting the
application manually.

If there is no such activity (or no activity at all), then it will do
nothing after installing the new apk.
It will be up to you to trigger one of the components of your
application (send an intent, have another application bind to the
Service, etc...) to debug it.

Xav

On Tue, Dec 30, 2008 at 10:22 PM, anand  wrote:
>
> Hi All,
>
> I was playing around with the Hello Android program and got the
> following questions regarding the AndroidManifest.xml file:
>
> 1. An application can have multiple "Activity"-ies, likewise is it
> possible to declare multiple applications in a single manifest file?
> If yes how to shift focus between the declared applications?
>
> 2. Modified the HelloAndroid manifest file as shown below:
>
> 
> http://schemas.android.com/apk/res/android";
>  package="com.android.hello"
>  android:versionCode="1"
>  android:versionName="1.0.0">
>
> android:label="MyTestApp">
>
> 
>
> MyTestApp.java is located in the src/com/android/hello directory.
>
> package com.android.hello;
>
> class MyTestApp
> {
>public static void main(String args[])
>{
>System.out.println("MyTestApp:main() called");
>}
> }
>
> The project built fine but generated the following messages which I
> could not understand:
>
> [2008-12-30 13:16:38 - HelloAndroid] The Manifest defines no activity!
> [2008-12-30 13:16:38 - HelloAndroid] The launch will only sync the
> application package on the device!
> [2008-12-30 13:16:38 - HelloAndroid] Only Syncing Application Package
>
> Questions:
> a. Is it possible to have an application without any associated
> activity? Can such an application have intents (and intent filters) to
> process?
>
> b. Please explain what the message "The launch will only sync the
> application package on the device!" mean.
>
> Thanks in advance. And thanks for patiently reading this far...
> >
>

--~--~-~--~~~---~--~~
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] SMS Inbox: 2008's toughest problem ( At least for me)

2008-12-30 Thread ipeg . student

###
Please help me access the list of sms in the inbox. I am using this
code, please let me know what is wrong, it always gives a n unexpected
error popup in the emulator.


I used a similar code for accessing the contacts list ( People.NAME
etc ), it worked fine. However, I cannot do it for SMS inbox.

Thanks in advance and happy new year!
###
package org.anddev.android.hello;

import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Telephony.Sms;
import android.widget.ListAdapter;
import android.widget.SimpleCursorAdapter;

public class HelloAndroid extends ListActivity {

 private ListAdapter mAdapter;

  /** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Cursor c = getContentResolver().query(Sms.Inbox.CONTENT_URI,
null, null, null, null);//.query(Sms.CONTENT_URI, null, null, null,
null);
startManagingCursor(c);
String[] columns = new String[]{Sms.Inbox.READ};
int[] names = new int[]{R.id.row_entry};
mAdapter = new SimpleCursorAdapter(this, R.layout.main, c,
columns, names);

this.setListAdapter(mAdapter);
}

 }
###

Here is the main.xml code


http://schemas.android.com/apk/res/
android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>




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



[android-developers] AndroidManifest.xml reg.

2008-12-30 Thread anand

Hi All,

I was playing around with the Hello Android program and got the
following questions regarding the AndroidManifest.xml file:

1. An application can have multiple "Activity"-ies, likewise is it
possible to declare multiple applications in a single manifest file?
If yes how to shift focus between the declared applications?

2. Modified the HelloAndroid manifest file as shown below:


http://schemas.android.com/apk/res/android";
  package="com.android.hello"
  android:versionCode="1"
  android:versionName="1.0.0">





MyTestApp.java is located in the src/com/android/hello directory.

package com.android.hello;

class MyTestApp
{
public static void main(String args[])
{
System.out.println("MyTestApp:main() called");
}
}

The project built fine but generated the following messages which I
could not understand:

[2008-12-30 13:16:38 - HelloAndroid] The Manifest defines no activity!
[2008-12-30 13:16:38 - HelloAndroid] The launch will only sync the
application package on the device!
[2008-12-30 13:16:38 - HelloAndroid] Only Syncing Application Package

Questions:
a. Is it possible to have an application without any associated
activity? Can such an application have intents (and intent filters) to
process?

b. Please explain what the message "The launch will only sync the
application package on the device!" mean.

Thanks in advance. And thanks for patiently reading this far...
--~--~-~--~~~---~--~~
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: Icons - Recommended size, format, etc?

2008-12-30 Thread Mariano Kamp
What about the icons used in notifications? Are they 24x24 natively?
Is there any source where this kind of documentation can be found? I didn't
see any.

Btw. is there a style guide in the works?

Cheers,
Mariano

On Fri, Nov 7, 2008 at 8:17 PM, hackbod  wrote:

>
> But please  make it 48x48.  Otherwise it's just wasting time and
> space, and if a lot of apps start doing larger sizes it will have a
> noticeable impact.  The app icon size is 48x48.
>
> On Nov 7, 9:44 am, Romain Guy  wrote:
> > Hi,
> >
> > Home currently displays icons at 48x48, so your icon file should be at
> > least this size. If you make it bigger, you should make it twice as
> > big for better rendering.
> >
> > On Fri, Nov 7, 2008 at 6:23 AM, g1bb  wrote:
> >
> > > Hello,
> >
> > > Is there a recommended size or format for an application's icon? I've
> > > been using .PNG at 190x141 px, but I can never seem to get them as
> > > 'cool' looking as the other applications I've seen.
> >
> > > Thanks in advance.
> >
> > --
> > Romain Guywww.curious-creature.org
> >
>

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



[android-developers] Re: Screen Goes Black Between Activities, and Next Activity never shows up.

2008-12-30 Thread Skooter Columbo

Thanks for the advice, but the counter is a display mechanism. If the
UI is not showing then it means the user has cancelled the action

Skooter

On Dec 30, 10:42 pm, brnzn  wrote:
> You might also want to consider moving the countdown out to a
> service.  That would allow it to keep running even when your UI is not
> active.
>
> On Dec 31, 2:15 pm, Skooter Columbo  wrote:
>
>
>
> > I finally figured out why the screen was turning black. It did not
> > have anything to do with the Dialog option I picked. It was because I
> > had a long running process and I was running it on the UI thread. I
> > moved the long running process out to a seperate thread and this
> > sperate thread updated the UI thread as need. This allowed the screen
> > to display, and to show the count like it was designed too. If you
> > need to know more about how do this then read this link. It helped me
> > very much.
>
> >http://code.google.com/android/kb/commontasks.html#threading
>
> > It is amazing what a 4 hour nap can produce.
>
> > Skooter :-)
>
> > On Dec 30, 10:57 am, Skooter Columbo 
> > wrote:
>
> > > I got rid of the AlertDialog, and modified my code to use the
> > > ThemeDialog approach. I made sure that I added the attribute
> > > android:theme="@android:style/Theme.Dialog"  to the Android Manifest
> > > file for my application. However I get the same problem. If I comment
> > > out the code in the onWindowFocusChanged then the CountDown Activity
> > > display, but of course it does not change. A couple of times the
> > > screen displayed correctly when the code was uncommented. However it
> > > only displayed for screen that showed up before when the code was
> > > commented out. I think is some sort of cached screen for faster
> > > access, so I don't get my hopes up.
>
> > > Do you guys have any other ideas? On a lighter note, The display of
> > > the dialog is much fast now than before when I was callling
> > > AlertDialog.Builder.
>
> > > Thanks,
>
> > > Skooer
>
> > > On Dec 30, 5:00 am,SkooterColumbo wrote:
>
> > > > yea, i was using the AlertDialog, and I used the AlertDialog.Builder
> > > > to create it. I will try what you suggested.
>
> > > > Thanks,
>
> > > >Skooter:-)
>
> > > > On Dec 30, 3:38 am, "RAJENDIRAN SUNDARRAJAN-CPB738"
>
> > > >  wrote:
> > > > >  Hi..
>
> > > > > Yes you are correct that the Launch timeout expiry gives the wake 
> > > > > lock.
> > > > > In AlertDialogs the "screen becoming black" depends on the way you
> > > > > create it ..
> > > > > Please refer the topic "Opening a New Screen"  
> > > > > fromhttp://code.google.com/android/kb/commontasks.html. Make sure if 
> > > > > you
> > > > > are using the third option of creating a dialog then the attribute
> > > > > android:theme="@android:style/Theme.Dialog" need to be added in the
> > > > > manifest xml of that activity using the dialog.
>
> > > > > - Sundar
>
> > > > > -Original Message-
> > > > > From: android-developers@googlegroups.com
>
> > > > > [mailto:android-develop...@googlegroups.com] On Behalf OfSkooter
> > > > >Columbo
> > > > > Sent: Tuesday, December 30, 2008 2:47 PM
> > > > > To: Android Developers
> > > > > Subject: [android-developers] Screen Goes Black Between Activities, 
> > > > > and
> > > > > Next Activity never shows up.
>
> > > > > From my MainActivity the user can click a button that shows a dialog.
> > > > > From this dialog the user can set the number of minutes and number of
> > > > > seconds from a custom Timer component, and click a start button. When
> > > > > they click start, this is the OnClickListener that gets invoked.
>
> > > > >    public void onClick(DialogInterface dialog, int whichButton) {
> > > > >         AlertDialog alertDialog = (AlertDialog)dialog;
> > > > >         Timer timer = (Timer)alertDialog.getWindow().findViewById
> > > > > (R.id.timer);
>
> > > > >         Intent intent = new Intent(MainActivity.this,CountDown.class);
> > > > >         intent.putExtra(KEY_MINUTES, timer.getMinutes());
> > > > >         intent.putExtra(KEY_SECONDS, timer.getSeconds());
> > > > >         startActivity(intent);
> > > > >         //startActivityForResult(intent, ACTIVITY_COUNT_DOWN);
> > > > >    }
>
> > > > > As you can see it is sent to the CountDown activity. What is supposed 
> > > > > to
> > > > > happen is the minutes and seconds that the user selected from the 
> > > > > dialog
> > > > > are displayed on the CountDown screen, and they begin to count down 
> > > > > and
> > > > > an explosion sound is played when zero is reached. What is really
> > > > > happening, For some reason the screen goes black, and nothing is
> > > > > displayed, however the explosion is played 30 seconds later if user
> > > > > selected 30 seconds. The CountDown Activity has two methods onCreate 
> > > > > and
> > > > > onWindowFocusChanged. OnCreate is used to set up the view and
> > > > > onWindowFocusChanged is used to count down and update the view as each
> > > > > second pasts. I put the count down cod

[android-developers] Re: Why Google does not accepts my Visa credit card?

2008-12-30 Thread Shane Isbell
Hi Doka,

At SlideME, we are launching global billing next week. We also don't have a
registration fee. Feel free to load up your app at: http://slideme.org, so
you can start making money!

Shane

On Thu, Dec 18, 2008 at 1:43 PM, DOKA  wrote:

>
> Hello all!
>
> I am trying to pay registration fee as Android developer to sell my
> program in Android Market, but see error telling me about payment
> fail.
>
> Why does it happend? I already payed successfully with this Visa
> Classic card for another services, e.g. I have bought a domain.
>
> >
>

--~--~-~--~~~---~--~~
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] Tab host

2008-12-30 Thread Muthu Kumar K.

Hi All,
I am creating the tab with out using the XML. It is building as a new
activity.
But in my case i want to create the tab with out calling the new
activity, Let me if it is possible.
Thanks,
Muthu.
--~--~-~--~~~---~--~~
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: Charging for Apps

2008-12-30 Thread Shane Isbell
At SlideME, we don't have any restrictions on if users want to handle their
own billing or trial upgrades. Use Mogees if you like. The only thing we
request is that you disclose everything to the user in your terms.

We will also be offering our own billing through SAM, our Android client,
next week. This does not require embedding anything in your code. After the
user registers at SlideME, they just need to click buy and that's it. Pretty
easy.

Shane

On Sat, Dec 27, 2008 at 1:38 AM, Al Sutton  wrote:

>
> If you're planning to use a 3rd Party system and distribute your app
> through Market you'll probably want to read;
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/1f163a6a4c244c01/c62e169758fed43f
>
> AndAppStore will let you list your app with a 3rd Party payment system,
> as for other sites (SlideME, Handango, etc.), you'd need to read their
> T&Cs to see what their view is.
>
> Al.
> http://andappstore.com/
>
> tspree15 wrote:
> > How are the 3rd party companies that let you charge for your apps.
> >
> > Do they work well?  Is it a pain for the users to pay?
> >
> > Any comments would be appreciated,
> >
> > Thanks
> >
> > >
> >
>
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
>
> >
>

--~--~-~--~~~---~--~~
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: Screen Goes Black Between Activities, and Next Activity never shows up.

2008-12-30 Thread brnzn

You might also want to consider moving the countdown out to a
service.  That would allow it to keep running even when your UI is not
active.


On Dec 31, 2:15 pm, Skooter Columbo  wrote:
> I finally figured out why the screen was turning black. It did not
> have anything to do with the Dialog option I picked. It was because I
> had a long running process and I was running it on the UI thread. I
> moved the long running process out to a seperate thread and this
> sperate thread updated the UI thread as need. This allowed the screen
> to display, and to show the count like it was designed too. If you
> need to know more about how do this then read this link. It helped me
> very much.
>
> http://code.google.com/android/kb/commontasks.html#threading
>
> It is amazing what a 4 hour nap can produce.
>
> Skooter :-)
>
> On Dec 30, 10:57 am, Skooter Columbo 
> wrote:
>
> > I got rid of the AlertDialog, and modified my code to use the
> > ThemeDialog approach. I made sure that I added the attribute
> > android:theme="@android:style/Theme.Dialog"  to the Android Manifest
> > file for my application. However I get the same problem. If I comment
> > out the code in the onWindowFocusChanged then the CountDown Activity
> > display, but of course it does not change. A couple of times the
> > screen displayed correctly when the code was uncommented. However it
> > only displayed for screen that showed up before when the code was
> > commented out. I think is some sort of cached screen for faster
> > access, so I don't get my hopes up.
>
> > Do you guys have any other ideas? On a lighter note, The display of
> > the dialog is much fast now than before when I was callling
> > AlertDialog.Builder.
>
> > Thanks,
>
> > Skooer
>
> > On Dec 30, 5:00 am,SkooterColumbo wrote:
>
> > > yea, i was using the AlertDialog, and I used the AlertDialog.Builder
> > > to create it. I will try what you suggested.
>
> > > Thanks,
>
> > >Skooter:-)
>
> > > On Dec 30, 3:38 am, "RAJENDIRAN SUNDARRAJAN-CPB738"
>
> > >  wrote:
> > > >  Hi..
>
> > > > Yes you are correct that the Launch timeout expiry gives the wake lock.
> > > > In AlertDialogs the "screen becoming black" depends on the way you
> > > > create it ..
> > > > Please refer the topic "Opening a New Screen"  
> > > > fromhttp://code.google.com/android/kb/commontasks.html. Make sure if you
> > > > are using the third option of creating a dialog then the attribute
> > > > android:theme="@android:style/Theme.Dialog" need to be added in the
> > > > manifest xml of that activity using the dialog.
>
> > > > - Sundar
>
> > > > -Original Message-
> > > > From: android-developers@googlegroups.com
>
> > > > [mailto:android-develop...@googlegroups.com] On Behalf OfSkooter
> > > >Columbo
> > > > Sent: Tuesday, December 30, 2008 2:47 PM
> > > > To: Android Developers
> > > > Subject: [android-developers] Screen Goes Black Between Activities, and
> > > > Next Activity never shows up.
>
> > > > From my MainActivity the user can click a button that shows a dialog.
> > > > From this dialog the user can set the number of minutes and number of
> > > > seconds from a custom Timer component, and click a start button. When
> > > > they click start, this is the OnClickListener that gets invoked.
>
> > > >    public void onClick(DialogInterface dialog, int whichButton) {
> > > >         AlertDialog alertDialog = (AlertDialog)dialog;
> > > >         Timer timer = (Timer)alertDialog.getWindow().findViewById
> > > > (R.id.timer);
>
> > > >         Intent intent = new Intent(MainActivity.this,CountDown.class);
> > > >         intent.putExtra(KEY_MINUTES, timer.getMinutes());
> > > >         intent.putExtra(KEY_SECONDS, timer.getSeconds());
> > > >         startActivity(intent);
> > > >         //startActivityForResult(intent, ACTIVITY_COUNT_DOWN);
> > > >    }
>
> > > > As you can see it is sent to the CountDown activity. What is supposed to
> > > > happen is the minutes and seconds that the user selected from the dialog
> > > > are displayed on the CountDown screen, and they begin to count down and
> > > > an explosion sound is played when zero is reached. What is really
> > > > happening, For some reason the screen goes black, and nothing is
> > > > displayed, however the explosion is played 30 seconds later if user
> > > > selected 30 seconds. The CountDown Activity has two methods onCreate and
> > > > onWindowFocusChanged. OnCreate is used to set up the view and
> > > > onWindowFocusChanged is used to count down and update the view as each
> > > > second pasts. I put the count down code in the  onWindowFocusChanged
> > > > because it there is no user intervention except to watch the time count
> > > > down, and according to the android documentation this is the best
> > > > indicator that the activity is visible to the user.http://
> > > > code.google.com/android/reference/android/app/
> > > > Activity.html#onWindowFocusChanged(boolean). See my code below.
>
> > > >    protected void onCreate(Bundle sa

[android-developers] Re: Compile Error(s)

2008-12-30 Thread brnzn

I might be wrong, but it sounds like there's a problem with your
accessing debug.keystore.  The SDK sets up a default key for
development - in Eclipse check the "Default debug keystore" setting
under under Window > Preferences > Android > Build.

Perhaps something went wrong during the SDK install?  Have you ever
been able to compile?

brnzn

On Dec 31, 2:08 pm, Peter  wrote:
> I'm trying to compile a hellworld application or any application for
> that matter and I keep getting the following errors:
>
> 2008-12-30 17:56:53 - hellworld] Error generating final archive:
> Unable to get debug signature key
> [2008-12-30 17:59:40 - hellworld] --
> [2008-12-30 17:59:40 - hellworld] Android Launch!
> [2008-12-30 17:59:40 - hellworld] adb is running normally.
> [2008-12-30 17:59:40 - hellworld] Could not find hellworld.apk!
> [2008-12-30 18:00:52 - hellworld] --
> [2008-12-30 18:00:52 - hellworld] Android Launch!
> [2008-12-30 18:00:52 - hellworld] adb is running normally.
> [2008-12-30 18:00:52 - hellworld] Could not find hellworld.apk!
>
> Anyone have any idea why this might be happening? I can't compile
> anything, I'm using the latest version of eclipse on Mac OS X, and
> also newest version of the SDK.
--~--~-~--~~~---~--~~
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 implement the Billboard in Android' opengl es

2008-12-30 Thread Ernest

Hi,Everyone

 I review some demo about the opengl ,but not found how to
implement the billboard feature(some model always fact to the viewport
whatever the rotation).My question is in javeMe has a JSR184 could do
this,in Android how to do that?Thank you very much.

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: Screen Goes Black Between Activities, and Next Activity never shows up.

2008-12-30 Thread Skooter Columbo

I finally figured out why the screen was turning black. It did not
have anything to do with the Dialog option I picked. It was because I
had a long running process and I was running it on the UI thread. I
moved the long running process out to a seperate thread and this
sperate thread updated the UI thread as need. This allowed the screen
to display, and to show the count like it was designed too. If you
need to know more about how do this then read this link. It helped me
very much.

http://code.google.com/android/kb/commontasks.html#threading

It is amazing what a 4 hour nap can produce.

Skooter :-)


On Dec 30, 10:57 am, Skooter Columbo 
wrote:
> I got rid of the AlertDialog, and modified my code to use the
> ThemeDialog approach. I made sure that I added the attribute
> android:theme="@android:style/Theme.Dialog"  to the Android Manifest
> file for my application. However I get the same problem. If I comment
> out the code in the onWindowFocusChanged then the CountDown Activity
> display, but of course it does not change. A couple of times the
> screen displayed correctly when the code was uncommented. However it
> only displayed for screen that showed up before when the code was
> commented out. I think is some sort of cached screen for faster
> access, so I don't get my hopes up.
>
> Do you guys have any other ideas? On a lighter note, The display of
> the dialog is much fast now than before when I was callling
> AlertDialog.Builder.
>
> Thanks,
>
> Skooer
>
> On Dec 30, 5:00 am,SkooterColumbo wrote:
>
>
>
> > yea, i was using the AlertDialog, and I used the AlertDialog.Builder
> > to create it. I will try what you suggested.
>
> > Thanks,
>
> >Skooter:-)
>
> > On Dec 30, 3:38 am, "RAJENDIRAN SUNDARRAJAN-CPB738"
>
> >  wrote:
> > >  Hi..
>
> > > Yes you are correct that the Launch timeout expiry gives the wake lock.
> > > In AlertDialogs the "screen becoming black" depends on the way you
> > > create it ..
> > > Please refer the topic "Opening a New Screen"  
> > > fromhttp://code.google.com/android/kb/commontasks.html. Make sure if you
> > > are using the third option of creating a dialog then the attribute
> > > android:theme="@android:style/Theme.Dialog" need to be added in the
> > > manifest xml of that activity using the dialog.
>
> > > - Sundar
>
> > > -Original Message-
> > > From: android-developers@googlegroups.com
>
> > > [mailto:android-develop...@googlegroups.com] On Behalf OfSkooter
> > >Columbo
> > > Sent: Tuesday, December 30, 2008 2:47 PM
> > > To: Android Developers
> > > Subject: [android-developers] Screen Goes Black Between Activities, and
> > > Next Activity never shows up.
>
> > > From my MainActivity the user can click a button that shows a dialog.
> > > From this dialog the user can set the number of minutes and number of
> > > seconds from a custom Timer component, and click a start button. When
> > > they click start, this is the OnClickListener that gets invoked.
>
> > >    public void onClick(DialogInterface dialog, int whichButton) {
> > >         AlertDialog alertDialog = (AlertDialog)dialog;
> > >         Timer timer = (Timer)alertDialog.getWindow().findViewById
> > > (R.id.timer);
>
> > >         Intent intent = new Intent(MainActivity.this,CountDown.class);
> > >         intent.putExtra(KEY_MINUTES, timer.getMinutes());
> > >         intent.putExtra(KEY_SECONDS, timer.getSeconds());
> > >         startActivity(intent);
> > >         //startActivityForResult(intent, ACTIVITY_COUNT_DOWN);
> > >    }
>
> > > As you can see it is sent to the CountDown activity. What is supposed to
> > > happen is the minutes and seconds that the user selected from the dialog
> > > are displayed on the CountDown screen, and they begin to count down and
> > > an explosion sound is played when zero is reached. What is really
> > > happening, For some reason the screen goes black, and nothing is
> > > displayed, however the explosion is played 30 seconds later if user
> > > selected 30 seconds. The CountDown Activity has two methods onCreate and
> > > onWindowFocusChanged. OnCreate is used to set up the view and
> > > onWindowFocusChanged is used to count down and update the view as each
> > > second pasts. I put the count down code in the  onWindowFocusChanged
> > > because it there is no user intervention except to watch the time count
> > > down, and according to the android documentation this is the best
> > > indicator that the activity is visible to the user.http://
> > > code.google.com/android/reference/android/app/
> > > Activity.html#onWindowFocusChanged(boolean). See my code below.
>
> > >    protected void onCreate(Bundle savedInstanceState) {
> > >        super.onCreate(savedInstanceState);
> > >        setContentView(R.layout.count_down);
>
> > >        //instantiate the components
> > >        mMinutesText = (TextView)findViewById(R.id.count_down_minutes);
> > >        mSecondsText = (TextView)findViewById(R.id.count_down_seconds);
> > >        cancelButton = (Button)f

[android-developers] Compile Error(s)

2008-12-30 Thread Peter

I'm trying to compile a hellworld application or any application for
that matter and I keep getting the following errors:


2008-12-30 17:56:53 - hellworld] Error generating final archive:
Unable to get debug signature key
[2008-12-30 17:59:40 - hellworld] --
[2008-12-30 17:59:40 - hellworld] Android Launch!
[2008-12-30 17:59:40 - hellworld] adb is running normally.
[2008-12-30 17:59:40 - hellworld] Could not find hellworld.apk!
[2008-12-30 18:00:52 - hellworld] --
[2008-12-30 18:00:52 - hellworld] Android Launch!
[2008-12-30 18:00:52 - hellworld] adb is running normally.
[2008-12-30 18:00:52 - hellworld] Could not find hellworld.apk!

Anyone have any idea why this might be happening? I can't compile
anything, I'm using the latest version of eclipse on Mac OS X, and
also newest version of the SDK.
--~--~-~--~~~---~--~~
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 do you create an MMS message with audio attachment?

2008-12-30 Thread Blake B.

Hello all,

I am trying to create an MMS message with an audio attachment and a
message for the user to view and then click "send" themselves.  If you
create a new Message on your own, you are able to attach an audio file
(.amr in this case), but how do you do this programatically?

When I do this code below, I get the MMS Compose Message window, but
it gives an error message: "Unsupported picture format.  Please select
a different picture.":

final Intent i = new Intent(Intent.ACTION_SEND);
i.putExtra("sms_body", msgText);
i.putExtra(Intent.EXTRA_STREAM, audioUri);
i.setType("*/*");
startActivity(i);


When I run this code below (changed MIME type from "*/*" to "audio/*"
or "audio/amr", Android instead brings up the GMail client with the
audio attachment on the email:

final Intent i = new Intent(Intent.ACTION_SEND);
i.putExtra("sms_body", msgText);
i.putExtra(Intent.EXTRA_STREAM, audioUri);
i.setType("audio/*");
startActivity(i);


How can I direct the system to create an MMS message with a .amr
attachment?

Thanks,
Blake

--~--~-~--~~~---~--~~
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 not ship android dev phone to china mainland?

2008-12-30 Thread Eric

Try to get someone from US to forward the package to China?
I can only help you if the package comes to Australia or New Zealand,
before being sent to you.

Cheers
Eric
Portable Electronics Ltd
www.hdmp4.com

On Dec 28, 5:07 pm, mawei1981  wrote:
> Hi,all
>
> why not ship android dev phone to china mainland?
>
> I have already paid $25 become a developer, I can pay $399 to buy it,
> but brightstar could not ship it to china mainland?
>
> how can I do?
>
> who can help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: About speech recognizer

2008-12-30 Thread Kun Liu
thanks:)



2008/12/31 Dave Sparks 

>
> There is no support for speech recognition in the current SDK.
>
> On Dec 29, 10:26 pm, michael  wrote:
> > hi all
> >Does this ability is already provided now?
> >
>

--~--~-~--~~~---~--~~
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: certificate ssl webservice keystore

2008-12-30 Thread yukinoba

OK, and thanks for your mention :-)

I have read your source code, and I found it's similar to the source
of the email client embedded in the Android source code now. My one
question is, the cause that 3rd-party applications could not create a
SSL socket, is because of 3rd-party applications can not create /
access the already existed KeyStore file in the system?

If my observation is right, do we just only need to create a local
KeyStore file and assign this file to the original TrustManagerFactory
for access it? The reason why I ask this is I followed the
architecture in the AndroidHttpClient, and found that in the Apache
SSLSocketFactory there already has 2 managers: keymanagers and
trustmanagers. It seems we need to assign 2 store files at the
construction stage of SSLSocketFactory.

Another question is, where (or when) should I know there is a new SSL
certification needs to be notified, and accepted (or not) by the user?
I saw the "acceptKeyDialog" in your AccountSetupCheckSettings.java,
however I have no idea about when this dialog will be triggered.

and appreciates for you and your project again, that really helps a
lot! ;-)

Best regards,
Nicholas

On 12月21日, 下午1時07分, "Bradley Young"  wrote:
> Al and Michael,
>
> Thanks for the ego boost.  I certainly would appreciate eyes on my code.
> The one thing that I will add: while there are standard libraries for
> crypto, they are also some of the worst documented (my opinion) in the
> entire java suite.
>
> Nicholas,
>
> Feel free to contact me if you have questions about the implementation.
> Michael is correct; the implementation exists almost solely in the
> TrustManagerFactory.java, but there are some UI bits in the
> activity/setup/AccountSetupCheckSettings.java (specifically, there's some
> insight into how to present the certificate chain to the user).
>
> Also, just for reference, we recently completed the grand re-renaming
> (moving most everything back into the com.android.email namespace, to
> facilitate merging with the mainline), so don't go looking in com.fsck.k9.
>
> Bradley
>
> On Fri, Dec 19, 2008 at 7:23 AM, Michael  wrote:
>
> > I second the mention of using K9 as reference.  Check in the src/com/
> > fsck/k9/mail/store/ directory, specifically the ImapStore.java and
> > TrustManagerFactory.java files, among others.
>
> > Also note that this stuff isn't Android-specific, these are standard
> > java.* and javax.* libraries, and there's lots of examples on the 'net
> > about using 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: Any updates on paid apps timeline?

2008-12-30 Thread Justin Collum
I heard somewhere that there was a 90 day moratorium on not-free apps. Looks
like I heard wrong.

On Tue, Dec 30, 2008 at 2:38 PM, Dianne Hackborn wrote:

> Just to be clear, this is lots of speculation and no facts. :)  Some facts
> I can share: Android is stable as of 1.0 and we will not be breaking
> compatibility, and in particular we will not be breaking applications in the
> cupcake branch.
>
> Comparing Android to iPhone in that way is also a questionable endeavor,
> since the way they were released was very different: iPhone shipped for
> almost a year with no support for third party apps and then released an
> update to add that feature, while Android shipped from the start with third
> party app support.  I can't comment on adoption of the G1 vs. the original
> iPhone, but clearly at this point there is a smaller number of Android
> users, simply because we started from 0 at the point where third party
> developers were supported.  This is something developers should keep in mind
> and certainly isn't being hidden.
>
> On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden  wrote:
>
>>
>> I think the answer is guessable (and no I don't work for Google)... when
>> the android OS settles down more or less. I expect it a little while after
>> the "cupcake" release. Currently some things are still going to break and if
>> they would allow you to buy applications from the market, you would need to
>> get a new version of the applications very quickly, ...
>>
>> I also don't think android adoption is as quick as the iphone's. In a lot
>> of countries you can't even get an T1 in a "legal/normal way"... Belgium
>> e.g. :( . So maybe if applications would come out now as paying applications
>> they would disappoint the developers as well qua sales.
>>
>> Regards,
>> Sven
>>
>>
>> 2008/12/29 NitroDesk 
>>
>>
>>> True, but the most distressing part is the inability to distribute
>>> paid apps on the market, even with the possibility of charging for
>>> them offsite.
>>> I bet this keeps lots of good apps from showing up on the market, and
>>> worse still, from being developed.
>>> -Nitro
>>>
>>> On Dec 28, 12:48 pm, "Sven Boden"  wrote:
>>> > There are already sites out there which allow you to charge for android
>>> > apps, for the "official" site I didn't see anything out there yet.
>>> >
>>> > Regards,
>>> > Sven
>>> >
>>> > 2008/12/28 Redhunt 
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > Has anyone heard any news on when developers will be able to post
>>> apps
>>> > > for a fee ?
>>> >
>>> > > Thanks- Hide quoted text -
>>> >
>>> > - Show quoted text -
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> 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.  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: About speech recognizer

2008-12-30 Thread Dave Sparks

The voice dialer has its own speech recognition engine - it just
hasn't been exposed in a Java API yet.

On Dec 30, 3:32 pm, "Eng, Cary"  wrote:
> No wonder the Voice Dialer never works for me :-/
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Dave Sparks
> Sent: Tuesday, December 30, 2008 5:32 PM
> To: Android Developers
> Subject: [android-developers] Re: About speech recognizer
>
> There is no support for speech recognition in the current SDK.
>
> On Dec 29, 10:26 pm, michael  wrote:
> > hi all
> >Does this ability is already provided now?
--~--~-~--~~~---~--~~
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: native c/c++ "hello world" _ problem

2008-12-30 Thread Anonymous Anonymous
do an adb remount

On Wed, Dec 31, 2008 at 1:36 AM, AlexG  wrote:

>
> Hi
>
> A good way to start is running:
>
> ./adb shell ls /
> So you can see all the fs structure which is a bit different then
> Unix.
>
> you can do something like:
>
> ./adb push myapp /data/app/
> ./adb shell chmod 777 /data/app/myapp
> ./adb shell /data/app/myapp
>
>
>
> On Dec 30, 12:40 pm, soumyaranjan  wrote:
> > hi everybody
> > i am trying to follow Aaron's documentation regarding the running of
> > a  c/c++ program on android emulator. but while i am not able to write
> > onto the emulator disk
> > or the file system   path /system/sbin because sbin subfolder is not
> > present inside /system folder.
> > but i have a xbin subfolder but if i try to write onto it it doe'nt
> > do, precisely this is what is the problem
> >
> > adb push prog /system/xbin
> > failed to copy 'prog' to '/system/xbin/prog': Read-only file system
> >
> > also an attempt to modify the mode bits is failing
> >
> >  adb shell chmod 777 /sbin
> > Unable to chmod /sbin: Read-only file system
> >
> > pleazz help me out
> >
> > thanks and regards to all
> >
>

--~--~-~--~~~---~--~~
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 quickly update the package without restarting the simulator?

2008-12-30 Thread Xiongzh

Hope in the next version of Android SDK, developer need not to package
and reinstall the apk while debugging ...

On 12月31日, 上午7时15分, Xiongzh  wrote:
> Yes, do not need to restart the simulator. Just re-run the application
> within Eclipse. The plugin is wise enough to reuse the simulator and
> reinstall the package.
> Thanks
> Here's the console log:
> [2008-12-31 07:10:35 - ApiDemos] Android Launch!
> [2008-12-31 07:10:35 - ApiDemos] adb is running normally.
> [2008-12-31 07:10:35 - ApiDemos] Launching:
> com.example.android.apis.ApiDemos
> [2008-12-31 07:10:35 - ApiDemos] Automatic Target Mode: using existing
> emulator: emulator-5554
> [2008-12-31 07:10:35 - ApiDemos] Uploading ApiDemos.apk onto device
> 'emulator-5554'
> [2008-12-31 07:10:40 - ApiDemos] Installing ApiDemos.apk...
> [2008-12-31 07:10:56 - ApiDemos] Application already exists.
> Attempting to re-install instead...
> [2008-12-31 07:11:17 - ApiDemos] Success!
> [2008-12-31 07:11:17 - ApiDemos] Starting activity
> com.example.android.apis.ApiDemos on device
> [2008-12-31 07:11:20 - ApiDemos] ActivityManager: DDM dispatch reg
> wait timeout
> [2008-12-31 07:11:20 - ApiDemos] ActivityManager: Can't dispatch DDM
> chunk 52454151: no handler defined
> [2008-12-31 07:11:22 - ApiDemos] ActivityManager: Starting: Intent
> { comp={com.example.android.apis/com.example.android.apis.ApiDemos} }
>
> On 12月31日, 上午1时49分, "Justin Collum"  wrote:
>
> > I'm using eclipse. When I start the simulator, run my package, make code
> > changes and hit run again, the new code goes to the simulator automatically
> > without a restart. I wish there was a way to get the emulator to skip its
> > boot sequence.
>
> > On Tue, Dec 30, 2008 at 6:35 AM, Xiongzh  wrote:
>
> > > hi friends,
>
> > > I'm tired of restarting the simulator again and again for just small
> > > changes in the source codes.
> > > In my VISTA/3G/Intel Duo laptop, it would take minitues.
>
> > > Is it possible to uninstall and re-install the package without closing
> > > the simulator and restarting it?
>
> > > My way is to use
> > > adb uninstall 
> > > adb install my.apk
>
> > > It's still not quick enough. need nearly 1 minute.
>
> > > What's your way to save your time?
>
> > > 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: About speech recognizer

2008-12-30 Thread Eng, Cary

No wonder the Voice Dialer never works for me :-/

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Dave Sparks
Sent: Tuesday, December 30, 2008 5:32 PM
To: Android Developers
Subject: [android-developers] Re: About speech recognizer


There is no support for speech recognition in the current SDK.

On Dec 29, 10:26 pm, michael  wrote:
> hi all
>Does this ability is already provided now?


--~--~-~--~~~---~--~~
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: About speech recognizer

2008-12-30 Thread Dave Sparks

There is no support for speech recognition in the current SDK.

On Dec 29, 10:26 pm, michael  wrote:
> hi all
>Does this ability is already provided now?
--~--~-~--~~~---~--~~
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: USB signal control class?

2008-12-30 Thread Justin (Google Employee)

There's no simple (and perhaps none at all) way to do this on the
system that runs on the G1. There might be a way to do this through
JNI, but it would be fragile and difficult to develop, if it were even
possible. You can, of course, modify the system itself and install on
custom hardware (or an Android Dev Phone 1). This route requires
experience with Linux system and/or kernel programming though.

Cheers,
Justin
Android Team @ Google

On Dec 30, 7:53 am, rr...@scires.com wrote:
> Justin,
>
> You say "In 1.0 you don't have access to theUSBport via the Java API
> layer. ".  Does that imply that there is another interface that may
> allow me to access theUSBport?  We would like to use the G1 as acontrolhead 
> for several devices and a wireless link will not be
> appropriate.  We are hoping to use theUSBto getcontrolinformation
> and data back and forth.
>
> Thanks,
> Rob
>
> On Dec 15, 5:39 pm, "Justin (Google Employee)"  wrote:
>
> > Pavel,
>
> > It sounds like you're trying to do hardware development, and the SDK
> > isn't really designed for this. You can modify the source and,
> > assuming you have a developer device, flash your new system on to your
> > device.
>
> > Its unlikely that any device will ever support simultaneous access to
> > the SD card by the device and a host computer. The file system of the
> > SD card (FAT32) is not designed for this type of multi-host access.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Oct 27, 3:59 pm, Pavel Antokolsky aka Zigmar 
> > wrote:
>
> > > On Oct 24, 6:35 pm, "Justin (Google Employee)" 
> > > wrote:
>
> > > > In 1.0 you don't have access to theUSBport via the Java API layer.
> > > > What is the goal of your project?
>
> > > Hello Justin,
> > > I'm unsure what Chamika is doing, but I have a similar problem. My app
> > > needs to communicate with a hardware device (an embedded device,
> > > running WindowsCE and acting asUSBhost). Currently, I'm kinda stuck
> > > because I can't figure out how to do this. I was hoping to accomplish
> > > this by making my app write and read to files at SD Card, while the
> > > other device would access those files via mass storage interface, but
> > > as discovered recently (discussed in this topic:http://tinyurl.com/6xxovg)
> > > an android app can't write on SD card while it is accessible viausb
> > > (at G1 unit at least). Could you suggest some direction to look at,
> > > please?
>
> > > Best Regards,
> > > Zigmar- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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 Dev Phone 1™

2008-12-30 Thread Justin (Google Employee)

Hmmm, this is the first I've heard of the charging cable not
physically fitting the phone. The phone should *not* have a standard
miniUSB input, but instead a modified one. When holding the phone with
the screen facing up the left side of the port on the phone should be
perfectly vertical, but the right side should be at an angle at the
bottom of the port and then go completely vertical half way up. I'll
try a little ASCII art here:
_
|   |
|__/

A 'normal' miniUSB port has sides that are mirror images of itself and
look roughly like the right side of the port on the Dev Phone 1,
albeit a little less perfectly angular.

A 'normal' miniUSB cable will work with the Dev Phone 1, but a Dev
Phone 1 specific cable will *not* work with a 'normal' miniUSB port.
Based on your description I wonder if your phone has a 'normal'
miniUSB port instead of the custom one and you've got a wall charger
with the custom connector, as it should have. If you can provide some
more information on your connector configurations that would be great.

Thanks,
Justin
Android Team @ Google

On Dec 19, 3:07 pm, baker  wrote:
> Sorry for the repost.
>
> Yes I can charge thephonewith USB and yes the cable will connect to
> the wall with a converting. However always charging over USB isn't
> always convenient.
>
> However the socket to thephoneis incompatible with thephone. It
> physically doesn't fit, different shape.
>
> Craig.
>
> On Dec 20, 10:02 am, baker  wrote:
>
> > I received thephonelast week but it came packaged with an incorrect
> > power cable. The cable doesn't connect to either my Australian wall
> > socket or thephone. That's right it isn't even compatible with the
> >phone. So what to do, brightstar and google have no contact
> > information should you have any problems with the shipment. None of
> > the emails from birghtstar have a support email.
>
> > I've emailed both a brightstart email address from there web site and
> > a google market place email, but haven't heard from anybody after many
> > days.
>
> > I just want a power cable for thephone, can anybody give me some
> > advice as to how I get these goons to send me thephonean equipment I
> > paid for.
>
> > Thanks,
>
> > Craig Baker.
>
> > On Dec 11, 4:31 pm, kpowerinfinity  wrote:
>
> > > Same problem here. I placed an order, but the order doesn't appear on
> > > the Brightstar tracking page. It says that no orders have been placed.
> > > I have sent 3 emails to andr...@brightstarcorp.com but not received
> > > any useful replies. Anybody here knows how long it will take the
> > > phones to ship?
>
> > > I am relying on somebody to bring thephonefrom the US to India for
> > > me ... and in fact I paid extra shipping to ensure it reaches in time.
> > > In case, they delay shipping too much, I would rather cancel the order
> > > because then I can't get thephonebrought to India for me, but the
> > > customer services hasn't even replied. Anybody here can help?
>
> > > Thanks, Krishna.
> > > kkme...@gmail.com
>
> > > melp wrote:
> > > > I have the same issue. I placed an order twice on 8 Dec and got the
> > > > confirming email. Both times my credit card was charged(!) but my
> > > > orders disappeared off the tracking page.
>
> > > > Customer service is non-existent. Repeated emails have not received
> > > > any replies and I have tried calling their number during their stated
> > > > operating hours but always get a recorded message that says they are
> > > > closed or serving someone else.
>
> > > > Any google employees care to comment?
>
> > > > On Dec 9, 9:33 pm, Logan  wrote:
> > > > > Does anyone know more about this company, I placed an order and all I
> > > > > got was an e-mail confirming my order but no way to check shipping
> > > > > status, etc. Are these phones actually shipping now?
>
> > > > > On Dec 8, 2:49 pm, Pastymage  wrote:
>
> > > > > > Does anyone have a more detailed FAQ than the text 
> > > > > > onhttp://android.brightstarcorp.com/?Mymainconcern is that GPS is
> > > > > > not listed anywhere in the hardware features - does it actually
> > > > > > support GPS, or not?
>
> > > > > > Aside from that, I'm unclear on how the 3G bands work - what would
> > > > > > the actual bandwidth of this device be on AT&T, for example?
>
> > > > > > -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: How to quickly update the package without restarting the simulator?

2008-12-30 Thread Xiongzh

Yes, do not need to restart the simulator. Just re-run the application
within Eclipse. The plugin is wise enough to reuse the simulator and
reinstall the package.
Thanks
Here's the console log:
[2008-12-31 07:10:35 - ApiDemos] Android Launch!
[2008-12-31 07:10:35 - ApiDemos] adb is running normally.
[2008-12-31 07:10:35 - ApiDemos] Launching:
com.example.android.apis.ApiDemos
[2008-12-31 07:10:35 - ApiDemos] Automatic Target Mode: using existing
emulator: emulator-5554
[2008-12-31 07:10:35 - ApiDemos] Uploading ApiDemos.apk onto device
'emulator-5554'
[2008-12-31 07:10:40 - ApiDemos] Installing ApiDemos.apk...
[2008-12-31 07:10:56 - ApiDemos] Application already exists.
Attempting to re-install instead...
[2008-12-31 07:11:17 - ApiDemos] Success!
[2008-12-31 07:11:17 - ApiDemos] Starting activity
com.example.android.apis.ApiDemos on device
[2008-12-31 07:11:20 - ApiDemos] ActivityManager: DDM dispatch reg
wait timeout
[2008-12-31 07:11:20 - ApiDemos] ActivityManager: Can't dispatch DDM
chunk 52454151: no handler defined
[2008-12-31 07:11:22 - ApiDemos] ActivityManager: Starting: Intent
{ comp={com.example.android.apis/com.example.android.apis.ApiDemos} }


On 12月31日, 上午1时49分, "Justin Collum"  wrote:
> I'm using eclipse. When I start the simulator, run my package, make code
> changes and hit run again, the new code goes to the simulator automatically
> without a restart. I wish there was a way to get the emulator to skip its
> boot sequence.
>
> On Tue, Dec 30, 2008 at 6:35 AM, Xiongzh  wrote:
>
> > hi friends,
>
> > I'm tired of restarting the simulator again and again for just small
> > changes in the source codes.
> > In my VISTA/3G/Intel Duo laptop, it would take minitues.
>
> > Is it possible to uninstall and re-install the package without closing
> > the simulator and restarting it?
>
> > My way is to use
> > adb uninstall 
> > adb install my.apk
>
> > It's still not quick enough. need nearly 1 minute.
>
> > What's your way to save your time?
>
> > 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: Save data between onDestory/onCreate cycles

2008-12-30 Thread Dianne Hackborn
As the docs say, the onRetainNonConfigurationInstance() should only be used
as an optimization, not to replace a working implementation of the normal
onSaveInstanceState() et al mechanism.  (The latter is the only thing that
can be done in the case where an app's process needs to be killed or its
activities removed while in the background, which is what destroying
activities immediately emulates.)

At any rate, you should be able to put a styled CharSequence into a bundle
(or use the TextUtils class to write it directly to a Parcel) and get it out
again with the styling intact.  Unfortunately this currently only works for
the built-in styleable classes, so if you need to retain your own custom
ones you will probably do your own marshalling/unmarshalling with the
Parcel.

On Tue, Dec 30, 2008 at 9:51 AM, Al  wrote:

>
> I did read your site posts before deciding how to saving data when
> rotating, but the problem is onRetain() isn't called, for example,
> when you set the emulator to destroy activities immediately and then
> press 'Home'. OnSave() on the other hand *is* called. Because of
> this, I've decided to save the text in onSave...() instead, but I
> can't preserve formatting.
>
> On Dec 30, 12:34 am, Mark Murphy  wrote:
> > Al wrote:
> > > My app uses colour on some of the strings it writes to the TextView.
> > > The problem I'm having is when I open/close the keyboard, I'm forced
> > > to save the coloured data as Strings, which means it loses formatting.
> > > The Bundle class doesn't support saving Objects so I've tried writing
> > > it to a Parcel and then storing it in a Bundle. But then it needs a
> > > ClassLoader to read the data back, and I'm not sure I need to pass to
> > > it. The TextView text is a mix of spannableStrings and plain 'ol
> > > String. Any pointers on saving the formatting between open/close
> > > keyboard cycle is appreciated.
> >
> > Don't use the Bundle, at least for rotations.
> >
> > There are plenty of alternative approaches, such as using
> > onRetainNonConfigurationInstance(). I have a five-post series on
> > AndroidGuys that covers this area:
> >
> > http://androidguys.com/?s=rotational+forces
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> >
> > Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
> >
>


-- 
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.  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: How do you start a service on installation?

2008-12-30 Thread Dianne Hackborn
How about not finding a work-around, but rather starting yourself up when
the user starts your app as intended?  Better yet, let them decide whether
you will remain running in the background, so if they don't want to be using
your app's features during some time they don't have to resort to just
uninstalling it.

On Tue, Dec 30, 2008 at 11:32 AM, devileper  wrote:

> Upon further reading, this approach is impossible and is by design.  I will
> find a work around.
>
> On Wed, Dec 17, 2008 at 11:22 AM, devile...@gmail.com  > wrote:
>
>>
>> I need a service to begin the moment my application is installed.  Is
>> this possible?
>>
>> My current approach is to create a BroadcastService which receives the
>> PACKAGE_ADDED action. However, this only seems to work after my
>> application is installed, not when my application is installed.
>>
>> 
>> 
>>> android:name="android.intent.action.PACKAGE_ADDED">
>>
>> 
>> 
>>
>>
>>
>>
>
> >
>


-- 
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.  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: TextView Widget - OnResume

2008-12-30 Thread Dianne Hackborn
You should not be using singleTask to "fix" problems like this, as the
launch mode is intended to control the flow through the activity, not to let
you avoid dealing with activity lifecycle.  Please read the app model doc to
understand what happens when you use this.  It can cause very undesirable
effects if not used appropriately.

Pressing back and then returning to the activity -should- result in a new
instance of the activity being started, since the default behavior of back
is to close the current one.  You just should deal with this, and point
everything to the new activity.  (And really, you shouldn't generally leave
stuff running in your process associated with an activity that has been
finished.  The user pressed back, your activity is finished, and its work
should stop.)  If you have some long-running operation that needs to
continue outside of the regular activity lifecycle, a Service is a common
approach to take.

On Tue, Dec 30, 2008 at 1:26 PM, Christine wrote:

>
> If what Sundog says is true, i.d. that you have two instances of an
> activity where there should be only one, you can spedify "singletask"
> in the manifest file. that solved a similar problem I had. Make sure
> you spedify "singletask" just fot that one activity.
>
>
>
> On Dec 30, 8:29 pm, Sundog  wrote:
> > Only thing I can think of is that maybe somehow you've created a
> > second TextView object upon resume and the messages are going to the
> > wrong one. I've done something similar...
> >
> > On Dec 30, 9:35 am, Dan  wrote:
> >
> > > I'll just say upfront that I apologize if this is a duplicate post. I
> > > originally posted this message in the Beginners group but now I can't
> > > find it anywhere so I thought I would post it here this time.
> >
> > > Anyway, I have an activity where I'm just listening for udp messages
> > > in a background thread and then just posting those messages in a
> > > TextView widget. When I originally go into the activity everything
> > > works great. The messages are obtained from the background thread and
> > > posted to the UI thread through a message handler. The string is then
> > > written to the textview control via a call to the append() method.
> >
> > > The issue I'm having is if I exit the activity (via the back button on
> > > the G1) and then reenter the activity. Everything works great except
> > > the writing to the textview control. I can see the message being
> > > received in the background thread and being handed off to the message
> > > handler just fine. But when I make the call to append() nothing ever
> > > gets written out to the textview control.
> >
> > > Has anyone seen this behavior before? Is there something I"m missing
> > > with the textview control? Any help is greatly appreciated.
> >
> > > Dan
> >
>


-- 
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.  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: RuntimeException when launching activity on emulator

2008-12-30 Thread Dianne Hackborn
The log has the full stack crawl where the error occurred.

On Mon, Dec 29, 2008 at 1:53 PM, Ellen Spertus wrote:

>
> I'm developing on Windows with Eclipse (Ganymede) with SDK 1.0r2.  For
> a few days, I was able to run and debug my program on both the
> emulator and my phone.  Starting yesterday, I've been unable to launch
> the activity of the program I'm developing on the emulator or phone.
> (I can still run my hello world app.)  My run and debug configurations
> are
> set to launch my activity com.android.bounce.Bounce.  When I try
> debugging, I get this error and stack dump:
>
> Bounce config [Android Application]
>DalvikVM[localhost:8608]
>Thread [<3> main] (Suspended (exception
> RuntimeException))
>ActivityThread.performLaunchActivity
> (ActivityThread$ActivityRecord)
> line: 2140
>ActivityThread.handleLaunchActivity
> (ActivityThread$ActivityRecord)
> line: 2156
>ActivityThread.access$1800(ActivityThread,
> ActivityThread
> $ActivityRecord) line: 112
>ActivityThread$H.handleMessage(Message) line:
> 1580
>ActivityThread$H(Handler).dispatchMessage
> (Message) line: 88
>Looper.loop() line: 123
>ActivityThread.main(String[]) line: 3742
>Method.invokeNative(Object, Object[], Class,
> Class[], Class, int,
> boolean) line: not available [native method]
>Method.invoke(Object, Object...) line: 515
>ZygoteInit$MethodAndArgsCaller.run() line: 739
>ZygoteInit.main(String[]) line: 497
>NativeStart.main(String[]) line: not available
> [native method]
>Thread [<13> Binder Thread #2] (Running)
>Thread [<11> Binder Thread #1] (Running)
>
> I have tried restarting Eclipse and rebooting my computer, without
> effect.
>
> Here is the code for the activity class, which has been unchanged
> since before I began getting this error:
>
> public class Bounce extends Activity {
>@SuppressWarnings("unused")
>private BounceThread mBounceThread;
>private BounceView mBounceView;
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>// get handles
>mBounceView = (BounceView)findViewById(R.id.bounce);
>mBounceThread = mBounceView.getThread();
>}
>
> }
>
> Stepping through in the debugger, savedInstanceState == NULL, and the
> failure occurs in setContentView().  The file res/layout/main.xml is:
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent">
> android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:text="@string/hello"
>/>
>
>  android:id="@+id/bounce"
>  android:layout_width="fill_parent"
>  android:layout_height="fill_parent"/>
>
> 
>
> The automatically created R.java file includes:
>
> public final class R {
>...
>public static final class id {
>public static final int bounce=0x7f05;
>}
>...
> }
>
> Here is my manifest:
>
> 
> http://schemas.android.com/apk/res/android";
>  package="com.android.bounce"
>  android:versionCode="1"
>  android:versionName="1.0.0">
>
>  android:label="@string/app_name">
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
> 
>
> I'd be grateful for any advice.
>
> Ellen
>
> >
>


-- 
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.  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: Any updates on paid apps timeline?

2008-12-30 Thread Dianne Hackborn
Just to be clear, this is lots of speculation and no facts. :)  Some facts I
can share: Android is stable as of 1.0 and we will not be breaking
compatibility, and in particular we will not be breaking applications in the
cupcake branch.

Comparing Android to iPhone in that way is also a questionable endeavor,
since the way they were released was very different: iPhone shipped for
almost a year with no support for third party apps and then released an
update to add that feature, while Android shipped from the start with third
party app support.  I can't comment on adoption of the G1 vs. the original
iPhone, but clearly at this point there is a smaller number of Android
users, simply because we started from 0 at the point where third party
developers were supported.  This is something developers should keep in mind
and certainly isn't being hidden.

On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden  wrote:

>
> I think the answer is guessable (and no I don't work for Google)... when
> the android OS settles down more or less. I expect it a little while after
> the "cupcake" release. Currently some things are still going to break and if
> they would allow you to buy applications from the market, you would need to
> get a new version of the applications very quickly, ...
>
> I also don't think android adoption is as quick as the iphone's. In a lot
> of countries you can't even get an T1 in a "legal/normal way"... Belgium
> e.g. :( . So maybe if applications would come out now as paying applications
> they would disappoint the developers as well qua sales.
>
> Regards,
> Sven
>
>
> 2008/12/29 NitroDesk 
>
>
>> True, but the most distressing part is the inability to distribute
>> paid apps on the market, even with the possibility of charging for
>> them offsite.
>> I bet this keeps lots of good apps from showing up on the market, and
>> worse still, from being developed.
>> -Nitro
>>
>> On Dec 28, 12:48 pm, "Sven Boden"  wrote:
>> > There are already sites out there which allow you to charge for android
>> > apps, for the "official" site I didn't see anything out there yet.
>> >
>> > Regards,
>> > Sven
>> >
>> > 2008/12/28 Redhunt 
>> >
>> >
>> >
>> >
>> >
>> > > Has anyone heard any news on when developers will be able to post apps
>> > > for a fee ?
>> >
>> > > Thanks- Hide quoted text -
>> >
>> > - Show quoted text -
>>
>>
>>
>
> >
>


-- 
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.  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: Any updates on paid apps timeline?

2008-12-30 Thread Shane Isbell
This may be of some interest for developers who want to charge for
applications: SlideME -
http://groups.google.com/group/android-discuss/browse_thread/thread/7ace0e3a9fae4026

Shane

On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden  wrote:

>
> I think the answer is guessable (and no I don't work for Google)... when
> the android OS settles down more or less. I expect it a little while after
> the "cupcake" release. Currently some things are still going to break and if
> they would allow you to buy applications from the market, you would need to
> get a new version of the applications very quickly, ...
>
> I also don't think android adoption is as quick as the iphone's. In a lot
> of countries you can't even get an T1 in a "legal/normal way"... Belgium
> e.g. :( . So maybe if applications would come out now as paying applications
> they would disappoint the developers as well qua sales.
>
> Regards,
> Sven
>
>
> 2008/12/29 NitroDesk 
>
>
>> True, but the most distressing part is the inability to distribute
>> paid apps on the market, even with the possibility of charging for
>> them offsite.
>> I bet this keeps lots of good apps from showing up on the market, and
>> worse still, from being developed.
>> -Nitro
>>
>> On Dec 28, 12:48 pm, "Sven Boden"  wrote:
>> > There are already sites out there which allow you to charge for android
>> > apps, for the "official" site I didn't see anything out there yet.
>> >
>> > Regards,
>> > Sven
>> >
>> > 2008/12/28 Redhunt 
>> >
>> >
>> >
>> >
>> >
>> > > Has anyone heard any news on when developers will be able to post apps
>> > > for a fee ?
>> >
>> > > Thanks- Hide quoted text -
>> >
>> > - Show quoted text -
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 remove Gallery drop shadow

2008-12-30 Thread devileper

I'm an idiot.  The drop shadow I was referring to is the fading edge.
This is removed by setting the fading edge to none.

android:fadingEdge="none"

On Dec 17, 11:18 am, devileper  wrote:
> Below is my test code.  If you look at the left side of the text you will
> see a gradient shadow over the text, but I'm not specifying any background.
> Forcing the background to null had no effect.
>
> public class GalleryTestActivity extends Activity {
>
>     ArrayAdapter arrayAdapter;
>
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         Gallery gallery = (Gallery)findViewById(R.id.gallery);
>         arrayAdapter = new ArrayAdapter(this, R.layout.gallery_item,
> new String [] {"One", "Two", "Three"});
>         gallery.setAdapter(arrayAdapter);
>     }
>
> }
>
> 
> 
> http://schemas.android.com/apk/res/android";
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:gravity="center"
>     >
>              android:id="@+id/gallery"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:spacing="0dip"
>     />
> 
>
> 
> 
> http://schemas.android.com/apk/res/android";
>     android:id="@+id/text"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>      android:textSize="70sp"
> />
>
> On Fri, Dec 12, 2008 at 11:47 AM, Xavier Mathews 
> wrote:
>
>
>
> > Can you post the code or a link.
>
> > On 12/12/2008, devile...@gmail.com  wrote:
>
> > > The gallery view creates a shadow around all gallery items.  Is there
> > > a way to remove this?  Going through the source code, I can't even
> > > find where this shadow is added.
>
> > --
> > Xavier A. Mathews
> > Student/Browser Specialist/Developer/Web-Master
> > Google Group Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
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: getFromLocationName() broken?

2008-12-30 Thread Rafael Fernandes

well I've tried my code on my real device and I'm facing the same
error...
you all are correct, the cupcake branch has fixed the issue (I have
the new source here)...
even though the error remains for me (even recompiling the platform
core etc, bla bla bla)...

by the way, I've tried your app here and I've got the same error...
however if I type only piz it shows me one record but if I type pizza,
it gives me this bloody forwardGeocode(): no feature in GLocation
error...
if you type pizza munich for example, do you get anything there?

cheers,
rafa

On Dec 30, 9:45 pm, "Alistair." 
wrote:
> Maybe this has been fixed in the latest sdk as I have been using it
> and it seems to work for me.
>
> http://code.google.com/p/netthreads-for-android/source/browse/trunk/p...
>
> Al.
>
> On Dec 30, 6:06 pm, DMT  wrote:
>
> > Hi All: anyone know if the Geocoder.getFromLocationName() method is
> > currently working?
> > Has anybody been able to get it to work?
> > If not, when will it be fixed (in what android release)?
> > 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: Android Dev Phone Battery life

2008-12-30 Thread Eng, Cary
FWIW, I've found that if I use the G1 only as a phone, it lasts fairly long.  
In fact last time when I topped the battery off at 100% and removed it from the 
charger before I went to bed, it was at 99% 12 hours later when I checked it.  
So a pure standby-only time of 5 days seems fairly feasible to me given my 
experiences with my G1.  But once you start opening up browser windows and 
turning on WiFi, it's easy to burn the battery down in just a few hours.  This 
is on a non-Dev phone btw.


From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Disconnect
Sent: Tuesday, December 30, 2008 11:21 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Android Dev Phone Battery life

If you get really bad battery life, calibrate it.  Drain it down until it 
absolutely won't boot. (Lower is better.) Then charge it -uninterrupted- for at 
least 8 hours (longer is better, up to about 24 hours..)

The default charge calibration is worthless.
On Mon, Dec 29, 2008 at 12:30 AM, victorcab 
mailto:victor...@gmail.com>> wrote:

I've had a similar experience. 8 hours is normal with light use.

On Dec 25, 9:51 am, albemuth mailto:albem...@gmail.com>> 
wrote:
> I don't know if I screwed mine up (was using it during the first
> charge), these last 2 days that I've been using it a lot I get 6 hours
> at best :/
>
> On Dec 22, 9:50 am, Michael 
> mailto:michael573...@gmail.com>> wrote:
>
> > Yeah, with light use, I charge ever 2 days.  I generally plug it in
> > every night, and only ran out once, right when it was new and I was
> > showing it off constantly.




--~--~-~--~~~---~--~~
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] CPU asleep when using the network

2008-12-30 Thread Gil

I'm developing an application which needs a persistent TCP connection
to server. I'm trying to understand what is the proper way of dealing
with persistent connections to avoid draining the battery quickly. My
understanding is if a socket is connected to the server and the CPU
goes to sleep, if packets are received on that connection the CPU will
wake up. The thing I don't know is when it will go back to sleep
again. Do I need to grab a WakeLock right after the read operation and
release it after I'm done processing the incoming packet? If I don't
grab the WakeLock is there the concept of an execution context which
ends when the current thread goes to the blocking or sleeping state?

One think I noticed when using the HttpConnection is that
getResponseCode (which is a blocking call) will NOT wake up if the CPU
goes to sleep. At this time I am considering writing my own HTTP
connection class in order to gain fine control over the behavior of
the class in regards to the CPU sleep issue.
--~--~-~--~~~---~--~~
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: TextView Widget - OnResume

2008-12-30 Thread Christine

If what Sundog says is true, i.d. that you have two instances of an
activity where there should be only one, you can spedify "singletask"
in the manifest file. that solved a similar problem I had. Make sure
you spedify "singletask" just fot that one activity.



On Dec 30, 8:29 pm, Sundog  wrote:
> Only thing I can think of is that maybe somehow you've created a
> second TextView object upon resume and the messages are going to the
> wrong one. I've done something similar...
>
> On Dec 30, 9:35 am, Dan  wrote:
>
> > I'll just say upfront that I apologize if this is a duplicate post. I
> > originally posted this message in the Beginners group but now I can't
> > find it anywhere so I thought I would post it here this time.
>
> > Anyway, I have an activity where I'm just listening for udp messages
> > in a background thread and then just posting those messages in a
> > TextView widget. When I originally go into the activity everything
> > works great. The messages are obtained from the background thread and
> > posted to the UI thread through a message handler. The string is then
> > written to the textview control via a call to the append() method.
>
> > The issue I'm having is if I exit the activity (via the back button on
> > the G1) and then reenter the activity. Everything works great except
> > the writing to the textview control. I can see the message being
> > received in the background thread and being handed off to the message
> > handler just fine. But when I make the call to append() nothing ever
> > gets written out to the textview control.
>
> > Has anyone seen this behavior before? Is there something I"m missing
> > with the textview control? Any help is greatly appreciated.
>
> > 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: TextView Widget - OnResume

2008-12-30 Thread Christine

If what Sundog says is true, i.d. that you have two instances of an
activity where there should be only one, you can spedify "singletask"
in the manifest file. that solved a similar problem I had. Make sure
you spedify "singletask" just fot that one activity.



On Dec 30, 8:29 pm, Sundog  wrote:
> Only thing I can think of is that maybe somehow you've created a
> second TextView object upon resume and the messages are going to the
> wrong one. I've done something similar...
>
> On Dec 30, 9:35 am, Dan  wrote:
>
> > I'll just say upfront that I apologize if this is a duplicate post. I
> > originally posted this message in the Beginners group but now I can't
> > find it anywhere so I thought I would post it here this time.
>
> > Anyway, I have an activity where I'm just listening for udp messages
> > in a background thread and then just posting those messages in a
> > TextView widget. When I originally go into the activity everything
> > works great. The messages are obtained from the background thread and
> > posted to the UI thread through a message handler. The string is then
> > written to the textview control via a call to the append() method.
>
> > The issue I'm having is if I exit the activity (via the back button on
> > the G1) and then reenter the activity. Everything works great except
> > the writing to the textview control. I can see the message being
> > received in the background thread and being handed off to the message
> > handler just fine. But when I make the call to append() nothing ever
> > gets written out to the textview control.
>
> > Has anyone seen this behavior before? Is there something I"m missing
> > with the textview control? Any help is greatly appreciated.
>
> > 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] Sharing a MapView between two Activities

2008-12-30 Thread mscwd01

I have encountered memory issues in the past when using more than one
MapView in a given application.

However in the application I am currently working on I require two
activites to use MapViews. Instead of creating a new MapView object in
each activity, is there a way to create one MapView and use it in each
of the two activities?

I.e. Use it in activity one, add overlays etc -> start activity two,
clear overlays and add new overlays etc?

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] Unable to get all phone numbers of a contact.

2008-12-30 Thread Sarath Kamisetty

Hi,

Given a contact URI like content://contacts/people/23 I want to dump
all phone numbers - like home, mobile, work, fax etc. all. However
when I user managedQuery and got a cursor for this and dumped all the
column names the only relevant columns I see are "number" and
"primary_phone" (code shown below). It is not clear how all the phone
numbers are stored and accessed. I tried looking at Contacts code but
unable to make out much. Any help is greatly appreciated.

Thanks,
Sarath

Cursor managedCursor = managedQuery(pickedContact,
null, // Which columns to return
null,   // WHERE clause; which rows to return (all rows)
null,   // WHERE clause selection arguments (none)
People.NAME + " ASC"); // Order-by clause
(ascending by name)

managedCursor.moveToFirst();
int columnCount = managedCursor.getColumnCount();
String resStr = new String();
for (int i=0; i < columnCount; i++) {
  resStr += managedCursor.getColumnName(i) + " ";
}

--~--~-~--~~~---~--~~
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: getFromLocationName() broken?

2008-12-30 Thread Alistair.

Maybe this has been fixed in the latest sdk as I have been using it
and it seems to work for me.

http://code.google.com/p/netthreads-for-android/source/browse/trunk/place-finder/src/com/netthreads/android/command/GeoCodeCommand.java

Al.

On Dec 30, 6:06 pm, DMT  wrote:
> Hi All: anyone know if the Geocoder.getFromLocationName() method is
> currently working?
> Has anybody been able to get it to work?
> If not, when will it be fixed (in what android release)?
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to quickly update the package without restarting the simulator?

2008-12-30 Thread Brett Chabot

You could try to re-install the app instead, using
adb install -r my.apk

Although re-installing will retain the application's data, which might
not be always what you want.

Also, I wasn't clear from your message whether you are doing this or
not, but it should not be necessary to close and restart the emulator.
I just leave the emulator running while I'm doing my app development.

Hope that helps.

Regards,
Brett.


On Dec 30, 9:49 am, "Justin Collum"  wrote:
> I'm using eclipse. When I start the simulator, run my package, make code
> changes and hit run again, the new code goes to the simulator automatically
> without a restart. I wish there was a way to get the emulator to skip its
> boot sequence.
>
> On Tue, Dec 30, 2008 at 6:35 AM, Xiongzh  wrote:
>
> > hi friends,
>
> > I'm tired of restarting the simulator again and again for just small
> > changes in the source codes.
> > In my VISTA/3G/Intel Duo laptop, it would take minitues.
>
> > Is it possible to uninstall and re-install the package without closing
> > the simulator and restarting it?
>
> > My way is to use
> > adb uninstall 
> > adb install my.apk
>
> > It's still not quick enough. need nearly 1 minute.
>
> > What's your way to save your time?
>
> > 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: getFromLocationName() broken?

2008-12-30 Thread Brett Chabot

Hi Rafael:

I believe the problem you mentioned in this thread:
http://groups.google.com/group/android-developers/browse_frm/thread/3eca9ea2b22e3695

has been fixed in the open source "cupcake" development branch. Are
there are any additional problems with getFromLocationName?

Brett.

On Dec 30, 11:40 am, Rafael Fernandes  wrote:
> well mate this is a mystery at the moment...
> I've never been able to get this working...
>
> you can check my thread 
> here...http://groups.google.com/group/android-developers/browse_thread/threa...[forwardGeocode():+no+feature+in+GLocation]#a2ad7062c1f3d919
>
> did you get the same?
>
> cheers,
> rafael fernandes
>
> On Dec 30, 7:06 pm, DMT  wrote:
>
> > Hi All: anyone know if the Geocoder.getFromLocationName() method is
> > currently working?
> > Has anybody been able to get it to work?
> > If not, when will it be fixed (in what android release)?
> > 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: native c/c++ "hello world" _ problem

2008-12-30 Thread AlexG

Hi

A good way to start is running:

./adb shell ls /
So you can see all the fs structure which is a bit different then
Unix.

you can do something like:

./adb push myapp /data/app/
./adb shell chmod 777 /data/app/myapp
./adb shell /data/app/myapp



On Dec 30, 12:40 pm, soumyaranjan  wrote:
> hi everybody
> i am trying to follow Aaron's documentation regarding the running of
> a  c/c++ program on android emulator. but while i am not able to write
> onto the emulator disk
> or the file system   path /system/sbin because sbin subfolder is not
> present inside /system folder.
> but i have a xbin subfolder but if i try to write onto it it doe'nt
> do, precisely this is what is the problem
>
> adb push prog /system/xbin
> failed to copy 'prog' to '/system/xbin/prog': Read-only file system
>
> also an attempt to modify the mode bits is failing
>
>  adb shell chmod 777 /sbin
> Unable to chmod /sbin: Read-only file system
>
> pleazz help me out
>
> thanks and regards to all
--~--~-~--~~~---~--~~
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] About speech recognizer

2008-12-30 Thread michael

hi all
   Does this ability is already provided now?

--~--~-~--~~~---~--~~
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] Error in AndroidManifest.xml and some other xml files

2008-12-30 Thread Tony Wu

I'm trying to compile the source coded by sdk 1.5, and I had already
replaced the android.jar from sdk 1.0 rc2.
Some new import have already been with no problem, but the xml file
still have error that can't recognize some tag like
"android:windowSoftInputMode" or "android:inputType".
Do any one have good solution to migrate the sdk from 1.0 to 1.5?? or
teach me how to solve the xml's problem.
My development environment is under Eclipse, if the xml can't be
compiled then the R.java wouldn't be generated...

--~--~-~--~~~---~--~~
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] SQLite3 sql command to show tables in a database

2008-12-30 Thread michael m

Does anyone know if there is a SQL command for SQLite3 to show the
tables in a given database for my Android application or a
corresponding class that will deliver a list?  I need to find out this
information programatically and not through adb.  I was assuming to
find something in SQLiteDatabase, but couldn't find anything that
delivers the list of tables.

thanks
- michael

--~--~-~--~~~---~--~~
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] RuntimeException when launching activity on emulator

2008-12-30 Thread Ellen Spertus

I'm developing on Windows with Eclipse (Ganymede) with SDK 1.0r2.  For
a few days, I was able to run and debug my program on both the
emulator and my phone.  Starting yesterday, I've been unable to launch
the activity of the program I'm developing on the emulator or phone.
(I can still run my hello world app.)  My run and debug configurations
are
set to launch my activity com.android.bounce.Bounce.  When I try
debugging, I get this error and stack dump:

Bounce config [Android Application]
DalvikVM[localhost:8608]
Thread [<3> main] (Suspended (exception
RuntimeException))
ActivityThread.performLaunchActivity
(ActivityThread$ActivityRecord)
line: 2140
ActivityThread.handleLaunchActivity
(ActivityThread$ActivityRecord)
line: 2156
ActivityThread.access$1800(ActivityThread,
ActivityThread
$ActivityRecord) line: 112
ActivityThread$H.handleMessage(Message) line:
1580
ActivityThread$H(Handler).dispatchMessage
(Message) line: 88
Looper.loop() line: 123
ActivityThread.main(String[]) line: 3742
Method.invokeNative(Object, Object[], Class,
Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 515
ZygoteInit$MethodAndArgsCaller.run() line: 739
ZygoteInit.main(String[]) line: 497
NativeStart.main(String[]) line: not available
[native method]
Thread [<13> Binder Thread #2] (Running)
Thread [<11> Binder Thread #1] (Running)

I have tried restarting Eclipse and rebooting my computer, without
effect.

Here is the code for the activity class, which has been unchanged
since before I began getting this error:

public class Bounce extends Activity {
@SuppressWarnings("unused")
private BounceThread mBounceThread;
private BounceView mBounceView;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// get handles
mBounceView = (BounceView)findViewById(R.id.bounce);
mBounceThread = mBounceView.getThread();
}

}

Stepping through in the debugger, savedInstanceState == NULL, and the
failure occurs in setContentView().  The file res/layout/main.xml is:


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






The automatically created R.java file includes:

public final class R {
...
public static final class id {
public static final int bounce=0x7f05;
}
...
}

Here is my manifest:


http://schemas.android.com/apk/res/android";
  package="com.android.bounce"
  android:versionCode="1"
  android:versionName="1.0.0">










I'd be grateful for any advice.

Ellen

--~--~-~--~~~---~--~~
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 directions from com.google.android.maps API

2008-12-30 Thread joggle

Does anyone know if there's a way to get directions either using the
java API provided by google or some sort of AJAX type of method? I
would like to be able to get routes within my app but can't see any
way of doing it at this time (similar to the functionality provided by
the GDirections javascript object).

--~--~-~--~~~---~--~~
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 emulate sim card in emulate tools

2008-12-30 Thread hans

Hi,

I need help, how to emulate sim card in emulate tools?

could anybody tell me the steps about to config 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: What is a good way to download a webpage for offline reading?

2008-12-30 Thread leo

How about virtual screenshot the webpage to save in a resolution that
is high enough to zoom in the read.
Additional save the stripped text of the web page for text reading.
Evtl. to overlay on the screenshot.


On Dec 30, 12:45 am, Mariano Kamp  wrote:
> My understanding is that I can store stuff locally with gears. But  
> this part is possible with Android in a nicer way.
> I was looking for the actual "download a webpage" mechanism.
>
> Cheers,
> Mariano
>
> On Dec 29, 2008, at 1:02 AM, Eric wrote:
>
>
>
> > Have u hear of google gear? which is already integrated into
> > Android..
> > If you use gear's features, I believe you can do what you are after.
> > (but don't ask me how because I don't know.)
>
> > Cheers
> > Eric
> > Portable Electronics Ltd
> >www.hdmp4.com
>
> > On Dec 28, 2:18 am, Mariano Kamp  wrote:
> >> Hi,
>
> >>    I was wondering what would be a good way to download a webpage for
> >> offline reading?
>
> >>    I first thought about downloading the html source, grep it for the
> >> image tag's soure attribute and download the image. After rewriting
> >> the image tag in a way that it reffers to the local file and storing
> >> the html and the image content locally it should be possible to
> >> display the webpage from the local filesystem.
> >> But it could be a PITA to find all the image tags, would replicate
> >> browser functionality (parser) and wouldn't take care of images that
> >> are referenced in the css or set by Javascript.
>
> >>    WebView offers a capturePicture() method. But even if I would find
> >> a way to easily store and retrieve the images, I can't use the zoom
> >> functionality of WebView anymore as well as the care for orientation
> >> changes and of course clicking on the links wouldn't be possible  
> >> either.
>
> >>    It seems that it could be possible to download the source, hand it
> >> to WebView and capture all requests for external resources, so that
> >> they can be downloaded and stored locally. So when later on loading
> >> the locally stored html the events could be overridden again and the
> >> images could be loaded locally.
>
> >>    Does this make sense? Is that possible? Can WebView load/parse/
> >> (render) a webpage when not displayed? Did anybody do this
> >> successfully or is this to much off the beaten (and tested) path?
>
> >> Cheers,
> >> Mariano

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

2008-12-30 Thread aaronleaman...@googlemail.com

Im intrested in developing a few ideas, and wondered how and where to
start, with developing!

please get back to 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] how to implement a Full-screen handwriting input method

2008-12-30 Thread xuxiake2...@gmail.com

Hello, every body!  I want to implement   a  Full-screen handwriting
input method. First step,I
need draw the handwriting on the screen. The handwriting may cover all
the views below   it.
How can i  do? I hope any one can 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] Dialog box

2008-12-30 Thread AlexG

Hi

I am trying to implement something like:

userResponse = showMessageBox(buttons, messages, etc)

So far I have started a new activity that presents the message and the
button and returns through onActivityResult().
Meaning my activity launches a sub-Activity that shows an AlertDialog
with 2 buttons. What the user clicked returns through onActivityResult
().

I would prefer to use the one call way instead waiting for the
onActivityResult callback.

Is there any way to do 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: Convert the AMR

2008-12-30 Thread music-fan

yes, eufony can convert amr to other audio formats. it's from
http://www.softe.net

On Nov 29, 8:32 am, elf  wrote:
> Hi,
> Is there any tool that can convert the AMR files that I got from
> Android to other format, e.g. wav.
>
> I pushed the AMR file to my PC, and then I tried to use the
> “converter.exe” from Sony. It crashed the code. I tried the Nokia
> Multimedia player.  The file also crashes the program.
>
> Is there anything special about the Android AMR file?
>
> Thanks
> Elf

--~--~-~--~~~---~--~~
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: Droid Fonts License: does it allows to redistribute them?

2008-12-30 Thread Rex Tsai

Hi, all

  I like to clarify the license of Fonts, after checking the git
repository[1] and the last version of font. I found the license
statement in font's metadata has been changed[2] this month.

  In the Copyright filed of fonts, the license has changed from 'This
font software is the valuable property of Ascender Corporation' to
'Licensed under the Apache License, Version 2.0'.  Also in the fonts
directory of git repository, there are three files[3] declare the
software is licensed under Apache 2.0 license.

  Based on these documents, I suppose the fonts can be redistributed
based on Apache 2.0 license.

1. 
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=shortlog;h=refs/heads/master
2. http://review.source.android.com/5401
3. The MODULE_LICENSE_APACHE2, NOTICE and README.txt files, the
README.txt stated "This directory contains the fonts for the platform.
They are licensed under the Apache 2 license." and the NOTICE contains
the statements of Apache 2.0 license.

data/fonts/
|-- Ahem.ttf
|-- Android.mk
|-- DroidSans-Bold.ttf
|-- DroidSans.ttf
|-- DroidSansFallback.ttf
|-- DroidSansMono.ttf
|-- DroidSerif-Bold.ttf
|-- DroidSerif-BoldItalic.ttf
|-- DroidSerif-Italic.ttf
|-- DroidSerif-Regular.ttf
|-- MODULE_LICENSE_APACHE2
|-- NOTICE
|-- README.txt
`-- fonts.xml

regards
-Rex
Changwoo Ryu wrote:
> That text in the PDF is not the license, that's just a sample text.
> Here is what I read from the font's metadata:
>
>
> This font software is the valuable property of Ascender Corporation
> and/or its suppliers and its use by you is covered under the terms of
> a license agreement. This font software is licensed to you by Ascender
> Corporation for your personal or business use on up to five personal
> computers. You may not use this font software on more than five
> personal computers unless you have obtained a license from Ascender to
> do so. Except as specifically permitted by the license, you may not
> copy this font software.
>
> If you have any questions, please review the license agreement you
> received with this font software, and/or contact Ascender
> Corporation.
>
> Contact Information:
> Ascender Corporation
> Web http://www.ascendercorp.com/
>
>
>
> On 10��19��, 3��18��, yaker  wrote:
> > seehttp://www.ascendercorp.com/pdf/droid_fonts.pdfpage2
> > it seems to be Apache Open source license.
> >

--~--~-~--~~~---~--~~
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 track menu navigation focus changes?

2008-12-30 Thread Enginerd

I'm having a similar issue.  I guess you could set up listeners for
key up/down (and/or scroll), and check to see where the focus is.
It's tacky, but I think it would work for a simple scroll list.  Not
sure if this would work for all phones though, and it would definitely
be a good thing to have.


On Dec 26, 11:46 am, blindfold  wrote:
> In other words, what is the rationale behind Android lacking something
> like an android.view.MenuItem.OnFocusChangeListener, while there does
> exist an android.view.View.OnFocusChangeListener? After all, the
> ListView - which is functionally not all that different from a Menu -
> supports both a setOnFocusChangeListener() and a setOnItemClickListener
> (). Why was Menu not designed as a subclass of View such that it would
> have naturally inherited the listeners? Android currently seems to
> lack some key functionality for accessibility.
>
> Regards
>
> On Dec 26, 11:39 am, blindfold  wrote:
>
> > How can one track menu navigation events, that is, changes in focus as
> > the user moves from menu item to menu item, i.e., yet without
> > selecting (clicking) a menu item? The
> > android.view.Menu.OnSelectionListener, which seemed to fit the bill,
> > has been dropped from earlier versions of the Android SDK. Unlike for
> > instance Button or ImageButton, Menu is not a subclass of
> > android.view.View (which holds listeners) but of android.view, and I
> > do not see how I can make OnFocusChangeListener() work with menu
> > navigation?
>
> > Tracking menu navigation events is required for making Android
> > accessible to the blind through associated audio feedback, for
> > instance by invoking the TTS-for-Android library to speak the menu
> > items.
>
> > The earlier android.view.Menu.OnSelectionListener was described as
> > "onSelection(Item item, boolean selected) called when the selection
> > state of a menu item changes, due to the user moving in or out of it".
> > How can one implement this same functionality with the current SDK 1.0
> > r2?
>
> > Thanks
>
> > The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

--~--~-~--~~~---~--~~
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: USB signal control class?

2008-12-30 Thread rruff

Justin,

You say "In 1.0 you don't have access to the USB port via the Java API
layer. ".  Does that imply that there is another interface that may
allow me to access the USB port?  We would like to use the G1 as a
control head for several devices and a wireless link will not be
appropriate.  We are hoping to use the USB to get control information
and data back and forth.

Thanks,
Rob

On Dec 15, 5:39 pm, "Justin (Google Employee)"  wrote:
> Pavel,
>
> It sounds like you're trying to do hardware development, and the SDK
> isn't really designed for this. You can modify the source and,
> assuming you have a developer device, flash your new system on to your
> device.
>
> Its unlikely that any device will ever support simultaneous access to
> the SD card by the device and a host computer. The file system of the
> SD card (FAT32) is not designed for this type of multi-host access.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 27, 3:59 pm, Pavel Antokolsky aka Zigmar 
> wrote:
>
>
>
> > On Oct 24, 6:35 pm, "Justin (Google Employee)" 
> > wrote:
>
> > > In 1.0 you don't have access to theUSBport via the Java API layer.
> > > What is the goal of your project?
>
> > Hello Justin,
> > I'm unsure what Chamika is doing, but I have a similar problem. My app
> > needs to communicate with a hardware device (an embedded device,
> > running WindowsCE and acting asUSBhost). Currently, I'm kinda stuck
> > because I can't figure out how to do this. I was hoping to accomplish
> > this by making my app write and read to files at SD Card, while the
> > other device would access those files via mass storage interface, but
> > as discovered recently (discussed in this topic:http://tinyurl.com/6xxovg)
> > an android app can't write on SD card while it is accessible viausb
> > (at G1 unit at least). Could you suggest some direction to look at,
> > please?
>
> > Best Regards,
> > Zigmar- Hide quoted text -
>
> - Show quoted text -

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

2008-12-30 Thread cuishen cheng
unsubscribe

--~--~-~--~~~---~--~~
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: abusive, explicit language comments in the Android Software Market

2008-12-30 Thread Thatcher Ulrich

If a comment is actual spam, you can long-click on it and select
"Report as Spam".  I don't know what, if anything, the market does
with that info, but it seems like it's worth a try.  You could also
try doing the same thing with explicit language etc though I don't
know what the fallout would be if you flag stuff that you just don't
like, but isn't actual spam/abuse.

Personally I LOVE the ability to see what users are saying.  It's true
that many of them are rude.  My policy is to ignore the rude comments
unless there is something constructive in there.  I figure many of the
commenters are bored kids and don't share my sense of netiquette.  Get
off my lawn!  Lolz!1!

-T


On Dec 15, 7:28 pm, "Xavier Mathews"  wrote:
> Google has the comments enable just like Cnet etc because of the fact
> when other users want an app but don't want to download without
> hearing a review on it first. This is only a problem because of the
> retarted comment the users are not really leaving reviews like Cnet.
>
> On 12/15/2008, Sundog  wrote:
>
>
>
>
>
> > I quite agree. I don't think the comments, good or bad, serve any
> > useful purpose whatsoever. In the time someone takes to read comments,
> > they can simply download the app and try it out! I think the comments
> > should be abolished entirely. Open source should not be equivalent to
> > complete anarchy.
>
> > And yes, though I have one of the most popular games on the Market, I
> > absolutely will not release anything else until it is worth the
> > trouble. Frustration is watching your app hit 50,000 downloads, taking
> > the abuse, and not knowing when or even if you're ever going to see a
> > dime from it.Excuse the frustration, but for a freebie, who needs the
> > aggravation?
>
> > On Dec 15, 1:55 pm, Mark K  wrote:
> >>   Yes it seems some of the users of the store are quite acerbic and
> >> rude. They download applications for free that some one put time and
> >> effort into, and then make slanderous and rude comments if the
> >> application is not to their liking. I published an application, but
> >> then withdrew it after some very scathing comments. It was just a
> >> simple Black Jack game (no ads or commercial interest), yet some of
> >> the feedback was rather venomous. I don't itend to publish again until
> >> I can sell applications at the store. No point in giving away free
> >> stuff, if I'm just going to be slandered. It might be mistake to have
> >> a free app stores, too many users now expect to be able to get
> >> something for nothing. I just wrote the application for myself anyway,
> >> and I use it all the time. You'd think people would just be glad that
> >> they can get free software, and not complain. If I don't like an app,
> >> I just un-install it, and don't complain.
>
> >>                                Mark
>
> >> On Dec 12, 11:46 am, "Xavier Mathews"  wrote:
>
> >> > Well Right about now Google has there hands tied. But with Android
> >> > being the biggest project i am sure in the near future something will
> >> > be done.
>
> >> > On 12/12/2008, cvandro...@gmail.com  wrote:
>
> >> > > hi,
> >> > > as an Android developer I'm really surprised to see so manyabusive
> >> > > comments on practically all Android application available in Software
> >> > > Market. Some of them are really just junk, porn ads and explicit
> >> > > language. Is Google going to do something about it? I think this
> >> > > really endangers the whole point of Software Market and hurts
> >> > > reputation of Android and Android developers!
>
> >> > > regards,
> >> > > Yes another Android developer
>
> >> > --
> >> > Xavier A. Mathews
> >> > Student/Browser Specialist/Developer/Web-Master
> >> > Google Group Client Based Tech Support Specialist
> >> > Hazel Crest Illinois
> >> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> >> > "Fear of a name, only increases fear of the thing itself."- Hide quoted
> >> > text -
>
> >> - Show quoted text -
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Client Based Tech Support Specialist
> Hazel Crest Illinois
> xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> "Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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] native c/c++ "hello world" _ problem

2008-12-30 Thread soumyaranjan

hi everybody
i am trying to follow Aaron's documentation regarding the running of
a  c/c++ program on android emulator. but while i am not able to write
onto the emulator disk
or the file system   path /system/sbin because sbin subfolder is not
present inside /system folder.
but i have a xbin subfolder but if i try to write onto it it doe'nt
do, precisely this is what is the problem

adb push prog /system/xbin
failed to copy 'prog' to '/system/xbin/prog': Read-only file system

also an attempt to modify the mode bits is failing

 adb shell chmod 777 /sbin
Unable to chmod /sbin: Read-only file system

pleazz help me out

thanks and regards to all

--~--~-~--~~~---~--~~
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: getFromLocationName() broken?

2008-12-30 Thread Rafael Fernandes

well mate this is a mystery at the moment...
I've never been able to get this working...

you can check my thread here...
http://groups.google.com/group/android-developers/browse_thread/thread/a9e9314a78a4ff15/a2ad7062c1f3d919?lnk=gst&q=Geocoder.+getFromLocationName+-+no+results+[forwardGeocode():+no+feature+in+GLocation]#a2ad7062c1f3d919

did you get the same?

cheers,
rafael fernandes

On Dec 30, 7:06 pm, DMT  wrote:
> Hi All: anyone know if the Geocoder.getFromLocationName() method is
> currently working?
> Has anybody been able to get it to work?
> If not, when will it be fixed (in what android release)?
> 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 do you start a service on installation?

2008-12-30 Thread devileper
Upon further reading, this approach is impossible and is by design.  I will
find a work around.

On Wed, Dec 17, 2008 at 11:22 AM, devile...@gmail.com
wrote:

>
> I need a service to begin the moment my application is installed.  Is
> this possible?
>
> My current approach is to create a BroadcastService which receives the
> PACKAGE_ADDED action. However, this only seems to work after my
> application is installed, not when my application is installed.
>
> 
> 
>
>
> 
> 
>
>
> >
>

--~--~-~--~~~---~--~~
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: 2 ListViews vertically and auto growing/shrinking

2008-12-30 Thread gsmd

Thanks.

On Dec 30, 6:58 pm, skink  wrote:
> On 30 Gru, 14:54,gsmd wrote:
>
> > Awesome. Thanks.
> > Could you plz suggest on how to set the proportion for Views to grow/
> > shrink by (like 30:70)?
>
> layout_weight is your friend here.
>
> for example:
>
> layout_weight=3 for first view and layout_weight=7 for the other
>
> pskink
--~--~-~--~~~---~--~~
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: TextView Widget - OnResume

2008-12-30 Thread Sundog

Only thing I can think of is that maybe somehow you've created a
second TextView object upon resume and the messages are going to the
wrong one. I've done something similar...

On Dec 30, 9:35 am, Dan  wrote:
> I'll just say upfront that I apologize if this is a duplicate post. I
> originally posted this message in the Beginners group but now I can't
> find it anywhere so I thought I would post it here this time.
>
> Anyway, I have an activity where I'm just listening for udp messages
> in a background thread and then just posting those messages in a
> TextView widget. When I originally go into the activity everything
> works great. The messages are obtained from the background thread and
> posted to the UI thread through a message handler. The string is then
> written to the textview control via a call to the append() method.
>
> The issue I'm having is if I exit the activity (via the back button on
> the G1) and then reenter the activity. Everything works great except
> the writing to the textview control. I can see the message being
> received in the background thread and being handed off to the message
> handler just fine. But when I make the call to append() nothing ever
> gets written out to the textview control.
>
> Has anyone seen this behavior before? Is there something I"m missing
> with the textview control? Any help is greatly appreciated.
>
> 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: OpenGL texture is upside down

2008-12-30 Thread clark

On Dec 29, 9:18 pm, Tom H  wrote:
> > I'm using texture coordinates with the origin in the lower left
> > corner, like I should.

I haven't messed around with OpenGL ES, but in OpenGL you can change
the orientation by changing the texture coordinates origin.  Instead
of starting with the lower left, try starting from the upper left,
IIRC.


~clark
--~--~-~--~~~---~--~~
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] geodb file for version1.0 ?

2008-12-30 Thread DMT

Anyone know if/how the geodb file can be populated in Android version
1.0 SDK?
I was able to use the geodb file in version m5-rc15 but it doesn't
seem to be available in 1.0.
If anyone has been able to put geodb to use in v.1.0 pls. let me know
how, 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] getFromLocationName() broken?

2008-12-30 Thread DMT

Hi All: anyone know if the Geocoder.getFromLocationName() method is
currently working?
Has anybody been able to get it to work?
If not, when will it be fixed (in what android release)?
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] getFromLocationName() broken?

2008-12-30 Thread DMT

Hi All: anyone know if the Geocoder.getFromLocationName() method is
currently working?
Has anybody been able to get it to work?
If not, when will it be fixed (in what android release)?
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: Recording audio stream

2008-12-30 Thread Dave Sparks

It's probably not really streaming audio. Some people are working
around the issue by "tailing" the file as it is being written.

On Dec 30, 5:03 am, FranckLefevre  wrote:
> The application "Phone Recorder" available in Market softwares already
> does this pretty well.
> I don't know if sources are available somewhere...
>
> Franck.
>
> On Dec 25, 1:27 am, "vitalii.mi...@gmail.com"
>
>  wrote:
> >   Is there any way to record audio stream and send streaming audio  to
> > network ??  Instead of recording to file.
--~--~-~--~~~---~--~~
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 google groups web page -- is it broken?

2008-12-30 Thread Justin Collum
Yeah, I think this google groups thing needs serious work. Comparing this
interface to something like StackOverflow, well SO just looks so much
better. Google needs to bring some android-style interface magic over to the
groups.

On Tue, Dec 30, 2008 at 12:45 AM, Al Sutton  wrote:

>
> I'm pretty sure there is a manual spam checker at work. I think they're
> in the west coast USA and get around to checking the held posts sometime
> between 4 and 8 pm GMT because that's when I usually see a rush of posts
> come through.
>
> You may find that they're looking for questionable posts which they may
> not want distributed around that time as well. I guess if you want to
> post without Google controlling what appears you'll need to look at
> using one of the non-Google controlled forums.
>
> Al.
>
> Tomei Ningen wrote:
> > All my postings that I sent within the last 0.5 hour through e-mail
> > all showed up in my in-box, as well as on the web site.
> >
> > I made 1 post through the web site about 0.5 hours ago. It still
> > didn't show up. It's to this thread " OpenGL on T-Mobile G1: How to
> > turn OpenGL on and off with SurfaceHolder"
> > (
> http://groups.google.com/group/android-developers/browse_thread/thread/9cfd4f731f80e3b1/d153de0cd1a07b99?lnk=gst&q=Mathias#d153de0cd1a07b99
> )
> >
> > What's more strange, I posted one message through my e-mail about 2
> > weeks ago (title = *How to put a Translucent GL View on top of a 2D
> > view"). *
> > It showed up in my in-box as well as on the web page, immediately. But
> > about 2 hours later I checked, the post was deleted from the web page.
> > I though I said some taboo and was censored!
> >
> > Someone from Google really need to fix this.
> >
> > Thanks
> >
> >
> > 
> > *From:* Mark Murphy 
> > *To:* android-developers@googlegroups.com
> > *Sent:* Monday, December 29, 2008 2:55:10 PM
> > *Subject:* [android-developers] Re: Android google groups web page --
> > is it broken?
> >
> >
> > Tomei Ningen wrote:
> > > I am sorry if this is SPAM. I tried posting to android-developers using
> > > the web interface. Some of my posts aren't delivered until 2 days
> later.
> > > Some other posts are completely lost.
> > >
> > > Has anyone else seem the same problem?
> > >
> > > Is the answer -- "don't use google groups web page"? That would be kind
> > > of funny ...
> >
> > That is interesting.
> >
> > I've noticed a problem where lots of messages get delivered all in a
> > bunch, while other messages get processed right away. I hadn't made the
> > connection between the Web interface and replying by email, though that
> > could be the distinguishing factor.
> >
> > You might try posting a few by email and see if they work better. If
> > that helps, then your "don't use google groups web page" advice may be
> > sound...
> >
> > --
> > Mark Murphy (a Commons Guy)
> > http://commonsware.com
> >
> > Android Training on the Ranch! -- Mar 16-20, 2009
> > http://www.bignerdranch.com/schedule.shtml
> >
> >
> > >
>
>
> --
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
>
> >
>

--~--~-~--~~~---~--~~
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 quickly update the package without restarting the simulator?

2008-12-30 Thread Justin Collum
I'm using eclipse. When I start the simulator, run my package, make code
changes and hit run again, the new code goes to the simulator automatically
without a restart. I wish there was a way to get the emulator to skip its
boot sequence.

On Tue, Dec 30, 2008 at 6:35 AM, Xiongzh  wrote:

>
> hi friends,
>
> I'm tired of restarting the simulator again and again for just small
> changes in the source codes.
> In my VISTA/3G/Intel Duo laptop, it would take minitues.
>
> Is it possible to uninstall and re-install the package without closing
> the simulator and restarting it?
>
> My way is to use
> adb uninstall 
> adb install my.apk
>
> It's still not quick enough. need nearly 1 minute.
>
> What's your way to save your time?
>
> 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: Save data between onDestory/onCreate cycles

2008-12-30 Thread Al

I did read your site posts before deciding how to saving data when
rotating, but the problem is onRetain() isn't called, for example,
when you set the emulator to destroy activities immediately and then
press 'Home'. OnSave() on the other hand *is* called. Because of
this, I've decided to save the text in onSave...() instead, but I
can't preserve formatting.

On Dec 30, 12:34 am, Mark Murphy  wrote:
> Al wrote:
> > My app uses colour on some of the strings it writes to the TextView.
> > The problem I'm having is when I open/close the keyboard, I'm forced
> > to save the coloured data as Strings, which means it loses formatting.
> > The Bundle class doesn't support saving Objects so I've tried writing
> > it to a Parcel and then storing it in a Bundle. But then it needs a
> > ClassLoader to read the data back, and I'm not sure I need to pass to
> > it. The TextView text is a mix of spannableStrings and plain 'ol
> > String. Any pointers on saving the formatting between open/close
> > keyboard cycle is appreciated.
>
> Don't use the Bundle, at least for rotations.
>
> There are plenty of alternative approaches, such as using
> onRetainNonConfigurationInstance(). I have a five-post series on
> AndroidGuys that covers this area:
>
> http://androidguys.com/?s=rotational+forces
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
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: Memory leak in BitmapFactory/Gallery?

2008-12-30 Thread blindfold

I wonder if there could be some bug in this intended VM-like
behaviour, because my app continuously uses about 3 to 4 MB on the dev
phone 1 according to DDMS (with similar figures reported by freeMemory
()), and DDMS reports a heap size of about 6 MB (not a typo, not 16
MB). And yet my app occasionally crashes due to an OutOfMemoryError
exception when its peak usage gets close to that fixed 6 MB (not 16
MB), either in my own (modest, few hundred KB) memory allocations -
for which I can add try-catch blocks as a crude workaround to keep the
app alive, or due an out-of-memory error in the low-level camera
preview code, which then inevitably causes a crash. Never do I see the
heap (in DDMS) gradually climb up from 6 MB towards 16 MB. Basically
it looks like the heap does not always grow even when memory
allocations require it? Or has the system already reserved 10 MB of
the 16 MB for things that I am not aware of such that the reported
heap cannot grow above 6 MB?

Thanks

On Dec 4, 9:36 am, Romain Guy  wrote:
> The heap works pretty much like in a regular VM. As your app needs
> more memory the heap grows accordingly (but doesn't shrink.) For
> instance, if you are using 1 MB out of your 2 MB of allocated heap and
> need to load 2 more MB, the heap will grow to more than 3 MB, and you
> will use 3 MB out of the heap. But when the heap reaches a total
> allocated size of 16 MB and your app needs more memory, you get an
> OutOfMemoryError.
>
>
>
> On Wed, Dec 3, 2008 at 11:30 PM, EboMike  wrote:
>
> > Thanks, Romain. I'm grabbing them from a server, but you're right, if
> > anything, I should convert and re-save them in a smaller format before
> > caching them locally. Well, I just tried to get it running quickly :)
>
> > One laaast thing - You mentioned that an app has a 16MB heap. How is
> > that split up? A Runtime.getRuntime().freeMemory() right on startup in
> > the app above gives me about 800KB or so (although the app is later
> > able to allocate 1MB to decode an image). I'm not very familiar with
> > Dalvik's memory management, how is the whole thing set up?
>
> > -Mike
>
> > On Dec 3, 11:26 pm, Romain Guy  wrote:
> >> Well you could start by not loading such huge images in a Gallery.
> >> Even if the recycler was working correctly it is a LOT of data to read
> >> and to decode. It's also a lot of wasted memory (and it also slows
> >> drawing down since the bitmaps are drawn rescaled.) You should use
> >> BitmapFactory.Options or Bitmap.createScaledBitmap to load your image
> >> pre-scaled to a much more reasonable size.
>
> >> On Wed, Dec 3, 2008 at 11:23 PM, EboMike  wrote:
>
> >> > Thanks a lot for the very quick replies. One last thing: Do you happen
> >> > to have any remote idea about when the next SDK release is scheduled?
> >> > My app is currently running out of memory a lot :)
>
> >> > On Dec 3, 11:13 pm, Romain Guy  wrote:
> >> >> A memory leak is actually totally expected in that case. Gallery, like
> >> >> ListView, GridView, etc. uses a recycling heap. Every time a view is
> >> >> unused, it is moved to the recycler. Unfortunately, if it's never
> >> >> taken out of the recycler...
>
> >> >> On Wed, Dec 3, 2008 at 11:07 PM, EboMike  wrote:
>
> >> >> > Thanks a lot, Romain! Question though - even if the gallery is not
> >> >> > converting the views, why doesn't it release references to them as you
> >> >> > move away?
>
> >> >> > Say, I move from view 0 to view 1, with view 0 being completely off-
> >> >> > screen, the gallery should remove its reference to view 0 since it is
> >> >> > no longer needed, and thus allow the gc to free up any memory it
> >> >> > holds. In fact, when I go back to view 0, I can see that a new view is
> >> >> > created. So what happened to the old view 0? Even with view conversion
> >> >> > not working, there shouldn't be memory leaks.
>
> >> >> > -Mike
>
> >> >> > On Dec 3, 11:04 pm, Romain Guy  wrote:
> >> >> >> I just checked and the bug is simply that Gallery does not convert 
> >> >> >> the
> >> >> >> views. I'll try to fix it as soon as possible.
>
> >> >> >> On Wed, Dec 3, 2008 at 10:45 PM, EboMike  wrote:
>
> >> >> >> > I've already asked this in http://groups.google.com/group/
> >> >> >> > android-developers/msg/9cdbf47be2505810?hl=en">This thread: 
> >> >> >> > Here
> >> >> >> > is a pretty simple Gallery setup. It seems to leak with every image
> >> >> >> > that's loaded (see the original thread for details).
>
> >> >> >> > I'm tempted to file it as a bug, but I want to mention it here 
> >> >> >> > first
> >> >> >> > to make sure I'm not just making a simple mistake in my usage of 
> >> >> >> > the
> >> >> >> > Gallery. Also (as mentioned in another thread), convertView is 
> >> >> >> > always
> >> >> >> > null -- the Gallery never seems to recycle any views. Why?
>
> >> >> >> > To make this run, you will need to put a JPG file into the data 
> >> >> >> > folder
> >> >> >> > (see code).
>
> >> >> >> > package ebomike.memorytest;
>
> >> >> >> > impo

[android-developers] Re: Android Dev Phone Battery life

2008-12-30 Thread Disconnect
If you get really bad battery life, calibrate it.  Drain it down until it
absolutely won't boot. (Lower is better.) Then charge it -uninterrupted- for
at least 8 hours (longer is better, up to about 24 hours..)

The default charge calibration is worthless.

On Mon, Dec 29, 2008 at 12:30 AM, victorcab  wrote:

>
> I've had a similar experience. 8 hours is normal with light use.
>
> On Dec 25, 9:51 am, albemuth  wrote:
> > I don't know if I screwed mine up (was using it during the first
> > charge), these last 2 days that I've been using it a lot I get 6 hours
> > at best :/
> >
> > On Dec 22, 9:50 am, Michael  wrote:
> >
> > > Yeah, with light use, I charge ever 2 days.  I generally plug it in
> > > every night, and only ran out once, right when it was new and I was
> > > showing it off constantly.
>
> >
>

--~--~-~--~~~---~--~~
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: When will we get root back?

2008-12-30 Thread Disconnect
Whelp, sounds like you have a problem with your vendor.  Sorry to hear that.
Please take it up with them, I believe they have web forums available.

On Mon, Dec 29, 2008 at 2:52 PM, nkijak  wrote:

>
> I tried calling T-Moblie and asked for a dev image, a unlocked image,
> a unlocked boot loader, root access, and/or the ability to write to
> the data directory/partition (I used a different term each time I got
> no where with customer support).  It seems their standard answer is
> that Google writes the software and HTC builds the phone. They just
> sell it.
>
> Any other suggestions on what to ask for or what to say?
>
> On Dec 27, 10:37 am, Disconnect  wrote:
> > Its not google. Its tmobile. They decide whether ro.secure is set or not
> > (adb shell as root) and what bins (ahem, su) are shipped. Call 611 and
> ask
> > (talk to g1/blackberry/smartphone support. not the main pool.) It is
> their
> > device, and their image, that you are objecting to. (And for fscks sake,
> > google first. This is the 304th identical thread in the past two weeks..)
> >
> > I want a ♞.
> >
> > On Wed, Dec 24, 2008 at 8:45 AM, coolbho3k 
> wrote:
> >
> > > I'm speaking for the "early adopters" who bought a T-Mobile G1
> > > directly from the carrier before the ADP1 was even announced.
> >
> > > I paid full price ($400 USD) for my phone, the same price I would have
> > > paid for an ADP1. Yet, I have updated to an official version of the
> > > infamous RC30 update, thinking Google wouldn't let us developers down.
> > > This was a mistake. Now I'm stuck without RC30 and the ability to test
> > > my own builds of Android on real hardware, or even do simple things
> > > like clear the market's cache.
> >
> > > Android was supposed to be "open" from the beginning, yet the most
> > > mainstream device using it is completely locked down. What's worse,
> > > all early adopters (developers who bought the G1 before the ADP1 was
> > > announced) are stuck...
> >
> > > Please Google, give us back root.
> >
>

--~--~-~--~~~---~--~~
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: ● SSL /TLS timeout issue ●●● PLS HE LP ●●●

2008-12-30 Thread Nickname

Just reported this issue as a bug.

Bug ID=1683


On Dec 25, 5:24 pm, Nickname  wrote:
> final refresh before i will add this issue to Android bug
> reportwait a secwhere is Android bug report
>
> On Dec 22, 6:37 am, Nickname  wrote:
>
> > refreshing my RFH...
>
> > Or, is it insufficiency or bug of Android??!
>
> > On Dec 20, 9:15 am, Nickname  wrote:
>
> > > Hi folks.
>
> > > Did anyone ever suceeded in setting timeout period of client SSL
> > > connection???
>
> > > I am using the following snippet to initiate a SSL/TLS client
> > > connection, but found that the timeout is static at 190 seconds which
> > > is tooo.. LONG!!!
>
> > > SSLContext sctx=SSLContext.getInstance("TLS");
> > > sctx.init(null,trustManagers,new SecureRandom());
> > > sctx.getClientSessionContext().setSessionTimeout(8);
> > > (SSLSocket)sctx.getSocketFactory().createSocket(
> > >     sa.getAddress(),4000);
>
> > > Anyone knows how-to, please shed some light.
>
> > > THANKS! THANKS!! 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: ● SSL /TLS timeout issue ●●● PLS HE LP ●●●

2008-12-30 Thread Nickname

Just reported this issue as a bug.

Bug ID=1683


On Dec 25, 5:24 pm, Nickname  wrote:
> final refresh before i will add this issue to Android bug
> reportwait a secwhere is Android bug report
>
> On Dec 22, 6:37 am, Nickname  wrote:
>
> > refreshing my RFH...
>
> > Or, is it insufficiency or bug of Android??!
>
> > On Dec 20, 9:15 am, Nickname  wrote:
>
> > > Hi folks.
>
> > > Did anyone ever suceeded in setting timeout period of client SSL
> > > connection???
>
> > > I am using the following snippet to initiate a SSL/TLS client
> > > connection, but found that the timeout is static at 190 seconds which
> > > is tooo.. LONG!!!
>
> > > SSLContext sctx=SSLContext.getInstance("TLS");
> > > sctx.init(null,trustManagers,new SecureRandom());
> > > sctx.getClientSessionContext().setSessionTimeout(8);
> > > (SSLSocket)sctx.getSocketFactory().createSocket(
> > >     sa.getAddress(),4000);
>
> > > Anyone knows how-to, please shed some light.
>
> > > THANKS! THANKS!! 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: 2 ListViews vertically and auto growing/shrinking

2008-12-30 Thread skink



On 30 Gru, 14:54, gsmd  wrote:
> Awesome. Thanks.
> Could you plz suggest on how to set the proportion for Views to grow/
> shrink by (like 30:70)?

layout_weight is your friend here.

for example:

layout_weight=3 for first view and layout_weight=7 for the other

pskink
--~--~-~--~~~---~--~~
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: Screen Goes Black Between Activities, and Next Activity never shows up.

2008-12-30 Thread Skooter Columbo

I got rid of the AlertDialog, and modified my code to use the
ThemeDialog approach. I made sure that I added the attribute
android:theme="@android:style/Theme.Dialog"  to the Android Manifest
file for my application. However I get the same problem. If I comment
out the code in the onWindowFocusChanged then the CountDown Activity
display, but of course it does not change. A couple of times the
screen displayed correctly when the code was uncommented. However it
only displayed for screen that showed up before when the code was
commented out. I think is some sort of cached screen for faster
access, so I don't get my hopes up.

Do you guys have any other ideas? On a lighter note, The display of
the dialog is much fast now than before when I was callling
AlertDialog.Builder.

Thanks,

Skooer


On Dec 30, 5:00 am, Skooter Columbo  wrote:
> yea, i was using the AlertDialog, and I used the AlertDialog.Builder
> to create it. I will try what you suggested.
>
> Thanks,
>
> Skooter :-)
>
> On Dec 30, 3:38 am, "RAJENDIRAN SUNDARRAJAN-CPB738"
>
>
>
>  wrote:
> >  Hi..
>
> > Yes you are correct that the Launch timeout expiry gives the wake lock.
> > In AlertDialogs the "screen becoming black" depends on the way you
> > create it ..
> > Please refer the topic "Opening a New Screen"  
> > fromhttp://code.google.com/android/kb/commontasks.html. Make sure if you
> > are using the third option of creating a dialog then the attribute
> > android:theme="@android:style/Theme.Dialog" need to be added in the
> > manifest xml of that activity using the dialog.
>
> > - Sundar
>
> > -Original Message-
> > From: android-developers@googlegroups.com
>
> > [mailto:android-develop...@googlegroups.com] On Behalf Of Skooter
> > Columbo
> > Sent: Tuesday, December 30, 2008 2:47 PM
> > To: Android Developers
> > Subject: [android-developers] Screen Goes Black Between Activities, and
> > Next Activity never shows up.
>
> > From my MainActivity the user can click a button that shows a dialog.
> > From this dialog the user can set the number of minutes and number of
> > seconds from a custom Timer component, and click a start button. When
> > they click start, this is the OnClickListener that gets invoked.
>
> >    public void onClick(DialogInterface dialog, int whichButton) {
> >         AlertDialog alertDialog = (AlertDialog)dialog;
> >         Timer timer = (Timer)alertDialog.getWindow().findViewById
> > (R.id.timer);
>
> >         Intent intent = new Intent(MainActivity.this,CountDown.class);
> >         intent.putExtra(KEY_MINUTES, timer.getMinutes());
> >         intent.putExtra(KEY_SECONDS, timer.getSeconds());
> >         startActivity(intent);
> >         //startActivityForResult(intent, ACTIVITY_COUNT_DOWN);
> >    }
>
> > As you can see it is sent to the CountDown activity. What is supposed to
> > happen is the minutes and seconds that the user selected from the dialog
> > are displayed on the CountDown screen, and they begin to count down and
> > an explosion sound is played when zero is reached. What is really
> > happening, For some reason the screen goes black, and nothing is
> > displayed, however the explosion is played 30 seconds later if user
> > selected 30 seconds. The CountDown Activity has two methods onCreate and
> > onWindowFocusChanged. OnCreate is used to set up the view and
> > onWindowFocusChanged is used to count down and update the view as each
> > second pasts. I put the count down code in the  onWindowFocusChanged
> > because it there is no user intervention except to watch the time count
> > down, and according to the android documentation this is the best
> > indicator that the activity is visible to the user.http://
> > code.google.com/android/reference/android/app/
> > Activity.html#onWindowFocusChanged(boolean). See my code below.
>
> >    protected void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.count_down);
>
> >        //instantiate the components
> >        mMinutesText = (TextView)findViewById(R.id.count_down_minutes);
> >        mSecondsText = (TextView)findViewById(R.id.count_down_seconds);
> >        cancelButton = (Button)findViewById(R.id.count_down_cancel);
>
> >        Bundle extras = getIntent().getExtras();
> >        mMinutes = extras.getInt(KEY_MINUTES);
> >        mMinutesText.setText(mMinutes);
>
> >        mSeconds = extras.getInt(KEY_SECONDS);
> >        mSecondsText.setText(mSeconds);
>
> >        cancelButton.setOnClickListener(new View.OnClickListener() {
> >             public void onClick(View view) {
> >                 mIsCountingDown = false;
> >         setResult(RESULT_OK,new Intent());
> >         finish();
> >             }
> >         });
> > }
>
> > @Override
> > public void onWindowFocusChanged(boolean hasFocus){
> >     super.onWindowFocusChanged(hasFocus);
> >     if(hasFocus){
> >         countDown(mMinutes,mSeconds);
> >         if(mMinutes == 0 && mSeconds == 0){
> >         MediaPla

[android-developers] Re: Opening settings.db from the code!

2008-12-30 Thread Sergi Velez

http://code.google.com/intl/es-ES/android/devel/security.html#userid

Sorry for double posting.
---
sergi.ve...@gmail.com
["In theory, theory and practice are the same. In practice, they are not."]



On Tue, Dec 30, 2008 at 17:53, Sergi Velez  wrote:
> From what I know, you don't have permissions to read/write files from
> outside your package.
>
>
> ---
> sergi.ve...@gmail.com
> ["In theory, theory and practice are the same. In practice, they are not."]
>
>
>
> On Mon, Dec 29, 2008 at 10:57, Amit  wrote:
>>
>> Hi All,
>>
>> I am trying to open the settings.db from the code, but it is not
>> working. It constantly throws the
>> android.database.sqlite.SQLiteException: unable to open database file.
>>
>> Here is what I am doing,
>> SQLiteDatabase db=SQLiteDatabase.openDatabase("/data/data/
>> com.google.android.providers.settings/databases/settings.db", null,
>> SQLiteDatabase.OPEN_READWRITE);
>>
>>
>> This above statement throws the exception.
>>
>>
>> Can anybody help me out with the above issue.
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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: Strange Toast error

2008-12-30 Thread Alvin Yates

Yes, the service is raising the Toast.  It's similar (I think) to what
the ApiDemo services do.  I could use notifications, but I was looking
for a quick and dirty way of a simple message in this case (And
normally I do).  I just never expected that particular error to
happen, and I was wondering what could be the cause.

I decided to remove the Toast messages and did some reworking to
eliminate the need for them in the first place, so now it's just a
curiosity of understanding why it happened.

On Dec 29, 1:55 pm, Mark Murphy  wrote:
> Alvin Yates wrote:
> > I'm using a bunch of Toast messages in my application in order for
> > certain services to communicate to the user.  The problem seems to be,
> > however, that if I navigate certain parts of the app too quickly, one
> > of the toast messages never actually disappears, which I think may
> > have to do with the instance of the service that called it being
> > destroyed prematurely in some fashion.
>
> A service is raising a Toast?
>
> Are you sure you aren't better served using Notifications instead? Or
> having an activity raise the Toast if your activity is in the foreground?
>
> IMHO, services should not be directly affecting the UI.
>
> And if I misunderstood your comment, my apologies.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
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: Opening settings.db from the code!

2008-12-30 Thread Sergi Velez

>From what I know, you don't have permissions to read/write files from
outside your package.


---
sergi.ve...@gmail.com
["In theory, theory and practice are the same. In practice, they are not."]



On Mon, Dec 29, 2008 at 10:57, Amit  wrote:
>
> Hi All,
>
> I am trying to open the settings.db from the code, but it is not
> working. It constantly throws the
> android.database.sqlite.SQLiteException: unable to open database file.
>
> Here is what I am doing,
> SQLiteDatabase db=SQLiteDatabase.openDatabase("/data/data/
> com.google.android.providers.settings/databases/settings.db", null,
> SQLiteDatabase.OPEN_READWRITE);
>
>
> This above statement throws the exception.
>
>
> Can anybody help me out with the above issue.
>
> >
>

--~--~-~--~~~---~--~~
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] TextView Widget - OnResume

2008-12-30 Thread Dan

I'll just say upfront that I apologize if this is a duplicate post. I
originally posted this message in the Beginners group but now I can't
find it anywhere so I thought I would post it here this time.

Anyway, I have an activity where I'm just listening for udp messages
in a background thread and then just posting those messages in a
TextView widget. When I originally go into the activity everything
works great. The messages are obtained from the background thread and
posted to the UI thread through a message handler. The string is then
written to the textview control via a call to the append() method.

The issue I'm having is if I exit the activity (via the back button on
the G1) and then reenter the activity. Everything works great except
the writing to the textview control. I can see the message being
received in the background thread and being handed off to the message
handler just fine. But when I make the call to append() nothing ever
gets written out to the textview control.

Has anyone seen this behavior before? Is there something I"m missing
with the textview control? Any help is greatly appreciated.

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: 2 ListViews vertically and auto growing/shrinking

2008-12-30 Thread gsmd

Awesome. Thanks.
Could you plz suggest on how to set the proportion for Views to grow/
shrink by (like 30:70)?
TIA.

Mark Murphy wrote:
> gsmd wrote:
> > 1. I want to place 2 ListViews side-by-side vertically so that each
> > would occupy equal horizontal space. What I get so far with
> > TableLayout wrapping them is either the first shown only or one placed
> > under another.
>
> Put the ListViews inside a horizontal LinearLayout, each with
> layout_width=fill_parent, and layout_weight=1.
>
> > 2. Is there a way to say: in the ListView the first 2 items should get
> > 25% of vertical space each and the third should occupy the remaining
> > 50%?
>
> Only if you build your own Views to go into the lists. I have a series
> of blog posts on this subject:
>
> http://androidguys.com/?s=fancy+listviews
>
> Note that the older ones are for the M5 SDK and may require some changes
> to work on Android 1.0r2. Also, forgive the formatting flaws, stemming
> from an AndroidGuys site overhaul.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 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: Google Dev Phone

2008-12-30 Thread qh.p...@gmail.com

I am interested as well
may be, compile yourself from http://source.android.com/download

On 27 déc, 19:52, Oriol Carcelle Bayona  wrote:
> I have the same question, can anybody tell us how to upgrade the
> android version of a Dev Phone 1 edition  ?
> Thanks in advance
>
> Dev_Phone_NewB ha escrit:
>
> > I just got my google dev phone in a couple of weeks ago.  I really
> > like the phone.  But I have a couple of questions.
>
> > 1)  Is there any way to get the Google updates for the G1 onto this
> > phone?  Is that something I should even want to do?
>
> > 2)  I'm having a lot of trouble with the battery life.  Does anyone
> > have some fixes that could help this?  I have to charge at least 2
> > times a day.
>
> > Thanks for helping the newb.
--~--~-~--~~~---~--~~
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: DatePicker and TimePicker widgets

2008-12-30 Thread anand

you can have an icon for time and date picker and upon clicking them
you can open up the respective widget in a separate dialog. something
similar to the calendar icon in web pages which upon hovering or
clicking brings up a calendar.

On Dec 29, 6:27 pm, "Sarath Kamisetty" 
wrote:
> but that takes up whole screen ... I am now leaning towards
> DatePickerDialog and TimePickerDialog widgets and provide buttons to
> open these dialogs. Ideally, it would be nice to have a way to shrink
> the TimePicker and DatePicker widgets easily.
>
> On Mon, Dec 29, 2008 at 7:15 AM, anand  wrote:
>
> > Instead of horizontal orientation, try LinearLayout
> > android:orientation="vertical"
>
> > both the widgets will be displayed one above the other.
>
> > hope this helps...
>
> > On Dec 28, 4:53 pm, "Sarath Kamisetty" 
> > wrote:
> >> Hi,
>
> >> I want to display DatePicker and TimePicker widgets side by side on
> >> the screen but when I use LinearLayout like below, half of the
> >> TimePicker is not showing up. Both DatePicker and TimePicker widgets
> >> seem to be too large and taking up lot of screen space. I tried
> >> restricting their width and height to specific number of pixels but
> >> thats cutting down the widget itself instead of making them look
> >> smaller. Any idea which layout and what attributes I need to play
> >> around with ?
>
> >> Thanks,
> >> Sarath
>
> >>      >>         android:layout_width="fill_parent"
> >>         android:layout_height="wrap_content">
> >>          >>             android:id="@+id/date_picker"
> >>             android:layout_width="wrap_content"
> >>             android:layout_height="wrap_content" />
> >>          >>             android:id="@+id/time_picker"
> >>             android:layout_width="wrap_content"
> >>             android:layout_height="wrap_content"/>
> >>     
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Sergi Velez

have you tried using tag android-1.0 instead of head?

---
sergi.ve...@gmail.com
["In theory, theory and practice are the same. In practice, they are not."]



On Mon, Dec 29, 2008 at 21:05, Wah  wrote:
>
> I followed the instruction here to download Android SDK android-sdk-
> linux_x86-1.0_r2
> http://code.google.com/android/download.html
>
> I also followed the instruction here to download the latest source
> code release:
> http://source.android.com/download
>
> However, I found the two versions to be somewhat different. It seems
> the source code release has some added exceptions from throws clause
> in some cases. When I step through the debugger the line numbers don't
> match very well either.
>
> Two questions:
>
> Is there a way to retrieve the source code release to be in sync with
> the Sdk release?
>
> Is there a way to generate the SDK release out of the source code
> release?
>
> Wah
> >
>

--~--~-~--~~~---~--~~
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] Switch to a SurfaceView from a WebView

2008-12-30 Thread Ulrich Scheller

Hi,
I want to show a WebView with some information at the start of my
application. After clicking a button, this view should disappear for
the SurfaceView of the app. In the following code I try to do this in
several ways.

What happens is that the WebView disappears, but the SurfaceView
doesnt show. I can click on the touchscreen and get events for it, but
I dont see anything on the display.

What am I doing wrong?


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

Handler mHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);

setContentView(R.layout.laska_layout);
mLaskaView = (LaskaView) findViewById(R.id.laska);
mLaskaView.setVisibility(View.VISIBLE);
mInfoView.setVisibility(View.INVISIBLE);
mInfoView.destroy();
mLaskaView.bringToFront();
mLaskaView.requestFocus();
mLaskaView.getHolder().getSurface().show();
mLaskaThread.doDraw();
}
};

// turn off the window's title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);

// tell system to use the layout defined in our XML file
setContentView(R.layout.laska_layout);

// get handles to the LaskaView from XML, and its LaskaThread
mLaskaView = (LaskaView) findViewById(R.id.laska);
mLaskaThread = mLaskaView.getThread();

// give the LaskaView a handle to the TextView used for
messages
mLaskaView.setTextView((TextView) findViewById(R.id.text));

   ...

setContentView(R.layout.info_layout);
mInfoView = (InfoView) findViewById(R.id.info);
mInfoView.setLaskaHandle(mHandler);
}
--~--~-~--~~~---~--~~
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: XMPP with Smack and SDK 1.0 success anyone?

2008-12-30 Thread jman


I am having the same issue.   Were you able to find a solution to this
issue?

Thanks.

On Nov 10, 5:54 am, "Peter Neubauer"  wrote:
> Hi there,
> it seemsSmackGTalk conenctions are not working anymore due to
> certificate problems. Has anyone been able to successfully getXMPP
> running again on the SDK 1.0?
>
> Thanks for any hints!
>
> /peter
>
> http://www.oredev.se- Be there or be gone.
>
> GTalk:        neubauer.peter
> Skype        peter.neubauer
> ICQ            18762544
> Phone       +46704 106975
> LinkedIn  http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org    - New Energy for Data - the Graph 
> Database.http://www.ops4j.org    - New Energy for OSS Communities - Open
> Participation Software.http://www.qi4j.org       - New Energy for Java - 
> Domain Driven Development.
--~--~-~--~~~---~--~~
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] MapView couldn't drag&drop when Zoom Controller is displayed.

2008-12-30 Thread honglian...@gmail.com

Hi all
In my map application I couldn't drag&drop the MapView when Zoom
Controller is displayed. But I found SDK's maps application can do it.
Would you like to let me know how to implement it in my code? Thank
you very 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] How to quickly update the package without restarting the simulator?

2008-12-30 Thread Xiongzh

hi friends,

I'm tired of restarting the simulator again and again for just small
changes in the source codes.
In my VISTA/3G/Intel Duo laptop, it would take minitues.

Is it possible to uninstall and re-install the package without closing
the simulator and restarting it?

My way is to use
adb uninstall 
adb install my.apk

It's still not quick enough. need nearly 1 minute.

What's your way to save your time?

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] Problematic Android heap management remaining cause of crashes

2008-12-30 Thread blindfold

One of the main reasons that my app still occasionally crashes is that
I have limited control over Android's heap management. In particular,
when I launch a new activity from within my app, I see in the DDMS
debug view for my dev phone 1 a huge - albeit temporary - free memory
dip that sometimes measures over 2MB, and the free memory as a result
going down to a mere several hundred KB is then occasionally the
reason that the camera preview internally (not in my Android code!)
cannot allocate the 230400 bytes needed for a preview image. I cannot
catch this internal OutOfMemory exception to prevent an application
crash because it occurs in the lower level camera code, not in my own
application-level memory allocations and preview processing.

The newly launched activity that causes the free memory dip itself
does not use much memory (maybe 0.5 MB), and after a second or so I
therefore again have at least 3 MB free memory, so I conclude that it
is in the transition between two activities (the main one and the
startActivityForResult()-launched one) that the memory dip occurs. My
app does not leak memory, as is evident from the fact that free memory
remains approximately constant even when I run my app for a long time.
Normally I have between 3 MB and 3.5 MB free memory while running my
app, at a DDMS-reported heap size of 5.6 MB (apparently Android
process management already takes a huge bite out of the 16 MB total
heap that any app is supposed to have?). I also apply System.gc() and
Bitmap.recycle() in my code where big memory blocks such as for
bitmaps are allocated/freed, and I apply try-catch blocks to catch
OutOfMemoryError exceptions arising from my own code to transparently
recover from temporary memory dips without a crash, because those
OutOfMemoryError exceptions arise from Android not cleaning up in time
- but again, I just cannot catch Android's lower level memory
allocation problems that still cause my app to crash. :-(

Is there a way to prevent the large - though temporary - free memory
dips that occur when a new activity is launched? It looks as if
Android cleans up for the launching app only *after* the new activity
has been fully launched, and acts much like there are temporarily two
complete activities plus transition management overhead in memory as
far as heap usage is concerned? It is pretty bad if one cannot trust
memory management when this causes unpredictable application crashes
due to things that lie beyond the reach of the application programmer.

Thanks

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



[android-developers] Re: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Kenny Yu



On Dec 30, 4:05 am, Wah  wrote:
> I followed the instruction here to download Android SDK android-sdk-
> linux_x86-1.0_r2http://code.google.com/android/download.html
>
> I also followed the instruction here to download the latest source
> code release:http://source.android.com/download
>
> However, I found the two versions to be somewhat different. It seems
> the source code release has some added exceptions from throws clause
> in some cases. When I step through the debugger the line numbers don't
> match very well either.
>
> Two questions:
>
> Is there a way to retrieve the source code release to be in sync with
> the Sdk release?
under project/development (platform/development.git), you should get
the sources.
>
> Is there a way to generate the SDK release out of the source code
> release?
try "make sdk"
>
> Wah
--~--~-~--~~~---~--~~
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] DalvikVm crash While starting Wifi service

2008-12-30 Thread >> JJ

Hi all,

Could some one help me with the below error logs.. I am running
Android on a PXA platform with a custom wifi driver. when I try to
invoke Wifi Manager from settings, the GUI crashes. I am attaching the
logs below..

Thanks in Advance..
--

 I/ActivityManager(  713): Starting activity: Intent {

action=android.intent.action.MAIN comp=

{com.android.settings/com.android.settings.wifi.WifiSettings} }
V/WifiMonitor(  713): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker(  713): Changing supplicant state: INACTIVE ==>
SCANNING
D/SettingsWifiEnabler(  882): Received wifi state changed from
Enabling to

Enabled
I/ActivityManager(  713): Displayed activity

com.android.settings/.wifi.WifiSettings: 369 ms
V/WifiMonitor(  713): Event [CTRL-EVENT-SCAN-RESULTS  Ready]
D/LocationManagerService(  713): NetworkStateBroadcastReceiver: WiFi
debug

point 1
W/dalvikvm(  713): threadid=15: thread exiting with uncaught
exception

(group=0x40013e28)
E/AndroidRuntime(  713): Uncaught handler: thread
android.server.ServerThread

exiting due to uncaught exception
E/AndroidRuntime(  713): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime(  713): java.lang.RuntimeException: Error receiving
broadcast

Intent { action=android.net.wifi.SCAN_RESULTS } in

com.android.server.LocationManagerService
$networkstatebroadcastrecei...@435c8a

90
E/AndroidRuntime(  713):at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:667)
E/AndroidRuntime(  713):at android.os.Handler.handleCallback

(Handler.java:542)
E/AndroidRuntime(  713):at android.os.Handler.dispatchMessage

(Handler.java:86)
E/AndroidRuntime(  713):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  713):at com.android.server.ServerThread.run

(SystemServer.java:313)
E/AndroidRuntime(  713): Caused by:
java.lang.IllegalArgumentException:

key.length > 31
E/AndroidRuntime(  713):at android.os.SystemProperties.get

(SystemProperties.java:42)
E/AndroidRuntime(  713):at

com.android.internal.location.LocationCollector.isCollectionEnabled

(LocationCollector.java:360)
E/AndroidRuntime(  713):at

com.android.internal.location.LocationCollector.updateWifiScanResults

(LocationCollector.java:259)
E/AndroidRuntime(  713):at

com.android.server.LocationManagerService
$NetworkStateBroadcastReceiver.onRece

ive(LocationManagerService.java:1540)
E/AndroidRuntime(  713):at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:656)
E/AndroidRuntime(  713):... 4 more
I/Process (  713): Sending signal. PID: 713 SIG: 9
I/ServiceManager(  652): service 'SurfaceFlinger' died
I/ActivityThread(  863): Removing dead content provider: settings
I/ActivityThread(  781): Removing dead content provider: settings
I/ActivityThread(  773): Removing dead content provider: settings
I/ServiceManager(  652): service 'power' died
I/ServiceManager(  652): service 'telephony.registry' died
I/ServiceManager(  652): service 'package' died
I/ServiceManager(  652): service 'activity' died
I/ServiceManager(  652): service 'batteryinfo' died
I/ServiceManager(  652): service 'meminfo' died
I/ServiceManager(  652): service 'content' died
I/ServiceManager(  652): service 'cpuinfo' died
I/ServiceManager(  652): service 'activity.broadcasts' died
I/ServiceManager(  652): service 'activity.services' died
I/ServiceManager(  652): service 'activity.senders' died
I/ServiceManager(  652): service 'activity.providers' died
I/ServiceManager(  652): service 'permission' died
I/ServiceManager(  652): service 'battery' died
I/ServiceManager(  652): service 'alarm' died
I/ServiceManager(  652): service 'sensor' died
I/ServiceManager(  652): service 'window' died
I/ServiceManager(  652): service 'bluetooth' died
I/ServiceManager(  652): service 'audio' died
I/ServiceManager(  652): service 'wifi' died
I/ServiceManager(  652): service 'connectivity' died
I/ServiceManager(  652): service 'notification' died
I/ServiceManager(  652): service 'mount' died
I/ServiceManager(  652): service 'devicememorymonitor' died
I/ServiceManager(  652): service 'statusbar' died
I/ServiceManager(  652): service 'hardware' died
I/ServiceManager(  652): service 'netstat' died
I/ServiceManager(  652): service 'location' died
I/ServiceManager(  652): service 'search' died
I/ServiceManager(  652): service 'clipboard' died
I/ServiceManager(  652): service 'checkin' died
I/ServiceManager(  652): service 'wallpaper' died
I/ActivityThread(  882): Removing dead content provider: settings
E/installd(  662): eof
E/installd(  662): failed to read size
I/installd(  662): closing connection
I/Zygote  (  657): Exit zygote because system server (713) has
terminated
I/ServiceManager(  652): service 'simphonebook' died
I/ServiceManager(  652): service 'isms' died
I/ServiceManager(  6

[android-developers] Re: jdb attach error

2008-12-30 Thread Kenny Yu

It seems certain JAR file was not seen in your classpath? Eclipse+ADT
does this very well. Did you try it?

Kenny

On Dec 29, 1:40 pm, firstbread  wrote:
> Hi all
> I got a problem when I try to debug Android with jdb. The following is
> my steps
>
> 1、use "am -e debug true ",to start a activity
> 2、use"adb forward tcp:8000 jdwp:472",to bind jdwp to tcp:8000
> 3、use " jdb -attach localhost:8000 ",to attach jdb to tcp:8000 Then  I
> got error messages:
> java.io.IOException: shmemBase_attach failed: ??¨
> at com.sun.tools.jdi.SharedMemoryTransportService.attach0
> (Native Metho
>
> at com.sun.tools.jdi.SharedMemoryTransportService.attach
> (SharedMemoryT
> nsportService.java:90)
> at com.sun.tools.jdi.GenericAttachingConnector.attach
> (GenericAttaching
> nnector.java:98)
> at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach
> (SharedMemor
> ttachingConnector.java:45)
> at com.sun.tools.example.debug.tty.VMConnection.attachTarget
> (VMConnect
> n.java:358)
> at com.sun.tools.example.debug.tty.VMConnection.open
> (VMConnection.java
> 68)
> at com.sun.tools.example.debug.tty.Env.init(Env.java:64)
> at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)
>
> 致命错误:(fatal error:)
> 无法连接到目标 VM。(can not connect to target vm)
>
> What could I do now? 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
-~--~~~~--~~--~--~---



  1   2   >