Re: [android-developers] Re: Debugging the Activity life-cycle?

2013-03-29 Thread Kristopher Micinski
You might try asking the package manager if the intent you're sending
will have any receivers, also..

Kris

On Fri, Mar 29, 2013 at 11:16 PM, Kristopher Micinski
 wrote:
>>
>> In that particular example the returning Activity was standard but the
>> Activity invoking it was singleInstance.   I knew the returning Activity had
>> to be standard but I only found out that the caller couldn't be
>> singleInstance by time-consuming trial-and-error.I've never seen it
>> documented.When I made the caller activity also standard it worked.
>> Which illustrates my question:   which is whether there's a way to
>> systematically find out from Android what happened.   Is any of this stuff
>> instrumented so we can see why something did or did not happen?
>>
>
> No.
>
> But you should see something in the logcat that shows an intent was
> fired.  Do you not see that?  The system does not "drop intents
> randomly".  Can you point out concrete cases where it has without
> sufficient error messages, because those would be bugs..
>
>> I'm currently trying to debug a case where I can ONLY start an activity if
>> it's singleInstance.   I don't know why and lots of people on StackOverflow
>> have made many guesses and suggestions, none of which (as of this writing)
>> have worked.Because we're all fumbling in the dark since we don't know
>> what Android is doing behind the scenes.   I want to know if there's a way
>> to find out.
>
> There's not logged output from the Android internals that give an
> account of why your intent is "dropped" but I am more confused as to
> why this would be happening in the first place.  In the past, whenever
> I've heard this happening, it's because there's always been something
> like a misspelling of package name, or something's been signed
> incorrectly..
>
> Kris

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




Re: [android-developers] Re: Debugging the Activity life-cycle?

2013-03-29 Thread Kristopher Micinski
>
> In that particular example the returning Activity was standard but the
> Activity invoking it was singleInstance.   I knew the returning Activity had
> to be standard but I only found out that the caller couldn't be
> singleInstance by time-consuming trial-and-error.I've never seen it
> documented.When I made the caller activity also standard it worked.
> Which illustrates my question:   which is whether there's a way to
> systematically find out from Android what happened.   Is any of this stuff
> instrumented so we can see why something did or did not happen?
>

No.

But you should see something in the logcat that shows an intent was
fired.  Do you not see that?  The system does not "drop intents
randomly".  Can you point out concrete cases where it has without
sufficient error messages, because those would be bugs..

> I'm currently trying to debug a case where I can ONLY start an activity if
> it's singleInstance.   I don't know why and lots of people on StackOverflow
> have made many guesses and suggestions, none of which (as of this writing)
> have worked.Because we're all fumbling in the dark since we don't know
> what Android is doing behind the scenes.   I want to know if there's a way
> to find out.

There's not logged output from the Android internals that give an
account of why your intent is "dropped" but I am more confused as to
why this would be happening in the first place.  In the past, whenever
I've heard this happening, it's because there's always been something
like a misspelling of package name, or something's been signed
incorrectly..

Kris

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




[android-developers] Re: Why aren't there OpenGL ES 2.0 tutorials for Android on Youtube?

2013-03-29 Thread Lew
tom_mai78101 wrote:

> I have seen it, but it doesn't answer my question. Why aren't  OpenGL ES 
> 2.0 video tutorials available on the net?


Why aren't there tutorials on YouTube regarding any subject not represented 
on YouTube?

It's a silly question.

I think Spooky has the best answer, which I'll paraphrase as "because no 
one has made one 
and uploaded it."

Or maybe he's right and your search wasn't correct.

Or maybe the goons at Censors 'R' Us have had them all deleted.

Or maybe they all violated copyright and were taken down under the DMCA.

Or maybe all the video tutorials are proprietary and you have to pay to see 
them.

Or maybe there's a filter preventing you, personally and specifically, from 
finding them 
while the rest of us enjoy them with white wine and paté de fois gras.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Why aren't there OpenGL ES 2.0 tutorials for Android on Youtube?

