[android-developers] Android Package_replace intent

2011-06-17 Thread Dalvin


In my application I am listening for following 3 intents by using broadcast 
receiver. ACTION_PACKAGE_REPLACED ACTION_PACKAGE_REMOVED 
ACTION_PACKAGE_ADDED

The problem is that whenever I reinstall some application First I get 
ACTION_PACKAGE_REMOVED then i get ACTION_PACKAGE_ADDED then i get 
ACTION_PACKAGE_REPLACED.

Is there any way to know that in reinstallation of application the 
ACTION_PACKAGE_REMOVED and ACTION_PACKAGE_ADDED intents belongs to 
ACTION_PACKAGE_REPLACED. I mean these are not the intents when only 
application is removed and installed respectively.

Thx Dalvin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 make call when song is playing

2011-06-17 Thread Bharathiraja R
Hi,

Anyone please share me sample code for "make call when song is
playing".
and how to check whether song is playing during the call.

Regards,
Bharathiraja R

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


Re: [android-developers] new Fragments

2011-06-17 Thread Dianne Hackborn
Xav's blog post explains how to get the support library, which has
FragmentActivity, through the SDK updater:

http://android-developers.blogspot.com/2011/03/fragments-for-all.html

On Fri, Jun 17, 2011 at 8:16 PM, New Developer  wrote:

> Dianne
> Thanks  and yes is was your blogspot article at the bottom that refers to
>  FragmentActivity
>
> But I can not find this anywhere  and when I type it ,  it is unknown
>
> thanks again
>
> On Jun 17, 2011, at 7:57 PM, Dianne Hackborn wrote:
>
> Blog posts:
>
>
> http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html
> http://android-developers.blogspot.com/2011/03/fragments-for-all.html
>
> SDK documentation:
>
> http://developer.android.com/guide/topics/fundamentals/fragments.html
> http://developer.android.com/reference/android/app/Fragment.html
>
> I would suggest that for now you ignore the  tag; all it is, is a
> convenience for doing certain things.  Learn how to directly use the
> Fragment APIs and how those work with activities, and then once you are done
> with those basic concepts you can throw in  layout tags.
>
> (I should probably adjust the Fragment java doc to reflect this approach as
> well.)
>
> On Fri, Jun 17, 2011 at 4:42 PM, New Developer  wrote:
>
>> Could someone please clarify the method in which to use fragment
>>
>> There is a Main Activity which has a  > layout
>>
>> this fragment element is then loaded to a class the extends  Fragment
>> But does the fragment class then have it's own activity ?  or
>> how do you access the elements within the fragment ?
>> For discussion let us say the fragment has a Button and EditText
>>
>> Under  a normal activity  you could access it with
>> (Button) findViewbyId(R.id.button);   but when I put this into a fragment
>> extended class
>> findViewById  gives an error ?
>>
>> Also there is one article on Fragment which has a FragmentActivity  or
>> ActivityFragment
>> But I can not find this anywhere
>>
>> 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
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: again like all : The application ... (process ...) has stopped unexpectedly. Please try again

2011-06-17 Thread Zsolt Vasvari
Why do you think the error is caused by your code?  The stack trace
you are showing has got something to do with Eclipse, not an Android
application.

On Jun 17, 10:25 pm, aMeeN  wrote:
> I am writing my first Andoid application. And facing an error .. I
> consider it too strange but also expecting to face a lot of strange
> errors and bugs.
>
> I googled to find out what cause that error. And tried to learn how to
> debug Android application on Eclipse but no luck.
>
> The application I am writing is having only an image and button. The
> button is to switch the mobile from normal mode to silent mode and the
> reverse and the image is an indicator the for which mode currently is
> active.
>
> When I got the error I highlighted all the the code and started
> unhighlighting one by one, till I found the this line specifically
> cause the error:
>
> int ringerMode = mAudioManager.getRingerMode();
>
> when I run the application, on the Debug prespective view , in the
> error log tab I am getting :
>
> Error:
>
> No command output when running: 'am start -n
> ameen.android.silentModeToggle/
> ameen.android.silentModeToggle.SilentModelToggleActivity -a
> android.intent.action.MAIN -c android.intent.category.LAUNCHER' on
> device emulator-5554
>
> Exception Stack Track:
>
> com.android.ddmlib.ShellCommandUnresponsiveException
>         at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
> 408)
>         at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
>         at
> com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAc­tion(ActivityLaunchAction.java:
> 74)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchA­pp(AndroidLaunchController.java:
> 1147)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleL­aunch(AndroidLaunchController.java:
> 824)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
> $3(AndroidLaunchController.java:808)
>         at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
> $3.run(AndroidLaunchController.java:656)
>
> Session Data:
>
> eclipse.buildId=M20110210-1200
> java.version=1.6.0_24
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments:  -keyring /Users/ameen/.eclipse_keyring -
> showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86 -keyring /
> Users/ameen/.eclipse_keyring -showlocation
>
> I uploaded the zipped project folder into my DropBox folder if someone
> iterested to test it:
>
> http://dl.dropbox.com/u/4392604/Silent_Model_Toggle.zip
>
> I also explained this bug with screen shots in my blog, if you wanna
> have a 
> look:http://enabofaisal.wordpress.com/2011/06/17/the-application-process-h...
>
> Please someone help me  =)
>
> BTW .. as shown above (as Session Data) I have intel x86 MAC OS 10.6
> and using Eclipse of these infos:
> Eclipse SDK
>
> Version: 3.6.2
> Build id: M20110210-1200

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Freelancer

2011-06-17 Thread Zsolt Vasvari
Only if you know how to code a Tic-Tac-Toe app.  Preferbly, in 3D.

On Jun 18, 11:43 am, khanh_qhi™  wrote:
> Hi,
> Does anyone need freelancer in Android?
>
> --
> Regards,
> Khanh.

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


[android-developers] Freelancer

2011-06-17 Thread khanh_qhi™
Hi,
Does anyone need freelancer in Android?

-- 
Regards,
Khanh.

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

Re: [android-developers] Newbie:How to add any app.widget in home screen programatically

2011-06-17 Thread June Hello
maybe you can try to set the widget as default, look at
"default_workspace.xml" file, you can find the solution

good luck

On Fri, Jun 17, 2011 at 6:17 PM, osc foss  wrote:

> Hi friends,
>
> Am using customized version of home launcher (part of android sdk
> sample) in my device and now trying to add Clock and weather widget
> (app.widget) on home screen.But this home launcher doesn't have add widget
> option, so anyone can tell me how to add such widget in the home screen.
>
> 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

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

Re: [android-developers] new Fragments

2011-06-17 Thread New Developer
Dianne
Thanks  and yes is was your blogspot article at the bottom that refers to  
FragmentActivity

But I can not find this anywhere  and when I type it ,  it is unknown

thanks again

On Jun 17, 2011, at 7:57 PM, Dianne Hackborn wrote:

> Blog posts:
> 
> http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html
> http://android-developers.blogspot.com/2011/03/fragments-for-all.html
> 
> SDK documentation:
> 
> http://developer.android.com/guide/topics/fundamentals/fragments.html
> http://developer.android.com/reference/android/app/Fragment.html
> 
> I would suggest that for now you ignore the  tag; all it is, is a 
> convenience for doing certain things.  Learn how to directly use the Fragment 
> APIs and how those work with activities, and then once you are done with 
> those basic concepts you can throw in  layout tags.
> 
> (I should probably adjust the Fragment java doc to reflect this approach as 
> well.)
> 
> On Fri, Jun 17, 2011 at 4:42 PM, New Developer  wrote:
> Could someone please clarify the method in which to use fragment
> 
> There is a Main Activity which has a   
> this fragment element is then loaded to a class the extends  Fragment
> But does the fragment class then have it's own activity ?  or
> how do you access the elements within the fragment ?
> For discussion let us say the fragment has a Button and EditText
> 
> Under  a normal activity  you could access it with
> (Button) findViewbyId(R.id.button);   but when I put this into a fragment 
> extended class
> findViewById  gives an error ?
> 
> Also there is one article on Fragment which has a FragmentActivity  or 
> ActivityFragment
> But I can not find this anywhere
> 
> 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
> 
> 
> 
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
> 
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Javascript Code Coverage

2011-06-17 Thread Kristopher Micinski
This doesn't seem to add up...

Android code isn't written in Javascript.

Kris

On Thu, Jun 16, 2011 at 3:46 PM, super  wrote:

> Hi,
>
> What code coverage tools are available for Javascript for android? I
> understand that Emma is a code coverage tool for android, but does it
> work for Javascript?
>
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: again like all : The application ... (process ...) has stopped unexpectedly. Please try again

2011-06-17 Thread aMeeN
I wasted a week in this bug .. can any help please

On Jun 17, 5:25 pm, aMeeN  wrote:
> I am writing my first Andoid application. And facing an error .. I
> consider it too strange but also expecting to face a lot of strange
> errors and bugs.
>
> I googled to find out what cause that error. And tried to learn how to
> debug Android application on Eclipse but no luck.
>
> The application I am writing is having only an image and button. The
> button is to switch the mobile from normal mode to silent mode and the
> reverse and the image is an indicator the for which mode currently is
> active.
>
> When I got the error I highlighted all the the code and started
> unhighlighting one by one, till I found the this line specifically
> cause the error:
>
> int ringerMode = mAudioManager.getRingerMode();
>
> when I run the application, on the Debug prespective view , in the
> error log tab I am getting :
>
> Error:
>
> No command output when running: 'am start -n
> ameen.android.silentModeToggle/
> ameen.android.silentModeToggle.SilentModelToggleActivity -a
> android.intent.action.MAIN -c android.intent.category.LAUNCHER' on
> device emulator-5554
>
> Exception Stack Track:
>
> com.android.ddmlib.ShellCommandUnresponsiveException
>         at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
> 408)
>         at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
>         at
> com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAc 
> tion(ActivityLaunchAction.java:
> 74)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchA 
> pp(AndroidLaunchController.java:
> 1147)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleL 
> aunch(AndroidLaunchController.java:
> 824)
>         at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
> $3(AndroidLaunchController.java:808)
>         at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
> $3.run(AndroidLaunchController.java:656)
>
> Session Data:
>
> eclipse.buildId=M20110210-1200
> java.version=1.6.0_24
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments:  -keyring /Users/ameen/.eclipse_keyring -
> showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86 -keyring /
> Users/ameen/.eclipse_keyring -showlocation
>
> I uploaded the zipped project folder into my DropBox folder if someone
> iterested to test it:
>
> http://dl.dropbox.com/u/4392604/Silent_Model_Toggle.zip
>
> I also explained this bug with screen shots in my blog, if you wanna
> have a 
> look:http://enabofaisal.wordpress.com/2011/06/17/the-application-process-h...
>
> Please someone help me  =)
>
> BTW .. as shown above (as Session Data) I have intel x86 MAC OS 10.6
> and using Eclipse of these infos:
> Eclipse SDK
>
> Version: 3.6.2
> Build id: M20110210-1200

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


