[android-developers] Re: getting this error The apk must be signed with the same certificates as the previous version.

2011-11-13 Thread lakshman
HI,
we are using the same keystore for the android app update but still
getting this error.
can some one help us.
regards
lakshman

On Nov 14, 12:07 pm, GMLチェックツール  wrote:
> You must use same private release key (keystore) for signing.
> Just follow the instructions on this 
> link.http://developer.android.com/guide/publishing/publishing.html
>
>
>
>
>
>
>
> (2011/11/14 15:45), lakshman wrote:
> > HI,
> > getting this error  The apk must be signed with the same certificates
> > as the previous version.
> > Please follow the steps
> > 1. Made code changes to android app and changed the version from 1 to
> > 2
> > 2.  Generated the signed application .apk  from eclipse editor.
> > 3. Tried to upload the apk file in the  app store.
> > 4. we have not used any certificate for the generating app in any
> > version.
> > 5. Can u tell me why is this error coming?.
> > and how to fix this problem.

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


Re: [android-developers] getting this error The apk must be signed with the same certificates as the previous version.

2011-11-13 Thread GMLチェックツール

You must use same private release key (keystore) for signing.
Just follow the instructions on this link.
http://developer.android.com/guide/publishing/publishing.html


(2011/11/14 15:45), lakshman wrote:

HI,
getting this error  The apk must be signed with the same certificates
as the previous version.
Please follow the steps
1. Made code changes to android app and changed the version from 1 to
2
2.  Generated the signed application .apk  from eclipse editor.
3. Tried to upload the apk file in the  app store.
4. we have not used any certificate for the generating app in any
version.
5. Can u tell me why is this error coming?.
and how to fix this problem.



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


[android-developers] How to find devices which are connected to a network?

2011-11-13 Thread Sunil Mishra
Hi,

I want to know the ip address of the devices which are present in the
network. Is there any way to do that?

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

2011-11-13 Thread venugopal reddy
Hello nag,

Is it possiable to print soap envelope info using ksoap api

On Wed, Jul 13, 2011 at 2:14 PM, nageswara rao rajana  wrote:

>
>
> Hello friend Ksoap is android specific, using this jar files you can web
> services(Soap) which were developed on java Or .Net.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks&Regards
*VENU*
Technical Specialist
Thirdware Solution Ltd,Chennai

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

[android-developers] Getting actual device resolution

2011-11-13 Thread Peter Webb
I have been using a simple 3rd party game engine, from the book
"Beginning Android Games".

The example code uses a fixed resolution (320 x 480) and this is
scaled on output. Not surprisingly, the bitmaps and everything else is
scaled and looks pretty poor.

My code is set up to use the native resolution of the device and
handles scaling internally. I can modify the code to use whatever
resolution I want, and this works fine.

In this engine, the graphics and almost everything else is handled
through abstract classes and interfaces.
The way the game engine is set up, it doesn't actually use the Android
graphics engine until after the game environment is set up. The first
place that I can get hold of the actual resolution through SurfaceView
is in the "run" loop, way after the game engine has been initialised.
I need the screen resolution *before* I set up the location of sprites
and game state. Modifying the engine to move the game setup into the
run method would break lots of other things.

Can anybody tell me how I can get the actual hardware resolution of
the device (so I can set up the game objects properly) without waiting
until the "run" method which has access to SurfaceView?

dstRec in the following gives me the resolution, but this is way to
late for me to use when setting up the game.

 public void run() {
Rect dstRect = new Rect();
long startTime = System.nanoTime();
while(running) {
if(!holder.getSurface().isValid())
continue;

float deltaTime = (System.nanoTime()-startTime) /
10.0f;
startTime = System.nanoTime();

  game.getCurrentScreen().update(deltaTime);
game.getCurrentScreen().present(deltaTime);

Canvas canvas = holder.lockCanvas();
canvas.getClipBounds(dstRect);

canvas.drawBitmap(framebuffer, null, dstRect,
null);
holder.unlockCanvasAndPost(canvas);
}
}




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


[android-developers] getting this error The apk must be signed with the same certificates as the previous version.

2011-11-13 Thread lakshman
HI,
getting this error  The apk must be signed with the same certificates
as the previous version.
Please follow the steps
1. Made code changes to android app and changed the version from 1 to
2
2.  Generated the signed application .apk  from eclipse editor.
3. Tried to upload the apk file in the  app store.
4. we have not used any certificate for the generating app in any
version.
5. Can u tell me why is this error coming?.
and how to fix this problem.

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


Re: [android-developers] Re: Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread Jim Graham
On Sun, Nov 13, 2011 at 05:50:24PM -0800, kevin wrote:
> Well, I can understand a normal user's feeling. However this is not
> a public feature but for companies to use in corporate phones.

Corporate spyware is still spyware, and it's just as wrong either way.
If a company doesn't trust the people they have working for them, why
ARE they working for them?  But it doesn't really matter...anyone who
objects to it will just kill and uninstall your spyware anyways.  :-)
That, or they'll just use another browser

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| "> There it was, right in the title bar:
spooky1...@gmail.com|  > Microsoft Operations POS."
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   | "Never before has a TLA been so appropriately
   30.44406N 86.59909W  |  mis-parsed." (alt.sysadmin.recovery)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: Custom made Clikable buttons

2011-11-13 Thread s.rawat
HI Naeem, William
 thanks for the link :) , keep looking for this space , will post my code
here..!!

Rgds,
Saurabh

"..pain is temporary.quitting lasts forever.."



On Mon, Nov 14, 2011 at 10:44 AM, Melaka Atalugamage wrote:

> i was searchinig for this too. thank you :)
>
>
> On 14 November 2011 10:43, Naeem  wrote:
>
>> No worries Rawat,
>> Look at the link below
>>
>>
>> http://developer.android.com/resources/tutorials/views/hello-formstuff.html
>>
>> It explains how to create custom buttons using any images of your
>> choice.
>> Lots of other good stuff is also available in Android SDK
>> documentation...
>> Do check it out when you got some time...
>>
>> Cheers...
>>
>>
>> On Nov 13, 11:29 am, "s.rawat"  wrote:
>> > HI ,
>> > Is it possible to make  the custom clickable buttons (from the clip art
>> ,
>> > button image, or any fancy looking figure) and add to the android UI,
>> just
>> > like paper camera Application <
>> http://www.youtube.com/watch?v=Y2a4QGGLQUM>.
>> > I have  been trying the same on Honeycomb and they ave something good
>> xml
>> > editor features where we can do such type of thing , not sure, plz share
>> > your thoughts or slap a lmgtfy link for me. sorry for my desperation and
>> > laziness..But trust me , something else is keeping me
>> > busy...Tech of-course..will post my experiences...!!
>> > Rgds,
>> > Softy
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
>
> *Kind Regards
> *
>
> *Melaka Atalugamage*
>
> Freelance Software Developer/Photographer(find me on 
> deviantArt
> )
>
> (email: melak...@gmail.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
>

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

[android-developers] Location - Address Issue

2011-11-13 Thread Siva Prakash
Hi

Im trying to get the sublocality from Map API, when I use the following URL

http://maps.googleapis.com/maps/api/geocode/json?latlng=13.0445756,80.2447062333&sensor=false

Im getting

{
   "long_name" : "T Nagar",
   "short_name" : "T Nagar",
   "types" : [ "sublocality", "political" ]
},

But In Android MAP API code Im getting "Lakshimi Colony" as SubLocality or
some time NULL


Here is the code Im using to get

double latitude = location.getLatitude() ;
double longitude = location.getLongitude() ;


List addresses = gc.getFromLocation(latitude, longitude, 1);
Address address = addresses.get(0);
address.getSubLocality() ;


Anything I need to do to get it consistently? Or Can I use the above said
URL directly to get data?


Thanks

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

[android-developers] Re: How to analyze memory usage of an app

2011-11-13 Thread srihari babu
Ur right Jason, that was memory allocated natively by linux OS.
Heap window statistics in DDMS won't includes native memory allocated by 
application.

Check out this video, this explains very good.
http://www.youtube.com/watch?v=_CruQY55HOk&feature=player_embedded

Regards,
Srihari babu.R

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

Re: [android-developers] Re: Custom made Clikable buttons

2011-11-13 Thread Melaka Atalugamage
i was searchinig for this too. thank you :)

On 14 November 2011 10:43, Naeem  wrote:

> No worries Rawat,
> Look at the link below
>
> http://developer.android.com/resources/tutorials/views/hello-formstuff.html
>
> It explains how to create custom buttons using any images of your
> choice.
> Lots of other good stuff is also available in Android SDK
> documentation...
> Do check it out when you got some time...
>
> Cheers...
>
>
> On Nov 13, 11:29 am, "s.rawat"  wrote:
> > HI ,
> > Is it possible to make  the custom clickable buttons (from the clip art ,
> > button image, or any fancy looking figure) and add to the android UI,
> just
> > like paper camera Application <
> http://www.youtube.com/watch?v=Y2a4QGGLQUM>.
> > I have  been trying the same on Honeycomb and they ave something good xml
> > editor features where we can do such type of thing , not sure, plz share
> > your thoughts or slap a lmgtfy link for me. sorry for my desperation and
> > laziness..But trust me , something else is keeping me
> > busy...Tech of-course..will post my experiences...!!
> > Rgds,
> > Softy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

*Kind Regards
*

*Melaka Atalugamage*

Freelance Software Developer/Photographer(find me on
deviantArt
)

(email: melak...@gmail.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: Custom made Clikable buttons

2011-11-13 Thread Naeem
No worries Rawat,
Look at the link below

http://developer.android.com/resources/tutorials/views/hello-formstuff.html

It explains how to create custom buttons using any images of your
choice.
Lots of other good stuff is also available in Android SDK
documentation...
Do check it out when you got some time...

Cheers...


On Nov 13, 11:29 am, "s.rawat"  wrote:
> HI ,
> Is it possible to make  the custom clickable buttons (from the clip art ,
> button image, or any fancy looking figure) and add to the android UI, just
> like paper camera Application .
> I have  been trying the same on Honeycomb and they ave something good xml
> editor features where we can do such type of thing , not sure, plz share
> your thoughts or slap a lmgtfy link for me. sorry for my desperation and
> laziness..But trust me , something else is keeping me
> busy...Tech of-course..will post my experiences...!!
> Rgds,
> Softy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Threads in Android (NetworkOnMainThreadException with Javamail) acting very strange

2011-11-13 Thread GMLチェックツール

Why not to use AsyncTask class.
For me, it is the best approach for your case.

(2011/11/14 9:56), BCS wrote:

move FetchEmails e outside of the curly braces and declare in the
scope where you need to use it

On Nov 13, 8:20 am, Stelios  wrote:

I am a beginner in Android platform and i have encountering a serious
problem. I want to fetch emails from gmail and therefore i have
created a class that does that. However when i run my class in android
NetworkOnMainThreadException. So i have created new Thread with a new
Runnable as below :

public void onClick(View v) {
   new Thread(new Runnable() {
 public void run() {
   FetchEmails e = new FetchEmails();
 }
   }).start();

}

It worked fine but then i can't seem to have access to e.getMessage in
order to get the actual email. Having this on mind i have implement
Runnable to my FetchEMails class and done all the fetch code in run()
which i have overidden. The last piece of code in run() is setting a
variable to 'true'. Then in my Activity class i have instantiate the
class and i have done this : new Thread(e).start();. Below i have a
while loop to check wether the class has finished to the end of run()
method (by checking if the variable is true). So now i have created my
new theard which does not intefere with the UI and when the code is
finished i want to get the message. But it seems that i still get the
NetworkOnMainThreadException error. Any help with that is apprecieted.
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: trace_dev_write() in QEMU/ANDROID

2011-11-13 Thread Vikram
bounce!
Has noone tried/used this ?

Thanks,
Vikram

On Nov 9, 2:31 pm, Vikram  wrote:
> Hi,
>
> I am trying to generate trace files out of QEMU and I see that out of
> the 6 files dumped by QEMU:
> qtrace.bb, qtrace.exc, qtrace.insn, qtrace.method, qtrace.pid and
> qtrace.static
> the 3 files : qtrace.exc, qtrace.pid and qtrace.pid are written only
> when the function "trace_dev_write()" is called.
> But I am unable to figure out when this function is called. In my runs
> it is never called and these 3 files are empty.
>
> There was an earlier post about the same issue which seems to be
> unanswered.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> It would be really great if someone could help me understand when this
> functiontrace_dev_write() is called.
>
> Thanks,
> V

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

2011-11-13 Thread Kristopher Micinski
http://stackoverflow.com/questions/3389501/activity-transition-in-android

On Sun, Nov 13, 2011 at 11:20 PM, TreKing  wrote:
> On Sun, Nov 13, 2011 at 10:09 PM, bob  wrote:
>>
>> How do I make my activity fade in when started?
>
> Try reading the Activity documentation - there is a method that may be what
> you need based on the description.
> While you're at it, may I suggest you spend some time with the rest of the
> docs? It will help you with about 95% of the questions you ask here.
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Task implentation

2011-11-13 Thread TreKing
On Sun, Nov 13, 2011 at 10:36 PM, kishore  wrote:

> Please give information about TASK.


Please give information about what you mean by "TASK".

-
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] Task implentation

2011-11-13 Thread kishore
Hi All,

For calendar information i am getting from this URI:
Uri.parse("content://com.android.calendar/calendars")

