[android-developers] App list of Android Booth at MWC2011

2011-02-21 Thread AKIRA
Hi,

I came back from Spain.

I made App list of Android Booth at MWC2011.
https://sites.google.com/a/gclue.jp/mobile2020/event/mwc2011-apps

And, share all pictures of Android booth.
https://picasaweb.google.com/gclue.akira/AndroidMwc2011#

Many people collected pin back of Android at MWC2011 :>

Akira

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

2011-02-21 Thread Kostya Vasilyev
Use "scale to real size" in the launch dialog, play with the scaling factor
(0.5 is a good start for an emulated tablet).
22.02.2011 10:30 пользователь "Sivaprakash" 
написал:
> Hi
>
> I have created an AVD emulator but I want to change the Width and Height
> because it is going to out my Laptop screen size. Any thoughts?
>
> http://developer.android.com/guide/developing/tools/avd.html#hardwareopts
>
> Here I see there are commands -s - but I don't know
how/where
> to find Android command ?
>
> --
> - 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

[android-developers] How to change the Width and Height of the AVD

2011-02-21 Thread Sivaprakash
Hi

I have created an AVD emulator but I want to change the Width and Height
because it is going to out my Laptop screen size. Any thoughts?

http://developer.android.com/guide/developing/tools/avd.html#hardwareopts

Here I see there are commands -s - but I don't know how/where
to find Android command ?

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

[android-developers] any idea to get control for setting the default launcher app through programming

2011-02-21 Thread Dev Android
Guys,

Do you have any idea to get control for setting the default launcher app
through programming?


Please suggest your views on this problem.

-- 
thanks
Dev

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

2011-02-21 Thread loril...@gmail.com
Hi,

I need to apply mesh warping on an image in android. Method
drawBitmapMesh can be used to define a mesh and apply the bulge warp
effect on an image.

This is the algorithm that can be used:
Remap pixels according to:

For each x, y

x' -> rn*Cos[a] + .5
y' -> rn*Sin[a] + .5

where
a = ArcTan[x - .5, y - .5]
rn = r^2.5/.5
r = Sqrt[(x - .5)^2 + (y - .5)^2]

Here is API Demo example how we can use it.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/BitmapMesh.html

But somehow when I use it, I do not get the desired output.

Can anyone please 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


Re: [android-developers] Re: Any plans to make a DownloadManager library/jar available for pre-Gingerbread support?

2011-02-21 Thread Dianne Hackborn
So the source code is there up in the repository, anyone can take it and
turn it into whatever kind of stand alone library they want.

On Mon, Feb 21, 2011 at 7:11 PM, Mark Carter  wrote:

> On 22 February 2011 02:39, Dianne Hackborn  wrote:
>
>> If you don't need the networking code, I don't think there is much
>> benefit.  The rest of the download manager is involved with lots of
>> complexity for handling multiple clients and protecting them from each other
>> (lots of that wrapped up in the content provider), the UI for looking at the
>> downloads (which can't be provided as a .jar), etc.
>
>
> True, although it could all be provided as an Android Library Project.
>
> As long as the complexity is all abstracted away and the library is
> reasonably stable, I think many devs could make use of such a Project.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Re: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Dianne Hackborn
API demos has a sample of creating a bunch of different alert dialogs as
managed dialogs:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/AlertDialogSamples.html

On Mon, Feb 21, 2011 at 7:38 PM, Aaron Buckner  wrote:

> I follow the concept but I always have problems converting 
> dev.android.comdocumentation to real world use... can you show me some code 
> to create an
> activity managed dialog or point me to an online example. I'm looking around
> and not finding very many examples (none that seem to work)... Thanks to
> everyone that has looked at this and helped so far.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

Re: [android-developers] Re: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Aaron Buckner
I follow the concept but I always have problems converting dev.android.com 
documentation to real world use... can you show me some code to create an 
activity managed dialog or point me to an online example. I'm looking around 
and not finding very many examples (none that seem to work)... Thanks to 
everyone that has looked at this and helped so far.

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

Re: [android-developers] imports not working with Android libraries

2011-02-21 Thread TreKing
On Mon, Feb 21, 2011 at 6:04 PM, Bret Foreman wrote:

> So after rebuilding all my library projects and main project from
> the ground up, it's still clear that classes in Android libraries are
> not being properly imported.
>

Did you try my suggestions in your other thread?

-
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

Re: [android-developers] Re: Any plans to make a DownloadManager library/jar available for pre-Gingerbread support?

2011-02-21 Thread Mark Carter
On 22 February 2011 02:39, Dianne Hackborn  wrote:

> If you don't need the networking code, I don't think there is much benefit.
>  The rest of the download manager is involved with lots of complexity for
> handling multiple clients and protecting them from each other (lots of that
> wrapped up in the content provider), the UI for looking at the downloads
> (which can't be provided as a .jar), etc.


True, although it could all be provided as an Android Library Project.

As long as the complexity is all abstracted away and the library is
reasonably stable, I think many devs could make use of such a Project.

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

2011-02-21 Thread Dianne Hackborn
Sorry, this is not supported.  You would need to write your own options menu
from scratch.

On Mon, Feb 21, 2011 at 5:47 PM, Paul  wrote:

> I have a full screen Activity in my app that due ot the nature of the
> way the user interacts with it, is locked to the portrait
> orientation.  This of course means that the Options Menu, when
> activated, is always in the same location, regardless of orientation.
>
> A perfect solution would be the Activity's views, etc remain locked,
> but the options menu rotates as needed, but not sure this is
> possible.  One possible solution involves listening to the orientation
> sensor and then programatically moving the options menu to the
> 'bottom', but I don't think that is possible... can anyone confirm?
>
> Any other suggestions?
>
> Thanks forany info,
>
> Paul
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] What name would get more attention

2011-02-21 Thread brian purgert
My game is called space bike and i put it out for a day and good good
reviews but i took it down because of low active installs, i had a friend
play it and realized it was to hard for the average user, so i fixed it up
and added alot of things to make is easyer.

In my game you control gravity and make your way through physics mazes, it
doesent actually look like space. More of like a tron grid. You have a bike
like mx moto but its alot more interactive.

So basically my question is should i name my bike game;space bike which it
is currently or physics bike, or something else, i want people to see the
name and try is out of course

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

[android-developers] Set Options Menu Position Programmatically?

2011-02-21 Thread Paul
I have a full screen Activity in my app that due ot the nature of the
way the user interacts with it, is locked to the portrait
orientation.  This of course means that the Options Menu, when
activated, is always in the same location, regardless of orientation.

A perfect solution would be the Activity's views, etc remain locked,
but the options menu rotates as needed, but not sure this is
possible.  One possible solution involves listening to the orientation
sensor and then programatically moving the options menu to the
'bottom', but I don't think that is possible... can anyone confirm?

Any other suggestions?

Thanks forany info,

Paul

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to hold onto a DialogFragment pointer in its parent activity?

2011-02-21 Thread Satya Komatineni
Dianne,
Thanks.

I do wonder though, would it have been possible, architecturally, to
separate "showing" a fragment from "adding" a fragment to the fragment
manager.

For example when I "show" a dialog fragment it does both "adding" and
"showing" of that fragment. Sameway when I dismiss a dialog, it stops
"showing" the fragment and also "removes" it. So I have no mechanism
to retain that fragment once it is dismissed.

So "state" is intimately tied to "visibility".

But again I am just getting to know them and probably there are
stronger reasons to tie them strongly to the UI

Thanks again for your tireless support on this forum and elsewhere.

Satya

On Mon, Feb 21, 2011 at 2:30 PM, Dianne Hackborn  wrote:
> You can only maintain a fragment pointer if it is actually added to the
> fragment manager.
>
> On Mon, Feb 21, 2011 at 7:24 AM, Satya Komatineni
>  wrote:
>>
>> The reason I am not able to do this is because
>>
>> 1. To hold on to this fragment pointer I need to save/restore the
>> pointer through the save bundle
>> 2. I am using putFragment() method to do this (via the activity
>> onsaveinstancestate)
>> 3. putFragment() seem to require that the fragment is added to the
>> fragment manager
>> 4. however when a fragment dialog is "dismiss"ed it is removed from
>> the fragment manager. So I cannot do a put fragment. Not only that the
>> fragment manager will not even recreate the fragment because it is
>> removed by "dismiss". I want to keep it there even if it is dismissed
>> so that the fragment manager can keep its state.
>>
>> I suppose I can always maintain the state of the dialog outside of it,
>> but I am trying to see if there is a way to do this without resoring
>> to separatng the state data.
>>
>>
>> In more detail
>> *
>> If the above post is a bit dense here is psuedo code I am trying to do
>>
>>
>> MyActivity
>> {
>>    private MyDialogSegment   ds = null;
>>
>>    private void initMyDialogSegment(Bundle savebundle)
>>    {
>>         if  (fragmentmanager.getfragment("mytag")) has it
>>              ds = restoredfragment;
>>         else
>>               ds = MyDialogSegment.newInstance();
>>               fragmentmanager.add(null, ds, "mytag");
>>    }
>>
>>   public showDiloag()
>>   {
>>         .
>>         ds.show(ft, "mytag");
>>   }
>>   public onDismissCallback()
>>   {
>>        ds.getSomeState();
>>   }
>>
>>   onSaveInstanceState(bundle b)
>>   {
>>       fragmentmanager.putfragment(ds,"mytag");
>>   }
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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



-- 
Satya Komatineni
http://www.satyakomatineni.com
http://www.androidbook.com

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


[android-developers] Re: imports not working with Android libraries

2011-02-21 Thread William Ferguson
Bret, are you only componentising classes or do you have resources
too?

If you are only looking to abstract classes then my suggestion is to
use something that handles it well like Maven.
I'm using IntelliJ instead of Eclipse, but you shouldn't have any
problem with Eclipse either (its also worked well for me in the past).

But if your library includes resources it might be more difficult.
Through there is probably a Maven plugin/goal that will handle it.

William


On Feb 22, 10:58 am, Bret Foreman  wrote:
> Well, I wanted to take one more try at getting things to work with
> Eclipse. But building it up from scratch very carefully has convinced
> me that Eclipse can't handle Android library projects. This is
> probably why I've never seen a working example of one. Moving even one
> class into an Android library project and building in Eclipse causes a
> runtime failure as described above.
>
> I'm working on the Ant setup but it's not exactly user friendly. No
> Windows installer, for example.

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


[android-developers] lockNow() doesnot work as expected on LG ally and Droid X which are verizon devices

2011-02-21 Thread JAVANAND
Hi friends,
I am using the DevicePolicyManager api code as in the Device admin
sample code,
for my application,
when I do force lock using lockNow() method, the device locks, but its
not password protected it unlocks on sliding.

I have set the password for the device lock, even then it is not
prompting for password when we unlock it..

Please help me know the right method to accomplish it.

Thanks

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


[android-developers] Re: imports not working with Android libraries

2011-02-21 Thread Bret Foreman
Well, I wanted to take one more try at getting things to work with
Eclipse. But building it up from scratch very carefully has convinced
me that Eclipse can't handle Android library projects. This is
probably why I've never seen a working example of one. Moving even one
class into an Android library project and building in Eclipse causes a
runtime failure as described above.

I'm working on the Ant setup but it's not exactly user friendly. No
Windows installer, for example.

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


[android-developers] Need Android Developer in Hollywood, CA

2011-02-21 Thread Chiru
Hi 

 

My client is looking for Android Developer in Hollywood, CA. if you are
available please send me your resumes to chiru @ ittalentsearch.com

 

Title : Android Software Engineer 

Location   : Hollywood, CA

Duration   : 6-12 months

 

Requirements / Qualifications:

*   At least 1 year experience developing apps for Android devices 
*   At least 3 years experience as software application development lead
successfully delivering projects with at least 3 developers, including
application architecture, code review, project scoping, bug triage, and
debugging - including at least 1 ecommerce app or site 
*   Success shipping at least 2 applications to the Android Market as
lead developer (please provide links to the apps) 
*   Experience integrating Android apps with APIs and other enterprise
webservices 

*   Strong process background, e.g. XP 
*   Familiarity with other mobile application development technologies
is a plus (iOS, Symbian, J2ME). 
*   Understanding of certificates, encryption, and other security based
concepts is a plus

 

 

 

Regards,

Chiru

 

Chiranjeevi Musham

310 591 8767

  ch...@ittalentsearch.com 

IT Talent Search

  www.ittalentsearch.com 

 

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

Re: [android-developers] imports not working with Android libraries

2011-02-21 Thread Mark Murphy
Have you played with any existing library projects that are known to
work? Most of the CWAC projects on my GitHub page are Android library
projects, with a demo/ sub-project that references the library
project:

https://github.com/commonsguy

None are Eclipse projects, though. You mentioned trying the libraries
outside of Eclipse earlier (I think), so I'm not sure where you are
now.

On Mon, Feb 21, 2011 at 7:04 PM, Bret Foreman  wrote:
> So after rebuilding all my library projects and main project from the
> ground up, it's still clear that classes in Android libraries are not
> being properly imported. There are no build errors, but at runtime I
> see errors like this:
>
> 02-21 15:53:43.042: ERROR/dalvikvm(26040): Could not find class
> 'com.myLibrary.MyClass', referenced from method
> com.quickdroid.MainActivity.onActivityResult
>
> Moving these classes back into the main project fixes these errors,
> but that pretty much defeats the purpose of having them in libraries
> (so I can share code across projects).
>
> Anyone have any ideas?

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


[android-developers] imports not working with Android libraries

2011-02-21 Thread Bret Foreman
So after rebuilding all my library projects and main project from the
ground up, it's still clear that classes in Android libraries are not
being properly imported. There are no build errors, but at runtime I
see errors like this:

02-21 15:53:43.042: ERROR/dalvikvm(26040): Could not find class
'com.myLibrary.MyClass', referenced from method
com.quickdroid.MainActivity.onActivityResult

Moving these classes back into the main project fixes these errors,
but that pretty much defeats the purpose of having them in libraries
(so I can share code across projects).

Anyone have any ideas?

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


[android-developers] Re: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
Aha! Eclipse automagically stuck in an import com.old_package_name.R
into all the project files.

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

2011-02-21 Thread Bret Foreman
I think I found the source of the trouble, but I'm not sure how to fix
it. During the course of building the project from scratch, I changed
its name. Somehow, there is an auto-generated java file in the gen
folder by the old name.

So the next question is, where are the settings that tell Eclipse to
create the auto-generated folders?

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

2011-02-21 Thread TreKing
On Mon, Feb 21, 2011 at 4:51 PM, Bret Foreman wrote:

> I recently moved some code into libraries and I'm now getting the following
> runtime error. I rebuilt everything from the ground up but the error
> persists. Any ideas about what might be wrong?
>

Hey Bret, was going to respond to the other thread - I just ran into this
myself. I added a new class to my library project, used it in the main
project, everything built, but then got a class not found exception.

When I looked at the main project, the copied source files ("Library_src")
did NOT contain the new class file for some reason. I hit F5 on the project
to refresh and that did nothing. I had to right-click the project and select
refresh, which is usually not necessary, and then the file showed up. Seems
like Eclipse had gotten into some weird sync state.

I closed Eclpse and re-opened, cleaned and rebuilt everything, then
refreshed every project and verified the new class showed up in the main
project. It worked after that. Hope that helps.

-
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: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
Identical results with 2.3.

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

2011-02-21 Thread Bret Foreman
I should mention that this is using 2.2. I'm going to switch to 2.3
and see what that does.

On Feb 21, 2:51 pm, Bret Foreman  wrote:
> I recently moved some code into libraries and I'm now getting the
> following runtime error. I rebuilt everything from the ground up but
> the error persists. Any ideas about what might be wrong? I haven't
> changed the code from when it worked in the monolithic form, just
> moved some classes into libraries and added some import lines.
>
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590): FATAL EXCEPTION: main
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):
> java.lang.RuntimeException: Unable to instantiate activity
> ComponentInfo{com.quickdroid2/com.quickdroid2.MainActivity}:
> java.lang.ClassNotFoundException: com.quickdroid2.MainActivity in
> loader dalvik.system.PathClassLoader[/data/app/com.quickdroid2-1.apk]
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2585)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2679)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread.access$2300(ActivityThread.java:125)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.os.Looper.loop(Looper.java:123)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:858)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> dalvik.system.NativeStart.main(Native Method)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590): Caused by:
> java.lang.ClassNotFoundException: com.quickdroid2.MainActivity in
> loader dalvik.system.PathClassLoader[/data/app/com.quickdroid2-1.apk]
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:573)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:532)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.Instrumentation.newActivity(Instrumentation.java:1021)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2577)
> 02-21 14:42:29.567: ERROR/AndroidRuntime(25590):     ... 11 more

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