Re: [android-developers] new Fragments

2011-06-17 Thread Dianne Hackborn
Blog posts:

http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html
http://android-developers.blogspot.com/2011/03/fragments-for-all.html

SDK documentation:

http://developer.android.com/guide/topics/fundamentals/fragments.html
http://developer.android.com/reference/android/app/Fragment.html

I would suggest that for now you ignore the  tag; all it is, is a
convenience for doing certain things.  Learn how to directly use the
Fragment APIs and how those work with activities, and then once you are done
with those basic concepts you can throw in  layout tags.

(I should probably adjust the Fragment java doc to reflect this approach as
well.)

On Fri, Jun 17, 2011 at 4:42 PM, New Developer  wrote:

> Could someone please clarify the method in which to use fragment
>
> There is a Main Activity which has a  
> this fragment element is then loaded to a class the extends  Fragment
> But does the fragment class then have it's own activity ?  or
> how do you access the elements within the fragment ?
> For discussion let us say the fragment has a Button and EditText
>
> Under  a normal activity  you could access it with
> (Button) findViewbyId(R.id.button);   but when I put this into a fragment
> extended class
> findViewById  gives an error ?
>
> Also there is one article on Fragment which has a FragmentActivity  or
> ActivityFragment
> But I can not find this anywhere
>
> 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
>



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

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

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

[android-developers] new Fragments

2011-06-17 Thread New Developer
Could someone please clarify the method in which to use fragment

There is a Main Activity which has a  http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to move a java program into android

2011-06-17 Thread Justin Anderson
http://www.catb.org/~esr/faqs/smart-questions.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jun 17, 2011 at 1:29 PM, Andy Li  wrote:

> I have to move a program to android. And I need to make a menu. For
> example in my program when i run it 3 buttons pop up and when u press
> on one of the buttons more options appear like back and some more
> buttons relating to the origanal button pressed what kind of menu
> should i use and how do i make 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

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

Re: [android-developers] calendar sync

2011-06-17 Thread Justin Anderson
You probably need to contact Motorola... not Verizon.  Motorola heavily
customizes their phones.  In any case, if this was a "pure" Android problem
there would be a lot of really pissed off users out there.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jun 16, 2011 at 5:34 PM, William Floyd wrote:

> I have a motorola droid x2.When I enter a calendar entry in my gmail
> account on my phone, it disappears immediatley. It says that it syncs
> to my Gmail calendar but it does not appear. When I enter a entry into
> my Gmail calendar from my laptop, it appears to sync fine to the
> phone. I have contacted Verizon tech support 4 different times and was
> advised that this is a Android issue and that there is nothing that
> they can do. When asked what the next step was, they advised that I
> could always go back to a Blackberry or Apple I phone.Is there a fix
> for this now or coming out soon?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] SMS

2011-06-17 Thread Justin Anderson
*> I would like to help me or guide me to develop an application to generate
an SMS text message*
You want to help yourself do this? Cool, then by all means, do so!

If you want others to help, well, we can't really help without some sort of
code...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jun 16, 2011 at 5:00 PM, Miguel Hull  wrote:

> , I would like to help me or guide me
> to develop an application to generate an SMS text message
>

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

RE: [android-developers] career in android

2011-06-17 Thread Tommy Hartz
U r sofa king retarded

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of jeniffer hills
Sent: Thursday, June 16, 2011 1:31 PM
To: Android Developers
Subject: [android-developers] career in android

hey ol!!
well m  doin engg wid cs deptt. n rcntly m done wid my 4th sem xams.
few dayz back i hv learnt about android apps n also registerd for the same.
Though i hv learnt dat in future android may achieve sm demand in the
market. still i hv a cnfusion regardin d "CAREER IN ANDROID" as android apps
r used only in cellphones. dere is no pc or laptop wch is based on android
apps so far. i hv several ques in my mind like 1. is dere any career in
android apps?
2. hw good it is frm career point of view?
3. cellphons r smthing wch will olwayz be in demand so r dere sufficient
nmbr of cmpanies dat provide gadgets based on android apps?
4. in outside country, is android a good technology wch hav a good demand
and future as well?
5. in a career for engg, wat is more imprtnt? a good programming skills or
knowldge of sch apps.
ladies n gentlements plz go thru my quries n help me out by tellin me ol ups
n dwns of android apps n guiding me for selecting a crrct path for a good
future carrer.

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

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


Re: [android-developers] career in android

2011-06-17 Thread TreKing
On Thu, Jun 16, 2011 at 12:31 PM, jeniffer hills wrote:

> well m  doin engg wid cs deptt. n rcntly m done wid my 4th sem xams.
>

I'm going out on a limb and assuming you didn't take any English, writing,
or spelling classes.

5. in a career for engg, wat is more imprtnt? a good programming skills or
> knowldge of sch apps.


Even more important are spell-checker skills and knowledge of how to
communicate with normal people that aren't 1337 hax0rs.


Consider writing your post in clear, plain, English if this was actually
serious.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 celebrites api

2011-06-17 Thread nexbug
Would there be some basic support for drag and drop in this api?
Also hopefully these would be extensible to Tollywood and Mollywood in
later versions.?
When can we get a preview/trailer sdk?
-g

On Jun 17, 10:34 am, daniel  wrote:
> >     public void getPersonalCelebrities(String person, List
> > outCelebrities);
>
> It seems unkind to "String" these poor "Celebrities" along and then
> "out" them. Can we at least create an interface that implements
> OnPaparazziNotify.
> ex.
>                 potentialInnocent.setOnPaparazziNotify(new 
> OnPaparazziNotify() {
>                         @Override
>                         public void onNotify(View v) {
>                                 Agent shyster = new 
> Agent(CelebrityInfo.getBollywoodID());
>                                 String comment = shyster.requestComment();
>                                 if(comment==null || true == 
> Ethics.isRude(comment)){
>                                    Bollywood.Press.submitPhoto(photosLst,
> Ethics.verify(attribution));
>                                 }else{
>                                    try{
>                                       UnethicalParty.submitPhoto(photosLst, 
> null);
>                                    }catch(EthicsViolation ev){
>                                       repent();
>                                    }
>                                 }
>                         }
>                 });
>
> Forgive please the sorry code. I'm writing this on an napkin.

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


Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Yeah... I'll most likely have to do that... When I do I'll post again on 
this thread with the link to the bug report which will have a sample 
apk./code..

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

[android-developers] Re: Strange exception

2011-06-17 Thread nexbug

Why not open upthat line in the android source?
Assuming you are lucky and get a reasonable matching srcfile...

On Jun 16, 11:32 pm, Yahel  wrote:
> That's what the first three lines of your stacktrace suggest.
>
> Yahel
>
> On 16 juin, 18:33, Felix Garcia Lainez 
> wrote:
>
>
>
> > Umm... So the error is on one of my touchevents implementations for
> > textview objects (and subclass like edittext)?
>
> > On 16 jun, 15:00, Yahel  wrote:
>
> > > > really would be crazy, no?
>
> > > Crazy ? Yes ! Tedious ? Yes !
>
> > > But you can probably narrow it down since it is raised by a TextView
> > > ontouch event.
>
> > > Have fun :)
>
> > > Yahel

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


Re: [android-developers] career in android

2011-06-17 Thread Kristopher Micinski
On Thu, Jun 16, 2011 at 1:31 PM, jeniffer hills wrote:

> hey ol!!
> well m  doin engg wid cs deptt. n rcntly m done wid my 4th sem xams.
> few dayz back i hv learnt about android apps n also registerd for the
> same. Though i hv learnt dat in future android may achieve sm demand
> in the market. still i hv a cnfusion regardin d "CAREER IN ANDROID" as
> android apps r used only in cellphones. dere is no pc or laptop wch is
> based on android apps so far. i hv several ques in my mind like
> 1. is dere any career in android apps?

2. hw good it is frm career point of view?

3. cellphons r smthing wch will olwayz be in demand so r dere
> sufficient nmbr of cmpanies dat provide gadgets based on android apps?
> 4. in outside country, is android a good technology wch hav a good
> demand and future as well?
> 5. in a career for engg, wat is more imprtnt? a good programming
> skills or knowldge of sch apps.
> ladies n gentlements plz go thru my quries n help me out by tellin me
> ol ups n dwns of android apps n guiding me for selecting a crrct path
> for a good future carrer.


Omg lulz evry1, it 1337 verzion f othr thrd frm wks ag0!

Kris

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

Re: [android-developers] shared file accross multiple applications

2011-06-17 Thread TreKing
On Fri, Jun 17, 2011 at 3:06 AM, kvaso  wrote:

> so can I access one file from multiple applications?


Search this group - this has been brought up and answered a number of times.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] career in android

2011-06-17 Thread jeniffer hills
hey ol!!
well m  doin engg wid cs deptt. n rcntly m done wid my 4th sem xams.
few dayz back i hv learnt about android apps n also registerd for the
same. Though i hv learnt dat in future android may achieve sm demand
in the market. still i hv a cnfusion regardin d "CAREER IN ANDROID" as
android apps r used only in cellphones. dere is no pc or laptop wch is
based on android apps so far. i hv several ques in my mind like
1. is dere any career in android apps?
2. hw good it is frm career point of view?
3. cellphons r smthing wch will olwayz be in demand so r dere
sufficient nmbr of cmpanies dat provide gadgets based on android apps?
4. in outside country, is android a good technology wch hav a good
demand and future as well?
5. in a career for engg, wat is more imprtnt? a good programming
skills or knowldge of sch apps.
ladies n gentlements plz go thru my quries n help me out by tellin me
ol ups n dwns of android apps n guiding me for selecting a crrct path
for a good future carrer.

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


[android-developers] Javascript Code Coverage

2011-06-17 Thread super
Hi,

What code coverage tools are available for Javascript for android? I
understand that Emma is a code coverage tool for android, but does it
work for Javascript?


Thank you

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


[android-developers] SMS

2011-06-17 Thread Miguel Hull
HELLO, GOOD AFTERNOON
 I've been working on developing an application that allows to
generate a text message (SMS) from a package that is received via
bluetooth, but I have problems when generating module that generates
the SMS, I have the idea and some application source, but i don't know
what are the mistakes that I have, I would like to help me or guide me
to develop an application to generate an SMS text message

 greetings

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


[android-developers] calendar sync

2011-06-17 Thread William Floyd
I have a motorola droid x2.When I enter a calendar entry in my gmail
account on my phone, it disappears immediatley. It says that it syncs
to my Gmail calendar but it does not appear. When I enter a entry into
my Gmail calendar from my laptop, it appears to sync fine to the
phone. I have contacted Verizon tech support 4 different times and was
advised that this is a Android issue and that there is nothing that
they can do. When asked what the next step was, they advised that I
could always go back to a Blackberry or Apple I phone.Is there a fix
for this now or coming out soon?

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


