[android-developers] Small one Level Game

2009-06-07 Thread android.vinny

Hi everyone

can anybody give me suggestions about the on level game i would like
to do...

my specifications are

one object is moving around the screen if any obstacle come it want to
overcome
and the obstacle hit 5 times to object the game should be end

like that


thanks in advance


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



[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-07 Thread sheik

Thanks for ur reply...

 i took some time for myself to understand the service
behaviour...finally i have made the location updates in the service
and use db to get details and printing on the activity..i used the
notification on the destroy of activity..that is clicking the back
button... and this is working well and almost clears my doubt abt the
question i had asked earlier on this forum...

thanks for the suggestions..

keep the good work on..



On Jun 5, 11:21 am, Sujay Krishna Suresh 
wrote:
> is it workin dude???
>
> On Thu, Jun 4, 2009 at 9:17 PM, Saurav Mukherjee <
>
>
>
> to.saurav.mukher...@gmail.com> wrote:
> > dude,
> > try this:
> > Notification n=new Notification();
> >         n.setLatestEventInfo(context, contentTitle, contentText,
> > contentIntent);
> > the contentIntent is the target intent tha'll b called.
> > cheers!
>
> > On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee <
> > to.saurav.mukher...@gmail.com> wrote:
>
> >> u dont need to call on pause...
> >> if u ve overridden the function in ur activity, it'll b executed...
> >> u can use persistence (db or preferences) to save stuffs
>
> >> On Thu, Jun 4, 2009 at 8:53 PM, sheik  wrote:
>
> >>> i tried ur method by considering keyevent...but i want the activity to
> >>> go background ... not  able to call onpause method in the keyvent
> >>> method..
>
> >>> Kindly suggest on the above written scenario...just like how it works
> >>> on MyTracks and BuddyRunner..
>
> >>> Hope my explaintion on the scenario is clear..if not let me know ..i
> >>> shall brief again ...
>
> >>> thanks for the suggestion and replying back..
> >>> regards,
> >>> sheik
>
> >>> On Jun 4, 11:53 am, Sujay Krishna Suresh 
> >>> wrote:
> >>> > i don't think its possible as of now... its handled by the os... so i
> >>> guess
> >>> > it might not be possible in the future as well...
> >>> > but i hv heard of DONT_KILL_APP somewhere... i think its a flag... try
> >>> > searchin for it
>
> >>> > On Thu, Jun 4, 2009 at 11:45 AM, sheik  wrote:
>
> >>> > > Hi...
> >>> > >  Is it possible for an activity to avoid destroy mode ... and make
> >>> > > activity in pause mode instead...
>
> >>> > > Kindly let me know..
> >>> > > thanks
>
> >>> > > regards
> >>> > > sheik
>
> >>> > > On Jun 3, 7:45 pm, Sujay Krishna Suresh 
> >>> > > wrote:
> >>> > > > use onkeylistener check if keycode matches back
> >>> > > > start ur service here & finish
> >>> > > > the rest i'm not sure on how to do... n u shd wait till u get a
> >>> reply..
>
> >>> > > > On Wed, Jun 3, 2009 at 8:10 PM, sheik  wrote:
>
> >>> > > > > Hello android developers..
>
> >>> > > > >  i am not much familiar with service's and use of aidl...here is
> >>> the
> >>> > > > > scenario i look to put fwd Kindly help on it...Working on android
> >>> sdk
> >>> > > > > 1.1
>
> >>> > > > > 1) Activity is launched and location updates are taken and they
> >>> are
> >>> > > > > print on the activity using textview..
> >>> > > > > 2)On click of BACK (arrow key on dev) .. activity goes to destroy
> >>> mode
> >>> > > > > (which i dont want)...and call the service with dispatches the
> >>> > > > > notification with the icon ..Still the location updates are ON..
> >>> > > > > 3)When i click the notification icon..i must get back the same
> >>> > > > > activity which was getting the updates and updated values printed
> >>> on
> >>> > > > > the text view...
>
> >>> > > > > I wonder is this possible .. i have gone through some apps such
> >>> as My
> >>> > > > > Tracks, Buddy Runner...which works well on this scenario...
>
> >>> > > > > I hope some android developers give a favorable reply and help in
> >>> > > > > solving the problem...
>
> >>> > > > > I referred the LocalService and LocalServiceController examples
> >>> from
> >>> > > > > API demo ..but the activity is destroyed on the click of BACK ...
>
> >>> > > > > Kindly help on this...
> >>> > > > > Regards,
> >>> > > > > Sheik
> >>> > > > > -- Forwarded message --
> >>> > > > > From: sheik 
> >>> > > > > Date: Jun 3, 6:17 pm
> >>> > > > > Subject: Activity to service on click of BACK (arrow key on dev)
> >>> and
> >>> > > > > bring the same activity on click of notification
> >>> > > > > To: Android Developers
>
> >>> > > > > Hello android developers..
>
> >>> > > > >  i am not much familiar with service's and use of aidl...here is
> >>> the
> >>> > > > > scenario i look to put fwd Kindly help on it...Working on android
> >>> sdk
> >>> > > > > 1.1
>
> >>> > > > > 1) Activity is launched and location updates are taken and they
> >>> are
> >>> > > > > print on the activity using textview..
> >>> > > > > 2)On click of BACK (arrow key on dev) .. activity goes to destroy
> >>> mode
> >>> > > > > (which i dont want)...and call the service with dispatches the
> >>> > > > > notification with the icon ..Still the location updates are ON..
> >>> > > > > 3)When i click the notification icon..i must get back the same
> >>> > > > > activity which was getti

[android-developers] Progressbar

2009-06-07 Thread Sukitha Udugamasooriya

Hi,

Is there a way to display the percentage% of the progress on the bar?
Simple write something on the bar in the new SDK? I have searched
everywhere for a sample code... :(

help please
--~--~-~--~~~---~--~~
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 just capture the updated screen data instead of reading all data from framebuffer?

2009-06-07 Thread Sujay Krishna Suresh
Ruiming,
 dont keep buzzin... if anyone nos the answer they'll let u
no... u need to be patient...

On Mon, Jun 8, 2009 at 11:10 AM, Ruiming Li wrote:

> any help?
>
> On Mon, Jun 8, 2009 at 9:40 AM, Ruiming Li wrote:
>
>> Hi experts,
>>
>> I just  want to capture the updated screen data instead of  reading
>> all data from framebuffer.
>> Can I get this data by what method?
>>
>> Thanks!
>>
>> Robert.
>
>
>
> >
>


-- 
Regards,
Sujay
Steven Wright
- "It's a small world, but I wouldn't want to have to paint 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: How to just capture the updated screen data instead of reading all data from framebuffer?

2009-06-07 Thread Ruiming Li
any help?

On Mon, Jun 8, 2009 at 9:40 AM, Ruiming Li wrote:

> Hi experts,
>
> I just  want to capture the updated screen data instead of  reading all
> data from framebuffer.
> Can I get this data by what method?
>
> Thanks!
>
> Robert.

--~--~-~--~~~---~--~~
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] Is it possible to know the video size and its FPS programmatically?

2009-06-07 Thread manoj

Hi friends,

I have written a video player application. Its working fine.

Now I would like to show the video size and its fps.

How can I achieve this functionality programmatically?

Can any one please help me?

Thanks,
Manoj.
--~--~-~--~~~---~--~~
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: picasa application for android

2009-06-07 Thread Sujay Krishna Suresh
wats ur requirement? if u jus need to no how to ue the in-built picasa
app... then i can help... jus lemme no...

On Mon, Jun 8, 2009 at 10:51 AM, Arun  wrote:

>
> Hi
>
> I have a specific requirement to design a application for picasa
> or a brouser short cut for the same.
> If any one have any pointers Please do let me know
>
>
> Arun
> >
>


-- 
Regards,
Sujay
Dan Quayle   -
"This President is going to lead us out of this recovery."

--~--~-~--~~~---~--~~
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] picasa application for android

2009-06-07 Thread Arun

Hi

I have a specific requirement to design a application for picasa
or a brouser short cut for the same.
If any one have any pointers Please do let me know


Arun
--~--~-~--~~~---~--~~
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] OnSaveInstanceState help

2009-06-07 Thread Sujay Krishna Suresh
Hi everyone,
   i need to make sure that the contents of my activity dont
change(or atleast retained to the same state) when the orientation is
changed.
i found a method called onSaveInstanceState in the activity... but i'm not
sure on how to use it efficiently & also i wanna no if it'll be called each
time an orientation change is made...

-- 
Regards,
Sujay
Will Rogers 
- "I never expected to see the day when girls would get sunburned in
the
places they now do."

--~--~-~--~~~---~--~~
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: Window is not always shown with Transparency Theme

2009-06-07 Thread Saurav Mukherjee
thanks... i made a stupid mistake.

On Mon, Jun 8, 2009 at 10:21 AM, Saurav Mukherjee <
to.saurav.mukher...@gmail.com> wrote:

> i tried out the program n i get SecurityException...
> i m using sdk 1.5...
>
> 06-08 04:47:58.545: ERROR/AndroidRuntime(775): Uncaught handler: thread
> main exiting due to uncaught exception
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): java.lang.RuntimeException:
> Unable to start activity
> ComponentInfo{com.interchain.G/com.interchain.G.AndroidTest}:
> java.lang.SecurityException: Permission Denial: reading
> com.android.providers.contacts.ContactsProvider uri
> content://contacts/people from pid=775, uid=10020 requires
> android.permission.READ_CONTACTS
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread.access$1800(ActivityThread.java:112)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.os.Looper.loop(Looper.java:123)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> java.lang.reflect.Method.invoke(Method.java:521)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> dalvik.system.NativeStart.main(Native Method)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): Caused by:
> java.lang.SecurityException: Permission Denial: reading
> com.android.providers.contacts.ContactsProvider uri
> content://contacts/people from pid=775, uid=10020 requires
> android.permission.READ_CONTACTS
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.os.Parcel.readException(Parcel.java:1234)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:145)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:111)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:279)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.content.ContentProviderProxy.query(ContentProviderNative.java:298)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.content.ContentResolver.query(ContentResolver.java:149)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> com.interchain.G.AndroidTest.onCreate(AndroidTest.java:19)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
>
> any suggestions???
>
>
>
> On Sun, Jun 7, 2009 at 11:52 AM, Tim H.  wrote:
>
>>
>> Unless I am doing something wrong, transparency is very flaky in 1.5.
>> A number of people have mentioned having to modify their colors to an
>> off-number, such as #cc01. I have also noticed, on an emulator and
>> an actual device, where transparency no longer works (maybe out of/low
>> memory) and you need to reset.
>>
>> This particular bug occurs when an activity is set to use the
>> Transparency theme, after onResume(), occasionally the window takes
>> focus (onWindowFocusChanged is called), but is not displayed. If you
>> pull down the notification bar, it forces your window to be displayed.
>> This same code works as expected in 1.1. To duplicate, run your
>> program (maybe 10 times) by starting, clicking HOME, then starting
>> again.
>>
>> I am hoping that someone may have found a workaround, or know of a way
>> to force the window to be shown (as it already has focus).
>>
>> Here is the code:
>>
>> AndroidTest.java
>>
>> package com.test.androidtest;
>>
>> import android.app.Activity;
>> import android.database.Cursor;
>> import android.os.Bundle;
>> import android.provider.Contacts.People;
>> import android.util.Log;
>> import android.widget.ListView;
>> import android.widget.SimpleCursorAdapter;
>>
>> public class AndroidTest extends Activity {
>>protected static final String TAG = "Test";
>>
>>@Override
>>public 

[android-developers] Is there a way to change global orientation?

2009-06-07 Thread SungSuh Park

I know I can turn on auto rotation in the settings. When I turn off
auto-rotation, it only shows portrait mode. Many user want to toggle
not just auto-rotation, but also portrait-landscape orientation. It is
extremely useful when I use a phone on the bed. Long long time ago it
was possible, but I can't find about it in the recent 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] Re: Window is not always shown with Transparency Theme

2009-06-07 Thread Tim H.

you missed:


in your AndroidManifest.xml

On Jun 8, 12:51 am, Saurav Mukherjee 
wrote:
> i tried out the program n i get SecurityException...
> i m using sdk 1.5...
>
> 06-08 04:47:58.545: ERROR/AndroidRuntime(775): Uncaught handler: thread main
> exiting due to uncaught exception
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): java.lang.RuntimeException:
> Unable to start activity
> ComponentInfo{com.interchain.G/com.interchain.G.AndroidTest}:
> java.lang.SecurityException: Permission Denial: reading
> com.android.providers.contacts.ContactsProvider uri
> content://contacts/people from pid=775, uid=10020 requires
> android.permission.READ_CONTACTS
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread.access$1800(ActivityThread.java:112)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.os.Looper.loop(Looper.java:123)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> dalvik.system.NativeStart.main(Native Method)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775): Caused by:
> java.lang.SecurityException: Permission Denial: reading
> com.android.providers.contacts.ContactsProvider uri
> content://contacts/people from pid=775, uid=10020 requires
> android.permission.READ_CONTACTS
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.os.Parcel.readException(Parcel.java:1234)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:145)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:111)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:279)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.content.ContentProviderProxy.query(ContentProviderNative.java:298)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.content.ContentResolver.query(ContentResolver.java:149)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> com.interchain.G.AndroidTest.onCreate(AndroidTest.java:19)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
> 06-08 04:47:58.565: ERROR/AndroidRuntime(775):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
>
> any suggestions???
>
> On Sun, Jun 7, 2009 at 11:52 AM, Tim H.  wrote:
>
> > Unless I am doing something wrong, transparency is very flaky in 1.5.
> > A number of people have mentioned having to modify their colors to an
> > off-number, such as #cc01. I have also noticed, on an emulator and
> > an actual device, where transparency no longer works (maybe out of/low
> > memory) and you need to reset.
>
> > This particular bug occurs when an activity is set to use the
> > Transparency theme, after onResume(), occasionally the window takes
> > focus (onWindowFocusChanged is called), but is not displayed. If you
> > pull down the notification bar, it forces your window to be displayed.
> > This same code works as expected in 1.1. To duplicate, run your
> > program (maybe 10 times) by starting, clicking HOME, then starting
> > again.
>
> > I am hoping that someone may have found a workaround, or know of a way
> > to force the window to be shown (as it already has focus).
>
> > Here is the code:
>
> > AndroidTest.java
>
> > package com.test.androidtest;
>
> > import android.app.Activity;
> > import android.database.Cursor;
> > import android.os.Bundle;
> > import android.provider.Contacts.People;
> > import android.util.Log;
> > import android.widget.ListView;
> > import android.widget.SimpleCursorAdapter;
>
> > public class AndroidTest extends Activity {
> >        protected static final String TAG = "Test";
>
> >       �...@override
> >    public void onCreate(Bundle s

[android-developers] Help: Contact sorting by stroke for zh_TW LOCALE

2009-06-07 Thread Mark Wang
Hi, all,

One of the task of we are working on is to enable the Android Contact
sorting by stroke for LOCALE zh_TW. It's very easy to enable the contact
sorting by Pinyin for zh_CN, but when I take the same method to enable
sorting stroke for zh_TW, the sorting result is either sorted by UNICODDE or
PinYin. It's very strange. I have investigated the related code located in
android_pkgs/external/icu4c/xxx and tried many options but failed to find a
wayout. Is there anybody familiar with icu4c or have ever done some work on
this topic? With many thanks!

BR/Mark.

PS: Here I'd like to append the steps (mainly on the location
android_pkgs/external/icu4c/) I did as reference:

a. append zh_TW into product locales;
b. append the zh_TW support into icu4c/stubdata/Android.mk
c. taking the cfg-us as example, create a folder cfg-us-zh and append zh_xx
related 'zh_xxx.res' files;
d. ./helper.sh us-zh will generate a updated icudt38l-us-zh.dat;
e. recompile Android to launch emulator
---EOM---

--~--~-~--~~~---~--~~
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: Window is not always shown with Transparency Theme

2009-06-07 Thread Saurav Mukherjee
i tried out the program n i get SecurityException...
i m using sdk 1.5...

06-08 04:47:58.545: ERROR/AndroidRuntime(775): Uncaught handler: thread main
exiting due to uncaught exception
06-08 04:47:58.565: ERROR/AndroidRuntime(775): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.interchain.G/com.interchain.G.AndroidTest}:
java.lang.SecurityException: Permission Denial: reading
com.android.providers.contacts.ContactsProvider uri
content://contacts/people from pid=775, uid=10020 requires
android.permission.READ_CONTACTS
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.os.Looper.loop(Looper.java:123)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread.main(ActivityThread.java:3948)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
java.lang.reflect.Method.invokeNative(Native Method)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
java.lang.reflect.Method.invoke(Method.java:521)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
dalvik.system.NativeStart.main(Native Method)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): Caused by:
java.lang.SecurityException: Permission Denial: reading
com.android.providers.contacts.ContactsProvider uri
content://contacts/people from pid=775, uid=10020 requires
android.permission.READ_CONTACTS
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.os.Parcel.readException(Parcel.java:1234)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:145)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:111)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:279)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.content.ContentProviderProxy.query(ContentProviderNative.java:298)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.content.ContentResolver.query(ContentResolver.java:149)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
com.interchain.G.AndroidTest.onCreate(AndroidTest.java:19)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
06-08 04:47:58.565: ERROR/AndroidRuntime(775): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)

any suggestions???



On Sun, Jun 7, 2009 at 11:52 AM, Tim H.  wrote:

>
> Unless I am doing something wrong, transparency is very flaky in 1.5.
> A number of people have mentioned having to modify their colors to an
> off-number, such as #cc01. I have also noticed, on an emulator and
> an actual device, where transparency no longer works (maybe out of/low
> memory) and you need to reset.
>
> This particular bug occurs when an activity is set to use the
> Transparency theme, after onResume(), occasionally the window takes
> focus (onWindowFocusChanged is called), but is not displayed. If you
> pull down the notification bar, it forces your window to be displayed.
> This same code works as expected in 1.1. To duplicate, run your
> program (maybe 10 times) by starting, clicking HOME, then starting
> again.
>
> I am hoping that someone may have found a workaround, or know of a way
> to force the window to be shown (as it already has focus).
>
> Here is the code:
>
> AndroidTest.java
>
> package com.test.androidtest;
>
> import android.app.Activity;
> import android.database.Cursor;
> import android.os.Bundle;
> import android.provider.Contacts.People;
> import android.util.Log;
> import android.widget.ListView;
> import android.widget.SimpleCursorAdapter;
>
> public class AndroidTest extends Activity {
>protected static final String TAG = "Test";
>
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>Log.w(TAG, "onCreate");
>setContentView(R.layout.main);
>Cursor peeps =
> getContentResolver().query(People.CONTENT_URI, new
> String[] {People._

[android-developers] Re: How to write .jpg/.png file to gallery in Android

2009-06-07 Thread Sujay Krishna Suresh
use the compress method of bitmap like,
bitmap.compress(Bitmap.CompressFormat., ,
);

On Fri, Jun 5, 2009 at 10:25 AM, Pump  wrote:

>
> I've developed an app. taking picture and save on the gallery. The
> problem is I don't know how to save it to gallery in .jpg/.png format
>
> Anyone please help me . THX
>
> regards
>
> >
>


-- 
Regards,
Sujay
Steven Wright
- "It's a small world, but I wouldn't want to have to paint 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] Hierarchy Viewer is not working on 1.5 sdk

2009-06-07 Thread havexz

I have Window Vista Ultimate machine 32 bit.
Hierarchy Viewer used to work fine on the same machine prior to new
1.5 sdk. But in the new sdk Hierarchy viewer does not seem to work for
my ADP. It works fine for the emulator though.

--~--~-~--~~~---~--~~
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] Hierarchy Viewer is not working

2009-06-07 Thread havexz

I have Window Vista Ultimate machine 32 bit.
Hierarchy Viewer used to work fine on the same machine prior to new
1.5 sdk. But in the new sdk Hierarchy viewer does not seem to work for
my ADP. It works fine for the emulator though.


--~--~-~--~~~---~--~~
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: OutOfMemoryError, but there's lots of memory?!

2009-06-07 Thread Chander Pechetty

You may  want to read the issue at
http://code.google.com/p/android/issues/detail?id=2822.

Fadden has also provided a wonderful python script gclog.py which
gives you more insight into the workings of GC.


--~--~-~--~~~---~--~~
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] Sample code for obtaining location-on-demand that accounts for life cycle?

2009-06-07 Thread pawpaw17

Hi,

Does anyone know a good example I can look at that supports:

1. Obtaining the current location "on demand" from an available
location provider
(NETWORK, GPS, both/either)

2. robustness. I'm having trouble figuring out how to manage my
location
listener's in the Android life cycle. When I switch from my app to the
settings section to enable/disable location providers, for example,
and then
switch back to my app, sometimes the listener seems to persist,
sometimes no.

Is there any accepted way to persist location listeners? For example,
how does the
onProviderDisabled(String provider), method ever fire if the listener
is killed off when
the user switches to the settings app? In my case sometimes it seems
to persist, other
times it doesn't.

Sorry, this is probably just my neophyte debugging and evolving
understanding
of the nature of the life cyle.

Enlightenment appreciated!

Best,

pawpaw17
--~--~-~--~~~---~--~~
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: UnknownHostException on 1.5 emulator

2009-06-07 Thread Peter Jeffe

David, this is happening several times a day to me, forcing me to
restart my emulator.  I can't say I've seen it on the phone, and I'd
imagine we'd know about it if it was pervasive on the device, but it's
still worrisome.  Any update?

Also, any comment on the following?

> An unrelated concern: it seems like it's querying the server every
> time an application tries to resolve an address--doesn't the resolver
> cache at all?  I'm looking at records that have 2-hour TTLs but it's
> querying them every few minutes.  Seems to me this wastes battery and
> bandwidth and greatly increases application-level latency.

Thanks.

-- 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] How to just capture the updated screen data instead of reading all data from framebuffer?

2009-06-07 Thread Ruiming Li
Hi experts,

I just  want to capture the updated screen data instead of  reading all
data from framebuffer.
Can I get this data by what method?

Thanks!

Robert.

--~--~-~--~~~---~--~~
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: Scala with Android 1.5

2009-06-07 Thread michaelg

Thanks for the response Jesper. What all did you do/remove from the
Scala source code? I tried using the tips given by Lex Spoon in the
note on the Scala site (http://www.scala-lang.org/node/160.) This
basically involved tweaking ScalaObject and turning
scala.reflect.ScalaBeanInfo into an empty class (per /src/android-
library in the Scala source tree). I recompiled scala-library.jar and
added that as an external JAR instead. I still get errors from the
runtime:

06-07 17:31:05.596: ERROR/dalvikvm(689): LinearAlloc exceeded
capacity, last=280
06-07 17:31:05.596: ERROR/dalvikvm(689): VM aborting
06-07 17:31:05.716: INFO/DEBUG(539): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-07 17:31:05.726: INFO/DEBUG(539): Build fingerprint: 'generic/sdk/
generic/:1.5/CUPCAKE/147336:eng/test-keys'
06-07 17:31:05.726: INFO/DEBUG(539): pid: 689, tid: 689  >>> /system/
bin/dexopt <<<
06-07 17:31:05.726: INFO/DEBUG(539): signal 11 (SIGSEGV), fault addr
deadd00d
06-07 17:31:05.736: INFO/DEBUG(539):  r0 0328  r1 000c  r2
000c  r3 0026
06-07 17:31:05.736: INFO/DEBUG(539):  r4 deadd00d  r5 004000d0  r6
ad083e10  r7 003fffac
06-07 17:31:05.756: INFO/DEBUG(539):  r8   r9   10
  fp 
06-07 17:31:05.756: INFO/DEBUG(539):  ip ad083eec  sp bec118e8  lr
afe13e4d  pc ad03b5c2  cpsr 2030
06-07 17:31:05.817: INFO/DEBUG(539):  #00  pc 0003b5c2  /
system/lib/libdvm.so
06-07 17:31:05.817: INFO/DEBUG(539):  #01  pc 000424f2  /
system/lib/libdvm.so
06-07 17:31:05.827: INFO/DEBUG(539):  #02  pc 0005bb08  /
system/lib/libdvm.so
06-07 17:31:05.837: INFO/DEBUG(539):  #03  pc 0005bd90  /
system/lib/libdvm.so
06-07 17:31:05.847: INFO/DEBUG(539):  #04  pc 0005c600  /
system/lib/libdvm.so
06-07 17:31:05.847: INFO/DEBUG(539):  #05  pc 0005c830  /
system/lib/libdvm.so
06-07 17:31:05.857: INFO/DEBUG(539):  #06  pc 0004ec86  /
system/lib/libdvm.so
06-07 17:31:05.857: INFO/DEBUG(539):  #07  pc 0004ff5e  /
system/lib/libdvm.so
06-07 17:31:05.857: INFO/DEBUG(539):  #08  pc 0005013a  /
system/lib/libdvm.so
06-07 17:31:05.867: INFO/DEBUG(539):  #09  pc 8a74  /
system/bin/dexopt
06-07 17:31:05.867: INFO/DEBUG(539):  #10  pc 8bd2  /
system/bin/dexopt
06-07 17:31:05.867: INFO/DEBUG(539):  #11  pc 8efc  /
system/bin/dexopt
06-07 17:31:05.877: INFO/DEBUG(539):  #12  pc 0001fd1a  /
system/lib/libc.so
06-07 17:31:05.877: INFO/DEBUG(539):  #13  pc bcb2  /
system/lib/libc.so
06-07 17:31:05.887: INFO/DEBUG(539):  #14  pc b000157e  /
system/bin/linker
06-07 17:31:05.897: INFO/DEBUG(539): stack:
06-07 17:31:05.907: INFO/DEBUG(539): bec118a8  00a4
06-07 17:31:05.907: INFO/DEBUG(539): bec118ac  ad048977  /system/
lib/libdvm.so
06-07 17:31:05.917: INFO/DEBUG(539): bec118b0  afe39f90
06-07 17:31:05.917: INFO/DEBUG(539): bec118b4  afe39fe4
06-07 17:31:05.927: INFO/DEBUG(539): bec118b8  
06-07 17:31:05.927: INFO/DEBUG(539): bec118bc  afe13e4d  /system/
lib/libc.so
06-07 17:31:05.927: INFO/DEBUG(539): bec118c0  0328
06-07 17:31:05.937: INFO/DEBUG(539): bec118c4  afe12e69  /system/
lib/libc.so
06-07 17:31:05.937: INFO/DEBUG(539): bec118c8  000119e8  [heap]
06-07 17:31:05.937: INFO/DEBUG(539): bec118cc  ad083e10
06-07 17:31:05.946: INFO/DEBUG(539): bec118d0  004000d0
06-07 17:31:05.946: INFO/DEBUG(539): bec118d4  ad083e10
06-07 17:31:05.946: INFO/DEBUG(539): bec118d8  003fffac
06-07 17:31:05.957: INFO/DEBUG(539): bec118dc  afe12ecd  /system/
lib/libc.so
06-07 17:31:05.957: INFO/DEBUG(539): bec118e0  df002777
06-07 17:31:05.957: INFO/DEBUG(539): bec118e4  e3a070ad
06-07 17:31:05.957: INFO/DEBUG(539): #00 bec118e8  000119e8  [heap]
06-07 17:31:05.957: INFO/DEBUG(539): bec118ec  ad0424f7  /system/
lib/libdvm.so
06-07 17:31:05.957: INFO/DEBUG(539): #01 bec118f0  ad083e10
06-07 17:31:05.967: INFO/DEBUG(539): bec118f4  41533f70
06-07 17:31:05.967: INFO/DEBUG(539): bec118f8  0118
06-07 17:31:05.967: INFO/DEBUG(539): bec118fc  ad05b5bf  /system/
lib/libdvm.so
06-07 17:31:05.967: INFO/DEBUG(539): bec11900  004000cc
06-07 17:31:05.967: INFO/DEBUG(539): bec11904  000119ec  [heap]
06-07 17:31:05.977: INFO/DEBUG(539): bec11908  59da
06-07 17:31:05.977: INFO/DEBUG(539): bec1190c  88e9  /system/
bin/dexopt
06-07 17:31:05.977: INFO/DEBUG(539): bec11910  42707582
06-07 17:31:05.977: INFO/DEBUG(539): bec11914  0005
06-07 17:31:05.977: INFO/DEBUG(539): bec11918  bec11990  [stack]
06-07 17:31:05.977: INFO/DEBUG(539): bec1191c  ad05bb0d  /system/
lib/libdvm.so
06-07 17:31:06.077: WARN/installd(543): DexInv: --- END '/data/app/
vmdl54064.tmp' --- status=0x000b, process failed
06-07 17:31:06.077: ERROR/installd(543): dexopt failed on '/data/
dalvik-cache/d...@app@vmdl54064@classes.dex' res = 11
06-07 17:31:06.097: WARN/PackageManager(569): Package coul

[android-developers] Re: Debug Appwidget using Eclipse/ADT

2009-06-07 Thread Michael Elsdörfer

It worked for me at some point, but mostly it doesn't either. However, 
you can use the Dev Tools app that is installed in the emulator to 
explicitly set your package as the one that should be debugged.

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] Re: ADC2 Teams