2013-03-29 Thread Jim Graham
On Fri, Mar 29, 2013 at 12:36:32PM -0700, tom_mai78101 wrote:
> I have seen it, but it doesn't answer my question. Why aren't  OpenGL
> ES 2.0 video tutorials available on the net?

Perhaps nobody's made one?  Or you just didn't find the right search
(I've run into this plenty of times, myself).  If you can't find one,
maybe you should pay someone to do one (seriously).  If not, I'm sure
you'll find plenty of books on the subject.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

   In light of DHS's recommendation to defend yourself
against armed intruders with scissors, I'm giving
 my deer rifle a new nickname: Scissors.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread plnelson


On Friday, March 29, 2013 7:04:39 PM UTC-4, Streets Of Boston wrote:
>
> I've never seen this. If it fails to start, i get a logcat message and an 
> exception is thrown (and you are catching that).


*My bad* -  it turned out it did have a filter on.  (thanks for saying you 
never saw that - it made me look twice!)   With it off  I do get 2 logcat 
messages about this activity  (I've "'d out some proprietary 
content).   I'm not sure what these mean . . . 


03-29 19:21:04.357: I/ActivityManager(119):   Force finishing activity 
HistoryRecord{40698f18 com..remote/.DGraphActivity}


03-29 19:23:56.454: I/ActivityManager(119): Starting: Intent { 
flg=0x400 cmp=com..remote/.DGraphActivity (has extras) } from pid 
13727

What was interesting about this is, as I mentioned, my program has lots of 
Activities and in all the other ones the "Starting: Intent" was followed 
immediately by a "trying to launch..." the Activity in question.   But 
DGraphActivity had no "trying to launch"!   So that seems to be a clue but 
I don't know of what.


Have you tried to set the Intent.FLAG_ACTIVITY_NEW_TASK flag when starting 
> the activity?
>

No I haven't -  thought that just places it outside the others on the 
history stack  -  why do I want to do that? 

(PS - where on the Streets of Boston are you -  I'm on the streets of 
Chelmsford).


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread Streets Of Boston
Also, change the catching of your try - catch block, so that you see more 
of the exception being thrown when the activity fails to start:

   Log.*e*("Commands", "failed to start DGraphActivity"*, e*);

This would allow you to see more info of what may go wrong.

On Friday, March 29, 2013 7:04:39 PM UTC-4, Streets Of Boston wrote:
>
> I've never seen this. If it fails to start, i get a logcat message and an 
> exception is thrown (and you are catching that).
> Have you tried to set the Intent.FLAG_ACTIVITY_NEW_TASK flag when starting 
> the activity?
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread Streets Of Boston
I've never seen this. If it fails to start, i get a logcat message and an 
exception is thrown (and you are catching that).
Have you tried to set the Intent.FLAG_ACTIVITY_NEW_TASK flag when starting 
the activity?

On Friday, March 29, 2013 6:40:44 PM UTC-4, plnelson wrote:
>
>
>
> On Friday, March 29, 2013 5:57:46 PM UTC-4, Streets Of Boston wrote:
>>
>> Look at your logcat and see why your activity can't be started. Could be 
>> as simple as a typo in your manifest.
>
>
> I only see things in LogCat about  DGraphActivity when it *does* start 
> (ie., when its launchMode is "singleInstance").Are you saying there 
> should be a message that it failed to start (or failed to be created)?   I 
> run Logcat with no filters and in verbose mode so I think I'm seeing 
> everything there is.
>
> The manifest is exactly as it's shown - the *only* difference between the 
> successful case and the failing case is the launchMode, so if there was a 
> typo it would have to be unique to that line.Furthermore it only works 
> for singleInstance, it fails for standard, singleTop and singleTask, so if 
> there was a typo it would have to be in all three of those but not in the 
> singleInstance case.
>
>
> RichardC wrote 
>   Technically it needs a "." here:
>
>   
> I'm skeptical.   My program has about 20 Activities and none of them have 
> .'s in front of the name and I've written a lot of other Android programs 
> without .'s.   And this works fine without the "." if I launch it in 
> singleInstance.   From time to time I have heard people mention "."'s 
> in the Manifest so I don't know if that used to be a requirement in the 
> early days or what.   Just for yucks I tried putting the "." in and it 
> didn't 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread RichardC


On Friday, March 29, 2013 10:40:44 PM UTC, plnelson wrote:
>
>
>
>
> RichardC wrote 
>   Technically it needs a "." here:
>
>   
> I'm skeptical.   My program has about 20 Activities and none of them have 
> .'s in front of the name and I've written a lot of other Android programs 
> without .'s.   And this works fine without the "." if I launch it in 
> singleInstance.   From time to time I have heard people mention "."'s 
> in the Manifest so I don't know if that used to be a requirement in the 
> early days or what.   Just for yucks I tried putting the "." in and it 
> didn't help. 
>

I works for me as well, that's why I wrote "technically".  It's just not 
documented to work, see:
http://developer.android.com/guide/topics/manifest/activity-element.html#nm

and as you were having trouble I though it might 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread plnelson


On Friday, March 29, 2013 5:57:46 PM UTC-4, Streets Of Boston wrote:
>
> Look at your logcat and see why your activity can't be started. Could be 
> as simple as a typo in your manifest.


I only see things in LogCat about  DGraphActivity when it *does* start 
(ie., when its launchMode is "singleInstance").Are you saying there 
should be a message that it failed to start (or failed to be created)?   I 
run Logcat with no filters and in verbose mode so I think I'm seeing 
everything there is.

The manifest is exactly as it's shown - the *only* difference between the 
successful case and the failing case is the launchMode, so if there was a 
typo it would have to be unique to that line.Furthermore it only works 
for singleInstance, it fails for standard, singleTop and singleTask, so if 
there was a typo it would have to be in all three of those but not in the 
singleInstance case.


RichardC wrote 
  Technically it needs a "." here:

  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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Debugging the Activity life-cycle?

2013-03-29 Thread plnelson
On Friday, March 29, 2013 5:56:18 PM UTC-4, Streets Of Boston wrote:
>
> Look at your logcat. It tells you when an activity hasn't started. 


When an activity fails to start all I see in LogCat is .. *nothing* related 
to that Activity.   If the Activity is created or started (or paused, etc) *
then* I see it in Logcat.   Are you saying that I should see a message 
saying that the Activity failed to start or be created?   I run LogCat in 
verbose mode with no filters on.

 

> For the onActivityResult getting called instantly: Your returning activity 
> was probably started with a singleTask or singleInstance. This means that 
> onActivityResult was called immediately after your activity was started 
> (and not upon its return). Use default/standard instead.
>

In that particular example the returning Activity was standard but the 
Activity *invoking* it was singleInstance.   I knew the returning Activity 
had to be standard but I only found out that the caller couldn't be 
singleInstance by time-consuming trial-and-error.I've never seen it 
documented.When I made the caller activity also standard it 
worked.  Which illustrates my question:   which is whether there's a 
way to *systematically* find out from Android what happened.   Is any of 
this stuff instrumented so we can see why something did or did not happen?  

I'm currently trying to debug a case where I can ONLY start an activity if 
it's singleInstance.   I don't know why and lots of people on StackOverflow 
have made many guesses and suggestions, none of which (as of this writing) 
have worked.Because we're all fumbling in the dark since we don't know 
what Android is doing behind the scenes.   I want to know if there's a way 
to find out.  

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread Streets Of Boston
Look at your logcat and see why your activity can't be started. Could be as 
simple as a typo in your manifest.

On Friday, March 29, 2013 4:02:04 PM UTC-4, plnelson wrote:
>
> This question has (so far)  stumped them on Stack Overflow. . . . 
>
> I'm trying to launch an Activity which launches *perfectly fine* when its 
> launchMode is set to *singleInstance*. When I change it to *standard*nothing 
> happens; it never gets to onCreate (or onStart or onResume, or 
> anyplace in the target Activity - I've overridden all the lifycycle events 
> and set breakpoints)
>
> if (DGraphActivity.bitmap != null) {
> Intent intent = new Intent(ctx, DGraphActivity.class);
> intent.putExtra("Buttons", sButtonParam);
> try {
> ctx.startActivity(intent);
> }
> catch (Exception e)  {
> Log.d("Commands", "failed to start DGraphActivity");   
> }}   
>
> in the manifest . . . 
>
>  android:screenOrientation="portrait"
> android:launchMode="standard">
>
> I need the DGraphActivity launchMode to be *standard* because it will be 
> launching another activity and using onActivityResult to collect the 
> response and onActivityResult doesn't work with activites launched in 
> singleInstance launchMode. 
>
> I have lots of other Activities with *standard* launchMode that launch 
> perfectly well, I can't figure out what's different about this one. 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Debugging the Activity life-cycle?

2013-03-29 Thread Streets Of Boston
Look at your logcat. It tells you when an activity hasn't started. 
For the onActivityResult getting called instantly: Your returning activity 
was probably started with a singleTask or singleInstance. This means that 
onActivityResult was called immediately after your activity was started 
(and not upon its return). Use default/standard instead.

On Friday, March 29, 2013 4:16:53 PM UTC-4, plnelson wrote:
>
> Over many projects I've run into various problems with Activities doing 
> mysterious things.   I've had them not start; I've had onActivityResult not 
> get called when I'm trying to send parameters back from an Activity; I've 
> had onActivityResult get called *instantly* before the other Activity 
> even got created.Googling the web I see that lots of people have these 
> problems and often these either stump people on StackOverflow or result in 
> random "superstitious" fixes with no obvious basis - even if they sometimes 
> seem to work.
>  
> So* My Question*:  is there any *systematic* way to debug Activity 
> life-cycle problems - are there log files, traces, dumps, or anything that 
> programmers can use to figure out why something is happening.If I call 
> "startActivity" and the activity is never created or started, is there 
> anyplace Android tells us why?   If onActivityResult is called prematurely 
> (i.e., before the Activity that's supposed to return the result even 
> exists) how can we find out why it was called? Are there any hints of 
> tricks to interpreting the call stack that can shed light on that?
>
> Thanks in advance for any tips or tricks.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] refresh fragment on swipe?