[android-developers] Channels and Android?

2011-06-17 Thread Anthony
Now that the Channel API for App Engine is out in the open, anyone
find code snippets to allow this API to interface with Android Apps?
C2DM requires my users to have a higher version system than I am
targeting, but I would like a easy, lightweight way to have realtime
interaction between my users and my backend service.

Any thoughts or suggestions would be appreciated.

Cheers,

Anthony

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Connection center

2011-06-17 Thread tarun sablok
Hey you will have to download the NFC simulator  which  is required
for the simulation  .This is the link for it

http://sourceforge.net/projects/open-nfc/files/Open%20NFC%204.2.3%20%289635%29/

from here  download the core  version of it , in that you will find
the NFC simulator as well the connection center . There is one issue
in setting up the connection center there , one  ccrouter.dll file is
missing in the connection center folder which i am not able to figure
it out .  You  try that and in case u have some  hits do  share .

Cheers

Tarun

On Jun 10, 4:17 pm, i42sasij  wrote:
> Hi Everyone,
> I'm trying to configure the Open NFC library. I followed the help
> document provided by them, but when execution. I would like to know
> what isConnectionCenterin that document or if can anyone please
> help me to download it?
> Thanks & 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] Android License allow access to an user who hasn't bought the application

2011-06-17 Thread Roman
Hello,

I have implemented the android license system in a paid application
that I am developing. I have uploaded the app but not published it,
and I am testing the license system. The policy I am using is
ServerManagedPolicy.

When I execute the app from the emulator, server responses I am not
allowed (I thing that's correct), but when I execute the app in an
android mobile (not the one that is registered with my google account,
another one), server responses that the mobile phone is allowed to
execute the app (At least I suppose that, because if not an alert
should appears).

Is it correct? I think that it shouldn't, because that mobile hasn't
bought the app. Could it be because I have not published the app yet?
But in that case, the emulator should be allowed as well...

This is the code used to check the license:

mLicenseCheckerCallback = new ComprobadorLicencia();

String deviceId = Secure.getString(getContentResolver(),
Secure.ANDROID_ID);
// Construct the LicenseChecker with a Policy.
mChecker = new LicenseChecker(
this,
new ServerManagedPolicy(this, new
AESObfuscator(Constantes.SALT, getPackageName(), deviceId)
),
Constantes.clave_publica_licencia
);

mChecker.checkAccess(mLicenseCheckerCallback);

private class ComprobadorLicencia implements
LicenseCheckerCallback
{
public void allow()
{
if (isFinishing())
{
// Don't update UI if Activity is finishing.
return;
}
}

public void dontAllow()
{
if (isFinishing())
{
// Don't update UI if Activity is finishing.
return;
}
showDialog(0);
}
}

The showDialog warns the user and then the application closes itself.

Could anyone explain me why the emulator is not allowed but the app
is?

Than you very much!

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


[android-developers] How android get MSISDN

2011-06-17 Thread Sherif Shehab Aldin
Hi all,

I am doing a project of mine, and I wanted to get the MSISDN of the SIM
cards, and I thought I would follow the Android code to see how It handles
It. I been following the code for hours till I reached this
point: com.android.internal.telephony.gsm.SIMRecords.handleMessage(Message
msg)

and now am stuck cause I have no clue who calls handleMessage, or as I think
It's an event which is fired after getting the MSISDN. but I have no clue
where to go from here.

I have asked on #android-developers and someone told me that Android doesn't
do It, the Vendor code implements the baseband functions, If so does anyone
of open source implementation of such a thing, or even have an idea how that
could be implemented, I just need some hints or ideas which I will implement
myself.

Thanks all, :)

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

[android-developers] Re: Any way Application Publisher get to know details on users who bought the application from Market?

2011-06-17 Thread Paulo Morandi
Humm.. I don't think you can do such thing.. but do you think that
your solution will successfully detects if the user is "cheating"? I
think if they can break the google's verification, they will break
yours also.. I don't think you will "filter" some "bad guys" that
already do this (I really don't know how they do this yet, but it's
not "child's stuff".. I hope..)...

On Jun 16, 10:03 am, vaidyanet  wrote:
> I am happy to know that Android now provides the LVL for the license
> verification. How ever there so many discussions on the net over how
> easily it can be breaked. So I was plannng to have the double check
> over licensing. We have a cloud server which application communicates
> to get some processing done. During this time, I was thinking of
> verifying the registered users. So Any way publisher can query either
> Android market or License server for the users who purchased
> application though market? if so what details publisher can get?
>
> Thanks in advance.
> Sandeep

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 celebrites api

2011-06-17 Thread daniel
> public void getPersonalCelebrities(String person, List
> outCelebrities);

It seems unkind to "String" these poor "Celebrities" along and then
"out" them. Can we at least create an interface that implements
OnPaparazziNotify.
ex.
potentialInnocent.setOnPaparazziNotify(new OnPaparazziNotify() {
@Override
public void onNotify(View v) {
Agent shyster = new 
Agent(CelebrityInfo.getBollywoodID());
String comment = shyster.requestComment();
if(comment==null || true == 
Ethics.isRude(comment)){
   Bollywood.Press.submitPhoto(photosLst,
Ethics.verify(attribution));
}else{
   try{
  UnethicalParty.submitPhoto(photosLst, 
null);
   }catch(EthicsViolation ev){
  repent();
   }
}
}
});

Forgive please the sorry code. I'm writing this on an napkin.


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


[android-developers] Accessing Android Battery Usage and other System Information

2011-06-17 Thread jdlehman
I am currently doing research on power consumption on mobile devices,
specifically for Android, and I have been unable to find a means of
accessing some of the data I require such as CPU usage, battery usage,
WiFi usage, and memory usage etc.  I know that some of this data can
be found through the "dumpsys" on the adb shell or other commands like
"top".  Is there a way to access this data programmatically with
Java?  How do applications like PowerTutor, Power Manager and the like
get the data they require?  Is there an API that can be used?  I have
been unable to find what I am looking for from the Android Developer
documentation.

Thanks for your help.

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


[android-developers] media.oninfolistener

2011-06-17 Thread Tberry
Hey guys, I am still learning android. I was just wondering how to use
the media oninfoListener. I am trying to show the user that the video
time has finished and then stop the recording when my custom video
recording is finished. Here is a little of what I have below.


 public void OnInfo(){
 if(what==MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED)
 {
 log.v("VIDEOCAPTURE","Maximum Recording video reached");
 recorder.stop();
  }
  }
 }

The error I am getting is that my  "what" is not being recognized as
part of the oninfolistener class.



 Also is there a way on a surface view to perform and shows the amount
of seconds being recording in a video? Any help will be highly
appreciated!

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


[android-developers] bug? monkey runner does not touch down, only tap

2011-06-17 Thread Justin C
I'm trying to automate a test on android that requires a hold event
(i.e. touch a single point on screen and wait, then release).
However, the Logcat reports:

[date] [time] 643  643 D MonkeyStub:  translateCommand: tap 25 25

instead of the expected

[date] [time] 643  643 D MonkeyStub:  translateCommand: touch down 25
25

The Jython code i'm testing is

import sys
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice,
MonkeyImage

device = MonkeyRunner.waitForConnection( 5 )
if not device:
sys.exit()

device.touch( 25, 25, 'down' )


I've tried using 'down', 'Down', 'DOWN', 'dOWN', but MonkeyRunner only
responds with Tap (DOWN_AND_UP) events, which is default behavior if
it cannot interpret my TouchPressType enumerator.

Test platform consists of:
  Droid X2 with Android 2.2.2, Kernel 2.6.32.9
  ADB v1.0.26

At the moment, I'm using drag over the same location to simulate a
Touch Down event.  Still, this is fustrating trying to use a sparsely
documented API that appears to have broken functionality.  Any help is
appreciated.

Regards,

Justin C.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 get more accurate location by fusing the accelerometer data with the GPS/Network data

2011-06-17 Thread Ziv Ziv
Hi all,

I would like to get better location accuracy. I know that aircraft IMU
(GPS+INS) are fusing the GPS data and the INS (Inertial Navigation
System) data to get better estimation of the location/speed.

Is it possible to do the same on my Nexus S device?
Is it already implemented on the hardware/os layer?
If not. Is there any known API for such code?

Thanks,

Ziv

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


[android-developers] onBackPressed backwards compatibility

2011-06-17 Thread Veeti Paananen
Hi!

Is there any way to get the example in "Story 3" at
http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html
actually working? Having onBackPressed in an activity will cause a
java.lang.VerifyError to be thrown when running on an 1.6 device.

I really want to avoid just overriding back with onKeyDown, because
this means that the event will be thrown right after the back button
is pressed down and not when it is released (which is not the standard
behavior on Android).

Thanks!

--
Veeti P.
http://rojekti.fi/

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


[android-developers] Proguard can´t access my project

2011-06-17 Thread Joe
Hi,

i have created a android App and compiled it with proguard. Thats ok
and works fine.
Now, i want to create a demo version of my app. So i have copied my
project in eclipse und renamed the application context. If i compiling
the project, following error occurs:
[2011-06-17 14:36:01 - App Demo] Proguard returned with error code 1.
See console
[2011-06-17 14:36:01 - App Demo] Error: E:\Develepmont\Java\App
(Access denied)

The error message shows the path of the full version of the app, and
not the demo one. The path of the demo is "E:\Develepmont\Java\App
demo".
Where i can switch this property to the correct path? The project
properities are all correct. My entry in default.properties is
proguard.config=proguard.cfg

Thanks and regards,
Joe

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


[android-developers] again like all : The application ... (process ...) has stopped unexpectedly. Please try again

2011-06-17 Thread aMeeN
I am writing my first Andoid application. And facing an error .. I
consider it too strange but also expecting to face a lot of strange
errors and bugs.

I googled to find out what cause that error. And tried to learn how to
debug Android application on Eclipse but no luck.

The application I am writing is having only an image and button. The
button is to switch the mobile from normal mode to silent mode and the
reverse and the image is an indicator the for which mode currently is
active.

When I got the error I highlighted all the the code and started
unhighlighting one by one, till I found the this line specifically
cause the error:

int ringerMode = mAudioManager.getRingerMode();

when I run the application, on the Debug prespective view , in the
error log tab I am getting :

Error:

No command output when running: 'am start -n
ameen.android.silentModeToggle/
ameen.android.silentModeToggle.SilentModelToggleActivity -a
android.intent.action.MAIN -c android.intent.category.LAUNCHER' on
device emulator-5554


Exception Stack Track:

com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at
com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:
74)
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(AndroidLaunchController.java:
1147)
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(AndroidLaunchController.java:
824)
at
com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
$3(AndroidLaunchController.java:808)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
$3.run(AndroidLaunchController.java:656)



Session Data:

eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/ameen/.eclipse_keyring -
showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -keyring /
Users/ameen/.eclipse_keyring -showlocation