2011-02-21 Thread Samsung Galaxy
Found Solution: pasting it for future reference

double lat = loc.getLatitude();
double lon = loc.getLongitude();

TextView Longitude = (TextView) findViewById(R.id.lang);
TextView Latitude= (TextView) findViewById(R.id.lat);

Longitude.setText(String.valueOf(lon));
Latitude.setText(String.valueOf(lat));

but here comes another problem. I am giving Longitude and Latitude
from Emulator Controller.

Longitude = 6.081478
Latitude=  50.775466

but in emulator it shows me this

Longitude = 6.0814766
Latitude= 50.7754654

may i know why 








On Feb 21, 11:09 pm, Atif Musaddaq  wrote:
> Hi, All
>
> I get value of  Longitude and Latitude whenever user Location changes.
>
> double lat = loc.getLatitude();
> double lon = loc.getLongitude();
>
> I would like to display it in Text view
>
> final TextView Longitude = (TextView) findViewById(R.id.lang);
> final TextView Latitude= (TextView) findViewById(R.id.lat);
>
> Now i donot know how i can either convert *double lat *toString or convert
> Longitude and Latitude so they can store value of lat and lon.
>
> also please let me know if i am doing it in a right way ? I would like user
> to save its desired location when ever he/she want.
>
> --
> Atif

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


[android-developers] ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
I recently moved some code into libraries and I'm now getting the
following runtime error. I rebuilt everything from the ground up but
the error persists. Any ideas about what might be wrong? I haven't
changed the code from when it worked in the monolithic form, just
moved some classes into libraries and added some import lines.

02-21 14:42:29.567: ERROR/AndroidRuntime(25590): FATAL EXCEPTION: main
02-21 14:42:29.567: ERROR/AndroidRuntime(25590):
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.quickdroid2/com.quickdroid2.MainActivity}:
java.lang.ClassNotFoundException: com.quickdroid2.MainActivity in
loader dalvik.system.PathClassLoader[/data/app/com.quickdroid2-1.apk]
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2585)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.os.Looper.loop(Looper.java:123)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
java.lang.reflect.Method.invoke(Method.java:521)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
dalvik.system.NativeStart.main(Native Method)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): Caused by:
java.lang.ClassNotFoundException: com.quickdroid2.MainActivity in
loader dalvik.system.PathClassLoader[/data/app/com.quickdroid2-1.apk]
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2577)
02-21 14:42:29.567: ERROR/AndroidRuntime(25590): ... 11 more

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


[android-developers] Long and Lat value in Textfield

2011-02-21 Thread Atif Musaddaq
Hi, All

I get value of  Longitude and Latitude whenever user Location changes.

double lat = loc.getLatitude();
double lon = loc.getLongitude();

I would like to display it in Text view

final TextView Longitude = (TextView) findViewById(R.id.lang);
final TextView Latitude= (TextView) findViewById(R.id.lat);

Now i donot know how i can either convert *double lat *toString or convert
Longitude and Latitude so they can store value of lat and lon.

also please let me know if i am doing it in a right way ? I would like user
to save its desired location when ever he/she want.

-- 
Atif

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

[android-developers] Changing of the ContentProvider

2011-02-21 Thread Neo Apostol

Hi there,
I need to receive a notification about changing of the ContentProvider.
With wat class it can be achieved.(ContentResolved or ContentObserver).
I would like to see an example of this, if it is possible.

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

2011-02-21 Thread Dianne Hackborn
It's just something we haven't had time to do.  A production quality
implementation of this is quite a bit of effort, and there have been many
other higher-priority things.