2009-06-07 Thread Eric Wong (hdmp4.com)

Do you mind telling me the name of your existing map tracking
application?
I have an ADC2 idea that can use map, I wonder what advantage would
your existing codes bring on that idea...

Eric

On Jun 7, 11:29 pm, wescorp  wrote:
> I've already created my own mapping and tracking classes.
> Now I'd like to extend these features into new applications.
>
> I'd like to join multiple teams.
>
> I would like to form my own team, but with what idea?  There is only 2
> months to prepare.
>
> I'd like to join teams as a consultant. I've taught myself Android. I
> would think some teams might have programming talent but not much
> experience with Android and could make use of me.
>
> I'd like to join teams as a graphics guy.  No real talent here, but I
> can create complex 3d models of nearly any object for game pieces,
> icons, avatars.
>
> I'd like to join teams as an Android programmer.  By the time ADC2 is
> over, I'll have 2 years experience with Android and I'm starting to
> know a couple things about how it works.
>
> Additionally I'd like to add that I'm available to work on ADC2
> projects full time until submission. I know I won't be able to do all
> of the above, but I do know I'm quite persistent about doing my best.
>
> There will be 2 kinds of winners from ADC2.
> The first will be some genius to pop up and be swallowed up by Google/
> Apple/IBM.
> The second kind of winner will be hundreds of developers and developer
> teams getting initial exposure of themselves and their applications to
> the world.
>
> Cheers,
> Weshttp://twitter.com/wescorp1420
>
> On Jun 6, 7:07 pm, "Eric Wong (hdmp4.com)" 
> wrote:
>
> > Are you looking towards building your own team to submit ADC2 based on
> > your idea (Android realtime mapping tracking application?).
>
> > Or looking to help an existing team to develop their idea/application?
>
> > Eric
>
> > On Jun 6, 10:47 pm, wescorp  wrote:
>
> > > For the ADC2, I would like to extend my Android realtime mapping
> > > tracking application work into something new .
>
> > > I'm looking to assemble a team or become a member of a team to submit
> > > an application or applications to the ADC2.
>
> > > If you have a clear vision of how we can help each other win, please
> > > let me know privately.
>
> > > Cheers,
>
> > > Wes
>
> > > On Jun 6, 6:46 am, wescorp  wrote:
>
> > > > Hi All,
>
> > > > Time for another go with the Android Developer Challenge 2.  A couple
> > > > of months will go quick.
>
> > > > If your looking to join a team or become a member to a team, please
> > > > reply here or privately to the poster.
>
> > > > Cheers,
>
> > > > Wes
--~--~-~--~~~---~--~~
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: Multiple ItemizedOverlay conflicts

2009-06-07 Thread Derek

For anyone else who runs into this (if they do) I figured out the
problem.  My custom ItemizedOverlay onTap method was calling the super
class onTap to return the boolean.  This is incorrect because the
ItemizedOverlay onTap by default always returns false meaning that
overlay did not handle the onTap and it should cycle through to the
next overlay.  Subclasses should override this to return true if the
onTap was handled.  This explained why it was popping a Toast for each
of the 4 overlay instances.

//Incorrect overridden onTap:
   protected boolean onTap(int index) {
//Do stuff
return super.onTap(index);
}

//Correct overridden onTap:
  protected boolean onTap(int index) {
//Do stuff
return true;
}


On Jun 4, 11:03 pm, Derek  wrote:
> Searched around and haven't seen anyone complaining about this so I
> guess I'll toss it out.  Our app uses a MapView and we create 4
> instances of a custom ItemizedOverlay object and add all to the
> MapView overlays.
>
> Our app creates events and based on the event type, adds it to the
> appropriate instance of the custom ItemizedOverlay.  Everything
> displays fine, they each have a different marker so its easy to see
> one set versus another.  The custom ItemizedOverlay has an overridden
> onTap(int index) to show a Toast with some info about the item.
>
> The problem occurs once there are events in 2 or more of the custom
> ItemizedOverlay instances.  Tapping one of the markers causes the
> other ItemizedOverlays to respond to onTap as well, regardless of
> whether they are close on the map or not.
>
> Has anyone seen anything like this?  Found a way around it?  I'm
> wondering if the problem is the fact that all 4 instances are of the
> same type but it still seems strange behavior.  Thoughts anyone?
>
> Thanks,
> Derek
--~--~-~--~~~---~--~~
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] PhoneStateListener question

2009-06-07 Thread az9702

Hi,

I was testing PhoneStateListener  using a simple application that
instantiates a TelephonyManager
& implements PhoneStateListener methods: onCallStateChanged,
onServiceStateChanged (just print out corresponding states).

I noticed if SERVICE_STATE listener is registered first before
CALL_STATE,   call states are printed in LogCat (i.e. onStateChanged
is called)  when I make calls or hang up (vias Eclipse DDMS Telephone
Actions).

If instead CALL_STATE listener is registered first before
SERVICE_STATE, no call states are printed in LogCat &
onCallStateChanged is not called.

I did not find any doc or report on this issue.   What can be
missing ? Anyone also saw this ?

Thanks in advance.

- az9702

##--


 telephonyManager.listen(listener,
PhoneStateListener.LISTEN_SERVICE_STATE);
  telephonyManager.listen(listener,
PhoneStateListener.LISTEN_CALL_STATE);

//06-07 16:01:40.210: INFO/telephony(740): onServiceStateChanged 0
home Android Android 310260
//06-07 16:01:40.220: INFO/telephony(740):
onServiceStateChanged - in_service
//06-07 16:01:40.229: INFO/telephony(740):
onServiceStateChanged - operator Android
//06-07 16:01:40.229: INFO/telephony(740):
onServiceStateChanged - isRoaming false
//06-07 16:01:40.239: INFO/telephony(740): call state - idle
//06-07 16:01:53.949: INFO/telephony(740): call state -
ringing





  telephonyManager.listen(listener,
PhoneStateListener.LISTEN_CALL_STATE);
  telephonyManager.listen(listener,
PhoneStateListener.LISTEN_SERVICE_STATE);

//06-07 16:05:46.427: INFO/telephony(750): call state - idle
//06-07 16:05:46.427: INFO/telephony(750):
onServiceStateChanged 0 home Android Android 310260
//06-07 16:05:46.427: INFO/telephony(750):
onServiceStateChanged - in_service
//06-07 16:05:46.427: INFO/telephony(750):
onServiceStateChanged - operator Android
//06-07 16:05:46.427: INFO/telephony(750):
onServiceStateChanged - isRoaming false
   [No call state on making calls or hang up]


--~--~-~--~~~---~--~~
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] MediaPlayer Internal Errors when streaming mp3 from ftp site...

2009-06-07 Thread Moto

Can someone tell me what this error means?  This happens once in a
while when trying to play and mp3 from ftp site

All help is greatly appreciated!

Moto!

06-07 23:11:23.806: INFO/DEBUG(2009): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-07 23:11:23.806: INFO/DEBUG(2009): Build fingerprint: 'generic/
google_sdk/generic/:1.5/CUPCAKE/148875:eng/test-keys'
06-07 23:11:23.806: INFO/DEBUG(2009): pid: 2411, tid: 2661  >>> /
system/bin/mediaserver <<<
06-07 23:11:23.806: INFO/DEBUG(2009): signal 11 (SIGSEGV), fault addr
d575e64e
06-07 23:11:23.806: INFO/DEBUG(2009):  r0 d5750c0a  r1 20e0  r2
00cc  r3 0001
06-07 23:11:23.806: INFO/DEBUG(2009):  r4 0198  r5 d575e64a  r6
  r7 d575e4b2