I uploaded the zipped project folder into my DropBox folder if someone
iterested to test it:

http://dl.dropbox.com/u/4392604/Silent_Model_Toggle.zip

I also explained this bug with screen shots in my blog, if you wanna
have a look:
http://enabofaisal.wordpress.com/2011/06/17/the-application-process-has-stopped-unexpectedly-please-try-again/

Please someone help me  =)

BTW .. as shown above (as Session Data) I have intel x86 MAC OS 10.6
and using Eclipse of these infos:
Eclipse SDK

Version: 3.6.2
Build id: M20110210-1200




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


[android-developers] Begainer in Android Game Development

2011-06-17 Thread BY SmartApps
Greetings,

I have started thinking to develop games for Android. I have a good
background in standard programming using Java, C & C++. But I have
never tried to develop a game before.

Basically, I would like to know how to begin developing 2d & 3D games
for Android.

I have downloaded tools like Eclipse, Blender, and Unity3d. I need
your help in this. For starting, how can I kick off? Are there
tutorials for 2d game development like “Angry Birds” ?
Please guide me.

Thanks & Regards,

Badar Al Raisi

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


[android-developers] android.media.MediaPlayer to icecast very slow

2011-06-17 Thread Richard
Hi,

I've created a small app to connect to our stream. We have an
shoutcast (128kbps mp3) and a icecast (56kbps ogg) stream running. The
connection to the shoutcast stream is in ~2 seconds, while the icecast
streams takes ~35 seconds. In chrome for example the stream to icecast
connects in ~1 second.

I've been testing this app on Android 2.3.3, HTC Desire & Samsung
Galaxy II.

Any idea what is causing this extreme delay in connection time? Is it
with support for ogg format on the Android devices?

Regards,
Richard

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


[android-developers] openjdk

2011-06-17 Thread JeffZZZ
Can openjdk be used instead of instead of oracle java?  Any issues if
it is used.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 move a java program into android

2011-06-17 Thread Andy Li
I have to move a program to android. And I need to make a menu. For
example in my program when i run it 3 buttons pop up and when u press
on one of the buttons more options appear like back and some more
buttons relating to the origanal button pressed what kind of menu
should i use and how do i make 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: Android - SQLLite

2011-06-17 Thread Indicator Veritatis
But then where do you keep the key?

> On Jun 13, 8:38 am, Sivaprakash 
> wrote:> It is like this,
>
> > - I am creating database in default way hence it will be created in my
> > application private storage and other applications will not get access to
> > it. Still I the user login as root user he would right? Anyways to prevent
> > this?
>
> > - What is the best mechanism to store secret data like bank accounts in my
> > phone memory?
>
> > On Sun, Jun 12, 2011 at 9:44 PM, Kumar Bibek  wrote:
> > > Encrypt and Store.
>
> > > Use remote wipe, it would of course need a lot of work.
>
> > > *Thanks and Regards,
> > > Kumar Bibek*
> > > *
> > >http://techdroid.kbeanie.com
> > >http://www.kbeanie.com*
>
> > > On Sun, Jun 12, 2011 at 9:42 PM, Sivaprakash <
> > > sivaprakashshanmu...@gmail.com> wrote:
>
> > >> Alright, but any way what is the best mechanism to protect my data? Even
> > >> if I loose my mobile someone should not gain access to my data.
>
> > >> On Sun, Jun 12, 2011 at 5:52 PM, Mark Murphy 
> > >> wrote:
>
> > >>> On Sun, Jun 12, 2011 at 1:37 AM, Sivaprakash
> > >>>  wrote:
> > >>> > Thanks !! What should I do if I want to protect my data in more secure
> > >>> way
> > >>> > meaning even if someone steels my memory card they should not gain
> > >>> access to
> > >>> > my data or immediately it should be erased ?
>
> > >>> Don't put the data on the memory card in the first place.
>
> > >>> --
> > >>> Mark Murphy (a Commons Guy)
> > >>>http://commonsware.com|http://github.com/commonsguy
> > >>>http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > >>> Android Training in NYC:http://marakana.com/training/android/
>
> > >>> --
> > >>> You received this message because you are subscribed to the Google
> > >>> Groups "Android Developers" group.
> > >>> To post to this group, send email to android-developers@googlegroups.com
> > >>> To unsubscribe from this group, send email to
> > >>> android-developers+unsubscr...@googlegroups.com
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/android-developers?hl=en
>
> > >> --
> > >> - Prakash.
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
>
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > - Prakash.

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


Re: [android-developers] how to get blocked until the target activity returns.

2011-06-17 Thread Xie Daniel
urmm.

if the called activity is set to "singletask"  , then the behavior of
the call to onActivityResult  is not like normal case :
onActivityResult   is invoked after the target activity exits.


refer to this link for detail :
http://developer.android.com/reference/android/app/Activity.html#onActivityResult%28int,%20int,%20android.content.Intent%29

or

public void startActivityForResult (Intent intent, int requestCode)
Since: API Level 1

Launch an activity for which you would like a result when it finished.
When this activity exits, your onActivityResult() method will be
called with the given requestCode. Using a negative requestCode is the
same as calling startActivity(Intent) (the activity is not launched as
a sub-activity).

Note that this method should only be used with Intent protocols that
are defined to return a result. In other protocols (such as
ACTION_MAIN or ACTION_VIEW), you may not get the result when you
expect. For example, if the activity you are launching uses the
singleTask launch mode, it will not run in your task and thus you will
immediately receive a cancel result.

As a special case, if you call startActivityForResult() with a
requestCode >= 0 during the initial onCreate(Bundle
savedInstanceState)/onResume() of your activity, then your window will
not be displayed until a result is returned back from the started
activity. This is to avoid visible flickering when redirecting to
another activity.

This method throws ActivityNotFoundException if there was no Activity
found to run the given Intent.



On 6/15/11, TreKing  wrote:
> On Sun, Jun 12, 2011 at 8:42 AM, Xie Daniel  wrote:
>
>> So , would you like to shed some lights of the way of making the
>> execution blocked in OnActivityResult unless WIFISettings activity
>> exits.
>>
>
> You don't need to block anything - onActivityResult won't be called until
> the activity previously launched with startActivityForResult() is done.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Android HTTP Live Streaming cannot display videos playlist with a m3u8 inside another m3u8

2011-06-17 Thread Yuhan Zhang
Hi all,

I am trying to put up the HTTP Live Streaming videos into an app (with
Android 3.0,
API level 11). The application is able to display .m3u8 videos that
directly having links
to .ts files. However, when a .m3u8 files is included inside
another .m3u8, the video
streaming fails.

Is this kind of list supported by Android 3.0? or there is some
setting that I missed
when displaying the playlist of videos?

Thank you.

Yuhan


--
examples of .m3u8 files that work:

#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:2051
#EXTINF:10,
test1-110k_061611_134303_2051.ts
#EXTINF:10,
test1-110k_061611_134303_2052.ts
#EXTINF:10,
test1-110k_061611_134303_2053.ts

--
examples of .m3u8 files that doesn't work:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=169370
test1-110k.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=275101
test1-200k.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=481677
test1-400k.m3u8

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


Re: [android-developers] JDK Installation

2011-06-17 Thread Charlie


An environment variable, or add to the PATH, and pointing to what, exactly?



From: mailto:iamvijayaku...@gmail.com 
Sent: Tuesday, June 14, 2011 11:13 PM
To: android-developers@googlegroups.com 
Subject: Re: [android-developers] JDK Installation

you have to set environment path.


On Tue, Jun 14, 2011 at 11:57 PM, Charles  wrote:

  When I'm trying to install the Android SDK, I know I have to have a
  Java SDK installed first.

  I'm installing jdk-6u26-windows-i586 on an XP platform prior to
  installing install_r11-windows.exe.

  I consistently get the error that the JDK is not installed.

  Has anyone else run into this, and how did you resolve it (if you did)?

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



-- 

 
 


"Nobody can go back and start a new beginning, but anyone can start today and 
make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)


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

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

[android-developers] Re: install android sdk tools on windows 7

2011-06-17 Thread sumedh
this really works!

On Apr 29, 3:20 pm, rajul jain  wrote:
> hey great works for me tooo
>
> On Thu, Apr 28, 2011 at 10:28 PM, Steve Graham <
>
>
>
> solitary.wandere...@gmail.com> wrote:
> > I had the same problem and in the archives I found a fellow saying to
> > hit the back key and then the next key (or something like that) and
> > then it would find it.  Worked for me.
>
> > Steve
>
> > ---
>
> > On Apr 27, 12:21 pm, freecoder  wrote:
> > > hello everyone
> > > when i try to install android sdk tools it says java se devolopment
> > > kit(JDK) not found
> > >  so i insall jdk-6u25-windows-i586.exe(I have 32 bit windows) from
> > > locationhttp://
> >www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-down...
> > > and still it say  java se devolopment kit(JDK) not found
> > > what can ido now
> > > please help me out..
> > > please check have i insall right jdk or not for 32 bti windows
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Error inflating class in custum relativelayout

2011-06-17 Thread Angephine Casilang
Thanks for this source of codes.

On Jun 17, 4:01 pm, ABSOLUT  wrote:
> Hi,
> I'm trying to make a custom relativelayout but when I start the
> activity it fails:
>
> 06-17 09:57:23.253: ERROR/AndroidRuntime(526):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.es/com.es.KkActivity}:
> android.view.InflateException: Binary XML file line #4: Error
> inflating class com.es.kk.TransparentPanel
> 06-17 09:57:23.253: ERROR/AndroidRuntime(526): Caused by:
> android.view.InflateException: Binary XML file line #4: Error
> inflating class com.es.kk.TransparentPanel
> 06-17 09:57:23.253: ERROR/AndroidRuntime(526): Caused by:
> java.lang.ClassNotFoundException: com.es.kk.TransparentPanel in loader
> dalvik.system.PathClassLoader[/data/app/com.es-2.apk]
> ..
>
> My layout is:
>
> 
>  
> 
> http://schemas.android.com/
> apk/res/android"
>             android:id="@+id/relativo"
>                 android:layout_width="wrap_content"
>         android:layout_height="wrap_content" >
>                          android:src="@drawable/tv"
>                 android:layout_height="fill_parent"
>                 android:layout_alignParentLeft="true" 
> android:layout_width="42dip"/>
>                          android:src="@drawable/vertical"
>                 android:layout_height="100dip"
>                 android:layout_toRightOf="@id/imagenWidget"
>                 android:layout_width="5dip"/>
>                          android:layout_toRightOf="@id/barra" 
> android:layout_height="50dip"
> android:gravity="center" android:layout_width="50dip"
> android:inputType="textMultiLine" android:textSize="8sp">
>         
>                          android:src="@drawable/vvh"
>                 android:layout_toRightOf="@id/barra"
>                 android:layout_below="@+id/textoWidget" 
> android:layout_width="50dip"
> android:layout_height="wrap_content" android:adjustViewBounds="true"/>
>                          android:layout_below="@+id/barrahor" 
> android:layout_toRightOf="@id/
> barra" android:background="@drawable/custom_widget_button"
> android:layout_height="match_parent" android:drawableLeft="@drawable/
> borrado" android:layout_width="50dip"  android:textSize="8sp"
> android:layout_centerVertical="true" android:gravity="center_vertical"
> android:paddingLeft="10dip">
>         
>                          android:src="@drawable/vertical"
>                 android:layout_height="100dip"
>                 android:layout_toRightOf="@id/textoWidget"
>                 android:layout_width="5dip"/>
>                          android:layout_toRightOf="@id/barra2" android:text="hola"
> android:background="@drawable/custom_widget_button"
> android:layout_height="fill_parent" android:gravity="center"
> android:paddingTop="2dip" android:layout_width="match_parent"
> android:textSize="8sp">
>         
> 
>
> Could you help me please?
> Many thanks and sorry for my english!

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