On Mon, Feb 21, 2011 at 1:29 PM, Pent  wrote:

> > There won't be an "unlock now" method added.  This is *not* intended as
> an
> > API to replace the lock screen, which would be a much different facility.
> >  The APIs here are intended to allow limitations to be placed on the kind
> of
> > lock screens / passwords the user can use.
>
> There is a great demand from users (mine at least) to be able to
> automate enabled/disabled for the keyguard lock (by time, location, if
> it the display was only just turned off etc).
>
> The possibilities to do this are becoming less and less (see recent
> removal of keyguard pattern setting).
>
> Is this considered a forever-no-no or is it conceivable it might crop
> up in the future ?
>
> Pent
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] WIFI AP mac address

2011-02-21 Thread Kostya Vasilyev

You probably mean the BSSID, not MAC.

First you call this:

http://developer.android.com/reference/android/net/wifi/WifiManager.html#getConnectionInfo()

and get a WifiInfo object back (or null).

Then you call this to get the BSSID:

http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getBSSID()

-- Kostya

22.02.2011 0:44, Xian Chen пишет:

Hi,

How can I obtain the MAC address of current associated WIFI AP?

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 



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

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


[android-developers] Re: HELP: App wont open on selected mobiles (LG Ally, Dell Streak 7, Xperia X10 mini)

2011-02-21 Thread String
On Friday, February 18, 2011 4:16:31 PM UTC, fully wrote:

Well the installs fine as far as im aware, but upon loading the app 
> you see it load then immediately closes no warning or error. 
>

I've also seen messageless errors (which kill the app) resulting from using 
recycled bitmaps in drawables. Don't know if that applies to your app, but 
hey, you're not giving us much to go on here.

String

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

Re: [android-developers] Developing for tablets

2011-02-21 Thread Mark Murphy
On Mon, Feb 21, 2011 at 4:36 PM, Doug Gordon  wrote:
> Mainly, it seems like many applications would be better off being redesigned
> or offered in separate versions for tablets as opposed to simply being
> handled by different layouts within a single app. A device like the Xoom has
> a resolution of 1280x800, but this is on a 10.1-inch screen where there's a
> lot of physical real-estate, making it hard to simply scale existing
> layouts.

That is why Honeycomb introduces the fragments system -- a layer you
can introduce between the view/layout and the activity, to allow you
to organize your UI into modules that can be assembled into different
sorts of activities based on screen size.

The quintessential example of this is a ListFragment and a separate
detail fragment (e.g., list of emails and the body of the selected
email). For large- or xlarge-screen devices, you might put both of
those fragments in one activity. For small- and normal-screen devices,
you would put the ListFragment in one activity and the detail fragment
in a separate activity.

While there is nothing stopping you from creating a separate
tablet-only app, and using  to ensure the
tablet-only app only winds up on large-/xlarge-screen devices, users
can still always select to install your "normal" app on their tablet.
This means, IMHO, that your "normal" app has to not look bad on a
large-/xlarge- device (e.g., tons of wasted whitespace). You might
reserve the separate tablet-only app as a paid upsell with extra
tablet-specific features, or something.

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


[android-developers] WIFI AP mac address

2011-02-21 Thread Xian Chen
Hi,

How can I obtain the MAC address of current associated WIFI AP?

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] Developing for tablets

2011-02-21 Thread Doug Gordon
I've not paid much attention to the Honeycomb SDK issues since I figured 
it's better to wait until something final is available, but I am 
definitely wondering if we will be getting any specific information or 
guidance from the Android folks regarding developing for device with the 
larger tablet form factors that are starting to be announced, if not 
actually available yet (Xoom, G-slate, et al).


Mainly, it seems like many applications would be better off being 
redesigned or offered in separate versions for tablets as opposed to 
simply being handled by different layouts within a single app. A device 
like the Xoom has a resolution of 1280x800, but this is on a 10.1-inch 
screen where there's a lot of physical real-estate, making it hard to 
simply scale existing layouts.


For example, my genealogy app is mainly about displaying textual 
information at increasing levels of detail, which I now do by launching 
activities that display the data as an overlay. I can see that, on a 
tablet, I could probably make better use of the display by showing the 
data in a side-by-side fashion, and so on. There's just a lot more space 
to make use of.


Perhaps this has all been thought of and will be covered when the final 
SDK is released. But I would also like some guidance on how to handle an 
increasingly fragmented array of devices.


Doug Gordon
GHCS Software

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

2011-02-21 Thread Pent
> There won't be an "unlock now" method added.  This is *not* intended as an
> API to replace the lock screen, which would be a much different facility.
>  The APIs here are intended to allow limitations to be placed on the kind of
> lock screens / passwords the user can use.

There is a great demand from users (mine at least) to be able to
automate enabled/disabled for the keyguard lock (by time, location, if
it the display was only just turned off etc).

The possibilities to do this are becoming less and less (see recent
removal of keyguard pattern setting).

Is this considered a forever-no-no or is it conceivable it might crop
up in the future ?

Pent

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

2011-02-21 Thread Kostya Vasilyev

21.02.2011 22:50, André пишет:

But this string might include \n so I want it to ignore that a go for
the value 10 instead. (which is the value for new line if I remember
correctly)


The \n *is* the newline marker. So is \12, \x0A, and "char ch = (char) 
10". By the time you get to string.indexOf, it's all the same.


TextView uses the newline character to represent multiple lines of text 
within a single String (or more precisely, a CharSequence). There isn't 
anything else there between the lines, but the newline character.


So your question really sounds to me like "how do I search for the 
newline markers, in such a way that I don't find any when they're there" 
- which makes no sense to me.


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

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


[android-developers] Re: indexOf(ENTER)

2011-02-21 Thread DanH
If the string really does include the character SEQUENCE "\n" then
simply searching for the CHARACTER '\n' will not find it but will find
a newline character.  This is because '\n' is simply a convenience for
producing the 0x0A (newline) character value -- it's not conceptually
two separate characters.  Note that you could create the character
SEQUENCE "\n" by assigning the literal "\\n" to a String variable, or
by reading the two sequential characters '\' and 'n' from some
external medium.

You do need to be aware that some interfaces will automatically
convert a "\n" sequence to a newline character, and make sure you
don't inadvertently cause such a conversion -- once "\n" has been
converted to newline then there's no way to tell the difference.

On Feb 21, 1:50 pm, André  wrote:
> I know this is more of a java question than a android question, but I
> know most of you are pro's here an both so I'll ask it here!
> Is it possible to search a string that I have taken from an edittext
> for when ever the value for new line comes?
> But this string might include \n so I want it to ignore that a go for
> the value 10 instead. (which is the value for new line if I remember
> correctly)
> Is this possible or should I use something else of string when I look
> for a new line?
>
> Appreciate any answers!
> //André

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

2011-02-21 Thread Rogério de Souza Moraes
I am working on the same board,

can you post the logcat error messages?

Regards,

 Rogerio

2011/2/21 ttk 

> I am using imx515 board.. I am working on linux kernel
>
> On Feb 19, 2:37 am, giangiammy  wrote:
> > hi,
> >
> > I'm starting to work on a Freescale board too (based on MPC5121)
> > which board are you using?
> > Which kernel are you using? I will need to port the kernel to my
> > board, and i must verify if I have to start from the standard android
> > kernel or if there's some porting for mpc5121.
> >
> > If you have any link to a porting for mpc5121 i would appreciate very
> > much
> >
> > thanks
> > Giammy
> >
> > On Feb 17, 4:09 am, ttk  wrote:
> >
> > > I made some changes in the source code of freescale board android OS
> > > and mounted on my device . But when I tried to install new
> > > applications in that OS i was not able to install the applications in
> > > that OS. Some developers kindly help me out which this issue. Is it
> > > problem with any rights from android or should i change something else
> > > in the 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Newest version of Android Emulator is throwing back DNS errors, extremely limited network connection [Win7x64]

2011-02-21 Thread hmmwhatsthisdo
Hmm. Another interesting development - Honeycomb can connect to the
network just fine.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Justin Anderson
Whenever I create dialogs, I use onCreateDialog() and let the Activity
handle creation...
http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int,%20android.os.Bundle%29

To display the dialog use showDialog()...
http://developer.android.com/reference/android/app/Activity.html#showDialog%28int%29

This lets the activity handle creating your dialog (and caches it)... Then
you can show it as many times as you want without a problem.

On Mon, Feb 21, 2011 at 1:11 PM, Aaron Buckner  wrote:

> Ok, well those helped out to a point... they helped me narrow down the line
> of code that is causing the problem...
>
> "alert.setView(input);"
>
> If I comment it out the dialog opens as much as I need it to, of course
> that also prevents the user from being able to enter any input in...
>
> which is called initiated here:
> final EditText input = new EditText(this);
>
> and called here:
> String value = input.getText().toString();
>
> All of which is shown in the original code block for full context, Is there
> something I have to do in order to get the view to remove itself or recycle?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Sunil Lakhiyani
http://stackoverflow.com/questions/3968170/android-prompt-users-input-using-a-dialog



On Mon, Feb 21, 2011 at 12:11 PM, Aaron Buckner  wrote:

> Ok, well those helped out to a point... they helped me narrow down the line
> of code that is causing the problem...
>
> "alert.setView(input);"
>
> If I comment it out the dialog opens as much as I need it to, of course
> that also prevents the user from being able to enter any input in...
>
> which is called initiated here:
> final EditText input = new EditText(this);
>
>

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

Re: [android-developers] Re: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Aaron Buckner
Ok, well those helped out to a point... they helped me narrow down the line 
of code that is causing the problem...

"alert.setView(input);"

If I comment it out the dialog opens as much as I need it to, of course that 
also prevents the user from being able to enter any input in...

which is called initiated here:
final EditText input = new EditText(this);

and called here:
String value = input.getText().toString();

All of which is shown in the original code block for full context, Is there 
something I have to do in order to get the view to remove itself or recycle?

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

[android-developers] Where can I find information about sending/receiving MMS messages, and receiving MMS notifications?

2011-02-21 Thread E.
I'm trying to write an app that interfaces with a PC to allow sending
and receiving MMS using the phone, but I'm having a hard time finding
any documentation.