2013-03-29 Thread xrd
I'm trying to get a fragment working such that when the fragment is brought 
into view it refreshes the content in the view. 

I thought that I could implement OnPageChangeListener and 
override onPageSelected but my breakpoint is never hit. Is there a better 
way? Or, perhaps this means I am doing things wrong somewhere in my code?

I've also tried using onResume(), but this does not get called each time 
the fragment is displayed, which is what I need.

Any suggestions?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity won't start when launchmode is standard

2013-03-29 Thread RichardC
Technically it needs a "." here:


> This question has (so far)  stumped them on Stack Overflow. . . . 
>
> I'm trying to launch an Activity which launches *perfectly fine* when its 
> launchMode is set to *singleInstance*. When I change it to *standard*nothing 
> happens; it never gets to onCreate (or onStart or onResume, or 
> anyplace in the target Activity - I've overridden all the lifycycle events 
> and set breakpoints)
>
> if (DGraphActivity.bitmap != null) {
> Intent intent = new Intent(ctx, DGraphActivity.class);
> intent.putExtra("Buttons", sButtonParam);
> try {
> ctx.startActivity(intent);
> }
> catch (Exception e)  {
> Log.d("Commands", "failed to start DGraphActivity");   
> }}   
>
> in the manifest . . . 
>
>  android:screenOrientation="portrait"
> android:launchMode="standard">
>
> I need the DGraphActivity launchMode to be *standard* because it will be 
> launching another activity and using onActivityResult to collect the 
> response and onActivityResult doesn't work with activites launched in 
> singleInstance launchMode. 
>
> I have lots of other Activities with *standard* launchMode that launch 
> perfectly well, I can't figure out what's different about this one. 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Getting a message from another app launched with an Intent