[android-developers] shared file accross multiple applications

2011-06-17 Thread kvaso
Hi,
is it possible to share a file across multiple applications?
currently I am using openFileOutput/openFileInput from Context class,
but it seems that file created such a way is private

I've read in documentation, that Content Provider may solve my
problem, but it provides database-like files - but I need to store XML
file or something like that (database is not suitable for me)

so can I access one file from multiple applications?
thanks a lot

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


[android-developers] required a plugin for android in netbeans

2011-06-17 Thread virinchy
 hii guys ,i am new to learn android where can i get a plugin for
android in netbeans???

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


[android-developers] About Location Service

2011-06-17 Thread Baodong Chen
Hi:
 I have a APP using Location Service, and i tested it and found that
 my Location Listener's onLocationChanged() was not called for more
than ten seconds.
 but onGpsStatusChanged() was called normally.
 this means that i can not decide user's location for too long time.
 I want to know why this happens?
 is this a normal case or a bug cause this?

 ps: I have posted this to android-ndk, and they suggested me posting here.

 best regards, 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] call forwarding programmatically

2011-06-17 Thread madlymad
Hi there,

I am trying to make an app that will allow the user to forward his
calls to voicemail and also disable that option.

In order to do that I am trying to dial
**21*30693516000#  for activating the call forward
and ##21# for deactivating

If you try that straight to the keypad the commands work perfect but
trying to pass them through the Intent extras I am loosing symbols
like # and the call does not work. :(

Is there any walk-around to dial whatever you want?


I both tried ACTION_DIAL and ACTION_CALL
String uri = 
"**21*30693516000#";   // ##21#
Intent intent = new 
Intent(Intent.ACTION_DIAL); // ACTION_CALL
intent.setData(Uri.parse(uri));
startActivity(intent);
At uri =  "**21*30693516000#"; the passed number =
**21*30693516000 so you lose the # and at the case of ##21# the
number is * (just a star symbol)
In the option of ACTION_CALL after the call you get an not acceptable
MMI code but I am sure that if you manage to pass the number right it
will work.

Any ideas?
Thanks in advance, sorry for the long post.

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


[android-developers] Browser Plug-in for Android

2011-06-17 Thread KM
Hello,
I am relatively new to Android development and extensive search on
Google has not been fruitful either...

I am trying to develop a plug-in for the native Android Web Browser.
* As an exploration i am trying to get/set cookies when user navigates
to websites of interest (This exercise is purely for educational
purposes).
* I would like to process the HTML stream as well.

A lot of discussions on the web point out to SampleBrowserPlug-in
based on the NPAPI. However when i downloaded the source code today
(development.git), I don't see this sample.

My questions are:
* Is there any specific reason why this sample would have been
removed? Is this to discourage development of plug-ins and instead use
WebKit in native applications?
* Would I be able to get/set cookies for the native browser from the
plug-in.

Your response and pointers are very much appreciated!

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] MapView not working

2011-06-17 Thread Xanthanov
Your Activity class has to extend MapActivity.

You have to override the abstract method isRouteDisplayed() to just
return false (or true if your app actually displays routes).

~Xan

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


[android-developers] Trasferring captured image directly to PC over WIFI

2011-06-17 Thread Parmeet
Dear All,

I am in process of developing Android application where i want to send
the captured image automatically to my PC as soon as the image is
captured. The process is exactly the same as Google goggles where
picture taken is directly send to Google sever for processing.

I have already created Camera application but now i am struck with
second part that is to send the captured image to my PC(as soon as i
capture the image) over shared WiFi. Any help is highly appreciable. I
look forward to your replies.

Many thanks,
Parmeet

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


[android-developers] Best option to get low latency streaming over RTSP

2011-06-17 Thread pragnesh
Hi All,


I am a streaming and multimedia developer, I am currently developing a
streaming receiver for android based devices. I observed the RTSP
streaming latency with default players but it very high (5 secs in 2.2
and 5 secs in 2.3 and 3.x) even in local LAN also. So my question is,
Is there any possibility of getting low latency streaming using the
default players? If not is it possible to access decoder from the JAVA
or using the JNI interface, so that I can develop my own player?

I show the opencore and stagefright frameworks but can I use any of
that to access the codec directly from my application?

I am streaming H.264 baseline video at 512Kbps.

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] triggering an application to open when i make a particular pre-defined gesture

2011-06-17 Thread rishabh jain
hi all, i am a noob and android is kinda new for mei have defined
a set of gestures in gesture buildernow i what i want is that if i
make a particular gesture then i must be able to open some
application.like if i make a "m" then it must automatically open
messages, if i draw "c" then it should open contactsall
suggestions are welcomeany help would be appreciated...thanx guys

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


[android-developers] Keyguard Customization and ProgressDialog failures

2011-06-17 Thread Tony
Note: This question regards Gingerbread running on a crespo4g target.

I'm modifying the Keyguard and associated security Settings to include
an external authentication option to unlock the screen. I'd like to
use a ProgressDialog while attempting to validate the login, but it
does not appear to work in the Keyguard. I'm basing my new code in
part on the AccountUnlockScreen.java code. I noticed that the existing
AccountUnlockScreen.java seems to call a ProgressDialog as well, but
it never appears when the stock AccountUnlockScreen is run.

I've done my prototyping in a standard Activity just to figure out the
process I want to use. In that activity, I use an AsyncTask to display
the ProgressDialog spinner and run the long-ish external
authentication. It works perfectly there, just as I'd expect, but does
not work the same in the Keyguard. The code will compile, but I get a
runtime error on the ProgressDialog show() function stating: "Unable
to add window -- token null is not for an application". I then just
tried to no-op the login and put the ProgressDialog with a
Thread.sleep without using AsyncTask. The dialog never appears and no
errors occur to explain why.

When I search for answers on Google, I see other people have used the
wrong context (getActivityContext() or something similar) will get
this error. In my case, I'm using the context passed into the class
which works correctly when launching a standard AlertDialog message.

Has anyone got a suggestion on where to go from here? Do I need to
dummy up my own dialog or draw it using layout primitives and hide/
show it? Thanks in advance.

Tony

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


[android-developers] Newbie:How to add any app.widget in home screen programatically

2011-06-17 Thread osc foss
Hi friends,

Am using customized version of home launcher (part of android sdk sample) in
my device and now trying to add Clock and weather widget (app.widget) on
home screen.But this home launcher doesn't have add widget option, so anyone
can tell me how to add such widget in the home screen.

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] SPI device connected to my android host

2011-06-17 Thread chinna
Hi ,
I am trying to write a simple C application using NDK on android.
I wanted to know the SPI device/devices connected on my host.
How can I find this in the application.
Is there any API used for this.

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


Re: [android-developers] Re: How does launcher get the applications' icons and corresponding text

2011-06-17 Thread Dianne Hackborn
You really don't need the source code.  There are simple APIs on
PackageManager to load icons and resources.

On Fri, Jun 17, 2011 at 10:13 AM, Kevin TeslaCoil Software <
ke...@teslacoilsw.com> wrote:

> It does.
>
> Source for Launcher2 is available:
>
> https://android.git.kernel.org/?p=platform/packages/apps/Launcher2.git;a=summary
>
> On Jun 17, 10:37 am, June Hello 
> wrote:
> > Does launcher load icons by using PackageManager as well, I think I need
> to
> > learn the source code.
> >
> > Thanks a lot for your help
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Jun 17, 2011 at 11:22 PM, TreKing  wrote:
> > > On Fri, Jun 17, 2011 at 9:31 AM, June_Hello <
> > > junehelloworld.he...@gmail.com> wrote:
> >
> > >> I encountered with a question. Where and how  does the launcher get
> > >> the icon and text of the application which has
> >
> > >> be installed in the phone, Is this information stored in database, or
> > >> any other way else? and how can I get another
> >
> > >> app's icon which is showed on launcher from another my own.
> >
> > > Any time you want information about other packages installed on the
> device,
> > > first stop should be PackageManager.
> >
> > >
> ---
> --
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices
> >
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Diagram of Android internals

2011-06-17 Thread Indicator Veritatis
You probably already know, but I will just say it to make sure it
isn't forgotten: 'Virtual' is mis-spelled.

On Jun 13, 8:05 am, Constantine  wrote:
> Hi Android developers,
>
> I am designing detailed diagram of Android internals. You can find it
> here:http://www.makelinux.net/android/internals/
> What do you think about it?
> Have you any ideas how to improve it?
>
> Thank you 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


Re: [android-developers] Re: super.onCreate(savedInstanceState)

2011-06-17 Thread Dianne Hackborn
The safest thing to do is call super first during creation, last during
destroy, and the others don't matter.

But in practice as long as you call to the super and are working today, we
won't break you tomorrow.

On Fri, Jun 17, 2011 at 1:24 PM, Indicator Veritatis wrote:

> Now the next thing they/we need to know to keep from breaking things
> in future implementations is: do these calls always come first in the
> overrides, or can they come at any point, as long as they get called?
>
> On Jun 15, 12:42 am, Dianne Hackborn  wrote:
> > Are you just asking why you are required to call super.onCreate()?  If
> so,
> > you are required to call the super class of that and onStop() and
> onResume()
> > and others just to prevent apps from forgetting to call the base class
> > implementation and causing them to break when the platform changes in the
> > future and does stuff in those implementations.
> >
> > On Tue, Jun 14, 2011 at 6:39 AM, Android  wrote:
> > > The Reason we use onCreate(savedInstanceState) because, upon
> > > super.onCreate() it will reach the Activity (parent class of any
> > > activity) class to load the savedInstanceState. (beacause the demo
> > > activity class we have created is not capable of loading the saved
> > > state) Yeah, we normaly don't set any saved instance state, but
> > > android framework made such a way that, we should be calling that.
> >
> > > Please correct me if i am wrong.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Activity and Method