In same way i need to get TASK information or TASK list. Can any one
tell me any URI is there for TASK.
or any other way to implement

Please give information about TASK.

Regards,
Kishore

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

2011-11-13 Thread TreKing
On Sun, Nov 13, 2011 at 10:09 PM, bob  wrote:

> How do I make my activity fade in when started?


Try reading the Activity documentation - there is a method that may be what
you need based on the description.
While you're at it, may I suggest you spend some time with the rest of the
docs? It will help you with about 95% of the questions you ask here.

-
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] fade in

2011-11-13 Thread bob
How do I make my activity fade in when started?

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

2011-11-13 Thread xeagle
Hi,

I try to debug an application which has an out of memory error. The
app cannot allocate 3Mbytes in some condition. I analyze the adb log,
there are some debug output of dalvikvm as below:

dalvikvm: GC_FOR_MALLOC freed <1K, 47% free 4781K/8967K, external
55469K/57517K, paused 64ms
dalvikvm: GC_EXTERNAL_ALLOC freed <1K, 47% free 4781K/8967K, external
55469K/57517K, paused 80ms
dalvikvm: GC_FOR_MALLOC freed 0K, 47% free 4781K/8967K, external
55469K/57517K, paused 39ms

I compare the number in above output with the number in "Heap" window
of DDMS. "free 4781K/8967K" seems corresponding to "Allocated" and
"Heap size" in "Heap" of DDMS. However, I'm not sure what is "external
55469K/57517K". I suspect that it is memory allocated by native code.
Does anybody know this?

Thanks
Jason

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


[android-developers] Re: Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread kevin
Well, I can understand a normal user's feeling. However this is not a
public feature but for companies to use in corporate phones.

On 11月14日, 上午3时31分, Jim Graham  wrote:
> On Sun, Nov 13, 2011 at 11:27:48AM -0500, Mark Murphy wrote:
> > On Sun, Nov 13, 2011 at 11:20 AM, kevin  wrote:
> > > This is our feature requirement, I am sorry this is not a open
> > > information.
>
> > The reason I ask is because it sounds a lot like spyware.
>
> Whether corporate abuse or the cracker type, one way or another, IT IS
> SPYWARE.  Personally, I always considered stuff like that to be an
> insult, and disabled it ... errr, correction ... I made sure that it
> suffered a convenient failure to function properly  ;-}
>
> Later,
>--jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
> spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W
>
>   "The iPad is a status symbol for yuppies. The Android
>  is for people who actually want something that works."
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

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


[android-developers] Re: Threads in Android (NetworkOnMainThreadException with Javamail) acting very strange

2011-11-13 Thread BCS
move FetchEmails e outside of the curly braces and declare in the
scope where you need to use it

On Nov 13, 8:20 am, Stelios  wrote:
> I am a beginner in Android platform and i have encountering a serious
> problem. I want to fetch emails from gmail and therefore i have
> created a class that does that. However when i run my class in android
> NetworkOnMainThreadException. So i have created new Thread with a new
> Runnable as below :
>
> public void onClick(View v) {
>   new Thread(new Runnable() {
>     public void run() {
>       FetchEmails e = new FetchEmails();
>     }
>   }).start();
>
> }
>
> It worked fine but then i can't seem to have access to e.getMessage in
> order to get the actual email. Having this on mind i have implement
> Runnable to my FetchEMails class and done all the fetch code in run()
> which i have overidden. The last piece of code in run() is setting a
> variable to 'true'. Then in my Activity class i have instantiate the
> class and i have done this : new Thread(e).start();. Below i have a
> while loop to check wether the class has finished to the end of run()
> method (by checking if the variable is true). So now i have created my
> new theard which does not intefere with the UI and when the code is
> finished i want to get the message. But it seems that i still get the
> NetworkOnMainThreadException error. Any help with that is apprecieted.
> 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] MediaMetadataRetriever does this work ?

2011-11-13 Thread New Developer

No matter what value is passed to
  pict = retrieve.getFrameAtTime(frame);
You always have the first frame never anything else ?
Why ?



On 11/13/2011 04:04 PM, New Developer wrote:

Called from a class that implements  ImageView

@Override protected void onDraw(Canvas canvas) {
Log.e("Video Media" , "on Draw Called");
super.onDraw(canvas);
Log.e("Media", "drawstep 2");
if (isPlaying)  loadFrame();
Log.e("Media", "drawstep 3");
}

private void loadFrame() {
if (isPlaying) {
frames.incrementProgressBy(11-playSpeed);
if (frame == duration)  {
isPlaying = false;
frame = 0;
frames.setProgress(0);
frames.setEnabled(true);
speed.setEnabled(true);

play.setBackgroundDrawable(getResources().getDrawable(R.drawable.play));

}
pict.recycle(); mBitmap.recycle();
pict = retrieve.getFrameAtTime(frame);
mBitmap  = Bitmap.createBitmap(pict, 0, 0, 
pict.getWidth(),pict.getHeight(), matrix, true);
Log.e("Media", "load Frame" + frame + "("+ (11-playSpeed) 
+")" + pict.getWidth() + " x " + pict.getHeight() );

Log.e("Media", "load Framestep 1   ");
super.setImageBitmap(mBitmap);
Log.e("Media", "load Framestep 2   ");
super.invalidate();
Log.e("Media", "load Framestep 3   ");
}
}


frame get inremented in steps of 10  , thus  pict = 
retrieve.getFrameAtTime(frame);  loads every 10 frames

mBitmap as you can see is set to update the super.setImageBitmap()

resulting in the following logcat

11-13 15:47:52.605: E/Video Media(4647): on Draw Called
11-13 15:47:52.615: E/Media(4647): drawstep 2
11-13 15:47:52.915: E/Media(4647): load Frame2450
(10)1280 x 720

11-13 15:47:52.915: E/Media(4647): load Framestep 1
11-13 15:47:52.915: E/Media(4647): load Framestep 2
11-13 15:47:52.915: E/Media(4647): load Framestep 3
11-13 15:47:52.915: E/Media(4647): drawstep 3

11-13 15:47:52.935: E/Video Media(4647): on Draw Called
11-13 15:47:52.945: E/Media(4647): drawstep 2
11-13 15:47:53.255: E/Media(4647): load Frame2460
(10)1280 x 720

11-13 15:47:53.255: E/Media(4647): load Framestep 1
11-13 15:47:53.255: E/Media(4647): load Framestep 2
11-13 15:47:53.255: E/Media(4647): load Framestep 3
11-13 15:47:53.255: E/Media(4647): drawstep 3

11-13 15:47:53.275: E/Video Media(4647): on Draw Called
11-13 15:47:53.285: E/Media(4647): drawstep 2
11-13 15:47:53.585: E/Media(4647): load Frame2470
(10)1280 x 720