I can query the content provider to see and delete existing messages.
However, I am not sure how to send new messages, receiving
notifications when they are sent and delivered, or receive
notifications when a new MMS is received.

How do I programmatically send an MMS? Can I do this by inserting a
new message through the content provider? I need to do it in a way
that gives me access to the message (PDU?) ID so I can later access
the message information through the content provider, like I do for
existing messages.

How can I get notifications when this MMS is sent? When it's
delivered? And how can I be notified when a new MMS is received?
Again, I'd like  to know the ID of the new message so I can query the
content provider  for the details in the same way.

This seems like it would be fairly straightforward, but I've been
looking for a while and can't find any information on it. I know the
MMS application somehow manages most or all of those things, but it's
a huge app, and I'd rather not try to "reverse engineer" it if
there's
an alternative.

Even if this feature is not currently officially supported, I'll be
happy to have my app run on specific devices; I don't need a guarantee
that it will always work on any future Android phone.

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


[android-developers] indexOf(ENTER)

2011-02-21 Thread André
I know this is more of a java question than a android question, but I
know most of you are pro's here an both so I'll ask it here!
Is it possible to search a string that I have taken from an edittext
for when ever the value for new line comes?
But this string might include \n so I want it to ignore that a go for
the value 10 instead. (which is the value for new line if I remember
correctly)
Is this possible or should I use something else of string when I look
for a new line?

Appreciate any answers!
//André

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Any plans to make a DownloadManager library/jar available for pre-Gingerbread support?

2011-02-21 Thread Dianne Hackborn
If you don't need the networking code, I don't think there is much benefit.
 The rest of the download manager is involved with lots of complexity for
handling multiple clients and protecting them from each other (lots of that
wrapped up in the content provider), the UI for looking at the downloads
(which can't be provided as a .jar), etc.

On Mon, Feb 21, 2011 at 2:59 AM, Marcus Wolschon <
marcus.wolsc...@googlemail.com> wrote:

>
>
> On 18 Feb., 18:48, Dianne Hackborn  wrote:
> >  I am just
> > thinking to only use the networking pieces from it, and write your own
> > front-end (posting notifications if that is what you want, or doing
> whatever
> > UI you want).
>
> Then what would be the benefit left?
> Before the download manager you wrote your own UI and did the http-get/
> post/whatever-request
> +error-handling already.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Is it possible to hold onto a DialogFragment pointer in its parent activity?

2011-02-21 Thread Dianne Hackborn
You can only maintain a fragment pointer if it is actually added to the
fragment manager.

On Mon, Feb 21, 2011 at 7:24 AM, Satya Komatineni <
satya.komatin...@gmail.com> wrote:

> The reason I am not able to do this is because
>
> 1. To hold on to this fragment pointer I need to save/restore the
> pointer through the save bundle
> 2. I am using putFragment() method to do this (via the activity
> onsaveinstancestate)
> 3. putFragment() seem to require that the fragment is added to the
> fragment manager
> 4. however when a fragment dialog is "dismiss"ed it is removed from
> the fragment manager. So I cannot do a put fragment. Not only that the
> fragment manager will not even recreate the fragment because it is
> removed by "dismiss". I want to keep it there even if it is dismissed
> so that the fragment manager can keep its state.
>
> I suppose I can always maintain the state of the dialog outside of it,
> but I am trying to see if there is a way to do this without resoring
> to separatng the state data.
>
>
> In more detail
> *
> If the above post is a bit dense here is psuedo code I am trying to do
>
>
> MyActivity
> {
>private MyDialogSegment   ds = null;
>
>private void initMyDialogSegment(Bundle savebundle)
>{
> if  (fragmentmanager.getfragment("mytag")) has it
>  ds = restoredfragment;
> else
>   ds = MyDialogSegment.newInstance();
>   fragmentmanager.add(null, ds, "mytag");
>}
>
>   public showDiloag()
>   {
> .
> ds.show(ft, "mytag");
>   }
>   public onDismissCallback()
>   {
>ds.getSomeState();
>   }
>
>   onSaveInstanceState(bundle b)
>   {
>   fragmentmanager.putfragment(ds,"mytag");
>   }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] DevicePolicyManager - unlock method

2011-02-21 Thread Dianne Hackborn
Hm, it doesn't allow applications to add and remove "admin users".  (Not
sure what those even are actually.)

There won't be an "unlock now" method added.  This is *not* intended as an
API to replace the lock screen, which would be a much different facility.
 The APIs here are intended to allow limitations to be placed on the kind of
lock screens / passwords the user can use.

On Mon, Feb 21, 2011 at 5:58 AM, hwit  wrote:

> Hello,
>
> the DevicePolicyManager (API8) allows applications to add and remove
> admin users and to lock the device with the lockNow() method. Is it
> planned to also add a complementary unlockNow() method? We developed a
> modular authentication system, which can be extended by modules
> (graphical authentication, biometric authentication etc), but we need
> a way to lock and unlock the screen in case the user cannot or can be
> identified through one of the modules.
>
> Thanks in advance.
>
> Kind regards,
> Heiko
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Re: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Sunil Lakhiyani
please refer this link

http://www.androidpeople.com/android-alertdialog-example/
 and

http://www.tutorialforandroid.com/2009/01/displaying-alertdialog-in-android.html

this
will help you out.




On Mon, Feb 21, 2011 at 11:18 AM, Aaron Buckner  wrote:

> all in the main method I have, part of the onCreate. Should I put it
> outside the onCreate section?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Aaron Buckner
Its all in the main method I have, part of the onCreate. Should I put it 
outside the onCreate section?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Justin Anderson
What method is this code in?

On Mon, Feb 21, 2011 at 11:58 AM, Aaron Buckner  wrote:

> Can anyone give me any ideas here this is really frustrating I can't think
> of any other way to implement this and I have to assume the user would mess
> up and need to reach this dialog again.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-21 Thread Aaron Buckner
Can anyone give me any ideas here this is really frustrating I can't think 
of any other way to implement this and I have to assume the user would mess 
up and need to reach this dialog again.

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

2011-02-21 Thread Cliff Davies
Using xml script fillAfter or Animation.SetFillAfter() should achieve this
for you
On 21 Feb 2011 12:35, "dashman"  wrote:
> I'm doing an AlphaAnimation from 0 to 0.5
>
> the problem is that at the end of the animation
> it resets to opaque (1.0).
>
> any way to just go from 0 to 0.5 and stop.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] aaptexec doesn't support the "apkbasename" attribute

2011-02-21 Thread Dennis Miller
Hi all,
I am trying to build a 2.3.1 project with ANT and getting this error.
Does anyone know what is causing this? I have synced all packages in
AVD Manager as well.

Thanks,
Dennis

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

2011-02-21 Thread Boozel
Thanks, i did try changing the site and it didnt help and the emulators 
browser didnt work so it wasnt a twitter problem
It just started working by itself a while ago. Have no idea why!
thanks for the 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] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-21 Thread Fox Mulder
@samuh
Are the encrypted streams you are testing public ? If so can you
provide the URL ?
I tested Apple's Streams (gear1/gear2/gear3) on HoneyComb and emulator
they work fine
(I will be able to test HLS on a XOOM Tablet very soon).
By the way do you know how to retrieve the streaming information
(bitrate beeing downloaded, video switch between bitrates...)
The purpose is to evaluate on true hardware and have some indicators
to show if bitrate correctly switches as bandwith raises.
Many 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


Re: [android-developers] Cannot fetch information from internet

2011-02-21 Thread Justin Anderson
I'm not really sure...  Doing a google search I came up with this URL:
http://marakana.com/forums/android/examples/69.html

There is a person on there who is having a similar problem with the
emulator, and this is what someone posted as a reply:

The answer is in the last line of the output you provided (and first line of
what is meaningful to provide).

ERROR/AndroidRuntime(397): winterwell.jtwitter.TwitterException:
java.net.UnknownHostException: Host is unresolved: api.twitter.com:80

So, your emulator cannot find api.twitter.com. It could be the proxy. It
could be some other emulator setting. You can set twitter object to use IP
address for this host instead (look it up in docs for jtwitter).

Hope that helps some...

On Mon, Feb 21, 2011 at 8:52 AM, Boozel  wrote:

> Its on the emulator, not behind a proxy. it works fine on a phone on the
> same network. ive tried deleting the avd and recreating
> Any ideas
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2011-02-21 Thread Mark Murphy
2011/2/21 javaxmlsoapdev :
> yes. both apps are uninstalled but unable to remove database from the
> phone, which originally was created by app1 (and subsequently app2
> used the same db name, which screwed up the things)?

That's not possible, AFAIK. An uninstall should remove all files.

> how to go about deleting/removing db from on the device.

Uninstall. And, if for some bizarre reason that does not work, do a
factory reset, or try rooting your phone.

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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

2011-02-21 Thread Kostya Vasilyev
Each application has its own private data files, including the 
databases. Uninstalling should remove those.


So either somehow the files didn't get removed (which is strange by 
itself), or else something even more strange is going on.


Are the databases, perhaps, not private to the respective applications? 
Are you using a shared user id for both apps? Are the databases on the 
memory card?


-- Kostya

21.02.2011 18:46, javaxmlsoapdev пишет:

yes. both apps are uninstalled but unable to remove database from the
phone, which originally was created by app1 (and subsequently app2
used the same db name, which screwed up the things)?

I also tried context.deleteFile(DATABASE_NAME);
   context.deleteDatabase(DATABASE_NAME);
without any luck.

how to go about deleting/removing db from on the device. permission is
denied even to "cd" to data directory. any idea how to go about this?

Thanks,

On Feb 20, 11:26 am, Kostya Vasilyev  wrote:

Have you tried uninstalling both applications? For example, "adb uninstall
your.package.name"?

--
Kostya Vasilyev --http://kmansoft.wordpress.com
16.02.2011 5:37 пользователь "javaxmlsoapdev"  написал:








I had an existing working application which was creating a database
using SQLite helper/code. In another application, which I am
developing I copied app1's DBHelper code and honestly forgetting to
rename the database name in the DBHelper, which I copied from app1
code. Now I keep getting following error for both app1 (from which I
copied DBHelper code) and app2 as well. Caused by:
java.lang.IllegalStateException: database not open. Seems like
something is badly screwed up. Any idea?
Also when I tried to view database from adb shell I get Permission
Defined error.
02-15 21:31:25.798: WARN/dalvikvm(10965): threadid=1: thread exiting
with uncaught exception (group=0x400259f8)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): FATAL EXCEPTION: main
02-15 21:31:25.808: ERROR/AndroidRuntime(10965):
java.lang.RuntimeException: Unable to start activity ComponentInfo
AddressActivity}: java.lang.IllegalStateException: database not open
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2787)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2803)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread.access$2300(ActivityThread.java:135)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.os.Looper.loop(Looper.java:144)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread.main(ActivityThread.java:4937)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
java.lang.reflect.Method.invokeNative(Native Method)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
java.lang.reflect.Method.invoke(Method.java:521)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
dalvik.system.NativeStart.main(Native Method)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): Caused by:
java.lang.IllegalStateException: database not open
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
611)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at

android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelp 
er.java:








113)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
DataHelper.(DataHelper.java:37)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
AddressActivity.onCreate(AddressActivity.java:15)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1069)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2751)
02-15 21:31:25.808: ERROR/AndroidRuntime(10965): ... 11 more
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



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

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email

Re: [android-developers] Cannot fetch information from internet

2011-02-21 Thread Boozel
Its on the emulator, not behind a proxy. it works fine on a phone on the 
same network. ive tried deleting the avd and recreating
Any ideas

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

[android-developers] Re: IllegalStateException: database not open

2011-02-21 Thread javaxmlsoapdev
yes. both apps are uninstalled but unable to remove database from the
phone, which originally was created by app1 (and subsequently app2
used the same db name, which screwed up the things)?

I also tried context.deleteFile(DATABASE_NAME);
   context.deleteDatabase(DATABASE_NAME);
without any luck.

how to go about deleting/removing db from on the device. permission is
denied even to "cd" to data directory. any idea how to go about this?

Thanks,

On Feb 20, 11:26 am, Kostya Vasilyev  wrote:
> Have you tried uninstalling both applications? For example, "adb uninstall
> your.package.name"?
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
> 16.02.2011 5:37 пользователь "javaxmlsoapdev"  написал:
>
>
>
>
>
>
>
> > I had an existing working application which was creating a database
> > using SQLite helper/code. In another application, which I am
> > developing I copied app1's DBHelper code and honestly forgetting to
> > rename the database name in the DBHelper, which I copied from app1
> > code. Now I keep getting following error for both app1 (from which I
> > copied DBHelper code) and app2 as well. Caused by:
> > java.lang.IllegalStateException: database not open. Seems like
> > something is badly screwed up. Any idea?
>
> > Also when I tried to view database from adb shell I get Permission
> > Defined error.
>
> > 02-15 21:31:25.798: WARN/dalvikvm(10965): threadid=1: thread exiting
> > with uncaught exception (group=0x400259f8)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): FATAL EXCEPTION: main
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965):
> > java.lang.RuntimeException: Unable to start activity ComponentInfo
> > AddressActivity}: java.lang.IllegalStateException: database not open
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2787)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 2803)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread.access$2300(ActivityThread.java:135)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.os.Looper.loop(Looper.java:144)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread.main(ActivityThread.java:4937)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:868)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > dalvik.system.NativeStart.main(Native Method)
>
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): Caused by:
> > java.lang.IllegalStateException: database not open
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
> > 611)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
>
> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelp 
> er.java:
>
>
>
>
>
>
>
> > 113)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > DataHelper.(DataHelper.java:37)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > AddressActivity.onCreate(AddressActivity.java:15)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1069)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2751)
> > 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): ... 11 more
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Using google-api-java client

2011-02-21 Thread Spiral123
well use the signpost example that works with Google Services as a
reference then.

On Feb 21, 6:08 am, cuil yahoo  wrote:
> Thanks, for the reply.
>
> I did have a look at this before, and i say a beginner just to keep my feet
> on the ground. ^^ (This doesn't imply i am a expert either) .
>
> I tried using the the other 
> library,https://code.google.com/p/oauth-signpost/. It works smoothly with 
> this.
> --
> Cuil
>
>
>
>
>
>
>
> On Mon, Feb 21, 2011 at 3:46 AM, Spiral123  wrote:
> > well.
>
> > I don't know how you are getting those vm errors, but I would guess
> > you are doing something very wrong.  Getting Android and OAuth playing
> > nicely is not what I would think of as a good beginner exercise.
>
> > If you really want to go that route I would start off with an example
> > a little closer to what you want to achieve.  Study this Android
> > example that uses OAuth to access Picasa for example:
>
> >http://code.google.com/p/google-api-java-client/source/browse/picasa-...
>
> > On Feb 20, 3:28 pm, cuil yahoo  wrote:
> > > Hi,
>
> > > I am a beginner, and i have got really very irritated, in completing this
> > > issue. Hope you could help. :)
>
> > > I am trying to make an android application using google-api-java client
> > > library.
> > > My application needs to display all the google spreadsheets one has in
> > his
> > > google documents account.
>
> > > I tried using docs-v3-atom-oauth-sample as reference,
> > > here<
> >https://code.google.com/p/google-api-java-client/source/browse/docs-v...>.
>
> > > But when i do that, and run my android application, i get dalvik vm
> > errors,
> > > which i am attaching in a text file.
>
> > > It would be great if someone could please help me out.
>
> > > Thanks
> > > --
> > > Cuil
>
> > >  Error.txt
> > > 35KViewDownload
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Cannot fetch information from internet

2011-02-21 Thread Justin Anderson
Do you have a proxy setup?  Are you testing this on an actual device or on
an emulator?

On Sun, Feb 20, 2011 at 10:50 AM, Boozel  wrote:

> I'm trying to use a separate service to fetch tweets using twitters search
> API
> I have given permission in the android manifest file
> here is my manifest entry for the service, i run it in a separate process:
>  android:process=":fetchTweetProcess">
> here is my code for the service:
> package com.example.android.livecubes.cube1;
>
> import java.io.BufferedReader;
> import java.io.InputStreamReader;
> import java.net.URL;
> import java.net.URLConnection;
>
> import org.json.JSONArray;
> import org.json.JSONObject;
>
> import android.app.Service;
> import android.content.Intent;
> import android.os.Handler;
> import android.os.IBinder;
> import android.util.Log;
>
>
>
> public class FetchTweets extends Service
> {
> final String LOG_TAG="FetchTweets";
> private Handler serviceHandler = null;
>  @Override
> public void onStart( Intent intent, int startId )
> {
> Log.d( LOG_TAG, "onStart" );
> }
>
> @Override
> public IBinder onBind( Intent intent )
> {
> IBinder binder = null;
> return binder;
> }
>
> @Override
> public void onCreate()
> {
> super.onCreate();
> Log.d( LOG_TAG,"onCreate" );
> serviceHandler = new Handler();
> serviceHandler.postDelayed( new RunTask(),10 );
> Log.d( LOG_TAG,"after runtask" );
> }
>
> @Override
> public void onDestroy()
> {
> super.onDestroy();
> Log.d( LOG_TAG,"onDestroy" );
> }
>  class RunTask implements Runnable
> {
> public void run()
> { Log.d( LOG_TAG,"In Run" );
> String output="";
> String str;
> try{
> Log.d( LOG_TAG,"In Try" );
> URL url = new URL("http://search.twitter.com/search.json?q=egypt&rpp=1";);
> Log.d( LOG_TAG,"URL: "+url.toString() );
> // Read all the text returned by the server
> URLConnection conn = url.openConnection();
> Log.d( LOG_TAG,"Conn Open" );
> conn.setConnectTimeout(5000);
> conn.setReadTimeout(7000);
> BufferedReader in = new BufferedReader(new
> InputStreamReader(conn.getInputStream()));
> Log.d( LOG_TAG,"BR" );
> while ((str = in.readLine()) != null)
> {
> output=str;// str is one line of text; readLine() strips the newline
> character(s)
> }
> in.close();
> Log.i(LOG_TAG,"Output: "+output);
> JSONObject jTweet = new JSONObject(output);
> JSONArray tweet = jTweet.getJSONArray("results");
> String tweetText = tweet.getJSONObject(0).getString("text").toString();
> Log.i(LOG_TAG,"Tweet: "+tweetText);
>  }
> catch (Exception e)
> {Log.e(LOG_TAG,"Error: "+e.getMessage());}
> serviceHandler.postDelayed( this, 3 );
> Log.i(LOG_TAG,"Done");
> }
> }
> }
>
> When i run it the log gives
> 02-20 19:37:59.345: ERROR/FetchTweets(287): Error: Host is unresolved:
> search.twitter.com:80
> and my internet is working.
>
> Can any one help me with why this is happening? any ideas would be great.
> 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: Google Map Error

2011-02-21 Thread Spiral123
are you using the standard libraries and manually adding the Google
Map jar?

if so, change the properties of your app to point to the Google APIs
instead.



On Feb 21, 3:31 am, Nesim TUNÇ  wrote:
> Hi Awesome Developers!
>
> I'm trying to use Google Map in my Android App. My SDK version is 2.1 update
> 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still
> getting this error .. Here is my codes:
>
> Manifest file:
>
>  
>  android:required="true"/>   is child node of application tag
> and these permissons are requested:
>  android:name="android.permission.INTERNET">
>  android:name="android.permission.ACCESS_FINE_LOCATION">
> 
> 
> 
> 
>
> layout/mapview.xml
>           android:id="@+id/mapView"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>         android:enabled="true"
>         android:clickable="true"
>         android:apiKey="my key goes here"
>         />
>
> and this my activity class
>
> public class GoogleMapActivity extends MapActivity {
>
> @Override
>  protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>  setContentView(R.layout.mapview);
>
> }
>
> @Override
>  protected boolean isRouteDisplayed() {
> // TODO Auto-generated method stub
>  return false;
>
> }
> }
>
> and here is how I call it from a imagview click
>
> Intent mapIntent = new Intent(v.getContext(),
> x.maps.GoogleMapActivity.class);
> startActivity(mapIntent);
>
> And I get this error:
>
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):
> java.lang.IllegalStateException: Could not execute method of the activity
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.view.View$1.onClick(View.java:2082)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.view.View.performClick(View.java:2461)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.view.View$PerformClick.run(View.java:8890)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.os.Handler.handleCallback(Handler.java:587)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.os.Looper.loop(Looper.java:123)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
> 871)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> dalvik.system.NativeStart.main(Native Method)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> java.lang.reflect.InvocationTargetException
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2 
> 96)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> android.view.View$1.onClick(View.java:2077)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     ... 11 more
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     ... 15 more
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
> java.lang.IllegalAccessError: Class ref in pre-verified class resolved to
> unexpected implementation
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> dalvik.system.DexFile.defineClass(Native Method)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:573)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     at
> java.lang.ClassLoader.loadClass(ClassLoader.java:532)
> 02-21 10:30:04.645: ERROR/AndroidRuntime(6257):     ... 15 more
>
> What is the problem? Thanks in advance ;)
>
> --
> Nesim TUNÇ
> Senior Software Developer of Distributed Applications

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this gro