2011-06-17 Thread Indicator Veritatis
К сожалению, Вы не дописывали всё что надо, чтобы мы Вам помогли.
Прочитайне очень внимательно http://www.catb.org/~esr/faqs/smart-questions.html
и попробуйте ещё раз. Иначе, Вы скоро будете читать ответы очень
похожие на слова из "Закорючки" Зощенка! "Дура-голова, ты в окно
влез?"

On Jun 14, 6:37 am, Andrei  wrote:
> Help me, please
>
> On 14 июн, 10:33, Andrei  wrote:
>
> > Good afternoon. I have work with Google maps.
>
> > I want to boot card (when the user presses the call menu)determined by
> > its location. As well I have a database with addresses and there is a
> > button to see the map. I want to be when you click on this button, the
> > user gets it to the address that he chose in the database.
>
> > I wrote 2 different ways. How do I choose the right method for
> > downloading activity, if the user has "come out of the menu" one
> > method and another if the user "has come from the database?

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


Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Kostya Vasilyev
Well, I'm just saying it works for me, that's all.

If you think you found a bug, file it on b.android.com with a small test
case.

-- Kostya

2011/6/18 Jona 

> Sorry took a little long to reply...  I kept trying to narrow the cause.  I
> tried what you said place images under drawable-hdpi and drawable-land-hdpi.
> I also tried just drawable and drawable-land.  I have made sure I removed
> all images from the widget from this folders to avoid any mistakes testing
> on my end.
>
> Up to now what I've noticed is it doesn't matter if the land and port
> images are the same dimensions or different, the issue still occurs.
>
> Something important to reproducing the issue I noticed is that make sure
> the call setImageViewResource(...) is never called in port mode otherwise
> you will not see this issue. The call to setImageViewResource has to happen
> while you are inside an application in land mode.
>
> I have simplified my application to just that one call setImageViewResource
> when a particular intent is received.  After so much testing I'm starting to
> think this is a bug in android...
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Sorry took a little long to reply...  I kept trying to narrow the cause.  I 
tried what you said place images under drawable-hdpi and drawable-land-hdpi. 
I also tried just drawable and drawable-land.  I have made sure I removed 
all images from the widget from this folders to avoid any mistakes testing 
on my end.

Up to now what I've noticed is it doesn't matter if the land and port images 
are the same dimensions or different, the issue still occurs.

Something important to reproducing the issue I noticed is that make sure the 
call setImageViewResource(...) is never called in port mode otherwise  you 
will not see this issue. The call to setImageViewResource has to happen 
while you are inside an application in land mode.

I have simplified my application to just that one call setImageViewResource 
when a particular intent is received.  After so much testing I'm starting to 
think this is a bug in android...

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

[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help

2011-06-17 Thread Indicator Veritatis
Actually, though he expressed it with the sarcasm emoticon, I have to
agree with Romain Guy's assessment as more accurate: he "overdid it a
little bit".

I would have eliminated only "maximum" and 'effects' as way too broad,
and "Best, Great, Fun, Cool, Coolest, Widget" as claiming too much.
Also 'tesla' and 'brightest' and 'Camera'. What has the Camera got to
do with it? But that still leaves over half his original list of
keywords.

BTW: the AndroidPIT site is returning a 404 message -- in German --
for that link.

On Jun 14, 11:19 pm, Zsolt Vasvari  wrote:
> Sorry, I only saw the beginning of the list.  I take back the 2/3 of
> spam comment I made earlier.  It's actually more like 95% spam.  I can
> now categorically say this guy deserved his app removed.  No one can
> say that they didn't know this was wrong.
>
> On Jun 15, 2:15 pm, Romain Guy  wrote:> After the list 
> of devices you have the following:
>
> > "Torch, Light, Camera, Flash, Color, Dark, Bright, Brightness,
> > Brightest, Lights, Signal, Find Keys, Screen, Effects, brightest
> > flashlight, Emergency, Warning, Police, brightest led flash,
> > DroidLight, Maximum, Backlight, Best, Great, Fun, Cool, Coolest,
> > Widget, led flashlight, led flash, led light, brightest led
> > flashlight, camera light, color flashlight, color flash, tesla, bright
> > light, brightness, flash camera, flash, cam light, screen light, light
> > effects, simple flashlight, search, screen brightness, brightest app,
> > max brightness, maximum brightness, dark, darkness, police light,
> > emergency light"
>
> > This looks to me like you overdid it a little bit ;-)
>
> > On Tue, Jun 14, 2011 at 11:02 PM, n.a  wrote:
>
> > > On Jun 15, 8:40 am, Zsolt Vasvari  wrote:
> > >> > What Google has to do is to create a separate Tags input field in the
> > >> > market admin panel, give it some limit and then let the developers
> > >> > compete. This is the fair way.
>
> > >> In your case, 2/3 of your app description was keywords
>
> > > I'm sorry, but this is not true. You can still see it here:
> > >http://www.androidpit.com/en/android/market/apps/app/com.devuni.flash...
>
> > > Also, most of the "keywords" are just device models, which the
> > > flashlight works on.
>
> > > -- so you were
> > >> by far one of the worst violators.  Perhaps one of your competitors
> > >> reported you for stealing from them and Google acted on it.  I have no
> > >> idea.
> > >> Is there anything stopping you from creating a new account, paying the
> > >> $25 again and republishing your app?  It's not ideal, but since you
> > >> have a free app, it's not like you have to migrate the users.  If your
> > >> app is good, and I believe it was, your rank would rise fairly quickly.
>
> > > This is a workaround. I hope that Google will change their internal
> > > policy and start warning the developers before deleting applications
> > > and accounts.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them- Hide quoted text 
> > -
>
> > - Show quoted text -

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


[android-developers] Re: super.onCreate(savedInstanceState)

2011-06-17 Thread Indicator Veritatis
Now the next thing they/we need to know to keep from breaking things
in future implementations is: do these calls always come first in the
overrides, or can they come at any point, as long as they get called?

On Jun 15, 12:42 am, Dianne Hackborn  wrote:
> Are you just asking why you are required to call super.onCreate()?  If so,
> you are required to call the super class of that and onStop() and onResume()
> and others just to prevent apps from forgetting to call the base class
> implementation and causing them to break when the platform changes in the
> future and does stuff in those implementations.
>
> On Tue, Jun 14, 2011 at 6:39 AM, Android  wrote:
> > The Reason we use onCreate(savedInstanceState) because, upon
> > super.onCreate() it will reach the Activity (parent class of any
> > activity) class to load the savedInstanceState. (beacause the demo
> > activity class we have created is not capable of loading the saved
> > state) Yeah, we normaly don't set any saved instance state, but
> > android framework made such a way that, we should be calling that.
>
> > Please correct me if i am wrong.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: problem in installation of android sdk

2011-06-17 Thread Indicator Veritatis
Check the environment variables. If PATH does not contain the path to
the newly installed JDK, then either the installer is broken, or you
are supposed to edit it by hand.

It has been too long since I have used the JDK installer on Windows,
so I can't remember which is the case.

On Jun 14, 11:12 am, Charles  wrote:
> Has anyone looked at this yet?  I'm trying to use installer_r11-
> windows.exe and jdk-6u26-windows-i586.exe, and after I install
> (repeatedly) the Java SDK, the installer still says that the java SDK
> was not found.
>
> As an alternative to fixing this in the Windows installer, can someone
> tell me what the installer is looking for?
>
> On May 31, 4:27 am, Lane  wrote:> I am having the same 
> problem.  See the attached file for a view of what I
> > have downloaded, installed, and the error message.
>
> > Thanks,
>
> > Lane
>
> >  Android SDK Error.JPG
> > 94KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Emulator shows the lock screen rather than my app's screen for the first time. "MENU" key has to be clicked.

2011-06-17 Thread Indicator Veritatis
The problem is that by the time the emulator has finished al lthe
initialization, the phone has timed out and locked the screen. So no,
there is no solution. We all just live with it.

Now I suppose if you had a fast enough host computer for running the
emulation, and a smaller SD card (one of the really time-consuming
steps is initializing that card), you MIGHT be able to get the time
down. But for other reasons, using a small SD card is unrealistic. So
again, most of us just live with it. It really is not that hard to do.

On Jun 14, 3:02 pm, jonathanz  wrote:
> Hi,
>
> I'm relatively new to Android development. The issue above has been
> observed by several of my colleagues. I have not found a satisfactory
> solution through search engines. To reproduce it:
>
> Start Eclipse. Create/open any simple "HelloWorld" Android project
> that has a simple UI. Run the app. This will bring up the emulator.
> After a few minutes, the lock screen appears on the emulator, rather
> than the expected "HelloWorld" default Activity screen. And I have to
> click "MENU" key to have my app's screen show up. To me this is an
> extra step, or a little bit frustrating, or confusing.
>
> Note that this does not happen in subsequent runs of my app, which is
> good.
>
> This is my development environment: Ubuntu 2.6.32 32-bit; Eclipse SDK
> 3.5.2; Android 2.3.3.
>
> Is this (showing the lock screen rather than my app's screen for the
> first time) by design?
>
> How can I skip this extra step?
>
> Thanks in advance,
>
> - Jonathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Encryting password using server

2011-06-17 Thread Indicator Veritatis
My suggestion is: use SSL.

On Jun 15, 2:30 am, Look  wrote:
> Hi, I need to encrypt password using my local server. please sent me your
> suggestions at the earliest.
>
> Thanks in advance
>
> Cibin

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


Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Kostya Vasilyev
http://developer.android.com/guide/topics/data/data-storage.html#db

I would guess you've already read this.

And - sorry if I repeat myself - change your code to use
getColumnIndexOrThrow, and see where it gets you.

-- Kostya

2011/6/17 Jorge Luis 

> Which one is the proper and most optimized way to start a db connection?
>
> I guess tha if i know this my problem will be solved. :D
>
>
> 2011/6/17 Kostya Vasilyev 
>
>> Did you already change and rerun your code, with the change I suggested?
>>
>> 2011/6/17 Jorge Luis 
>>
>>> "For the column index, don't use a hardcoded value - call
>>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws,
>>> then the column is not in that query's result and you've got a problem with
>>> how you've initialized the database."
>>>
>>> which is probably my problem...
>>> i there something wrong with my database initialization?
>>>
>>> 2011/6/17 Kostya Vasilyev 
>>>
 Well, either the row or the column number is wrong then.

 The row is probably not wrong, although that loop looks a little more
 complicated than I like :)

 For the column index, don't use a hardcoded value - call
 r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, 
 then
 the column is not in that query's result and you've got a problem with how
 you've initialized the database.

 -- Kostya



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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
Which one is the proper and most optimized way to start a db connection?

I guess tha if i know this my problem will be solved. :D


2011/6/17 Kostya Vasilyev 