06-07 23:11:23.806: INFO/DEBUG(2009):  r8 40407b24  r9 afe39dd0  10
a9d2856d  fp 0001
06-07 23:11:23.816: INFO/DEBUG(2009):  ip 00db  sp 40908cc4  lr
a7a22a71  pc a7a22a92  cpsr 8030
06-07 23:11:23.977: INFO/DEBUG(2009):  #00  pc 00022a92  /
system/lib/libopencorenet_support.so
06-07 23:11:23.977: INFO/DEBUG(2009):  #01  lr a7a22a71  /
system/lib/libopencorenet_support.so
06-07 23:11:23.985: INFO/DEBUG(2009): stack:
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c84  01b4
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c88  00dc
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c8c  2bb0
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c90  d8a8  [heap]
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c94  da44  [heap]
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c98  0001
06-07 23:11:23.985: INFO/DEBUG(2009): 40908c9c  40407b24
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ca0  afe39dd0
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ca4  a9d2856d  /system/
lib/libutils.so
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ca8  0001
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cac  da44  [heap]
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cb0  8000  /system/
bin/mediaserver
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cb4  a7a22a71  /system/
lib/libopencorenet_support.so
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cb8  df002777
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cbc  e3a070ad
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cc0  40908d1c
06-07 23:11:24.007: INFO/DEBUG(2009): #00 40908cc4  40908cdc
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cc8  00019998  [heap]
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ccc  a7a4ff90
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cd0  40908d1c
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cd4  a7a287a3  /system/
lib/libopencorenet_support.so
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cd8  40407b24
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cdc  a7a4d4b8
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ce0  0001
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ce4  0001
06-07 23:11:24.007: INFO/DEBUG(2009): 40908ce8  00036ce8  [heap]
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cec  0010
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cf0  40908cf4
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cf4  a7a4d4d8
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cf8  a7a4d040
06-07 23:11:24.007: INFO/DEBUG(2009): 40908cfc  a7a4d054
06-07 23:11:24.007: INFO/DEBUG(2009): 40908d00  
06-07 23:11:24.007: INFO/DEBUG(2009): 40908d04  d7f0  [heap]
06-07 23:11:24.007: INFO/DEBUG(2009): 40908d08  a7a1f6f1  /system/
lib/libopencorenet_support.so
06-07 23:11:25.106: WARN/AudioSystem(2529): AudioFlinger server died!
06-07 23:11:25.115: INFO/ServiceManager(537): service
'media.audio_flinger' died
06-07 23:11:25.115: INFO/ServiceManager(537): service 'media.camera'
died
06-07 23:11:25.115: INFO/ServiceManager(537): service 'media.player'
died
06-07 23:11:25.115: INFO/ServiceManager(2529): Waiting for sevice
media.player...
06-07 23:11:26.115: INFO/ServiceManager(2529): Waiting for sevice
media.player...
06-07 23:11:26.306: INFO/(2663): ServiceManager: 0xac38
06-07 23:11:26.325: INFO/AudioFlinger(2663): AudioFlinger's thread
ready to run for output 0
06-07 23:11:26.325: INFO/CameraService(2663): CameraService started:
pid=2663

--~--~-~--~~~---~--~~
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: Window is not always shown with Transparency Theme

2009-06-07 Thread Tim H.

No, I have seen the black background, I assumed that was due to low
memory. In this case, the window doesn't show up, it is invisible. The
window is there however, as onWindowFocusedChanged occurs, and if you
due something to force it to show.. such as pull down the notification
bar, or hold the home key, then it is visible again.

This issue appears to be a broader theme bug, as I was able to
reproduce the same thing with a theme which only turns off the window
title. I submitted a bug on this here: 
http://code.google.com/p/android/issues/detail?id=2910

Also, just to note, this is 1.5r1.

On Jun 7, 4:54 pm, Jeff Sharkey  wrote:
> When you say "doesn't work", do you mean it shows against a black
> background?  If so, this is a known issue that only shows up when you
> define a custom theme.
>
> j
>
>
>
> On Sat, Jun 6, 2009 at 11:22 PM, Tim H.  wrote:
>
> > Unless I am doing something wrong, transparency is very flaky in 1.5.
> > A number of people have mentioned having to modify their colors to an
> > off-number, such as #cc01. I have also noticed, on an emulator and
> > an actual device, where transparency no longer works (maybe out of/low
> > memory) and you need to reset.
>
> > This particular bug occurs when an activity is set to use the
> > Transparency theme, after onResume(), occasionally the window takes
> > focus (onWindowFocusChanged is called), but is not displayed. If you
> > pull down the notification bar, it forces your window to be displayed.
> > This same code works as expected in 1.1. To duplicate, run your
> > program (maybe 10 times) by starting, clicking HOME, then starting
> > again.
>
> > I am hoping that someone may have found a workaround, or know of a way
> > to force the window to be shown (as it already has focus).
>
> > Here is the code:
>
> > AndroidTest.java
>
> > package com.test.androidtest;
>
> > import android.app.Activity;
> > import android.database.Cursor;
> > import android.os.Bundle;
> > import android.provider.Contacts.People;
> > import android.util.Log;
> > import android.widget.ListView;
> > import android.widget.SimpleCursorAdapter;
>
> > public class AndroidTest extends Activity {
> >        protected static final String TAG = "Test";
>
> >       �...@override
> >    public void onCreate(Bundle savedInstanceState) {
> >                super.onCreate(savedInstanceState);
> >                Log.w(TAG, "onCreate");
> >                setContentView(R.layout.main);
> >                Cursor peeps = 
> > getContentResolver().query(People.CONTENT_URI, new
> > String[] {People._ID, People.NAME, People.NOTES}, null, null, null);
> >                startManagingCursor(peeps);
> >                ListView list = (ListView) findViewById(R.id.ListView01);
> >                SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
> >                                android.R.layout.simple_list_item_1, peeps,
> >                                new String[] { People.NAME, People.NOTES },
> >                                new int[] { android.R.id.text1, 
> > android.R.id.text2 });
> >                list.setAdapter(adapter);
> >         }
>
> > }
>
> > main.xml
>
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:layout_width="fill_parent" android:layout_height="200dip"
> > android:background="#cc00">
> >  > android:layout_height="fill_parent"
> > android:layout_width="fill_parent">
> > 
>
> > AndroidManifest.xml
>
> > 
> > http://schemas.android.com/apk/res/android";
> >      android:versionCode="1"
> >      android:versionName="1.0.0" package="com.test.androidtest">
> > 
> >         > android:theme="@style/Theme.Transparent">
> >                
> >                
> >                 > category>
> >        
> >        
> > 
> > 
> >  > uses-permission>
> > 
>
> > Using colors.xml and styles.xml from samples
>
> --
> Jeff Sharkey
> jshar...@android.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to persist my canvas between calls to invalidate()

2009-06-07 Thread MrChaz

I'd probably try writing each point onto a in-memory bitmap and then
displaying that instead.

On Jun 7, 8:18 am, RS  wrote:
> Hi,
>
> I am trying to render a customized view which draws points on the
> canvas whenever  they arrive from a remote device. Whenever a new
> value is obtained - it gets passed into my customized view which draws
> it on the canvas - ( The canvas should still show my previous points).
> Now whenever i call invalidate() in my onDraw() method it clears all
> my previous points. The application is supposed to work with a stream
> of data and as such there are large number of points which are
> generated and as such we dont want to store the points in an array and
> reproduce them on the canvas- rather just get the new point draw it on
> the canvas (the previous points should stay). Does anyone know how to
> go about keeping all previous canvas objects intact while performing
> invalidate?
>
> 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: Dynamic Widget Size

2009-06-07 Thread Jeff Sharkey

> Each
> widget's onUpdate will call to start my service. My question would be,
> how can I get the appWidgetId of the widget that is calling the
> service to start?

The onUpdate() call is given the appWidgetIds requesting updates, and
you just need to pass this along to the single Service performing the
updates.  However, it can be tricky if the Service is already running
another update when someone requests a second update.

I wrote an example showing how I solved this issue in my Service:

http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/MedAppWidget.java#62
http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/UpdateService.java#110

The onUpdate() records the requested appWidgetIds into a static object
by calling requestUpdate().  Then it launches the service to make sure
it gets a chance to run.  The service runs a single thread which will
slowly walk across all requested updates.  New requests that come in
while the update thread is still being run are just queued up.

When the update queue is empty, the thread finishes and calls
stopSelf() to close down the Service.  :)


-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: Window is not always shown with Transparency Theme

2009-06-07 Thread Jeff Sharkey

When you say "doesn't work", do you mean it shows against a black
background?  If so, this is a known issue that only shows up when you
define a custom theme.

j

On Sat, Jun 6, 2009 at 11:22 PM, Tim H.  wrote:
>
> Unless I am doing something wrong, transparency is very flaky in 1.5.
> A number of people have mentioned having to modify their colors to an
> off-number, such as #cc01. I have also noticed, on an emulator and
> an actual device, where transparency no longer works (maybe out of/low
> memory) and you need to reset.
>
> This particular bug occurs when an activity is set to use the
> Transparency theme, after onResume(), occasionally the window takes
> focus (onWindowFocusChanged is called), but is not displayed. If you
> pull down the notification bar, it forces your window to be displayed.
> This same code works as expected in 1.1. To duplicate, run your
> program (maybe 10 times) by starting, clicking HOME, then starting
> again.
>
> I am hoping that someone may have found a workaround, or know of a way
> to force the window to be shown (as it already has focus).
>
> Here is the code:
>
> AndroidTest.java
>
> package com.test.androidtest;
>
> import android.app.Activity;
> import android.database.Cursor;
> import android.os.Bundle;
> import android.provider.Contacts.People;
> import android.util.Log;
> import android.widget.ListView;
> import android.widget.SimpleCursorAdapter;
>
> public class AndroidTest extends Activity {
>        protected static final String TAG = "Test";
>
>       �...@override
>    public void onCreate(Bundle savedInstanceState) {
>                super.onCreate(savedInstanceState);
>                Log.w(TAG, "onCreate");
>                setContentView(R.layout.main);
>                Cursor peeps = getContentResolver().query(People.CONTENT_URI, 
> new
> String[] {People._ID, People.NAME, People.NOTES}, null, null, null);
>                startManagingCursor(peeps);
>                ListView list = (ListView) findViewById(R.id.ListView01);
>                SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
>                                android.R.layout.simple_list_item_1, peeps,
>                                new String[] { People.NAME, People.NOTES },
>                                new int[] { android.R.id.text1, 
> android.R.id.text2 });
>                list.setAdapter(adapter);
>         }
>
> }
>
> main.xml
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:layout_width="fill_parent" android:layout_height="200dip"
> android:background="#cc00">
>  android:layout_height="fill_parent"
> android:layout_width="fill_parent">
> 
>
> AndroidManifest.xml
>
> 
> http://schemas.android.com/apk/res/android";
>      android:versionCode="1"
>      android:versionName="1.0.0" package="com.test.androidtest">
> 
>         android:theme="@style/Theme.Transparent">
>                
>                
>                 category>
>        
>        
> 
> 
>  uses-permission>
> 
>
> Using colors.xml and styles.xml from samples
>
>
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: Change minWidth/minHeight AppWidget