2013-03-29 Thread Tobiah

On 03/29/2013 01:52 PM, RichardC wrote:

Does the other App call setResult() ?


Yeah, It's shown in the code below.

Thanks,

Tobiah


http://developer.android.com/reference/android/app/Activity.html#setResult(int)


On Friday, March 29, 2013 8:04:27 PM UTC, Tobiah wrote:

I'm launching another app from my app like this:

Intent LaunchIntent = 
getPackageManager().getLaunchIntentForPackage("com.other.appname");
startActivityForResult(LaunchIntent, EXPOSMART_MESSAGE);

Then I set a result from the launched app:

Intent response = new Intent();
response.putExtra("exit_flag", "y");
setResult(RESULT_OK, response);
finish();

I was expecting onActivityResult() to get called in the original
app, but it never does.  Is there something different about launching
other apps rather than just new activities in the same app?

Thanks!

Toby

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Getting a message from another app launched with an Intent

2013-03-29 Thread RichardC
Does the other App call setResult() ?
http://developer.android.com/reference/android/app/Activity.html#setResult(int)


On Friday, March 29, 2013 8:04:27 PM UTC, Tobiah wrote:
>
> I'm launching another app from my app like this: 
>
> Intent LaunchIntent = 
> getPackageManager().getLaunchIntentForPackage("com.other.appname"); 
> startActivityForResult(LaunchIntent, EXPOSMART_MESSAGE); 
>
> Then I set a result from the launched app: 
>
> Intent response = new Intent(); 
> response.putExtra("exit_flag", "y"); 
> setResult(RESULT_OK, response); 
> finish(); 
>
> I was expecting onActivityResult() to get called in the original 
> app, but it never does.  Is there something different about launching 
> other apps rather than just new activities in the same app? 
>
> Thanks! 
>
> Toby 
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Debugging the Activity life-cycle?