[android-developers] Is it possible to hold onto a DialogFragment pointer in its parent activity?

2011-02-21 Thread Satya Komatineni
The reason I am not able to do this is because

1. To hold on to this fragment pointer I need to save/restore the
pointer through the save bundle
2. I am using putFragment() method to do this (via the activity
onsaveinstancestate)
3. putFragment() seem to require that the fragment is added to the
fragment manager
4. however when a fragment dialog is "dismiss"ed it is removed from
the fragment manager. So I cannot do a put fragment. Not only that the
fragment manager will not even recreate the fragment because it is
removed by "dismiss". I want to keep it there even if it is dismissed
so that the fragment manager can keep its state.

I suppose I can always maintain the state of the dialog outside of it,
but I am trying to see if there is a way to do this without resoring
to separatng the state data.


In more detail
*
If the above post is a bit dense here is psuedo code I am trying to do


MyActivity
{
private MyDialogSegment   ds = null;

private void initMyDialogSegment(Bundle savebundle)
{
 if  (fragmentmanager.getfragment("mytag")) has it
  ds = restoredfragment;
 else
   ds = MyDialogSegment.newInstance();
   fragmentmanager.add(null, ds, "mytag");
}

   public showDiloag()
   {
 .
 ds.show(ft, "mytag");
   }
   public onDismissCallback()
   {
ds.getSomeState();
   }

   onSaveInstanceState(bundle b)
   {
   fragmentmanager.putfragment(ds,"mytag");
   }

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

2011-02-21 Thread Jake Colman

So what are you suggesting?  I see in the log that the appwidget is
still starting the service and that the service is running.  I only seem
to have a problem is I install a new APK while the widget is still
running.  Once that happens, unless I reboot the service won't update
the widget.  

So is Kostya's suggestion that I document that the widget should be
removed from the homescreen (which cleans everything up and shuts
everything down) prior to doing the update?  Is there something I can do
programatically?  Many users do an Update All when they are notified of
updates prior to reading the changelog!

> "DH" == Dianne Hackborn  writes:

   DH> Hm, there should be no reason to re-create the widget.  All that
   DH> is needed is an update of the widget, so the launcher gets a new
   DH> RemoteViews object with the new app version's resources.

   DH> 2011/2/20 Kostya Vasilyev 

   >> Oh, and regarding application updates. Resource ids can change with a new
   >> application version. The launcher (which hosts your widget) in this case
   >> can
   >> still refer to the old values and this means it's necessary for the user 
to
   >> recreate widgets after an application update.
   >> 
   >> This makes the question of whether widget ids are stable almost irrelevant
   >> - they are, but unless you take special measures to ensure that their
   >> resource references are stable, it does more harm than good.
   >> 
   >> I usually put this info in the changelog (which is shown to the user with
   >> each new version), and haven't had any complaints.
   >> 20.02.2011 19:49 пользователь "Jake Colman"  написал:
   >> 
   >> >> "MM" == Mark Murphy  writes:
   >> >
   >> > MM> On Fri, Feb 18, 2011 at 12:44 PM, Jake Colman 
   >> wrote:
   >> >
   >> > >> My service no longer updates the widget and the widget's data area
   >> > >> remains blank.  This indicates (at least to me but I'm still
   >> > >> learning) that either the widget is not getting its notification
   >> > >> to start the service or the service is ignoring its start method.
   >> >
   >> > MM> I'd add some logging or breakpoints. Depending on how you are
   >> > MM> using AppWidgetManager from your service, it's also possible that
   >> > MM> the service is running but just not updating the app widget
   >> > MM> (e.g., you're using the ID-based app widget update and the ID
   >> > MM> changed).
   >> >
   >> > >> So could it be that the notifications are "confused" between old
   >> > >> and new instances of the widget?
   >> >
   >> > MM> That is decidedly possible. I haven't played around with
   >> > MM> supporting multiple app widgets much, so I have no idea how
   >> > MM> stable those app widget IDs are.
   >> >
   >> > MM> If this is for your sunrise app widget from your other thread,
   >> > MM> unless you are supporting monitoring sunrise from multiple
   >> > MM> geographic locations, I would not worry about supporting multiple
   >> > MM> app widgets. Use the updateAppWidgets() that just takes a
   >> > MM> ComponentName and update the lot of 'em in one shot.
   >> >
   >> > So we have already discussed that we are talking about my sunrise
   >> > widget, that we have only a single widget instance, and that my code, in
   >> > any event, would have updated all instances.
   >> >
   >> > I have also confirmed that the widget is still receiving notification
   >> > broadcasts and starting the service accordingly, and that the service is
   >> > getting started. The "only" issue is that the widget is not painting an
   >> > update!
   >> >
   >> > So what about a UID mismatch? The docs say that the service can only
   >> > update the RemoteViews if the UID of the appwidget and the service are
   >> > the same. Can the UID change if I download a new version of the APK
   >> > while the app is still installed on my homescreen? If that happened, it
   >> > might explain why the widget remains blank - the service has a different
   >> > UID so it canot update the widget. If so, when the widget is disabled
   >> > and the services are stopped why wouldn't that clean things up? It
   >> > seems that once I am in this state, I have to kill the emulator and
   >> > start a new one. Furthermore, if this is, indeed the problem, how I
   >> > protect against it. I suppose I can tell the user to be sure to delete
   >> > the widget from the homescreen prior to updating but that is not a very
   >> > satisfactory solution.
   >> >
   >> > 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] view animation

2011-02-21 Thread Justin Anderson
I'm not sure where the dimensions are set exactly, but have you tried
putting it in onResume?  I think dimensions are set at that point.

On Sun, Feb 20, 2011 at 8:58 PM, dashman  wrote:

> i'd like to animate a view...
>
> but it's dependent on the dimensions of the view and parent.
>
> during oncreate() these dimensions are not set - so no animation.
>
> is there a way to get a notification once the view has been
> inflated.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How to get the best double buffering?

2011-02-21 Thread MobileVisuals
Your approach worked! This is the code that I used to fix the double
buffering:

in init:

bitmap=Bitmap.createBitmap(width,height, Bitmap.Config .ARGB_);

in run, c is the canvas here:

if(c!=null)
{c.setBitmap(bitmap);
doDraw(c);}
c = 
mSurfaceHolder.lockCanvas(null);
loopEndTime = 
System.currentTimeMillis();
loopTime = (int) (loopEndTime - 
loopStartTime);

c.drawBitmap(bitmap,0,0,mLinePaint2);

if (loopTime < loopDelay) {
if (currentVisual != 
null) {
try {

Thread.sleep(loopDelay - loopTime);
} catch 
(InterruptedException e) {

Log.v("theview", "Thread.sleep", e);

}
}

}

}
} finally {

if (c != null) {

mSurfaceHolder.unlockCanvasAndPost(c);
}


using this approach:

- create a bitmap
- attach a canvas to it
- do the rendering into that canvas
- lockCanvas
- draw your bitmap into the backbuffer
- unlockAndPost

On Feb 20, 7:44 am, Peter Webb  wrote:
> In fact, the whole idea is to *not* create a new bitmap on each
> frame.  Create the bitmap and clear it at the start of your animation,
> then just keep drawing to this bitmap. You keep it in scope, so the
> stuff you draw to the bitmap in previous frames is remembered. The
> only additional overhead from what you are doing now is writing out
> the bitmap when you have added all the new polygons for that frame.
> This is just a block copy, and appears fast.
>
> My animation loop works exactly this way, and whilst I haven't
> measured how long it takes to write the bitmap, I can assure my
> animation loop is very smooth.
>
> On Feb 20, 4:40 am, Cliff Davies  wrote:
>
> > Painting to a bitmap and copying to the canvas works fine and is ideal for
> > what you're doing. No need to clear your bitmap between frames.
> > On 19 Feb 2011 14:59, "MobileVisuals"  wrote:> I 
> > can't paint the whole screen for every frame, since the animation is
> > > based on new polygons painting over the old ones. This creates a
> > > pattern. If I painted over the old polygons, there would be no
> > > pattern.
>
> > > Peter Webb, you suggested that I should paint everything to a Bitmap.
> > > Wouldn't that be too slow for an animation? I mean I would have to
> > > create a new fullsize Bitmap for every frame.
> > > ---
> > > Sorry for the old redundant postings in this thread. They got posted
> > > by mistake, since I tried to create a new thread, when it seemed like
> > > the earlier thread was not posted.
>
> > > On Feb 19, 10:49 am, MobileVisuals  wrote:
> > >> Which approach to you think is the best for implementing double
> > >> buffering?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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] Deploying Application into Device

2011-02-21 Thread Justin Anderson
*> Could you please pass me step-by-step procedure on how to deploy
application into Android Device (my Phone)? *
http://developer.android.com/guide/developing/eclipse-adt.html#RunningOnDevice

*> I believe multiple options should be there like from Eclipse and from
Command Line (typically when we buy an app from Android store).*

What?

On Mon, Feb 21, 2011 at 4:22 AM, Sivaprakash  wrote:

> Hi
>
> Could you please pass me step-by-step procedure on how to deploy
> application into Android Device (my Phone)?
>
> I believe multiple options should be there like from Eclipse and from
> Command Line (typically when we buy an app from Android store).
>
> --
> - 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