2009-06-07 Thread Jeff Sharkey

You can't change the XML values at runtime, and you can't define an
AppWidget at runtime.  Another option is to create multiple XML widget
definitions, each with a specific size, and let the user choose.

j

On Sun, Jun 7, 2009 at 11:19 AM, arnouf  wrote:
>
> Hi all,
>
> Is it possible to change the minWidth/minHeight values in Java context
> (not with XML widget definition)?
>
> Regards
> >
>



-- 
Jeff Sharkey
jshar...@android.com

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



[android-developers] Re: Thread is stopping alone...

2009-06-07 Thread arnouf

Hi Mark,

I use the AlarmManager for my service (replacing the
updatePeriodeMillis ...I read one of your previous email answer).

I stop my feature, exactly to save battery...It's stupid to do
something when phone is stopped!

Regards

On Jun 7, 10:05 pm, Mark Murphy  wrote:
> arnouf wrote:
> > When it's installed and used by user, a Thread is launched to refresh
> > view (like a flipper).
>
> Try to avoid doing that.
>
> Use updatePeriodMillis in your app-widget XML, and set it to a nice long
> value, then process the update event in your AppWidgetProvider, perhaps
> using an AsyncTask if whatever you need to do would take too long.
>
> Or, use AlarmManager with a nice long interval, triggering an IntentService.
>
> > Even if the screen is off, the thread is continuing...perfect for
> > me...
>
> Don't do that. See above.
>
> Moreover, users cannot see your app-widget when the screen is off.
>
> > But after 3 minutes, it's stopped.
>
> The phone goes to sleep after a while, stopping the CPU. This is very
> very important for battery life. Even just occasionally waking up to do
> some work can cut significantly into battery life.
>
> I strongly encourage you to watch the following Google I/O presentation:
>
> http://code.google.com/events/io/sessions/CodingLifeBatteryLife.html
>
> > Does it a VM restriction avoiding some bad development usage?
>
> Depends. If I say "yes", will you use one of the techniques outlined
> above? ;-)
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Developer Challenge

2009-06-07 Thread krg85

Thanks a lot for your reply.

On Jun 5, 4:44 pm, NTDYLF 
wrote:
> I am not an official in this contest, but according to the rules 
> athttp://code.google.com/android/adc/, "The ADC 2 contest is open only
> to applications that have not been published". So that says to me that
> if you published a paper that only discusses your brilliant algorithm,
> then you haven't published the application and are eligible. But if
> your paper or website or whatever makes the actual application or its
> source code available, then you have published the application, and
> are ineligible. Judging from your "we are intending to actually build
> an application" statement, I would postulate that it is therefore
> eligible. Good luck with the contest.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Jun 4, 10:15 pm, krg85  wrote:
>
> > Hello Everyone,
> >                          I am a Master's student at USC and am
> > interested in participating in  ADC2. Last semester my team developed
> > an application for Android phone and we wish to submit it for ADC2.
> > However we have submitted a paper related to the our concept to one of
> > international conferences and were wondering whether our project is
> > still eligible for the competition. The paper was more about our
> > underlying concept and the framework and we are intending to actually
> > build an application on top of it and submit it as part of ADC2. IT
> > would be great if our projecty would be eligible or not. 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: Thread is stopping alone...

2009-06-07 Thread Mark Murphy

arnouf wrote:
> When it's installed and used by user, a Thread is launched to refresh
> view (like a flipper).

Try to avoid doing that.

Use updatePeriodMillis in your app-widget XML, and set it to a nice long
value, then process the update event in your AppWidgetProvider, perhaps
using an AsyncTask if whatever you need to do would take too long.

Or, use AlarmManager with a nice long interval, triggering an IntentService.

> Even if the screen is off, the thread is continuing...perfect for
> me...

Don't do that. See above.

Moreover, users cannot see your app-widget when the screen is off.

> But after 3 minutes, it's stopped.

The phone goes to sleep after a while, stopping the CPU. This is very
very important for battery life. Even just occasionally waking up to do
some work can cut significantly into battery life.

I strongly encourage you to watch the following Google I/O presentation:

http://code.google.com/events/io/sessions/CodingLifeBatteryLife.html

> Does it a VM restriction avoiding some bad development usage?

Depends. If I say "yes", will you use one of the techniques outlined
above? ;-)

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

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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



[android-developers] Thread is stopping alone...

2009-06-07 Thread arnouf

Hi,

My appWidget is working well.
When it's installed and used by user, a Thread is launched to refresh
view (like a flipper).
Even if the screen is off, the thread is continuing...perfect for
me...
But after 3 minutes, it's stopped.

Does it a VM restriction avoiding some bad development usage?

How can I use this type of service? Develop a service in place of my
thread?

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] Can a application show a dialog on top of all its activities?

2009-06-07 Thread Josep

Hi all,
I am developing an application which uses a native lib that works
asynchronously. The lib in question implements the funcionality to
display word & xls documents. To simplify it I´ll just say that my
application has 2 activities: viewing activity & preferences activity.
I need to inform the user whenever an error occurrs in the library and
I can´t see the way of showing the error always on top of the
application´s visible activity.

What I am doing just now is to set listeners in both activities to get
notifications from the library. The listeners are just showing an
AlertDialog informing the user about the operation success / error.
Unfortunately I end up in strange scenarios regarding where the dialog
appears:

1) switching from the viewing activity to the preferences activity

If the event from the library comes inmediately after I launch the
preferences activity (but before the viewing activity gets the
onPause) then the error dialog is shown by the viewing activity and it
appears on top of the viewing activity but under the preferences
activity.

2) switching back from the preferences activity to the viewing
activity

If the event from the library comes inmediately after I press the back
button in the preferences activity (but before it gets the preference
activity gets the onPause notification) then the error dialog is shown
by the preferences activity but it dissapears straightaway because the
activity is finishing.

So, my question is:

is there any way at all to ensure a dialog is placed on top of any
activity in my application? I am thinking in something like an
"application dialog" rather than an "activity dialog". If not, any
idea about how can I solve this problem?

Any help or feedback would be appreciated.

Josep
--~--~-~--~~~---~--~~
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] Change minWidth/minHeight AppWidget

2009-06-07 Thread arnouf

Hi all,

Is it possible to change the minWidth/minHeight values in Java context
(not with XML widget definition)?

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: Using Intents

2009-06-07 Thread Georgy

You are right... for some reason I thought that I could simply point
to an external package without installing it. So now, I got Radar from
the market and pointed to it.

the issue now is that I am getting a black screen..


After looking at LogCat the activity ran without any problems... just
a black screen..

thanks



On Jun 7, 1:05 pm, Mark Murphy  wrote:
> Georgy wrote:
> > "Unable to start activity ... no activity found to handle intent
> > { action: com.google.android.radar.SHOW_RADAR (has extras) } "
>
> That would suggest that either you do not have the Radar application
> installed, or the one you have installed does not match the
> AndroidManifest.xml from the open source tree.
>
> If you think you have it installed, did you compile from source, or
> install it off the Market, or get it via some other means?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Looking for Android opportunties?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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] Persisting locationListener when app gets killed? How does maps to this?

2009-06-07 Thread pawpaw17

Hi,

I'm creating a location listener in the onCreate method of my main
activity.
If I flip out the keyboard of the G1, onCreate is called again since
the activity
gets recreated. Each time my location listener is started up again.
Same deal if
I go to the system app to change location listeners. I'm trying to
listen to all
location changes so when a user presses the "current location" button
I'm ready
to go.

The location api's seem flaky - at least the way I'm (mis)using them.
"maps" seems
able to deal with location provider changes better than my app. How
can my app continue
to repond to location changes, for example, when the user switches
over to turn the
GPS on. My oncreate gets called again and the location listener is
recreated.

the getLastKnownLocation never works the first time, I have to switch
over to maps
to trigger a location update. Thus I'm using the location listener
strategy to monitor
all location providers.

Any deep thoughts or examples I can look at to fine tune?

Thanks!

Best,

pawpaw17
--~--~-~--~~~---~--~~
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 load application to G1 phone

2009-06-07 Thread cindy

Help!!

On Jun 6, 11:00 pm, cindy  wrote:
> After my phone has been upgraded to 1.5, I upgraded my application to
> 1.5. It could run correctly in simulator.
>
> When I launched application in 1.0, it asked me to run in real device
> or simulator. But in 1.5, my g1 phone is not listed at running android
> device.What should I do?
--~--~-~--~~~---~--~~
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] custom ViewGroup and adding Views issue

2009-06-07 Thread skink

hi,

i'am extending ViewGroup, implemented its abstract onLayout() and in
my ctor i added a few Views, onLayout() get called and i see my child
Views inside their parent.

now (after onLayout() get called) on some event i'm trying to add just
another View.

this time onLayout() is not called and obviously  i don't see my new
View. i tried requestLayout(), forceLayout() but nothing changed.

finally i figured out that when i call measure
(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED) my onLayout() is
called again and i see my View.