11-13 15:47:53.585: E/Media(4647): load Framestep 1
11-13 15:47:53.585: E/Media(4647): load Framestep 2
11-13 15:47:53.585: E/Media(4647): load Framestep 3
11-13 15:47:53.585: E/Media(4647): drawstep 3

11-13 15:47:53.605: E/Video Media(4647): on Draw Called
11-13 15:47:53.615: E/Media(4647): drawstep 2
11-13 15:47:53.925: E/Media(4647): load Frame2480
(10)1280 x 720

11-13 15:47:53.925: E/Media(4647): load Framestep 1
11-13 15:47:53.925: E/Media(4647): load Framestep 2
11-13 15:47:53.925: E/Media(4647): load Framestep 3
11-13 15:47:53.925: E/Media(4647): drawstep 3

11-13 15:47:53.945: E/Video Media(4647): on Draw Called
11-13 15:47:53.955: E/Media(4647): drawstep 2
11-13 15:47:54.255: E/Media(4647): load Frame2490
(10)1280 x 720

11-13 15:47:54.255: E/Media(4647): load Framestep 1
11-13 15:47:54.255: E/Media(4647): load Framestep 2
11-13 15:47:54.255: E/Media(4647): load Framestep 3
11-13 15:47:54.255: E/Media(4647): drawstep 3

11-13 15:47:54.285: E/Video Media(4647): on Draw Called
11-13 15:47:54.295: E/Media(4647): drawstep 2
11-13 15:47:54.595: E/Media(4647): load Frame2500
(10)1280 x 720

11-13 15:47:54.595: E/Media(4647): load Framestep 1
11-13 15:47:54.595: E/Media(4647): load Framestep 2
11-13 15:47:54.595: E/Media(4647): load Framestep 3
11-13 15:47:54.595: E/Media(4647): drawstep 3

11-13 15:47:54.615: E/Video Media(4647): on Draw Called
11-13 15:47:54.625: E/Media(4647): drawstep 2
11-13 15:47:54.925: E/Media(4647): load Frame2510
(10)1280 x 720

11-13 15:47:54.925: E/Media(4647): load Framestep 1
11-13 15:47:54.925: E/Media(4647): load Framestep 2
11-13 15:47:54.925: E/Media(4647): load Framestep 3
11-13 15:47:54.925: E/Media(4647): drawstep 3

11-13 15:47:54.945: E/Video Media(4647): on Draw Called
11-13 15:47:54.955: E/Media(4647): drawstep 2
11-13 15:47:55.255: E/Media(4647): load Frame2520
(10)1280 x 720

11-13 15:47:55.255: E/Media(4647): load Framestep 1
11-13 15:47:55.265: E/Media(4647): load Framestep 2
11-13 15:47:55.265: E/Media(4647): load Framestep 3
11-13 15:47:55.265: E/Media(4647): draw 

Re: [android-developers] How to reload app without restarting emulator

2011-11-13 Thread Jim Graham
On Sun, Nov 13, 2011 at 05:21:45PM -0500, Mark Murphy wrote:
> This usually happens automatically. If you are using Eclipse,
> sometimes Eclipse doesn't think you changed anything (e.g., perhaps
> you only touched the manifest), and so it will not re-install the APK.

I used to run into this, myself.  What has always worked for me is to
select the project name itself in the project explorer and then do a
refresh.  Then it'll build.  If that fails, I just do a clean (which
then does a fresh build)...but I don't recall having to do that since
I started just doing the refresh.  On the other hand, with my chemobrain,
radiation therapy, and brain surgery all conspiring against my memory
(and vision), I could be wrong about that last bit.  But one way or
another, one or both of those two will work (at least, in Helios).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  "The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works."

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Country code picker ?

2011-11-13 Thread Benjamin LE CUN
Hello guys,

I'm looking for a country code picker ( you know, the +xx before a phone 
number ).
I don't really wanna collect all the flags one by one and input the country 
codes one by one as well, so I'm pretty sure someone made a library or 
something similar but I couldn't find anything on google. Basically I need 
to be able to set the selected flag to the current country, and to let the 
user select something else if he wants.
Any suggestions ?

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: SDK 4, R15, where is the navigation button?

2011-11-13 Thread sblantipodi
Bump.

On Nov 9, 12:12 am, sblantipodi  wrote:
> I mean the three button we see in ICS, the back, the home and the
> recent.
>
> On Nov 8, 10:08 pm, Chris Stewart  wrote:
>
>
>
>
>
>
>
> > I suspect you mean the menu button.  I believe, and could be very wrong,
> > but if you're using Android 4.0 and on a display of 720p or better (e.g.,
> > Galaxy Nexus), you won't see that button.
>
> > --
> > Chris Stewarthttp://chriswstewart.com
>
> > On Tue, Nov 8, 2011 at 1:56 PM, Kumar Bibek  wrote:
> > > What do you mean by the navigation button?
>
> > > On Nov 8, 11:54 pm, sblantipodi  wrote:
> > > > bump
>
> > > > On Nov 1, 3:17 pm, sblantipodi  wrote:
>
> > > > > Bumping the question until I'll get an answer.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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] How to reload app without restarting emulator

2011-11-13 Thread Mark Murphy
This usually happens automatically. If you are using Eclipse,
sometimes Eclipse doesn't think you changed anything (e.g., perhaps
you only touched the manifest), and so it will not re-install the APK.
Normally, it will, and running ant debug install from the command line
always reinstalls the app.

On Sun, Nov 13, 2011 at 4:46 PM, Sunghun Park  wrote:
> Hi everyone.
>
> I've just started Android programming. I want to reload my app without
> restarting emulator. I've tried it, but it did not work. Someone I
> know says he always refresh app by just running the app again without
> any restarting of emulator. It is very annoying to restart emulator
> whenever I test. How can I get it? Please help me.
> Thank you in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

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


Re: [android-developers] SeekBar

2011-11-13 Thread Mark Murphy
On Sun, Nov 13, 2011 at 3:56 PM, New Developer  wrote:
> Thanks  anyway to change the styling back to the older version ?

Possibly, though I haven't looked to see how.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

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