2013-03-29 Thread plnelson
Over many projects I've run into various problems with Activities doing 
mysterious things.   I've had them not start; I've had onActivityResult not 
get called when I'm trying to send parameters back from an Activity; I've 
had onActivityResult get called *instantly* before the other Activity even 
got created.Googling the web I see that lots of people have these 
problems and often these either stump people on StackOverflow or result in 
random "superstitious" fixes with no obvious basis - even if they sometimes 
seem to work.
 
So* My Question*:  is there any *systematic* way to debug Activity 
life-cycle problems - are there log files, traces, dumps, or anything that 
programmers can use to figure out why something is happening.If I call 
"startActivity" and the activity is never created or started, is there 
anyplace Android tells us why?   If onActivityResult is called prematurely 
(i.e., before the Activity that's supposed to return the result even 
exists) how can we find out why it was called? Are there any hints of 
tricks to interpreting the call stack that can shed light on that?

Thanks in advance for any tips or tricks.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Getting a message from another app launched with an Intent

2013-03-29 Thread Tobiah

I'm launching another app from my app like this:

Intent LaunchIntent = 
getPackageManager().getLaunchIntentForPackage("com.other.appname");
startActivityForResult(LaunchIntent, EXPOSMART_MESSAGE);

Then I set a result from the launched app:

Intent response = new Intent();
response.putExtra("exit_flag", "y");
setResult(RESULT_OK, response);
finish();

I was expecting onActivityResult() to get called in the original
app, but it never does.  Is there something different about launching
other apps rather than just new activities in the same app?

Thanks!

Toby

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Activity won't start when launchmode is standard

2013-03-29 Thread plnelson
This question has (so far)  stumped them on Stack Overflow. . . . 

I'm trying to launch an Activity which launches *perfectly fine* when its 
launchMode is set to *singleInstance*. When I change it to *standard*nothing 
happens; it never gets to onCreate (or onStart or onResume, or 
anyplace in the target Activity - I've overridden all the lifycycle events 
and set breakpoints)

if (DGraphActivity.bitmap != null) {
Intent intent = new Intent(ctx, DGraphActivity.class);
intent.putExtra("Buttons", sButtonParam);
try {
ctx.startActivity(intent);
}
catch (Exception e)  {
Log.d("Commands", "failed to start DGraphActivity");   
}}   

in the manifest . . . 



I need the DGraphActivity launchMode to be *standard* because it will be 
launching another activity and using onActivityResult to collect the 
response and onActivityResult doesn't work with activites launched in 
singleInstance launchMode. 