i don't know whether it is normal behavior or i'm missing something in
my custom ViewGroup


thanks
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: Using Intents

2009-06-07 Thread Mark Murphy

Georgy wrote:
> "Unable to start activity ... no activity found to handle intent
> { action: com.google.android.radar.SHOW_RADAR (has extras) } "

That would suggest that either you do not have the Radar application
installed, or the one you have installed does not match the
AndroidManifest.xml from the open source tree.

If you think you have it installed, did you compile from source, or
install it off the Market, or get it via some other means?

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

Looking for Android opportunties? http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
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 Implement the Compass function to my application?

2009-06-07 Thread Georgy

anyone has any idea how to embed the radar app into a map
application??

On Jun 6, 12:37 am, Numan Ahmed  wrote:
> on sat, 6/ 6/ 2009 numan <>
> helllo my friends have a nice day
> latest summer fashion & more fashion shows videos
> visit ushttp://www.fashioninfokit.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using Intents

2009-06-07 Thread Georgy

"Unable to start activity ... no activity found to handle intent
{ action: com.google.android.radar.SHOW_RADAR (has extras) } "


You see I am trying to embed the radar functionality in my map
application. Since I only need to show a radar that has only one
destination point it's not worth writing a whole other radar program.
I was thinking to use intent and take from from another open source
app like this: 
http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Radar

is this possible?

thanks,

PS: I didn't copy the source code to my files.




On Jun 7, 12:08 pm, Marco Nelissen  wrote:
> On Sun, Jun 7, 2009 at 8:28 AM, Georgy  wrote:
>
> > How can use intents in the following:
>
> > I want to use the RADAR function  in the package:
> > com.google.android.radar.SHOW_RADAR
>
> > I got that I need to input the following:
>
> > Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
> >    i.putExtra("latitude", 37.422f);
> >    i.putExtra("longitude", -122.084f);
> >    startActivity(i);
>
> > but that throws and exception error is there anything I need to
> > know more?
>
> What's the exception?
--~--~-~--~~~---~--~~
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] Debug Appwidget using Eclipse/ADT

2009-06-07 Thread arnouf

Hi all,

I have to debug my widget using Eclipse.
I set a breakpoint in my code, but I don't see the message (displayed
normally with a standard Activity) waiting for debugger...
And the debug mode is never called...

Do you have an idea? A problem with my configuration?

Thanks for your reply.

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: Using Intents

2009-06-07 Thread Marco Nelissen
On Sun, Jun 7, 2009 at 8:28 AM, Georgy  wrote:

>
> How can use intents in the following:
>
> I want to use the RADAR function  in the package:
> com.google.android.radar.SHOW_RADAR
>
> I got that I need to input the following:
>
> Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
>i.putExtra("latitude", 37.422f);
>i.putExtra("longitude", -122.084f);
>startActivity(i);
>
> but that throws and exception error is there anything I need to
> know more?


What's the exception?

--~--~-~--~~~---~--~~
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: Device Update!!!

2009-06-07 Thread Georgy

that's weird but it just worked by itself when I was outside... that
explains it for the current location but doesn't explain it for an
explicit geo point that I specified to the map !!

On Jun 5, 9:48 am, Georgy  wrote:
> I just updated to 1.5 same issue... still... the map would Not move at
> all.
>
> thanks
>
> On Jun 4, 5:18 pm, havexz  wrote:
>
> > are using some 1.5 related api? btw is 1.5 still not available...if
> > not is soon gonna be available to you so have patience
>
> > On Jun 4, 11:46 am, Georgy  wrote:
>
> > > Ok as I was fearing.. I reached a stage where the application works on
> > > the emulator and not on thedevice!
>
> > > For example: after giving out the long/lat to a function on the
> > > emulator it takes u to the specific location however, it doesn't do
> > > that on thedevice is there somethign I dk here?
>
> > > thanks guys
>
> > > On May 29, 7:32 pm, "L!TH!UM"  wrote:
>
> > > > On May 29, 3:40 pm, Georgy  wrote:
>
> > > > > can't do... mydeviceis bought from T-mobile... yeah yeah not a real
> > > > > developer ;)
>
> > > > The major difference between the ADP1 and G1 is the firmware, all the
> > > > hardware is the same.  And besides, you can always downgrade and root
> > > > your G1 so that you can load other firmware on it, such as the ADP1
> > > > 1.5 firmware.
>
> > > > Like havexz said, having an ADP does not a make you a "real"
> > > > developer, or even a developer for that matter.- 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] Using Intents

2009-06-07 Thread Georgy

How can use intents in the following:

I want to use the RADAR function  in the package:
com.google.android.radar.SHOW_RADAR

I got that I need to input the following:

Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
i.putExtra("latitude", 37.422f);
i.putExtra("longitude", -122.084f);
startActivity(i);

but that throws and exception error is there anything I need to
know more?

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] Capture hardware button while screen is locked

2009-06-07 Thread info.sktechnol...@gmail.com

Is it possible to capture one of the hardware buttons while the screen
is locked?

The volume up and down buttons function when the screen is locked so
they
are not completely disabled.
--~--~-~--~~~---~--~~
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: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-07 Thread RedMac G
Interesting point

what's disgusting about these emails is that google is preety well aware
that me as software developer CAN NOT provide anything they require in their
e-mail: I have nil influence on transactions as they are complitely handled
by google itself.

That is the major point of this for me. They ask you to provide information
and they do know that you can't literally provide it.

cheers
den

2009/6/7 gs_london 

>
> On Jun 6, 9:46 pm, Rob Franz  wrote:
> > Now I guess I understand why that one guy who charges $4.99 for his "Top
> > Sexy Ladies" apps sets that price - at least he'd be covered in the event
> of
> > a chargeback :-)
>
> Surely that would be a return transaction of $4.99 plus $3.00
> chargeback fee?
> >
>

--~--~-~--~~~---~--~~
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] Dalvik Version

2009-06-07 Thread Gavin Aiken
Hi Guys,

I am writing the report for my project and I was wondering if anyone could
tell me how to find the current version of the Dalvik VM. My phone is a Dev
phone running cupcake. I just can't find it, I'm sure it must be obvious but
if any of you know I'd really appreciate a pointer.

Cheers,

Gav

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



[android-developers] why my textview dont show the edge of right

2009-06-07 Thread hencechen...@gmail.com


http://schemas.android.com/apk/res/android";
>












//i want to show it at the right,but it always shows next to the
textview






















--~--~-~--~~~---~--~~
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: ADC2 Teams

2009-06-07 Thread wescorp

I've already created my own mapping and tracking classes.
Now I'd like to extend these features into new applications.

I'd like to join multiple teams.

I would like to form my own team, but with what idea?  There is only 2
months to prepare.

I'd like to join teams as a consultant. I've taught myself Android. I
would think some teams might have programming talent but not much
experience with Android and could make use of me.

I'd like to join teams as a graphics guy.  No real talent here, but I
can create complex 3d models of nearly any object for game pieces,
icons, avatars.

I'd like to join teams as an Android programmer.  By the time ADC2 is
over, I'll have 2 years experience with Android and I'm starting to
know a couple things about how it works.

Additionally I'd like to add that I'm available to work on ADC2
projects full time until submission. I know I won't be able to do all
of the above, but I do know I'm quite persistent about doing my best.

There will be 2 kinds of winners from ADC2.
The first will be some genius to pop up and be swallowed up by Google/
Apple/IBM.
The second kind of winner will be hundreds of developers and developer
teams getting initial exposure of themselves and their applications to
the world.

Cheers,
Wes
http://twitter.com/wescorp1420










On Jun 6, 7:07 pm, "Eric Wong (hdmp4.com)" 
wrote:
> Are you looking towards building your own team to submit ADC2 based on
> your idea (Android realtime mapping tracking application?).
>
> Or looking to help an existing team to develop their idea/application?
>
> Eric
>
> On Jun 6, 10:47 pm, wescorp  wrote:
>
> > For the ADC2, I would like to extend my Android realtime mapping
> > tracking application work into something new .
>
> > I'm looking to assemble a team or become a member of a team to submit
> > an application or applications to the ADC2.
>
> > If you have a clear vision of how we can help each other win, please
> > let me know privately.
>
> > Cheers,
>
> > Wes
>
> > On Jun 6, 6:46 am, wescorp  wrote:
>
> > > Hi All,
>
> > > Time for another go with the Android Developer Challenge 2.  A couple
> > > of months will go quick.
>
> > > If your looking to join a team or become a member to a team, please
> > > reply here or privately to the poster.
>
> > > Cheers,
>
> > > Wes
>
>
--~--~-~--~~~---~--~~
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: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-07 Thread gs_london

On Jun 6, 9:46 pm, Rob Franz  wrote:
> Now I guess I understand why that one guy who charges $4.99 for his "Top
> Sexy Ladies" apps sets that price - at least he'd be covered in the event of
> a chargeback :-)

Surely that would be a return transaction of $4.99 plus $3.00
chargeback fee?
--~--~-~--~~~---~--~~
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: GLSurfaceView remove problem

2009-06-07 Thread jusun...@gmail.com

I am waiting a my question response. Nobody know this problem? please
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] Activity Half Refresh

2009-06-07 Thread fala70

I've an oddd problem... I've an activity with a button. On click event
I call a pick image, like this:

Uri target =
android.provider.MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI;
Intent intent = new Intent(Intent.ACTION_PICK, target);
startActivityForResult(intent, RESULT_PICKUP_IMAGE);

on onActivityResult I call an other activity. When come back from that
last activity, my main activity is refreshed only for half.