> Did you already change and rerun your code, with the change I suggested?
>
> 2011/6/17 Jorge Luis 
>
>> "For the column index, don't use a hardcoded value - call
>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws,
>> then the column is not in that query's result and you've got a problem with
>> how you've initialized the database."
>>
>> which is probably my problem...
>> i there something wrong with my database initialization?
>>
>> 2011/6/17 Kostya Vasilyev 
>>
>>> Well, either the row or the column number is wrong then.
>>>
>>> The row is probably not wrong, although that loop looks a little more
>>> complicated than I like :)
>>>
>>> For the column index, don't use a hardcoded value - call
>>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, then
>>> the column is not in that query's result and you've got a problem with how
>>> you've initialized the database.
>>>
>>> -- Kostya
>>>
>>> 2011/6/17 Jorge Luis 
>>>
 In the debug mode i get this msg:

 06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1
 from CursorWindow. Make sure your Cursor is initialized correctly.

  sorry about many messages



 2011/6/17 Jona 

> you should explain a little more about what you are having problems
> with... If your table has _id than you probably wan to call 
> results.add(r.getString(1));
> not results.add(r.getString(0));
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




 --
  Jorge Luis Ferrari Cé
 Desenvolvedor / Web Designer
 Siga @JLFerrari


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

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




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: NullpointerException using put method on a LinkedHashMap

2011-06-17 Thread Indicator Veritatis
You may be 100% sure, but we cannot be until we see more of the stack
trace, to wit: the line in your code where the object was put.

On Jun 17, 9:57 am, fr4gus  wrote:
> I'm using a LinkedHashMap as cache. I've overridden removeEldestEntry
> in order to force this cache to have a fixed size. Older values will
> be removed. This is how my map is initialized:
>
>         sBackgroundBitmapCache = new LinkedHashMap Bitmap>(backgroundCacheSize) {
>             private static final long serialVersionUID =
> 287204858147490218L;
>
>             @Override
>             protected boolean
> removeEldestEntry(LinkedHashMap.Entry eldest) {
>                 if (size() > backgroundCacheSize) {
>                     Log.d(TAG, "Removing hash " + eldest.getKey() + "
> from background cache");
>                     return true;
>                 } else {
>                     return false;
>                 }
>             }
>         };
>
> So obviously I'm going to use that cache using put method. But I'm
> getting crash reports, when using put method:
>
>         java.lang.NullPointerException
>         at java.util.LinkedHashMap.postRemove(LinkedHashMap.java:291)
>         at java.util.HashMap.remove(HashMap.java:637)
>         at java.util.LinkedHashMap.addNewEntry(LinkedHashMap.java:186)
>         at java.util.HashMap.put(HashMap.java:411)
>
> I haven't been able to find why, using put method, may cause a
> nullpointer exception. I'm 100% sure, key and value are not nulls.
>
> Any help will be appreciated.
>
> -f4

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


Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Kostya Vasilyev
Did you already change and rerun your code, with the change I suggested?

2011/6/17 Jorge Luis 

> "For the column index, don't use a hardcoded value - call
> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws,
> then the column is not in that query's result and you've got a problem with
> how you've initialized the database."
>
> which is probably my problem...
> i there something wrong with my database initialization?
>
> 2011/6/17 Kostya Vasilyev 
>
>> Well, either the row or the column number is wrong then.
>>
>> The row is probably not wrong, although that loop looks a little more
>> complicated than I like :)
>>
>> For the column index, don't use a hardcoded value - call
>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, then
>> the column is not in that query's result and you've got a problem with how
>> you've initialized the database.
>>
>> -- Kostya
>>
>> 2011/6/17 Jorge Luis 
>>
>>> In the debug mode i get this msg:
>>>
>>> 06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1
>>> from CursorWindow. Make sure your Cursor is initialized correctly.
>>>
>>>  sorry about many messages
>>>
>>>
>>>
>>> 2011/6/17 Jona 
>>>
 you should explain a little more about what you are having problems
 with... If your table has _id than you probably wan to call 
 results.add(r.getString(1));
 not results.add(r.getString(0));

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

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
"For the column index, don't use a hardcoded value - call
r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, then
the column is not in that query's result and you've got a problem with how
you've initialized the database."

which is probably my problem...
i there something wrong with my database initialization?

2011/6/17 Kostya Vasilyev 

> Well, either the row or the column number is wrong then.
>
> The row is probably not wrong, although that loop looks a little more
> complicated than I like :)
>
> For the column index, don't use a hardcoded value - call
> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, then
> the column is not in that query's result and you've got a problem with how
> you've initialized the database.
>
> -- Kostya
>
> 2011/6/17 Jorge Luis 
>
>> In the debug mode i get this msg:
>>
>> 06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1
>> from CursorWindow. Make sure your Cursor is initialized correctly.
>>
>>  sorry about many messages
>>
>>
>>
>> 2011/6/17 Jona 
>>
>>> you should explain a little more about what you are having problems
>>> with... If your table has _id than you probably wan to call 
>>> results.add(r.getString(1));
>>> not results.add(r.getString(0));
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>>  Jorge Luis Ferrari Cé
>> Desenvolvedor / Web Designer
>> Siga @JLFerrari
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
Ok, thx for the advice but the error reffers to the Cursos, and when i debug
the app it stops at
db = OpenOrCreateetc
Using SDK 3.0 for XooM

2011/6/17 Kostya Vasilyev 

> The first thing to check is the logcat.
>
> In 99% of the cases, runtime errors there are spelled out with incredible
> clarity.
>
> -- Kostya
>
> 2011/6/17 Jorge Luis 
>
>> Did changed the getString from (0) to (1), but it still crashes... :/
>>
>>
>> 2011/6/17 Jona 
>>
>>> you should explain a little more about what you are having problems
>>> with... If your table has _id than you probably wan to call 
>>> results.add(r.getString(1));
>>> not results.add(r.getString(0));
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>>  Jorge Luis Ferrari Cé
>> Desenvolvedor / Web Designer
>> Siga @JLFerrari
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Kostya Vasilyev
Well, either the row or the column number is wrong then.

The row is probably not wrong, although that loop looks a little more
complicated than I like :)

For the column index, don't use a hardcoded value - call
r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, then
the column is not in that query's result and you've got a problem with how
you've initialized the database.

-- Kostya

2011/6/17 Jorge Luis 

> In the debug mode i get this msg:
>
> 06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1
> from CursorWindow. Make sure your Cursor is initialized correctly.
>
> sorry about many messages
>
>
>
> 2011/6/17 Jona 
>
>> you should explain a little more about what you are having problems
>> with... If your table has _id than you probably wan to call 
>> results.add(r.getString(1));
>> not results.add(r.getString(0));
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Jorge Luis Ferrari Cé
> Desenvolvedor / Web Designer
> Siga @JLFerrari
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Kostya Vasilyev
The first thing to check is the logcat.

In 99% of the cases, runtime errors there are spelled out with incredible
clarity.

-- Kostya

2011/6/17 Jorge Luis 

> Did changed the getString from (0) to (1), but it still crashes... :/
>
>
> 2011/6/17 Jona 
>
>> you should explain a little more about what you are having problems
>> with... If your table has _id than you probably wan to call 
>> results.add(r.getString(1));
>> not results.add(r.getString(0));
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Jorge Luis Ferrari Cé
> Desenvolvedor / Web Designer
> Siga @JLFerrari
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
In the debug mode i get this msg:

06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1 from
CursorWindow. Make sure your Cursor is initialized correctly.

sorry about many messages



2011/6/17 Jona 

> you should explain a little more about what you are having problems with...
> If your table has _id than you probably wan to call 
> results.add(r.getString(1));
> not results.add(r.getString(0));
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Kostya Vasilyev
Nope, I still can't. Three phones: Moto Milestone (2.1u1), Galaxy S (2.3.4),
Xperia Arc (2.3.3).

Did the three steps you suggested, and the widget is still blue in portrait
mode (and red only when the launcher is in landscape mode on the Milestone).

One thing that's different is that my images are in drawable-hdpi (without
-port) and drawable-land-hdpi.

I already suggested you try and drop one of the two resource qualifiers a
few messages back.

-- Kostya

2011/6/17 Jona 

> I bet you can reproduce the issue just try the following:
>
> 1. Make sure you place image into drawable-port and drawable-land.
> 2. Make sure to run setImageViewResource(...) while you are inside your
> application in landscape mode.  Don't use the keyboard to make the phone go
> into landscape mode.
> 3. Hit back until you are in the home screen.
>
> The key here I think is that the home screen doesn't change orientation but
> the application does and confuses the widget when it does updates.
>

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
Did changed the getString from (0) to (1), but it still crashes... :/

2011/6/17 Jona 

> you should explain a little more about what you are having problems with...
> If your table has _id than you probably wan to call 
> results.add(r.getString(1));
> not results.add(r.getString(0));
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

Re: [android-developers] Re: Is there something wrong?

2011-06-17 Thread Jorge Luis
Do the query select the _id even if i don't put it on the fields?

I guess it haves.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Is there something wrong?

2011-06-17 Thread Jona
you should explain a little more about what you are having problems with... 
If your table has _id than you probably wan to call 
results.add(r.getString(1)); 
not results.add(r.getString(0));

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 there something wrong?

2011-06-17 Thread Jorge Luis
Is there something wrong with this?

public void atualizaNota (ListView lista) {
> SQLiteDatabase db = null;
> ArrayAdapter results = null;
> Cursor r;
> try {
> db = openOrCreateDatabase("base.db", MODE_PRIVATE, null);
> } catch (SQLException e) {
> AlertDialog.Builder err = new AlertDialog.Builder(principal.this);
> err.setTitle("Erro");
> err.setMessage(e.getMessage());
> err.setNeutralButton("Ok", null);
> err.show();
> return;
> }
> r = db.query("Notas", (new String[] {"Nota"}), null, null, null, null,
> null);
> r.moveToFirst();
> if (r.getCount()==0) {
> results.add("Nenhuma anotação encontrada");
> } else {
> int i = 1;
> while (i < r.getCount()) {
> results.add(r.getString(0));
> r.moveToNext();
> i++;
> }
> }
> lista.setAdapter(results);
> return;
> }


-- 
Thx. Jorge.

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I bet you can reproduce the issue just try the following:

1. Make sure you place image into drawable-port and drawable-land.  
2. Make sure to run setImageViewResource(...) while you are inside your 
application in landscape mode.  Don't use the keyboard to make the phone go 
into landscape mode. 
3. Hit back until you are in the home screen. 

The key here I think is that the home screen doesn't change orientation but 
the application does and confuses the widget when it does updates.

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

[android-developers] Conflicts between gestures and touch events

2011-06-17 Thread miguel
Hi everyone, Im developing an accessibility layout where every widget
inside may have an accessible behaviour.

Now, for example, a. Button, can be focused by trackball or by touch
events. Once its focused, it remaks its bounds as iOS does and waits
for another tap to perform its action. There are three different
containers witch behaves slightly different.