I have lots of other Activities with *standard* launchMode that launch 
perfectly well, I can't figure out what's different about this one. 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Why aren't there OpenGL ES 2.0 tutorials for Android on Youtube?

2013-03-29 Thread tom_mai78101
I have seen it, but it doesn't answer my question. Why aren't  OpenGL ES 2.0 
video tutorials available on the 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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: can't access https://code.google.com/p/broadcom-ble/

2013-03-29 Thread bob
 

Maybe try the Bluetooth HDP sample instead?




I believe it is Low Energy.  It is for a 'Health Device Profile'… like 
talking to a heart rate monitor.


Thanks.



On Thursday, March 28, 2013 3:41:13 PM UTC-5, Heidi Zhou Nolan wrote:
>
> Hello! 
>
> I like to try Open Bluetooth Low Energy API (
> http://android-btle.github.com/framework/)  in order to work with 
> Bluetooth 4.0. 
>
> However, I can't download the library from 
> https://code.google.com/p/broadcom-ble/. I got permission denied error. 
>
> Any idea what to do in order to get the library?
>
> Thank you in advance. 
>
> Heidi
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Deadlock running app on Nexus 10, Android 4.2.2

2013-03-29 Thread bergstr
ok, I have changed the code such that the frequent calls into native code 
(in method validateKey) don't happen any longer. They were unneeded anyway, 
as the internal cleanup thread can safely assume that the keys are valid. 
With this change, I can no longer reproduce this issue.

However, I am still left with the impression that Android may at any point 
suspend background threads in favor of the UI thread regardless of their 
state and whether they hold locks. If this is true, it imposes very hard 
requirements on the programmer to avoid cases where lock contention between 
the UI thread and a background thread can lead to a deadlock, as in my 
case. At the very least, I would expect this to be documented somewhere, 
preferably in a prominent place..

chris

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
thanks for everyone here.. ^_^

now its work on my tablet..
i have change my code like these  http://pastebin.com/hS0tKLEY

i think i have got some logic error on these..

if (map == null)
{
Utils.TRACE("API " + Build.VERSION.SDK_INT);
FragmentManager fragmentManager = getSupportFragmentManager();
SupportMapFragment supportMapFragment = (SupportMapFragment) 
fragmentManager.findFragmentById(R.id.map);
map = supportMapFragment.getMap();

if (map != null)
{
setupMap();
}
}

On Friday, 29 March 2013 23:30:55 UTC+7, skink wrote:
>
>
>
> Pratama Nur Wijaya wrote: 
> > here http://pastebin.com/DpWSTnr9 
> > 
> > On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote: 
> > > 
> > > 
> > > 
> > > Pratama Nur Wijaya wrote: 
> > > > < 
> > > 
> https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png>
>  
>
> > > 
> > > > i have change my code become like these one.. 
> > > > 
> > > > http://pastebin.com/FRrpeDAM 
> > > > 
> > > > but i still got nullpointer.. 
> > > > 
> > > > map = mapFragment.getMap(); 
> > > > 
> > > > i'm tested my apps on Emulator api level 17 
> > > > 
> > > > 
> > > > 
> > > 
> > > post your activity_ 
> > > bank_location.xml layout file 
> > > 
> > > pskink 
> > > 
>
> did you tryto call this 
>
>
> http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context)
>  
>
> pskink 
>

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




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread skink


Pratama Nur Wijaya wrote:
> here http://pastebin.com/DpWSTnr9
>
> On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote:
> >
> >
> >
> > Pratama Nur Wijaya wrote:
> > > <
> > https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png>
> >
> > > i have change my code become like these one..
> > >
> > > http://pastebin.com/FRrpeDAM
> > >
> > > but i still got nullpointer..
> > >
> > > map = mapFragment.getMap();
> > >
> > > i'm tested my apps on Emulator api level 17
> > >
> > >
> > >
> >
> > post your activity_
> > bank_location.xml layout file
> >
> > pskink
> >

did you tryto call this

http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context)