[android-developers] DevicePolicyManager - unlock method

2011-02-21 Thread hwit
Hello,

the DevicePolicyManager (API8) allows applications to add and remove
admin users and to lock the device with the lockNow() method. Is it
planned to also add a complementary unlockNow() method? We developed a
modular authentication system, which can be extended by modules
(graphical authentication, biometric authentication etc), but we need
a way to lock and unlock the screen in case the user cannot or can be
identified through one of the modules.

Thanks in advance.

Kind regards,
Heiko

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

2011-02-21 Thread ttk
I am using imx515 board.. I am working on linux kernel

On Feb 19, 2:37 am, giangiammy  wrote:
> hi,
>
> I'm starting to work on a Freescale board too (based on MPC5121)
> which board are you using?
> Which kernel are you using? I will need to port the kernel to my
> board, and i must verify if I have to start from the standard android
> kernel or if there's some porting for mpc5121.
>
> If you have any link to a porting for mpc5121 i would appreciate very
> much
>
> thanks
> Giammy
>
> On Feb 17, 4:09 am, ttk  wrote:
>
> > I made some changes in the source code of freescale board android OS
> > and mounted on my device . But when I tried to install new
> > applications in that OS i was not able to install the applications in
> > that OS. Some developers kindly help me out which this issue. Is it
> > problem with any rights from android or should i change something else
> > in the 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


Re: [android-developers] Simultaneous existence of Wi-Fi Service and Cellular Call Service(Call only)

2011-02-21 Thread Mark Murphy
Oh, whoops, sorry, I misread the question.

On Mon, Feb 21, 2011 at 8:25 AM, Kostya Vasilyev  wrote:
> Ash,
>
> If I understand you correctly, you simply want to run some network
> communication over WiFi while a phone call is happening, and *not* trying to
> route the phone call over WiFi or anything like that.
>
> That is, two independent things happening at the same time: the voice call
> and networking over WiFi.
>
> Yes, it's possible. And it just so happens that it was very easy for me to
> run a quick test. It works, and no special APIs are required, just normal
> java.net code.
>
> -- Kostya
>
> 21.02.2011 16:03, Mark Murphy пишет:
>>
>> On Mon, Feb 21, 2011 at 1:08 AM, Ash  wrote:
>>>
>>> I want to do socket based network operation using Wi-Fi connection
>>> during a phone call (initiation, conversation, termination). I mean
>>> while conversation over the phone, in background my network service is
>>> also running and exchanging IP packets using Wi-Fi Connection.
>>>
>>> Is it possible?
>>>
>>> Can Wi-Fi Service and Cellular Call Service (Phone Call only) co-exist
>>> (in running state)?
>>
>> The OS can support it, as evidenced by the WiFi hotspot feature.
>> However, there is nothing in the current Android SDK to allow you to
>> set this up.
>>
>
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


[android-developers] Re: How to receive WAP push programatically

2011-02-21 Thread karteek

I am able to receive wap push with small change in AndroidManifest,xml
file

as





But now we have integrated now sms with our server which will send wap
push to nowsms which intern send it to device.

Android device is receiving the wap sms but at the system level
android is discarding this sms because of invalid content type.

The android logcat is displaying as follows

02-21 18:40:02.912: WARN/WAP PUSH(143): Received PDU. Unsupported
Content-Type = 68( this is from ./frameworks/base/telephony/java/com/
android/internal/telephony/WapPushOverSms.java);

We can't change the servers message content type. We have only one
choice for this we need to catch this at system level and trying to do
some operations on it

Is this is possible at application level. How to catch this event

Please any help


On Feb 16, 3:06 pm, Karteek N  wrote:
> I am sending wap push using now sms software.I have a android development
> phone.
> The following is my code to receive wap push
>
> Android Manifest file
>
> 
> 
> 
> 
> 
> 
> 
> 
>  android:name="android.permission.INTERNET">
>  android:name="android.permission.RECEIVE_WAP_PUSH">
>  android:name="android.permission.RECEIVE_SMS">
>  android:name="android.permission.RECEIVE_MMS">
>
> PushMsgReceiver.java
>
> public class PushMsgReceiver extends BroadcastReceiver {
> public final static String TAG = "Push Receiver";
> private static final String SMS_RECEIVED =
> "android.provider.Telephony.SMS_RECEIVED";
> private static final String PUSH_RECEIVED =
> "android.provider.Telephony.WAP_PUSH_RECEIVED";
> @Overide
> public void onReceive(Context context, Intent intent) {
>     Log.e(TAG, "Intent recieved: " + intent.getAction());
>     if (intent.getAction().equals(SMS_RECEIVED)) {
>            //toast to show result
>           Log.e(TAG, "SMS: " + intent.getAction());
>            Toast.makeText(context, "SMS_RECEIVED",
> Toast.LENGTH_LONG).show();
>    }
>     if (intent.getAction().equals(PUSH_RECEIVED)) {
>         //toast to show result
>            Log.e(TAG, "PUSH: " + intent.getAction());
>         Toast.makeText(context, "PUSH MSG", Toast.LENGTH_LONG).show();
>     }
>
> }
>
> But It is not displaying for Wap push. This receiver is not at all active on
> Wap push receive event. But message comes to my development phone inbox
>
> Any help please

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


Re: [android-developers] Re: How can i control room lights with my android phone :)

2011-02-21 Thread Kostya Vasilyev

Yet another possibility is to use the phone to push the light switch.

Works best with devices covered with soft plastic (won't slip).

For increased distance, one could tie the phone to a broom with a shoe lace.

;-)

-- Kostya

21.02.2011 16:01, Mark Murphy пишет:

On Mon, Feb 21, 2011 at 3:18 AM, Kristopher Micinski
  wrote:

P.s., This approach carries the added fear that someone's going to break
into your network and turn your lights on and off in some obnoxious pattern.

OTOH, this makes an interesting plot device for a horror movie... :-)




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

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


Re: [android-developers] Simultaneous existence of Wi-Fi Service and Cellular Call Service(Call only)

2011-02-21 Thread Kostya Vasilyev

Ash,

If I understand you correctly, you simply want to run some network 
communication over WiFi while a phone call is happening, and *not* 
trying to route the phone call over WiFi or anything like that.


That is, two independent things happening at the same time: the voice 
call and networking over WiFi.


Yes, it's possible. And it just so happens that it was very easy for me 
to run a quick test. It works, and no special APIs are required, just 
normal java.net code.


-- Kostya

21.02.2011 16:03, Mark Murphy пишет:

On Mon, Feb 21, 2011 at 1:08 AM, Ash  wrote:

I want to do socket based network operation using Wi-Fi connection
during a phone call (initiation, conversation, termination). I mean
while conversation over the phone, in background my network service is
also running and exchanging IP packets using Wi-Fi Connection.

Is it possible?

Can Wi-Fi Service and Cellular Call Service (Phone Call only) co-exist
(in running state)?

The OS can support it, as evidenced by the WiFi hotspot feature.
However, there is nothing in the current Android SDK to allow you to
set this up.




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

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


[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-21 Thread Fox Mulder
@Samuh
Many thanks for your help and the bug notifications...I was wondering
from where you got the httplive info !! How could we guess ???

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


Re: [android-developers] Re: How can i control room lights with my android phone :)

2011-02-21 Thread Mark Murphy
On Mon, Feb 21, 2011 at 3:18 AM, Kristopher Micinski
 wrote:
> P.s., This approach carries the added fear that someone's going to break
> into your network and turn your lights on and off in some obnoxious pattern.

OTOH, this makes an interesting plot device for a horror movie... :-)

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Simultaneous existence of Wi-Fi Service and Cellular Call Service(Call only)

2011-02-21 Thread Mark Murphy
On Mon, Feb 21, 2011 at 1:08 AM, Ash  wrote:
> I want to do socket based network operation using Wi-Fi connection
> during a phone call (initiation, conversation, termination). I mean
> while conversation over the phone, in background my network service is
> also running and exchanging IP packets using Wi-Fi Connection.
>
> Is it possible?
>
> Can Wi-Fi Service and Cellular Call Service (Phone Call only) co-exist
> (in running state)?

The OS can support it, as evidenced by the WiFi hotspot feature.
However, there is nothing in the current Android SDK to allow you to
set this up.

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

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


[android-developers] AlphaAnimation

2011-02-21 Thread dashman
I'm doing an AlphaAnimation from 0 to 0.5

the problem is that at the end of the animation
it resets to opaque (1.0).

any way to just go from 0 to 0.5 and stop.

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


[android-developers] MapActivity with inflate layout problem

2011-02-21 Thread Dani
Hi,
I have a strange problem: I'm trying to inflate a layout with a button
over a MapView, after the user click on a marker on the map. This
layout appears on the map but every kind of button I put in the xml
there seem to be "frozen", they do not respond at the click action (no
animation).
popup.xml:
http://schemas.android.com/apk/res/android";
android:layout_width="150dp"
android:layout_height="fill_parent"
android:background="@drawable/popup_frame"
android:orientation="vertical">




the code is in a ItemizedOveraly onTap() method:

ViewGroup parent=(ViewGroup)mapView.getParent();
popup=((MapsActivity)mContext).getLayoutInflater().inflate(R.layout.popup,
parent, false);

((ViewGroup)mapView.getParent()).removeView(popup);
((ViewGroup)mapView.getParent()).addView(popup);

I tried to do this thing in a new project with a layout without
mapView and all works fine.
If I put the layout with the button directly inside the main layout
and I hide/show it, all works fine

thank you
Dani

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Exception while calling web service----java.net.SocketException: Permission denied

2011-02-21 Thread grace
Hi,

http://stackoverflow.com/questions/4253233/exception-with-web-service-java-net-socketexception-permission-denied-in-andr

On Feb 18, 2:06 pm, Ravi  wrote:
> Yeah I given the internet permission in manifest file.

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


[android-developers] Deploying Application into Device

2011-02-21 Thread Sivaprakash
Hi

Could you please pass me step-by-step procedure on how to deploy application
into Android Device (my Phone)?