Re: [android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-11-13 Thread Peter Nielson
Have you tried pc companion for the Active?

http://www.sonyericsson.com/cws/support/mobilephones/downloads/subject/pccompanion/xperia-active?cc=gb&lc=en
On Nov 13, 2011 3:45 PM, "Michel"  wrote:

> Thanks Peter!
>
> Anyone from Sony who could confirm whether these drivers are
> compatible with the XPeria Active model?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 reload app without restarting emulator

2011-11-13 Thread Sunghun Park
Hi everyone.

I've just started Android programming. I want to reload my app without
restarting emulator. I've tried it, but it did not work. Someone I
know says he always refresh app by just running the app again without
any restarting of emulator. It is very annoying to restart emulator
whenever I test. How can I get it? Please help me.
Thank you in advance.

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


[android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-11-13 Thread Michel
Thanks Peter!

Anyone from Sony who could confirm whether these drivers are
compatible with the XPeria Active model?

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


[android-developers] MediaMetadataRetriever does this work ?

2011-11-13 Thread New Developer

Called from a class that implements  ImageView

@Override protected void onDraw(Canvas canvas) {
Log.e("Video Media" , "on Draw Called");
super.onDraw(canvas);
Log.e("Media", "drawstep 2");
if (isPlaying)  loadFrame();
Log.e("Media", "drawstep 3");
}

private void loadFrame() {
if (isPlaying) {
frames.incrementProgressBy(11-playSpeed);
if (frame == duration)  {
isPlaying = false;
frame = 0;
frames.setProgress(0);
frames.setEnabled(true);
speed.setEnabled(true);

play.setBackgroundDrawable(getResources().getDrawable(R.drawable.play));

}
pict.recycle(); mBitmap.recycle();
pict = retrieve.getFrameAtTime(frame);
mBitmap  = Bitmap.createBitmap(pict, 0, 0, 
pict.getWidth(),pict.getHeight(), matrix, true);
Log.e("Media", "load Frame" + frame + "("+ (11-playSpeed) 
+")" + pict.getWidth() + " x " + pict.getHeight() );

Log.e("Media", "load Framestep 1   ");
super.setImageBitmap(mBitmap);
Log.e("Media", "load Framestep 2   ");
super.invalidate();
Log.e("Media", "load Framestep 3   ");
}
}


frame get inremented in steps of 10  , thus  pict = 
retrieve.getFrameAtTime(frame);  loads every 10 frames

mBitmap as you can see is set to update the super.setImageBitmap()

resulting in the following logcat

11-13 15:47:52.605: E/Video Media(4647): on Draw Called
11-13 15:47:52.615: E/Media(4647): drawstep 2
11-13 15:47:52.915: E/Media(4647): load Frame2450(10)
1280 x 720

11-13 15:47:52.915: E/Media(4647): load Framestep 1
11-13 15:47:52.915: E/Media(4647): load Framestep 2
11-13 15:47:52.915: E/Media(4647): load Framestep 3
11-13 15:47:52.915: E/Media(4647): drawstep 3

11-13 15:47:52.935: E/Video Media(4647): on Draw Called
11-13 15:47:52.945: E/Media(4647): drawstep 2
11-13 15:47:53.255: E/Media(4647): load Frame2460(10)
1280 x 720

11-13 15:47:53.255: E/Media(4647): load Framestep 1
11-13 15:47:53.255: E/Media(4647): load Framestep 2
11-13 15:47:53.255: E/Media(4647): load Framestep 3
11-13 15:47:53.255: E/Media(4647): drawstep 3

11-13 15:47:53.275: E/Video Media(4647): on Draw Called
11-13 15:47:53.285: E/Media(4647): drawstep 2
11-13 15:47:53.585: E/Media(4647): load Frame2470(10)
1280 x 720

11-13 15:47:53.585: E/Media(4647): load Framestep 1
11-13 15:47:53.585: E/Media(4647): load Framestep 2
11-13 15:47:53.585: E/Media(4647): load Framestep 3
11-13 15:47:53.585: E/Media(4647): drawstep 3

11-13 15:47:53.605: E/Video Media(4647): on Draw Called
11-13 15:47:53.615: E/Media(4647): drawstep 2
11-13 15:47:53.925: E/Media(4647): load Frame2480(10)
1280 x 720

11-13 15:47:53.925: E/Media(4647): load Framestep 1
11-13 15:47:53.925: E/Media(4647): load Framestep 2
11-13 15:47:53.925: E/Media(4647): load Framestep 3
11-13 15:47:53.925: E/Media(4647): drawstep 3

11-13 15:47:53.945: E/Video Media(4647): on Draw Called
11-13 15:47:53.955: E/Media(4647): drawstep 2
11-13 15:47:54.255: E/Media(4647): load Frame2490(10)
1280 x 720

11-13 15:47:54.255: E/Media(4647): load Framestep 1
11-13 15:47:54.255: E/Media(4647): load Framestep 2
11-13 15:47:54.255: E/Media(4647): load Framestep 3
11-13 15:47:54.255: E/Media(4647): drawstep 3

11-13 15:47:54.285: E/Video Media(4647): on Draw Called
11-13 15:47:54.295: E/Media(4647): drawstep 2
11-13 15:47:54.595: E/Media(4647): load Frame2500(10)
1280 x 720

11-13 15:47:54.595: E/Media(4647): load Framestep 1
11-13 15:47:54.595: E/Media(4647): load Framestep 2
11-13 15:47:54.595: E/Media(4647): load Framestep 3
11-13 15:47:54.595: E/Media(4647): drawstep 3

11-13 15:47:54.615: E/Video Media(4647): on Draw Called
11-13 15:47:54.625: E/Media(4647): drawstep 2
11-13 15:47:54.925: E/Media(4647): load Frame2510(10)
1280 x 720

11-13 15:47:54.925: E/Media(4647): load Framestep 1
11-13 15:47:54.925: E/Media(4647): load Framestep 2
11-13 15:47:54.925: E/Media(4647): load Framestep 3
11-13 15:47:54.925: E/Media(4647): drawstep 3

11-13 15:47:54.945: E/Video Media(4647): on Draw Called
11-13 15:47:54.955: E/Media(4647): drawstep 2
11-13 15:47:55.255: E/Media(4647): load Frame2520(10)
1280 x 720

11-13 15:47:55.255: E/Media(4647): load Framestep 1
11-13 15:47:55.265: E/Media(4647): load Framestep 2
11-13 15:47:55.265: E/Media(4647): load Framestep 3
11-13 15:47:55.265: E/Media(4647): drawstep 3

11-13 15:47:55.275: E/Video Media(4647): on Draw Called
11-13 15:47:55.285: E/Media(4647): drawstep 2
11-13 15:47:55.595: E/Media(4647): load Frame2530(10)
1280 

Re: [android-developers] Re: onCreate vs onStart

2011-11-13 Thread TreKing
Gotcha - thanks!

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

2011-11-13 Thread New Developer

On 11/13/2011 10:17 AM, Mark Murphy wrote:

On Sun, Nov 13, 2011 at 10:13 AM, New Developer  wrote:

Not sure if this is an Android 3.2 thing  or  because I am building the
layout pro grammatically

But I have a SeekBar  and the bar appears as a line with a green circle
NOT the standard  rectangle with orange fill   with rectangle slider.

Correct. They changed the styling of SeekBar with Android 3.x, just as
they changed the styling of Spinner and other widgets, as part of the
holographic theme.


Also  What do you use to create a slider button   ON<-->  OFF  ?

On Android 4.0, use Switch. Once the source code for that is released,
it may be possible to package up a version of Switch that can be used
on older versions of Android via a JAR.


Thanks  anyway to change the styling back to the older version ?

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

2011-11-13 Thread Kostya Vasilyev
onStart gets called during the initial startup. onRestart does not, it's 
strictly for the "went away and came back" case.


Using it instead onStart / onResume would depend on how the code is 
structured, the motivation being, to not repeat any time-consuming 
operations that were already done in onCreate during the normal activity 
startup sequence.


-- Kostya

14.11.2011 0:29, TreKing ?:
On Sun, Nov 13, 2011 at 10:18 AM, Kostya Vasilyev > wrote:


+ onRestart(): update the UI and data state (if needed) in case
the user switched away from the activity and came back.


Is there a benefit to this over just using onStart(), which will also 
be called in this scenario?

Just curious as I've never found a reason to use this particular method.

-
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 


--
Kostya Vasilyev

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

2011-11-13 Thread TreKing
On Sun, Nov 13, 2011 at 9:59 AM, jaggu  wrote:

> how to find gps in emulator with xml response
> please help me
>

Your question makes no sense.
http://www.catb.org/~esr/faqs/smart-questions.html

-
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: onCreate vs onStart

2011-11-13 Thread TreKing
On Sun, Nov 13, 2011 at 10:18 AM, Kostya Vasilyev wrote:

> + onRestart(): update the UI and data state (if needed) in case the user
> switched away from the activity and came back.


Is there a benefit to this over just using onStart(), which will also be
called in this scenario?
Just curious as I've never found a reason to use this particular method.

-
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: Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread Jim Graham
On Sun, Nov 13, 2011 at 11:27:48AM -0500, Mark Murphy wrote:
> On Sun, Nov 13, 2011 at 11:20 AM, kevin  wrote:
> > This is our feature requirement, I am sorry this is not a open
> > information.
> 
> The reason I ask is because it sounds a lot like spyware.

Whether corporate abuse or the cracker type, one way or another, IT IS
SPYWARE.  Personally, I always considered stuff like that to be an
insult, and disabled it ... errr, correction ... I made sure that it
suffered a convenient failure to function properly  ;-}

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  "The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works."

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: ANDROID TOAST ARRAYLIST NULL POINTER

2011-11-13 Thread Lew
Graham Bright wrote:
>
> Hi I get a null point exception [sic] with the following code can anyone 
> help ? 
>

I can point out a few things wrong here that probably contribute to it, but 
your code is badly formatted and incomplete, making it difficult for one to 
be sure one has the right answer.
 

> I want to go through my array items and print each item to the user 
> using a toast message
>

You don't actually do anything with arrays in the snippet you showed us. 

package gb.org; 
>

That should  be 'package org.gb;'.  You have the package parts in the wrong 
order.  Top-level domain (TLD) first, then second-level, and so on, is the 
correct order.  Read the coding conventions document on the Oracle site and 
the coding-convention section in the Java Language Specification (JLS). 
 Follow the conventions. 

> import java.util.Arrays; 

You don't use this class.  Why do you import it?

> import java.util.ArrayList; 
> import android.widget.Toast; 
> import android.app.Activity; 
> 
> 
> //I need an activity for my toast to work correctly 
> public class ExtractContacts extends Activity{ 
> 
> ArrayList items=new ArrayList(); 
 
Indentation?

> public void addToArray(String contactToBlock) { 
> 
> //add a number to items 
> contactToBlock.toString(); 

Why make this call and throw away the result?  Why make it at all, given 
that the variable already is of type 'String'?

> items.add(contactToBlock); 
> String Temp; 

Variable names should begin with a lower-case letter unless they reference 
a constant.

Variables should only be decarled if they're used.

> for (int i =0;i System.out.println(items.get(i)); 
> Toast.makeText(this, "Hello world " + items.get(i), 
> Toast.LENGTH_LONG).show(); 
> } 
> 
> 
> 
> } 
> 
> 
> } 

What's certain, the error occurs in the code you omitted from this 
woefully-incomplete snippet you posted.

What's likely, although for some weird reason you haven't told us any 
details about the exception you see (not even its correct name), such as 
the error message (COPIED and pasted, not paraphrased) or exactly *what* 
pointer, pray tell, is 'null'.  My money's on 'contactToBlock'.  I notice 
you put no protection in your method against that variable being 'null', 
and in fact go out of your way with that strange call to 'toString()' to 
make sure there's trouble if it is.

Follow this standard in Usenet code posts:
http://sscce.org/

That way you won't waste your time or anyone else's.

-- 
Lew

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

[android-developers] emulator sdcard setup to run my app

2011-11-13 Thread jaggu
[2011-11-13 22:50:47 - Wtsampler] Installation error:
INSTALL_FAILED_INSUFFICIENT_STORAGE
[2011-11-13 22:50:47 - Wtsampler] Please check logcat output for more details.
[2011-11-13 22:50:47 - Wtsampler] Launch canceled



hi i have got this error like when iam excuting  the my application
even i given 1024mb in avd manager ..
can any one tell me how to do this .even i cant connect the with usb
and android device in my pc ..
ecilpse is not detecing the device samsung s2

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


[android-developers] ANDROID TOAST ARRAYLIST NULL POINTER

2011-11-13 Thread Graham Bright
Hi I get a null point exception with the following code can anyone
help ?

I want to go through my array items and print each item to the user
using a toast message

Thanks
Graham

package gb.org;


import java.util.Arrays;
import java.util.ArrayList;
import android.widget.Toast;
import android.app.Activity;


//I need an activity for my toast to work correctly
public class ExtractContacts extends Activity{

 ArrayList items=new ArrayList();



public void addToArray(String contactToBlock) {

//add a number to items
contactToBlock.toString();
items.add(contactToBlock);
String Temp;
for (int i =0;ihttp://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread Mark Murphy
On Sun, Nov 13, 2011 at 11:20 AM, kevin  wrote:
> This is our feature requirement, I am sorry this is not a open
> information.

The reason I ask is because it sounds a lot like spyware.

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

Android 3.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread kevin
This is our feature requirement, I am sorry this is not a open
information.

Kevin

On 11月14日, 上午12时01分, Mark Murphy  wrote:
> Why do you need this, and why would users want this?
>
>
>
>
>
>
>
>
>
> On Sun, Nov 13, 2011 at 10:36 AM, kevin  wrote:
> > Hi All,
>
> > I am working for a phone manufacture which has some Android phone
> > products. There is a feature require us to capture keyboard input in
> > the browser. We can install the default browser comes with Android
> > system or other third party open source browser, either way we want to
> > utilize a MATURE browser and don't want to develop our own.
>
> > Do you guys know which mature browser allow us to install plugin to
> > capture keyboard input?
>
> > Thanks a lot,
> > Kevin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.2 Programming Books:http://commonsware.com/books

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


Re: [android-developers] Re: onCreate vs onStart

2011-11-13 Thread Kostya Vasilyev
+ onRestart(): update the UI and data state (if needed) in case the user
switched away from the activity and came back.

2011/11/13 Streets Of Boston 

> What Mark said below :)
>
> And note that when the onStart is called, the activity becomes visible.
> When the onResume is called, the activity is about to receive focus
> (becomes for target user interaction).
>
> E.g. when a dialog-style activity (an activity with a partial transparent
> background) is put on top of another activity, that other activity's
> onPause is called (it's losing user-focus). It's onStop is not called (it
> is still (partially) visible).
>
> This is what I usually do:
> onCreate: Inflate layout; assign child-views from the inflated layout to
> my activity's fields, register listeners, etc.; maybe assign/setup stuff
> that would be valid during the entire lifecycle of an activity; assign data
> to the Views (from the Intent).
> onNewIntent (if needed): assign data to the Views (from the Intent).
> onStart: Restart stuff that needs to be stopped in the onStop.
> onResume: Restart stuff that needs to be stopped in the onPause.
> onPause: Stop stuff that would not have any visual effect on the activity
> when it is stopping (note that activity could still be partially visible).
> onStop: Stop all expensive visual stuff.
> onDestroy: Clean up all that is servicing this activity.
>
> As you can see, there is a lot of mentioning of 'stuff'. It really depends
> on your app and your activities.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Two active surfaceViews on top of one another

2011-11-13 Thread Streets Of Boston
I've been able to put regulars views on top of a Surface view. That's easy. 
Just create a layout with that has many views with one Surface view.
However, putting multiple surface views in one Window (one activity), e.g. 
a video view on top of an opengl view... no success. The seconds surface 
view just doesn't show up.
I think this is now possible, however, in api-level 14 with TextureView.

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

2011-11-13 Thread Streets Of Boston
What Mark said below :)

And note that when the onStart is called, the activity becomes visible. 
When the onResume is called, the activity is about to receive focus 
(becomes for target user interaction).

E.g. when a dialog-style activity (an activity with a partial transparent 
background) is put on top of another activity, that other activity's 
onPause is called (it's losing user-focus). It's onStop is not called (it 
is still (partially) visible). 

This is what I usually do:
onCreate: Inflate layout; assign child-views from the inflated layout to my 
activity's fields, register listeners, etc.; maybe assign/setup stuff that 
would be valid during the entire lifecycle of an activity; assign data to 
the Views (from the Intent).
onNewIntent (if needed): assign data to the Views (from the Intent).
onStart: Restart stuff that needs to be stopped in the onStop.
onResume: Restart stuff that needs to be stopped in the onPause.
onPause: Stop stuff that would not have any visual effect on the activity 
when it is stopping (note that activity could still be partially visible).
onStop: Stop all expensive visual stuff.
onDestroy: Clean up all that is servicing this activity.

As you can see, there is a lot of mentioning of 'stuff'. It really depends 
on your app and your activities.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread Mark Murphy
Why do you need this, and why would users want this?

On Sun, Nov 13, 2011 at 10:36 AM, kevin  wrote:
> Hi All,
>
> I am working for a phone manufacture which has some Android phone
> products. There is a feature require us to capture keyboard input in
> the browser. We can install the default browser comes with Android
> system or other third party open source browser, either way we want to
> utilize a MATURE browser and don't want to develop our own.
>
> Do you guys know which mature browser allow us to install plugin to
> capture keyboard input?
>
> Thanks a lot,
> Kevin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 3.2 Programming Books: http://commonsware.com/books

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


[android-developers] gps

2011-11-13 Thread jaggu
how to find gps in emulator with xml response
please help me

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


[android-developers] not detecting device my ecilpse

2011-11-13 Thread jaggu
my eclipse not detecting device for debugging mode
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


[android-developers] Browser plugin to capture all keyboard input in browser?

2011-11-13 Thread kevin
Hi All,

I am working for a phone manufacture which has some Android phone
products. There is a feature require us to capture keyboard input in
the browser. We can install the default browser comes with Android
system or other third party open source browser, either way we want to
utilize a MATURE browser and don't want to develop our own.

Do you guys know which mature browser allow us to install plugin to
capture keyboard input?

Thanks a lot,
Kevin

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

2011-11-13 Thread Mark Murphy
On Sun, Nov 13, 2011 at 10:13 AM, New Developer  wrote:
> Not sure if this is an Android 3.2 thing  or  because I am building the
> layout pro grammatically
>
> But I have a SeekBar  and the bar appears as a line with a green circle
> NOT the standard  rectangle with orange fill   with rectangle slider.

Correct. They changed the styling of SeekBar with Android 3.x, just as
they changed the styling of Spinner and other widgets, as part of the
holographic theme.

> Also  What do you use to create a slider button   ON <--> OFF  ?

On Android 4.0, use Switch. Once the source code for that is released,
it may be possible to package up a version of Switch that can be used
on older versions of Android via a JAR.

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

Android 3.2 Programming Books: http://commonsware.com/books

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


[android-developers] SeekBar

2011-11-13 Thread New Developer
Not sure if this is an Android 3.2 thing  or  because I am building the 
layout pro grammatically


But I have a SeekBar  and the bar appears as a line with a green circle
NOT the standard  rectangle with orange fill   with rectangle slider.

Also  What do you use to create a slider button   ON <--> OFF  ?

Thanks in advance

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

[android-developers] Two active surfaceViews on top of one another

2011-11-13 Thread Rajeev Ranganathan
Hello everyone,
We are developing a video teleconferencing Solution,where the camera
preview(a Surface view) should come on top
of another surface view which shows the other peer in
conversation.So,I just wanted to know,if it is possible to
render a video content on a surface view ,on top of which,there is
another surface view.I tried this on GB 2.3.4, the camera preview
seems to be very much visible.I can also hear the streamed audio but
in place of video,A WHITE screen is getting displayed and the phone
freezes after sometime.Right now,we are testing this on Nexus
S(Crespo).
Thanks in advance... :)

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


[android-developers] Threads in Android (NetworkOnMainThreadException with Javamail) acting very strange

2011-11-13 Thread Stelios
I am a beginner in Android platform and i have encountering a serious
problem. I want to fetch emails from gmail and therefore i have
created a class that does that. However when i run my class in android
NetworkOnMainThreadException. So i have created new Thread with a new
Runnable as below :

public void onClick(View v) {
  new Thread(new Runnable() {
public void run() {
  FetchEmails e = new FetchEmails();
}
  }).start();
}

It worked fine but then i can't seem to have access to e.getMessage in
order to get the actual email. Having this on mind i have implement
Runnable to my FetchEMails class and done all the fetch code in run()
which i have overidden. The last piece of code in run() is setting a
variable to 'true'. Then in my Activity class i have instantiate the
class and i have done this : new Thread(e).start();. Below i have a
while loop to check wether the class has finished to the end of run()
method (by checking if the variable is true). So now i have created my
new theard which does not intefere with the UI and when the code is
finished i want to get the message. But it seems that i still get the
NetworkOnMainThreadException error. Any help with that is apprecieted.
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] Augmented reality: using camera feed as texture

2011-11-13 Thread Nickw
Hi,

Posted on this a while back but I've been doing some more work on it
since. The aim of the augmented reality app I'm developing is to
overlay geographical data (roads, hiking trails) on a camera feed for
navigation. Following other examples on the web, I've decided to use
the raw camera feed as an OpenGL texture and overlay geographic data
on top of the texture within a GLSurfaceView. The feed will be black
and white for the moment.

Only problem is, it seems to be impossible to capture camera data
without creating a SurfaceView to show the preview. However, since
you're not supposed to layer SurfaceViews on top of each other, this
appears to mean that I presumably have to create an invisible
SurfaceView just to be able to capture camera data. The other
solutions to this I've seen on the web (nhenze.net and AndAR) seem to
layer SurfaceViews on top of each other.

Is it therefore true that (prior to Android 3.0) there is simply no
elegant solution to the problem? The only solutions people have come
up with are either:
a) overlay two surfaceviews on top of each other (not guaranteed to
work);
b) create a "dummy" SurfaceView for the preview just to get
PreviewCallback working; or
c) reimplement GLSurfaceView from scratch to incorporate a camera
feed?