The problem is that for that devices without trackball, i need to
implement a way to navigate across the layout widgets.
iOS does it by gestures so i tried to put a gestures overlay and it
works fine when recognizing the defined gestures I recorded. The
problem is that I think there is no chance to put it all togheter as
everytime a gesture starts over a widget, it takes its focus. Is any
way to avoid this behaviour? I just want to discern between touches
and gestures but the MotionEvent object passed down to the children
views its either used (so the view gains focus) or consumed (then
never gain focus, even if there is no gesture at all)

I have far experience on Android and I really think that is not
possible. Any guru can help a bit? I would provide some code if
needed.

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


[android-developers] Determine Sender of Broadcast

2011-06-17 Thread Alan
Hello,

Is there any way to discover which app package sent a broadcast?  If
the sender includes their package name as an extra in the Intent, can
you verify the sender is who they say they are?

I came across this post (http://www.unwesen.de/2011/04/10/android-
intent-sender-verification/) which describes implementing a custom
handshake protocol using a Service naming convention to verify the
sender if they supply their package name.  I can also imagine doing
something similar using broadcasts by using Intent.setPackage() to
limit the scope of the broadcast.

Does anyone know of an Android API based way to verify the sender
package?

Thanks,
Alan

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


Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Kostya Vasilyev
Please see this:

http://imageshack.us/g/812/devicewidgetland.png/

A simple test on a Motorola Milestone, which changes its home screen
orientation when you slide out the keyboard.

The widget that says "Google" has a green image in portrait and red image in
landscape. The image is under res/drawable-hdpi (green) and
res/drawable-land-hdpi (green).

So, at least for me, this works as it should, and I don't see how it can not
work - the launcher is just another application, its activity has an
orientation, and when it loads resources, they are subject to resource
qualifiers, as usual.

I just call setImageViewResource with one and the same R.drawable.. In
fact, I added the landscape image just now without changing any code.

-- Kostya

2011/6/17 Jona 

> Let me clarify that the double image issue is gone but the issue with the
> wrong image being displayed is still an issue.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] NullpointerException using put method on a LinkedHashMap

2011-06-17 Thread Justin Anderson
*>   java.lang.NullPointerException
>   at java.util.LinkedHashMap.postRemove(LinkedHashMap.java:291)
>   at java.util.HashMap.remove(HashMap.java:637)
>   at java.util.LinkedHashMap.addNewEntry(LinkedHashMap.java:186)
>   at java.util.HashMap.put(HashMap.java:411)
*

Look for a "Caused By" line...  With a null pointer exception that is the
first thing I look for.  It should contain more information about what
exactly is causing the null pointer exception.  The portion that you posted
is just showing where the problem occurred.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jun 17, 2011 at 10:57 AM, fr4gus  wrote:

> I'm using a LinkedHashMap as cache. I've overridden removeEldestEntry
> in order to force this cache to have a fixed size. Older values will
> be removed. This is how my map is initialized:
>
>sBackgroundBitmapCache = new LinkedHashMap Bitmap>(backgroundCacheSize) {
>private static final long serialVersionUID =
> 287204858147490218L;
>
>@Override
>protected boolean
> removeEldestEntry(LinkedHashMap.Entry eldest) {
>if (size() > backgroundCacheSize) {
>Log.d(TAG, "Removing hash " + eldest.getKey() + "
> from background cache");
>return true;
>} else {
>return false;
>}
>}
>};
>
> So obviously I'm going to use that cache using put method. But I'm
> getting crash reports, when using put method:
>
>java.lang.NullPointerException
>at java.util.LinkedHashMap.postRemove(LinkedHashMap.java:291)
>at java.util.HashMap.remove(HashMap.java:637)
>at java.util.LinkedHashMap.addNewEntry(LinkedHashMap.java:186)
>at java.util.HashMap.put(HashMap.java:411)
>
> I haven't been able to find why, using put method, may cause a
> nullpointer exception. I'm 100% sure, key and value are not nulls.
>
>
> Any help will be appreciated.
>
> -f4
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
Let me clarify that the double image issue is gone but the issue with the 
wrong image being displayed is still an issue.

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona
I take back that it's not an issue with the images getting confused... I 
changed the color of the land image and I can clearly see this image on the 
widget when it goes crazy.  About the background and source images I tested 
by using only src images but that didn't help... issue is still there... I'm 
still inclined this is a bug in Android.  I tested on few phones and I can 
reproduce the issue every time.

I guess as you said my only option is going to be place two ImageButtons and 
hide one and toggle visibility on these...

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

[android-developers] Unsetting the Widget Background

2011-06-17 Thread Jake Colman

I have a widget where the background is specified in the layout as a PNG
image.  I have just implemented code, using the RemoteView.setInt()
method, to allow the user to specified a background color value to be
used in lieu of my widget background image.

Two questions:

1) How can I undo this background color value and revert to my
   background image?  This way the user can fiddle with the colors but
   still get back to my original background.

2) How can I keep my background image but allow the user specify a new
   color for the image instead of a new color for the widget in place of
   the image?  This would be preferable to replacing my image entirely
   and just coloring the background.

Thanks.

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Kostya Vasilyev
Yes, setImageViewResource sets the "android:src" image, not the background
image. The docs are quite clear about this.

For the background image, you want to call setBackgroundResource via
RemoteViews.setInt, but I'm not sure since which API level it's possible.
It's definitely in 2.2, and not in 1.6.

You can always use two ImageViews (or more) layered one over another,
instead of changing the background.

-- Kostya


2011/6/17 Jona medicalsou...@gmail.com
>
>
> 
> After a lot of testing this is what I found out.  The widget did not get
> confused about picking up the correct image, the problem was actually the
> image got shifted to the side so it seemed like it was using the wrong image
> but it wasn't.  Since the two images land and port are a bit different in
> dimensions that is causing the ImageButton to go crazzy.  See the attached
> image and also the two sample images I use. I'm not sure why there are now
> two images. It seems like setImageViewResource doesn't update the background
> image but the source image.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread Jona







After a lot of testing this is what I found out.  The widget did not get 
confused about picking up the correct image, the problem was actually the 
image got shifted to the side so it seemed like it was using the wrong image 
but it wasn't.  Since the two images land and port are a bit different in 
dimensions that is causing the ImageButton to go crazzy.  See the attached 
image and also the two sample images I use. I'm not sure why there are now 
two images. It seems like setImageViewResource doesn't update the background 
image but the source image.

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

Re: [android-developers] Re: AudioTrack help - pause after mute

2011-06-17 Thread Stefan Alder
Doug,
I'm using MODE_STATIC as the latency is too high with MODE_STREAM.

On Fri, Jun 17, 2011 at 10:38 AM, Doug  wrote:
> Are you using stream or static mode?  With stream, you need to feed
> the AudioTrack a stream of zeroes to get it to silence without
> clicking.  I don't think that you can pause in stream mode, but I
> might be wrong.
>
> Doug
>
> On Jun 15, 5:27 pm, Stefan Alder  wrote:
>> I need to pause the AudioTrack after its volume is set to zero.  If I
>> pause immediately after muting, there's a glitch, so I've added a
>> sleep -- but this creates other problems and doesn't seem reliable. I
>> still get glitches.  Is there a reliable way to do this?  For example,
>> some sort of callback after the volume reaches 0?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Google Maps Directions in a WebView

2011-06-17 Thread paladin
I got a WebView to correctly get a person's current location from a
website, but when I go to get directions from the user's current
location to another specific place, the "B" field is correctly filled
in, but in the full browser, the "A" field has "My Location", whereas
in the WebView, it remains blank. I checked, and the WebView does not
appear to be throwing any type of error. Does anyone know how the "A"
field can be correctly filled in? Is there some other setting on the
WebView I forgot to turn on?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: AudioTrack help - pause after mute

2011-06-17 Thread Doug
Are you using stream or static mode?  With stream, you need to feed
the AudioTrack a stream of zeroes to get it to silence without
clicking.  I don't think that you can pause in stream mode, but I
might be wrong.

Doug

On Jun 15, 5:27 pm, Stefan Alder  wrote:
> I need to pause the AudioTrack after its volume is set to zero.  If I
> pause immediately after muting, there's a glitch, so I've added a
> sleep -- but this creates other problems and doesn't seem reliable. I
> still get glitches.  Is there a reliable way to do this?  For example,
> some sort of callback after the volume reaches 0?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Passing Data From Javascript To Android WebView

2011-06-17 Thread Doug
What did you intend for this line to do?

_webview.addJavascriptInterface(this, "Question");

Doug

On Jun 15, 4:38 am, Vivek Tamrakar 
wrote:
> I have a value inside javascript variable and would like to value of that
> variable in Sting variable in Android code. I have one webview inside that I
> created one combo box using HTML Code. That combo box has Five elements say
> "white',ivory,..etc and now upon selecting those I need to get the selected
> value from the combo box and pass to java function.
>
> public class UserInterface extends Activity
> {
>     WebView _webview;
>     LinearLayout _linearLayout;
>     private Handler mHandler = new Handler();
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         // TODO Auto-generated method stub
>         super.onCreate(savedInstanceState);
>         Main();
>
>     }
>     public void Main()
>     {
>         _linearLayout = new LinearLayout(this);
>         _webview = new WebView(this);
>         _linearLayout.addView(_webview,
> LinearLayout.LayoutParams.MATCH_PARENT,
> LinearLayout.LayoutParams.MATCH_PARENT);
>         setContentView(_linearLayout);
>
>         _webview.getSettings().setJavaScriptEnabled(true);
>         _webview.getSettings().setPluginsEnabled(true);
>         _webview.getSettings().setAllowFileAccess(true);
>
>         _webview.setWebChromeClient(new WebChromeClient());
>         _webview.addJavascriptInterface(this, "Question");
>         _webview.loadData(GetHTML(), "text/html", "utf-8");
>
>     }
>
>     public String GetHTML()
>     {
>         String HTML = ""
>             + ""
>             + ""
>             + "Radio Button onClick Handler"
>             + ""
>             +"function function1(colors) {"
>             +"var col = (colors.options[colors.selectedIndex].value);"
>             +" if (col) {"
>              +"  document.bgColor = col;"
>
>              +"   } "
>             +""
>             + ""
>             + ""
>             +""
>             +" Hello "
>             //+" onChange=\"window.Question.function1(this);\">"
>             +" onChange=\"window.Question.OnJsClick_SelectedItem(' string value');\">"
>                +"White"
>                + "Cyan"
>                + "Ivory"
>                + "Blue"
>
>             +""
>             +""
>             + ""
>             + "";
>
>         return HTML;
>     }
>
>     public void OnJsClick_SelectedItem(final String str)
>     {
>         mHandler.post(new Runnable()
>         {
>             //@Override
>             public void run()
>             {
>                 getValue(str);
>             }
>         });
>     }
>
>     public String getValue(String str)
>     {
>         _webview.loadUrl("javascript:function1(colors)");
>         Toast.makeText(this, "Under getValue " + str,
> Toast.LENGTH_SHORT).show();
>         return str;
>
>     }
>
> }
>
> --
> -
> Thanks &  Regards,
> Vivek Tamrakar

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


  1   2   >