Doing a few tests the problem is solved if I call the second activity
out of onActivityResult, from a button from main activity, but I need
to call the activity from into onActivityResult .

any idea ?





--~--~-~--~~~---~--~~
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: OutOfMemoryError, but there's lots of memory?!

2009-06-07 Thread Mike Hearn

I don't think it compacts. Androids approach to reducing fragmentation
is "kill the app and restart it" :( You could try serializing the
important state, then clearing absolutely everything from the heap and
reconstructing the internals from the serialized state.

On Jun 7, 11:05 am, Keith Wiley  wrote:
> I'll give that some thought, it's not a bad idea.  However, 65k
> strikes me as a very small request, even contiguously.  Will the Java
> (or Dalvik) garbage collector defragment the memory at all or will it
> just stay fragmented indefinitely (until I reallocate things into
> large blocks)?
>
> On Jun 6, 6:14 pm, Mark Murphy  wrote:
>
> > Keith Wiley wrote:
> > > My app is building a relatively large structure ("large" being a term
> > > that is meaningless without context), and I am getting an
> > > OutOfMemoryError.  Problem is, I'm watching the memory using every
> > > metric I can think of, and I don't see how the error was triggered.
> > > It's obviously trying to allocate a 65kB HashSet in a rehash
> > > operation:
>
> > > 06-06 17:59:11.234: ERROR/dalvikvm-heap(1884): Out of memory on a
> > > 65552-byte allocation.
>
> > > Which makes sense; I traced it to the HashSet operation it is
> > > performing.  But this is what the memory looks at:
>
> > > ActivityManager.Memory Info: availMem: 26300416B, 26300KB, 26MB
> > > ActivityManager.Memory Info: threshold/lowMemory: 16777216  false
> > > Runtime.freeMemory: 1828856B, 1829KB, 2MB
> > > Runtime.totalMemory: 15605728B, 15606KB, 16MB
> > > Debug memory allocated/native/default: 4452208  1032336  5484544
>
> > > I don't get it.  Why won't it make a measly 65kB heap?  How can I
> > > detect memory problems given these utilities if they always return
> > > extremely large values right before and after an OutOfMemoryError?
> > > Are there yet additional memory utilities I should be using?
>
> > It may be a fragmentation issue. If I understand correctly, if you do
> > lots and lots of reallocations, while you may have tons of memory free,
> > there may not be a 65552-byte buffer free.
>
> > Can you pre-allocate your HashSet to a nice large capacity up front, to
> > avoid the reallocations?
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
>
>
--~--~-~--~~~---~--~~
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 add bookmarks in Android Browser

2009-06-07 Thread Zoltán Kisgyörgy
Here is a code found in the Apress Android Essentials book, Its from 2008 so
I'm not sure if its ok but probably it will work ;)
ContentValues inputValues = new ContentValues();
inputValues.put(android.provider.Browser.BookmarkColumns.BOOKMARK,"1");
inputValues.put(android.provider.Browser.BookmarkColumns.URL,"
http://www.apress.com/";);
inputValues.put(android.provider.Browser.BookmarkColumns.TITLE,"Apress, the
not so evil company");

ContentResolver cr = getContentResolver();

Uri uri =cr.insert(android.provider.Browser.BOOKMARKS_URI,inputValues);

hope it helps,
K. Zoltan

2009/6/7 Arun 

>
> Hi,
>
>
> I have an requirement to add couple of bookmarks in Android browser.
>
> Can Any one pls help me out in it.
>
>
> Regards,
> Arun
> >
>


-- 
K. Zoltán

--~--~-~--~~~---~--~~
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: Communication between two android emulators located on two PCs connected via LAN

2009-06-07 Thread Upendra Chintala
Any help on this?

thanks,
Upendra

On Thu, Jun 4, 2009 at 6:01 PM, Upendra Chintala  wrote:

> Hi,
>
> Please help me, I have been struggling for the solution for more than
> a month.
>
> I am trying to port a VoIP application based on SIP protocol to
> android.
>
> I want to test this application first on two emulators running on two
> different PCs connected via LAN.
>
> The problem is that, the communication is not happening when I run the
> application on two PCs.  The same application works when I run it's
> non-android version on the same PC's.
>
> I have identified the following problem.
> Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102)
> connected in a LAN.
>
> Emulator E1 is running on C1
> Emulator E2 is running on C2
>
> The application uses UDP protocol and the port being used is 5060 on
> both computers.
>
> I have setup port forwarding on both the emulators. This is the
> command used for that in Android console.
> redir add udp:5060:5060
>
> When we make a voip call from E1 with the URL 192.168.1.102:5060, then
> E2 responds to the call, but what ever E2 sends in response is not
> coming back to E1, and hence E1 is timing out.
>
> When I observed the log files, actually E2 is sending the response to
> 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do
> we resolve this issue?
>
>
> I have gone through the developer guide where they have mentioned
> about two emulators communicating on single PC. But looks like this
> concept doesn't work when we run emulators on two different computers.
>
> I tried 'redir' command for port forwarding and added INTERNET
> permission, still it doesn't work.
>
> My question is, Is it possible to implement this communication on two
> emulators? and if yes, How to do this?
>
> --
> Regards,
> Upendra
>



-- 
Regards,
Upendra

--~--~-~--~~~---~--~~
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: I can't get into developer.android.com site

2009-06-07 Thread touch

yeah, Great FireWall's working!

On 5月19日, 下午7时20分, show summer  wrote:
> as title
--~--~-~--~~~---~--~~
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: OutOfMemoryError, but there's lots of memory?!

2009-06-07 Thread Keith Wiley

I'll give that some thought, it's not a bad idea.  However, 65k
strikes me as a very small request, even contiguously.  Will the Java
(or Dalvik) garbage collector defragment the memory at all or will it
just stay fragmented indefinitely (until I reallocate things into
large blocks)?

On Jun 6, 6:14 pm, Mark Murphy  wrote:
> Keith Wiley wrote:
> > My app is building a relatively large structure ("large" being a term
> > that is meaningless without context), and I am getting an
> > OutOfMemoryError.  Problem is, I'm watching the memory using every
> > metric I can think of, and I don't see how the error was triggered.
> > It's obviously trying to allocate a 65kB HashSet in a rehash
> > operation:
>
> > 06-06 17:59:11.234: ERROR/dalvikvm-heap(1884): Out of memory on a
> > 65552-byte allocation.
>
> > Which makes sense; I traced it to the HashSet operation it is
> > performing.  But this is what the memory looks at:
>
> > ActivityManager.Memory Info: availMem: 26300416B, 26300KB, 26MB
> > ActivityManager.Memory Info: threshold/lowMemory: 16777216  false
> > Runtime.freeMemory: 1828856B, 1829KB, 2MB
> > Runtime.totalMemory: 15605728B, 15606KB, 16MB
> > Debug memory allocated/native/default: 4452208  1032336  5484544
>
> > I don't get it.  Why won't it make a measly 65kB heap?  How can I
> > detect memory problems given these utilities if they always return
> > extremely large values right before and after an OutOfMemoryError?
> > Are there yet additional memory utilities I should be using?
>
> It may be a fragmentation issue. If I understand correctly, if you do
> lots and lots of reallocations, while you may have tons of memory free,
> there may not be a 65552-byte buffer free.
>
> Can you pre-allocate your HashSet to a nice large capacity up front, to
> avoid the reallocations?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
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] Content Provider and Files

2009-06-07 Thread jphdsn

Hi,

I want create a Content Provider for JSON files. In that case, where
could I store the files?

First, I thought that I could store the files in an SDCARD, but not
all the devices have or will have an SDCARD.

Second, if I create this files in the app, can I use Content Provider?
And what's the maximum of  kilobits the files could have?

Third, Is there another solution?

Thanks and regard


--~--~-~--~~~---~--~~
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 i find my APP url on the market - HELP

2009-06-07 Thread rotem or
someone said the uid is on the dev console
and you can see it on hovering the app link

i dont see it .
maybe some one do ?



On Sun, Jun 7, 2009 at 12:48 AM, Rotor  wrote:

> i want to use admob
> they requier the app url on the android market
>
> but i cant find my Apps Ids or Url
>
> plese help
>
> this the from the dev guide
>
> http://developer.android.com/guide/publishing/publishing.html#marketintent
>
> this is from the market help
>
>
> http://www.google.com/support/forum/p/Android+Market/thread?tid=42b4a15c64c41b21&hl=en
>
> both dosnt help so much
>
> maybe someone know ???
>
>

--~--~-~--~~~---~--~~
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 i find my APP url on the market - HELP

2009-06-07 Thread Rotor

i want to use admob
they requier the app url on the android market

but i cant find my Apps Ids or Url

plese help

this the from the dev guide

http://developer.android.com/guide/publishing/publishing.html#marketintent

this is from the market help

http://www.google.com/support/forum/p/Android+Market/thread?tid=42b4a15c64c41b21&hl=en

both dosnt help so much

maybe someone know ???


--~--~-~--~~~---~--~~
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 persist my canvas between calls to invalidate()

2009-06-07 Thread RS

Hi,

I am trying to render a customized view which draws points on the
canvas whenever  they arrive from a remote device. Whenever a new
value is obtained - it gets passed into my customized view which draws
it on the canvas - ( The canvas should still show my previous points).
Now whenever i call invalidate() in my onDraw() method it clears all
my previous points. The application is supposed to work with a stream
of data and as such there are large number of points which are
generated and as such we dont want to store the points in an array and
reproduce them on the canvas- rather just get the new point draw it on
the canvas (the previous points should stay). Does anyone know how to
go about keeping all previous canvas objects intact while performing
invalidate?

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