Thanks,
Nick
Thanks,
Nick

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

2011-11-13 Thread Bishan
thanks  srinivas.

On 11/11/11, venkata srinivas namburi  wrote:
> Hi Bishan,
>
> I guess there is sample application using fragments,which walks you through
> the swipe gesture in tabs( FragmentTabsPager.java).
>
> On Fri, Nov 11, 2011 at 3:09 PM, Bishan  wrote:
>
>> How to add swipe gesturing to switch between tabs in android ?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Thanks and Regards,
> Srinivas.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Sharekit for Android yet?

2011-11-13 Thread Mark Murphy
On Sun, Nov 13, 2011 at 8:30 AM, bob  wrote:
> Anyone know if there is something like Sharekit for Android yet?

The closest Android equivalent is ACTION_SEND:

http://www.openintents.org/en/node/121

Whatever applications are installed and configured that can share your
content will appear in the chooser automatically.

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

Android 3.2 Programming Books: http://commonsware.com/books

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


[android-developers] Sharekit for Android yet?

2011-11-13 Thread bob
Anyone know if there is something like Sharekit for Android yet?

I'm in a major time crunch and could really use this.  I need
something really legit though - can't afford to waste time with some
buggy rubbish.

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

2011-11-13 Thread Narendra Singh Rathore
Thank you all...
 NSR

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