pskink

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




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Jonathan S
Looks like Google Play services is not available in your tablet. 

On Friday, March 29, 2013 11:11:49 AM UTC-4, Pratama Nur Wijaya wrote:
>
>
> 
> i have change my code become like these one..
>
> http://pastebin.com/FRrpeDAM
>
> but i still got nullpointer..
>
> map = mapFragment.getMap();
>
> i'm tested my apps on Emulator api level 17
>
>
> On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:
>>
>>
>>
>> Pratama Nur Wijaya wrote: 
>> > if my GoogleMap still null.. why my program running in my phone.. and 
>> get 
>> > force close on my tablet.. 
>> > 
>> > can u give me some advice 
>> > 
>> > 
>>
>> see 
>> http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
>>  
>>
>> it reads: 
>>
>> Returns 
>> the GoogleMap. Null if the view of the fragment is not yet ready. This 
>> can happen 
>> if the fragment lifecyle have not gone through 
>> onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
>> happen if Google Play services is not 
>> available. 
>>
>> pskink 
>>
>

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




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
here http://pastebin.com/DpWSTnr9

On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote:
>
>
>
> Pratama Nur Wijaya wrote: 
> > <
> https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png>
>  
>
> > i have change my code become like these one.. 
> > 
> > http://pastebin.com/FRrpeDAM 
> > 
> > but i still got nullpointer.. 
> > 
> > map = mapFragment.getMap(); 
> > 
> > i'm tested my apps on Emulator api level 17 
> > 
> > 
> > 
>
> post your activity_ 
> bank_location.xml layout file 
>
> pskink 
>

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




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread skink


Pratama Nur Wijaya wrote:
> 
> i have change my code become like these one..
>
> http://pastebin.com/FRrpeDAM
>
> but i still got nullpointer..
>
> map = mapFragment.getMap();
>
> i'm tested my apps on Emulator api level 17
>
>
>

post your activity_
bank_location.xml layout file

pskink

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




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya



i have change my code become like these one..

http://pastebin.com/FRrpeDAM

but i still got nullpointer..

map = mapFragment.getMap();

i'm tested my apps on Emulator api level 17


On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:
>
>
>
> Pratama Nur Wijaya wrote: 
> > if my GoogleMap still null.. why my program running in my phone.. and 
> get 
> > force close on my tablet.. 
> > 
> > can u give me some advice 
> > 
> > 
>
> see 
> http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
>  
>
> it reads: 
>
> Returns 
> the GoogleMap. Null if the view of the fragment is not yet ready. This 
> can happen 
> if the fragment lifecyle have not gone through 
> onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
> happen if Google Play services is not 
> available. 
>
> pskink 
>

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




[android-developers] Re: Asus Transformer TF700T - VM Heap Size

2013-03-29 Thread bob
Perhaps you should see this tip about "*largeHeap*":

http://knowledge.lapasa.net/?p=772

Thanks.


On Thursday, March 28, 2013 1:41:27 PM UTC-5, Nathan wrote:
>
> Does anyone know the specs on the Transformer TFT700T? Particularly the VM 
> heap size so I can set up an emulator. 
>
> It seems that device is forgetful - ie runs out of memory more often than 
> other devices - according to some error logs I have.
>
> I have a theory that a large pixel screen combined with a low heap space 
> number could cause problems for my app. 
>
> I've tried setting up one with 24M, with 1920x1200, and other settings 
> that look reasonable. It comes up black and never finishes booting. I could 
> be doing other things wrong, of course. I've only setup a very few 
> emulators since working on a MacBook. 
>
> I saw some info that implies the heap space is 24M out of 1G total Ram. It 
> also suggested people can change this setting, but on further searching 
> that appears to be only with Root and selected apps.  
>
> Nathan

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Why aren't there OpenGL ES 2.0 tutorials for Android on Youtube?

2013-03-29 Thread bob
 

Why not take a look at the BasicGLSurfaceView sample?




Thanks.