I believe multiple options should be there like from Eclipse and from
Command Line (typically when we buy an app from Android store).

-- 
- 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] Re: Using google-api-java client

2011-02-21 Thread cuil yahoo
Thanks, for the reply.

I did have a look at this before, and i say a beginner just to keep my feet
on the ground. ^^ (This doesn't imply i am a expert either) .

I tried using the the other library,
https://code.google.com/p/oauth-signpost/ . It works smoothly with this.
--
Cuil



On Mon, Feb 21, 2011 at 3:46 AM, Spiral123  wrote:

> well.
>
> I don't know how you are getting those vm errors, but I would guess
> you are doing something very wrong.  Getting Android and OAuth playing
> nicely is not what I would think of as a good beginner exercise.
>
> If you really want to go that route I would start off with an example
> a little closer to what you want to achieve.  Study this Android
> example that uses OAuth to access Picasa for example:
>
> http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples&r=f04abe25d7061a8b1beceade276b1a9fac553d5a#picasa-atom-android-sample
>
> On Feb 20, 3:28 pm, cuil yahoo  wrote:
> > Hi,
> >
> > I am a beginner, and i have got really very irritated, in completing this
> > issue. Hope you could help. :)
> >
> > I am trying to make an android application using google-api-java client
> > library.
> > My application needs to display all the google spreadsheets one has in
> his
> > google documents account.
> >
> > I tried using docs-v3-atom-oauth-sample as reference,
> > here<
> https://code.google.com/p/google-api-java-client/source/browse/docs-v...>.
> >
> > But when i do that, and run my android application, i get dalvik vm
> errors,
> > which i am attaching in a text file.
> >
> > It would be great if someone could please help me out.
> >
> > Thanks
> > --
> > Cuil
> >
> >  Error.txt
> > 35KViewDownload
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Any plans to make a DownloadManager library/jar available for pre-Gingerbread support?

2011-02-21 Thread Marcus Wolschon


On 18 Feb., 18:48, Dianne Hackborn  wrote:
>  I am just
> thinking to only use the networking pieces from it, and write your own
> front-end (posting notifications if that is what you want, or doing whatever
> UI you want).

Then what would be the benefit left?
Before the download manager you wrote your own UI and did the http-get/
post/whatever-request
+error-handling already.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Exception while calling web service----java.net.SocketException: Permission denied

2011-02-21 Thread grace
hi,
go through the link..it might help you..

http://stackoverflow.com/questions/4253233/exception-with-web-service-java-net-socketexception-permission-denied-in-andr

On Feb 18, 2:06 pm, Ravi  wrote:
> Yeah I given the internet permission in manifest file.

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


[android-developers] Re: "Conversion to Dalvik format failed with error 1" when using jmDNS.jar

2011-02-21 Thread Marcus Wolschon

Doesn't that mean that the code is compiled but the jar not included
in the apk
=> class not found error at runtime unless jmDNS is a part of Android.

On 17 Feb., 01:40, scott_ggle  wrote:
> I had resolved this compile error by adding JmDNS as user library. See
> tip posted by CuteAndroid
>
> athttp://www.cuteandroid.com/tips-for-android-developer-conversion-to-d
>
> I guess I could extract the source file and add them in my project.
> But that make the project hard to maintain with JmDNS updates.
>
> Thanks for helping
>
> -Scott
>
> On Jan 14, 5:15 am, Kumar Bibek  wrote:
>
> > I guess, JMDNS uses a lot of classes in the javax package, that you would
> > not be able to compile with Android.
>
> > If you want to use only the JMDNS specific stuff, you can extract those
> > classes and add it to your project. That worked for me.
>
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> > On Fri, Jan 7, 2011 at 12:31 AM, scott_ggle  wrote:
> > > Hi,
>
> > > I hope someone can kindly provide me hint on eclipse error “Conversion
> > > to Dalvik format failed with error 1″. I am building Android
> > > application with an external jar -”jmDNS.jar”.
> > > I have tried reboot and clean build with no help. I tried using
> > > Android 2.3 and 2.2 SDK with latest jmDNS.jar 3.2.2. The later was add
> > > in project as Referenced Libraries.
>
> > > Thanks in advance.
>
> > > Scott
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@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] Create a pipe file

2011-02-21 Thread Daniel Drozdzewski
Christina,

You could write a utility class that would do rolling file for you, or
you could plug in RollingFileAppender from log4j Apache logging
library.

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html


Daniel




On Mon, Feb 21, 2011 at 10:00 AM, Christina Loop
 wrote:
> Hello everyone,
>
> I would like to ask, if anyone knows how can we create a file which
> acts like a pipe.
>
> For instance I would like it to have 2MB size. The system should
> access this file as a FIFO, ie when the space of 2MB is over, the
> system should write on the file from the start of it.
>
> Is there any way I can create such a file?
>
> Thank you in advance for your help,
> Christina
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

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


[android-developers] Create a pipe file

2011-02-21 Thread Christina Loop
Hello everyone,

I would like to ask, if anyone knows how can we create a file which
acts like a pipe.

For instance I would like it to have 2MB size. The system should
access this file as a FIFO, ie when the space of 2MB is over, the
system should write on the file from the start of it.

Is there any way I can create such a file?

Thank you in advance for your help,
Christina

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

2011-02-21 Thread Marcin Orlowski
On 21 February 2011 10:20, Goodwin  wrote:
> hi all,
>
>       I study the cts test recently,and I hava a query about the cts
> test result.
>       the result shows "time out" when run some cases. what does the
> time out mean?
>      any idear will be appreciated!

It usually means that the time for completing certain task passed out
and the operation was not completed in time, usually because the
"other end" did not repspond in time or at all



-- 
Regards,
Marcin

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

2011-02-21 Thread Daniel Drozdzewski
Try here:

http://mindmeat.blogspot.com/2008/07/java-image-comparison.html

and here

http://stackoverflow.com/questions/843972/image-comparison-fast-algorithm

Daniel


On Mon, Feb 21, 2011 at 7:44 AM, TreKing  wrote:
> On Mon, Feb 21, 2011 at 1:15 AM, Jayanthi  wrote:
>>
>> Hi,
>>  I want sample code to compare two images and point out difference
>> among the two ,Is that possible to do please help as early as possible
>
> http://groups.google.com/group/android-developers/browse_thread/thread/c2206a1278e00c90/4cd054168399a6e1
>
> --
>
> -
> 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



-- 
Daniel Drozdzewski

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


[android-developers] cts test result

2011-02-21 Thread Goodwin
hi all,

   I study the cts test recently,and I hava a query about the cts
test result.
   the result shows "time out" when run some cases. what does the
time out mean?
  any idear will be 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] Conversion is '' in preferences

2011-02-21 Thread mort
Hi,

my app uses a PreferenceActivity. From some users, I get the following
exception, but I'm not able to reproduce it. Any idea how this could
happen and what to do to avoid it?

java.util.UnknownFormatConversionException: Conversion is ''
java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:
2641)
java.util.Formatter
$FormatSpecifierParser.parseConversionType(Formatter.java:2716)
java.util.Formatter
$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2687)
java.util.Formatter
$FormatSpecifierParser.parseFormatToken(Formatter.java:2624)
java.util.Formatter.doFormat(Formatter.java:1072)
java.util.Formatter.format(Formatter.java:994)
java.lang.String.format(String.java:2254)
java.lang.String.format(String.java:2219)
android.preference.ListPreference.getSummary(ListPreference.java:
152)
android.preference.Preference.onBindView(Preference.java:441)
android.preference.Preference.getView(Preference.java:391)
 
android.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java:
221)
( - no class of my app appears in stack)

Regards,
Mort

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


[android-developers] Re: How to display,exactly?

2011-02-21 Thread cool.manish
Create an variable of MapView.LayoutParams and set it as the
layoutParam of your overlay.

You can also use params.mode = MapView.LayoutParams.MODE_MAP; to
varied its location after panning or zooming

On Feb 21, 11:37 am, Abhilash baddam
 wrote:
> Hi,
>
>     In my app i can be able to display  maps with markers. When the user
> clicks on a particular marker, it will display the details of that
> particular location,
>     but it display's details for every marker on the top the screen. I want
> to display exactly on the top marker. Hoe can i do this...?

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


[android-developers] How to implement a filter with an expandablelistview backed by a cursor

2011-02-21 Thread Richard Marsh
I'm just a little stumped on this. I would like to implement some sort of 
filter or search functionality with my ExpandableListView. As the title 
mentions, I'm using database data with my own custom SimpleCursorTreeAdapter 
object. 

I can't really find tutorials or guides on this. Any advice or guidance 
would be greatly 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] Google Map Error

2011-02-21 Thread Nesim TUNÇ
Hi Awesome Developers!

I'm trying to use Google Map in my Android App. My SDK version is 2.1 update
1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still
getting this error .. Here is my codes:

Manifest file:

 
   is child node of application tag
and these permissons are requested:







layout/mapview.xml
 

and this my activity class

public class GoogleMapActivity extends MapActivity {

@Override
 protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
 setContentView(R.layout.mapview);
}

@Override
 protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
 return false;
}
}

and here is how I call it from a imagview click

Intent mapIntent = new Intent(v.getContext(),
x.maps.GoogleMapActivity.class);
startActivity(mapIntent);

And I get this error:

02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main
02-21 10:30:04.645: ERROR/AndroidRuntime(6257):
java.lang.IllegalStateException: Could not execute method of the activity
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.view.View$1.onClick(View.java:2082)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.view.View.performClick(View.java:2461)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.view.View$PerformClick.run(View.java:8890)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.os.Handler.handleCallback(Handler.java:587)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.os.Handler.dispatchMessage(Handler.java:92)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.os.Looper.loop(Looper.java:123)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.reflect.Method.invoke(Method.java:521)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
dalvik.system.NativeStart.main(Native Method)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
java.lang.reflect.InvocationTargetException
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:296)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.reflect.Method.invoke(Method.java:521)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
android.view.View$1.onClick(View.java:2077)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by:
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to
unexpected implementation
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
dalvik.system.DexFile.defineClass(Native Method)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more

What is the problem? Thanks in advance ;)

-- 
Nesim TUNÇ
Senior Software Developer of Distributed Applications

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