[android-developers] Meet problem when back from sub activity to map activity

2008-04-10 Thread areslp

I have a map activity with several overlays,and I start a sub
activity, and when the work has done in sub activity, I set the result
code and finish the sub activity. In map activity's onActivityResult()
method,I got the resultEvery thing goes well until now,but I find
that the map view sometimes stuck,the view didnt changed any more.

Is there something I missed,or something wrong I did?
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Plz Help!!

2008-04-07 Thread areslp

Thanks

On Apr 7, 2:13 am, Dan U. [EMAIL PROTECTED] wrote:
 I guess you might not know this, but you don't need to be using a
 Boolean. You should change it to lowercase boolean and get rid of
 all the messy t.booleanValue() calls.

 But, the reason you don't see logging output is the way you are using
 Log. You are actually trying to print an empty message (the second
 argument), and that means it won't show up in logcat output. If you
 are confused about the arguments to a log method, think of the first
 argument as a String that lets you group messages together (you can
 create a filter to filter them out of the general logcat output).
 Think of the second argument as what you actually want to see in the
 log.

 On Apr 6, 7:21 am,areslp[EMAIL PROTECTED] wrote:

  Boolean t = flags.get(position);
  Log.e( + position, getView_flag: + 
  t.booleanValue());
  if (t.booleanValue()==true) {
  Log.e(postion:true + position, );
  flags.set(position, false);
  view.reset();
  return view;
  }else if(t.booleanValue()==false){
  Log.e(postion:false + position, );
  return view;
  }else{
  Log.e(postion:else + position, );
  return view;
  }

  Log.e( + position, getView_flag: + t.booleanValue()):I can get the
  line's output ,it prints true(false)
  But I cant get Log's output in the if-else if-else block,and there is
  no error throw out,why?

  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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Plz Help!!

2008-04-07 Thread areslp

yes,it's ugly, it's just for test:)

On Apr 7, 3:16 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Woaw, this must be one of the worst pieces of code i have recently
 seen.

 On Apr 6, 4:21 pm,areslp[EMAIL PROTECTED] wrote:

  Boolean t = flags.get(position);
  Log.e( + position, getView_flag: + 
  t.booleanValue());
  if (t.booleanValue()==true) {
  Log.e(postion:true + position, );
  flags.set(position, false);
  view.reset();
  return view;
  }else if(t.booleanValue()==false){
  Log.e(postion:false + position, );
  return view;
  }else{
  Log.e(postion:else + position, );
  return view;
  }

  Log.e( + position, getView_flag: + t.booleanValue()):I can get the
  line's output ,it prints true(false)
  But I cant get Log's output in the if-else if-else block,and there is
  no error throw out,why?

  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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Plz Help!!

2008-04-06 Thread areslp

Boolean t = flags.get(position);
Log.e( + position, getView_flag: + 
t.booleanValue());
if (t.booleanValue()==true) {
Log.e(postion:true + position, );
flags.set(position, false);
view.reset();
return view;
}else if(t.booleanValue()==false){
Log.e(postion:false + position, );
return view;
}else{
Log.e(postion:else + position, );
return view;
}


Log.e( + position, getView_flag: + t.booleanValue()):I can get the
line's output ,it prints true(false)
But I cant get Log's output in the if-else if-else block,and there is
no error throw out,why?

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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---