On Friday, March 29, 2013 2:23:50 AM UTC-5, tom_mai78101 wrote:
>
> I'm looking around on Youtube for tutorial videos on how to use OpenGL ES 
> 2.0 for Android, and I see that there aren't any available online. I'm not 
> exactly looking at using OpenGL ES 1.X, but I'm okay with it. It's just 
> that the number of OpenGL ES 2.0 tutorials are somewhat few and rare.
>  
> I know that there are websites and blogs that teaches you OpenGL ES 2.0, 
> how to use them, and how to work with shaders and things like that. Well, I 
> did followed a few of their tutorials, and this is what I got from them.
>  
> The attached ZIP file is my current OpenGL ES 2.0 project that I 
> self-taught myself just by reading the online tutorials about OpenGL ES 
> 2.0. The results aren't exactly like what I anticipated.
>  
> I'm already into lesson 2, displaying a 3D model mesh. It was supposed to 
> show up as a regular green cube mesh, with no lightings and textures. The 
> actual result I got is a flatten pyramid with its top cut off, like this 
> shown below:
>  
>  
>  
>  
>  
>  
> 
>  
> Since I don't know why a cube looked like in the picture above, and not 
> like a regular shaped cube, I figured I try looking up a video to see how 
> OpenGL ES 2.0 for Android was coded in real-time. 
>  
> It's a letdown when what I (supposedly) typed in doesn't look what I 
> expected, and that there's no clue to how it happens like that. Which leads 
> me to question the problem with the lack of OpenGL ES 2.0 video tutorials. 
> They help tremendously when the program was coded and run in real-time, 
> from another developer's perspective.
>  
> So, why the lack of these video tutorials? Thanks in advance.
>  
> 
>  
> Or you know, if someone is willing to help me debug and solve the problem, 
> I'll be even more happier to let that person to help me out, and teach me 
> something I don't know or didn't grasp when I was learning it myself. That 
> would be grateful.
>  
>  
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Activity

2013-03-29 Thread bob
 

Why can't you use a built-in function?


Thanks.



On Friday, March 29, 2013 7:48:00 AM UTC-5, Arun Kumar K wrote:
>
> Hi guys,
>
> I have one doubt in activity.i want  a call back when activity is 
> destroyed from the stack.My constrain is 
>
> 1.Without using any inbuilt function like( onDestroy,finish and all)
>
> My another doubt is For example:
>
> ActivityA,ActivityB if i go to activityB from activityA then i go to 
> activityA from activityB how can i find to reached the activityA.My 
> constrain is
>
> 1.Without using any inbuilt function like( onStart)
>
> -- 
> *Thanks & Regards*
> *K.Arun Kumar*
>  
>  

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Activity

2013-03-29 Thread Arun Kumar K
Hi guys,

I have one doubt in activity.i want  a call back when activity is destroyed
from the stack.My constrain is

1.Without using any inbuilt function like( onDestroy,finish and all)

My another doubt is For example:

ActivityA,ActivityB if i go to activityB from activityA then i go to
activityA from activityB how can i find to reached the activityA.My
constrain is

1.Without using any inbuilt function like( onStart)

-- 
*Thanks & Regards*
*K.Arun Kumar*

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
thanks for your advice.. 

On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:
>
>
>
> Pratama Nur Wijaya wrote: 
> > if my GoogleMap still null.. why my program running in my phone.. and 
> get 
> > force close on my tablet.. 
> > 
> > can u give me some advice 
> > 
> > 
>
> see 
> http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
>  
>
> it reads: 
>
> Returns 
> the GoogleMap. Null if the view of the fragment is not yet ready. This 
> can happen 
> if the fragment lifecyle have not gone through 
> onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
> happen if Google Play services is not 
> available. 
>
> pskink 
>

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




[android-developers] GroundOverlay with rotation in MapView

2013-03-29 Thread Brofalad
Hi,
 
I have a overlay image with the following cooridinates. 
 

  56.56509012808
  56.5455371985222
  13.249250664387
  13.2017977722382
  0.477325392961741

 
It is no problem to create the overlay without the rotation. But is it 
possible to rotate the image, or can I only use images with rotation = 0.
/Brofalad
 
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.