2011-11-13 Thread Mark Murphy
Your Location will be null most of the time, given this code. If your
first getLastKnownLocation() returns null, you can then call
requestLocationUpdates() (as you are), but then you *still* will not
have a location until your GeoUpdateHandler is called with
onLocationChanged(). Locations are not immediately available just
because your request updates -- it takes time for the location
subsystems to actually figure out where you are.

On Sat, Nov 12, 2011 at 9:45 PM, Siva Prakash  wrote:
> Hi
> I'm trying to take the current location using GPS or Network which ever is
> connected. The following code works fine to me if my mobile connected with
> WiFi or GPS turned ON. But if both of them turned ON/Connected then it
> doesnt give me any result
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000,
> 0, new GeoUpdateHandler());
> Location location = null;
> location = locationManager.getLastKnownLocation(provider);
> if (location == null)
> {
> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
> 200, 0, new GeoUpdateHandler());
> location = locationManager.getLastKnownLocation(provider);
> }
>
> Always Im getting "location" NULL if both off them connected.
> What is wrong here ?
> 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



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

Android 3.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Questions about SDK and SDK update

2011-11-13 Thread Mark Murphy
On Sun, Nov 13, 2011 at 5:21 AM, Pedro Teixeira
 wrote:
> I started programming 2 years ago and I was using Google APIs -
> Android 1.6
> I get that the SDK has evolved much more ever since.

No, the Android 1.6 SDK is probably the same as the Android 1.6 SDK
was back when you installed it. However, since then, there have been
many newer versions of Android, and there have been improvements in
the build tools.

> Can I update the SDK?

Perhaps not, but you can upgrade to the latest tools via the Android
SDK and AVD Manager, then see what new Android versions have SDKs that
you wish to install (e.g., to test your app on emulators for newer
Android versions).

> Is it possible to do it from Eclipe?

You would upgrade to the latest tools via the Android SDK and AVD
Manager, which is available both inside and outside of Eclipse.

> I also would like to know if it will affect the application I was
> building under 1.6 and if it will work on an old HTC dev model.

http://developer.android.com/guide/appendix/api-levels.html

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

Android 3.2 Programming Books: http://commonsware.com/books

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


[android-developers] Questions about SDK and SDK update

2011-11-13 Thread Pedro Teixeira
Hello.

I have a probably silly question but programming have never been my
strongest area..definitely.

I started programming 2 years ago and I was using Google APIs -
Android 1.6
I get that the SDK has evolved much more ever since.

Can I update the SDK? Is it possible to do it from Eclipe?

I also would like to know if it will affect the application I was
building under 1.6 and if it will work on an old HTC dev model.

Thank you very much for your time and sorry for the beginners question.

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

2011-11-13 Thread chengdong diao
see the http://source.android.com   dowload ,
the url has changed

2011/11/11 srinivasan shanmugam 

> Hi,
>
> As specified in the
> i.MX Android R9.4 User Guide
>
> in section
> 2. Build Android for i.MX
> 2.1 Get Android Source Code (Android/Kernel/U-Boot)
>
> While getting the Android source code from Google repo, wen i was
> executing the  following step:
>
> ubuntu@ubuntu-laptop:~/myandroid$ ./repo init -u
> git://android.git.kernel.org/platform/manifest.git -b android-2.2.1_r1
>
>
>
> I was facing the below problem while downloading the android-2.2.1_r1
> in the terminal window  of ubuntu
>
>
> Getting manifest ...
>   from git://android.git.kernel.org/platform/manifest.git
> android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> fatal: cannot obtain manifest git://
> android.git.kernel.org/platform/manifest.git
> ubuntu@ubuntu-laptop:~/myandroid$
>
>
>
> Could ne body pls kindly do the needful in resolving the above issue
> so that i can proceed further
>
>
>
> ne help would be greatly appreciated
>
>
>
> Awaiting for your replies
>
> Thanks!
>
> Srinivasan
>
> mail id:srinivasan@gmail.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

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