[android-developers] finger paint

2013-02-01 Thread Dilip Kumar Chaudhary
I'm drawing line and want that when lines match together then generate
error.I have done some coding and this code is able to draw lines on touch
but problem is that how to determine when line match.what should I do to
solve this problem.Thanks
-- 
*Thanks  Regards*
Dilip Kumar Chaudhary
My Linkedin Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b
My Development Blog http://dilipdevelopment.blogspot.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 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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Adam
I'd love the 100k+ hits accredited to the original.

PS: If this is in the wrong group, feel free to move it. I just feel as if 
I need to do something about this blatant copying of my intellectual 
property.

On Friday, 1 February 2013 18:41:46 UTC+11, Adam wrote:

 I released a game a few years ago with little to no success, around 6k 
 downloads. It was a bit of fun, I didn't intend to make money from it, so 
 had no ads.

 Anyway, it turns out someone has decompiled it to include ads and a link 
 to their other games (where it would otherwise go to my pro version). 

 Now normally I wouldn't care, but it has over 100k+ downloads and they 
 have copied all my art in Google Play.

 My game:

 https://play.google.com/store/apps/details?id=com.userassistance.simon

 Cloned/stolen game:

 https://play.google.com/store/apps/details?id=com.apps.simon

 What should I do?

 Thanks!


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Kostya Vasilyev
Happens all the time, I guess. Your best bet is to contact Play support 
with a DMCA notice.

-- K

On Friday, February 1, 2013 12:15:40 PM UTC+4, Adam wrote:

 I'd love the 100k+ hits accredited to the original.

 PS: If this is in the wrong group, feel free to move it. I just feel as if 
 I need to do something about this blatant copying of my intellectual 
 property.

 On Friday, 1 February 2013 18:41:46 UTC+11, Adam wrote:

 I released a game a few years ago with little to no success, around 6k 
 downloads. It was a bit of fun, I didn't intend to make money from it, so 
 had no ads.

 Anyway, it turns out someone has decompiled it to include ads and a link 
 to their other games (where it would otherwise go to my pro version). 

 Now normally I wouldn't care, but it has over 100k+ downloads and they 
 have copied all my art in Google Play.

 My game:

 https://play.google.com/store/apps/details?id=com.userassistance.simon

 Cloned/stolen game:

 https://play.google.com/store/apps/details?id=com.apps.simon

 What should I do?

 Thanks!



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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: My game has been cloned/stolen, how has this happend?

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 1:44 AM, Adam a...@thesadpig.com wrote:

 What should I do?


http://developer.android.com/support.html

-
TreKing http://sites.google.com/site/rezmobileapps/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 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] finger paint

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 2:02 AM, Dilip Kumar Chaudhary 
androiddili...@gmail.com wrote:

 what should I do to solve this problem.


Use Google to find a line intersection algorithm. This has nothing to do
with Android.

-
TreKing http://sites.google.com/site/rezmobileapps/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 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: Dynamic Application Theme

2013-02-01 Thread Zsolt Vasvari
It's interesting how my app doesn't have this issue.

I have a StartUp Activity, which, based on user preference, can start the 
app in various real activity.  So, I guess, I effectively disabled the 
preview screen, by doing this?


On Friday, February 1, 2013 3:43:03 PM UTC+8, Pent wrote:

  http://android.cyrilmottier.com/?p=873 

 Good link, thanks. Unfortunately it only helps with static 
 configuration, which is not the problem. The comments show that Romain 
 also doesn't have a solution for user-preference-based theming. 

 @Kostya: I know how to control the launch theme, the problem is doing 
 it dependent on user theme. If I misunderstood how the Chrome setup 
 might help, could you please let me know ? 

 Pent 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
 

I have a ExpandableListView with some groups, and each group haves only one 
child, with a string on it.

I have a thread that get's some updated data and *each second* calls a 
handler that updates the string of one of the childs of the 
ExpandableListView and then calls this method to refresh the view and show 
the updated data to the user: ((BaseExpandableListAdapter) 
mAdapter).notifyDataSetChanged();

This is the update handler:

infoUpdateHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);   
children[2][0]=getUpdatedInfo();
((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged();
}
};

The problem is that when i'm scrolling the expandable list view, i can see 
how the scroll is showing low performance, it stops sometimes. I think that 
it is because this call ((BaseExpandableListAdapter) 
mAdapter).notifyDataSetChanged(); is updating all the ExpandableListView. 

*Does not exist a better way to update a expandable list view? Maybe a way 
to update only the child that you want to update?*

Thanks

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Adam
Thanks for that.

On Friday, 1 February 2013 19:20:01 UTC+11, Kostya Vasilyev wrote:

 Happens all the time, I guess. Your best bet is to contact Play support 
 with a DMCA notice.

 -- K

 On Friday, February 1, 2013 12:15:40 PM UTC+4, Adam wrote:

 I'd love the 100k+ hits accredited to the original.

 PS: If this is in the wrong group, feel free to move it. I just feel as 
 if I need to do something about this blatant copying of my intellectual 
 property.

 On Friday, 1 February 2013 18:41:46 UTC+11, Adam wrote:

 I released a game a few years ago with little to no success, around 6k 
 downloads. It was a bit of fun, I didn't intend to make money from it, so 
 had no ads.

 Anyway, it turns out someone has decompiled it to include ads and a link 
 to their other games (where it would otherwise go to my pro version). 

 Now normally I wouldn't care, but it has over 100k+ downloads and they 
 have copied all my art in Google Play.

 My game:

 https://play.google.com/store/apps/details?id=com.userassistance.simon

 Cloned/stolen game:

 https://play.google.com/store/apps/details?id=com.apps.simon

 What should I do?

 Thanks!



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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 you debug?... here error: syntax error : insert ( to complete expression

2013-02-01 Thread lselwd
problem fixed: I removed  reinserted whole function...

On Wednesday, January 30, 2013 7:25:44 PM UTC+2, lselwd wrote:

  


 private ListString fileNameList; // flag file names

 int[] sizeWordCountries = new int[9];  // 10   

   

   for (int i = 0; i  9; i++)  

   { 

   sizeWordCountries[i]=(fileNameList.get(i)).length();  // here 
 error: syntax error : insert ( to complete expression

   }



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 2:36 AM, saex elpablos...@gmail.com wrote:

 think that it is because this call ((BaseExpandableListAdapter)
 mAdapter).notifyDataSetChanged(); is updating all the ExpandableListView.

Don't *think*. Profile your code and determine what is really causing your
slowness. Then fix that.

-
TreKing http://sites.google.com/site/rezmobileapps/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 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: Dynamic Application Theme

2013-02-01 Thread Kostya Vasilyev
Chrome (and Contacts) prevents its activity from being destroyed when he 
user presses Back (the normal code, in the framework, is to call finish 
then).

If you did the same, the mismatched animation won't happen so often, since 
when resuming an existing activity, the system will animate its actual 
content.

-- K

On Friday, February 1, 2013 11:43:03 AM UTC+4, Pent wrote:

  http://android.cyrilmottier.com/?p=873 

 Good link, thanks. Unfortunately it only helps with static 
 configuration, which is not the problem. The comments show that Romain 
 also doesn't have a solution for user-preference-based theming. 

 @Kostya: I know how to control the launch theme, the problem is doing 
 it dependent on user theme. If I misunderstood how the Chrome setup 
 might help, could you please let me know ? 

 Pent 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Disable Triple Buffering In 4.1?

2013-02-01 Thread muleskinner
Hi,

Is there any way to disable Jelly Bean triple buffering from within my app? 
It's causing me issues and the easiest way to fix would be to disable it...

Help much appreciated!

cheers

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] How to lock android phone with pin from code??? (screen lock)

2013-02-01 Thread Remo
Hi Everyone,

How to do screen lock with PIN number from code??? 

Can anyone help me. Thx on advance

Thanks,
Remo

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
While TreKing's advice to profile is of course excellent...

...rebuilding the entire {expandable} list view just to update one item is
more work that necessary.

When performance is important, you can walk the list of visible item views,
find the one you need to update, and do it right there. You will want to
use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

Also there is a callback, AbsListView.onScrollListener, which lets you know
when the list view is scrolling, and perhaps suspend your updates if
necessary.

-- K

2013/2/1 saex elpablos...@gmail.com

 I have a ExpandableListView with some groups, and each group haves only
 one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls a
 handler that updates the string of one of the childs of the
 ExpandableListView and then calls this method to refresh the view and show
 the updated data to the user: ((BaseExpandableListAdapter)
 mAdapter).notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);
 children[2][0]=getUpdatedInfo();
 ((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i can see
 how the scroll is showing low performance, it stops sometimes. I think that
 it is because this call ((BaseExpandableListAdapter)
 mAdapter).notifyDataSetChanged(); is updating all the ExpandableListView.

 *Does not exist a better way to update a expandable list view? Maybe a
 way to update only the child that you want to update?*

 Thanks

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




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
OK, i can get the childs View with:

el.getChildAt(1);
el.getChildAt(2);

but... what shouild i do to notify these views that they must reload their 
content from the adapter?

El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one item is 
 more work that necessary.

 When performance is important, you can walk the list of visible item 
 views, find the one you need to update, and do it right there. You will 
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets you 
 know when the list view is scrolling, and perhaps suspend your updates if 
 necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com javascript:

  I have a ExpandableListView with some groups, and each group haves only 
 one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls a 
 handler that updates the string of one of the childs of the 
 ExpandableListView and then calls this method to refresh the view and show 
 the updated data to the user: ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);   
 children[2][0]=getUpdatedInfo();
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i can 
 see how the scroll is showing low performance, it stops sometimes. I think 
 that it is because this call ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged(); is updating all the 
 ExpandableListView. 

 *Does not exist a better way to update a expandable list view? Maybe a 
 way to update only the child that you want to update?*

 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 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: html parsing issuess

2013-02-01 Thread Bost


hallo,
it seems, that the variable responseBody is not declared.
Regards
Bost







-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
Might look something like this:

final int nFirst = mAccountListView.getFirstVisiblePosition();
final int nLast = mAccountListView.getLastVisiblePosition();
for (int position = nFirst; position = nLast; ++position) {

View itemView = mAccountListView.getChildAt(position - nFirst);

As for asking the adapter to update the view, well, there isn't a direct
way to do this. You could call the adapter's getView, making sure to pass
the existing view as the convertView.

Or just reach into the content of your item layout (findViewById,
ViewHolder) and update the values.

If the number of items in the adapter can change dynamically, it gets more
complicated, as the list view can be out of sync with the adapter.

And remember, this can be considered an ugly hack that violates the holy
principles of Objectively Orientated Progammation (or whatever that thing
is called) :)  -- but can be useful where performance is important.

-- K

2013/2/1 saex elpablos...@gmail.com

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload their
 content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one item
 is more work that necessary.

 When performance is important, you can walk the list of visible item
 views, find the one you need to update, and do it right there. You will
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets you
 know when the list view is scrolling, and perhaps suspend your updates if
 necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group haves
 only one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls a
 handler that updates the string of one of the childs of the
 ExpandableListView and then calls this method to refresh the view and show
 the updated data to the user: ((BaseExpandableListAdapter) mAdapter).**
 notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);
 children[2][0]=getUpdatedInfo(**);
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged**();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i can
 see how the scroll is showing low performance, it stops sometimes. I think
 that it is because this call ((BaseExpandableListAdapter) mAdapter).**
 notifyDataSetChanged(); is updating all the ExpandableListView.

 *Does not exist a better way to update a expandable list view? Maybe a
 way to update only the child that you want to update?*

 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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_outhttps://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.




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

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
i know how to get the views, the problems is that i can't reach the way to 
tell the adapter to update the content of only these views... did you know?

thanks

El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev escribió:

 Might look something like this:

 final int nFirst = mAccountListView.getFirstVisiblePosition();
 final int nLast = mAccountListView.getLastVisiblePosition();
  for (int position = nFirst; position = nLast; ++position) {

 View itemView = mAccountListView.getChildAt(position - nFirst);

 As for asking the adapter to update the view, well, there isn't a direct 
 way to do this. You could call the adapter's getView, making sure to pass 
 the existing view as the convertView.

 Or just reach into the content of your item layout (findViewById, 
 ViewHolder) and update the values.

 If the number of items in the adapter can change dynamically, it gets more 
 complicated, as the list view can be out of sync with the adapter.

 And remember, this can be considered an ugly hack that violates the holy 
 principles of Objectively Orientated Progammation (or whatever that thing 
 is called) :)  -- but can be useful where performance is important.

 -- K

 2013/2/1 saex elpab...@gmail.com javascript:

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload 
 their content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one item 
 is more work that necessary.

 When performance is important, you can walk the list of visible item 
 views, find the one you need to update, and do it right there. You will 
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets you 
 know when the list view is scrolling, and perhaps suspend your updates if 
 necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group haves 
 only one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls a 
 handler that updates the string of one of the childs of the 
 ExpandableListView and then calls this method to refresh the view and show 
 the updated data to the user: ((BaseExpandableListAdapter) mAdapter).**
 notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);   
 children[2][0]=getUpdatedInfo(**);
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged**();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i can 
 see how the scroll is showing low performance, it stops sometimes. I think 
 that it is because this call ((BaseExpandableListAdapter) mAdapter).**
 notifyDataSetChanged(); is updating all the ExpandableListView. 

 *Does not exist a better way to update a expandable list view? Maybe a 
 way to update only the child that you want to update?*

 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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_outhttps://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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 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 

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
Is that it?



You could call the adapter's getView, making sure to pass the existing view
as the convertView.



-- K

2013/2/1 saex elpablos...@gmail.com

 i know how to get the views, the problems is that i can't reach the way to
 tell the adapter to update the content of only these views... did you know?

 thanks

 El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev escribió:

 Might look something like this:

 final int nFirst = mAccountListView.**getFirstVisiblePosition();
 final int nLast = mAccountListView.**getLastVisiblePosition();
  for (int position = nFirst; position = nLast; ++position) {

 View itemView = mAccountListView.getChildAt(**position - nFirst);

 As for asking the adapter to update the view, well, there isn't a direct
 way to do this. You could call the adapter's getView, making sure to pass
 the existing view as the convertView.

 Or just reach into the content of your item layout (findViewById,
 ViewHolder) and update the values.

 If the number of items in the adapter can change dynamically, it gets
 more complicated, as the list view can be out of sync with the adapter.

 And remember, this can be considered an ugly hack that violates the holy
 principles of Objectively Orientated Progammation (or whatever that thing
 is called) :)  -- but can be useful where performance is important.

 -- K

 2013/2/1 saex elpab...@gmail.com

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload
 their content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev
 escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one item
 is more work that necessary.

 When performance is important, you can walk the list of visible item
 views, find the one you need to update, and do it right there. You will
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets you
 know when the list view is scrolling, and perhaps suspend your updates if
 necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group haves
 only one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls
 a handler that updates the string of one of the childs of the
 ExpandableListView and then calls this method to refresh the view and show
 the updated data to the user: ((BaseExpandableListAdapter) mAdapter).*
 *notifyDataSetChanged**();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);
 children[2][0]=getUpdatedInfo();
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i can
 see how the scroll is showing low performance, it stops sometimes. I think
 that it is because this call ((BaseExpandableListAdapter) mAdapter).**
 notifyDataSetChanged**(); is updating all the ExpandableListView.

 *Does not exist a better way to update a expandable list view? Maybe
 a way to update only the child that you want to update?*

 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscribe**@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group**/android-developers?hl=enhttp://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+**unsubscribe**@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**grou**ps/opt_outhttps://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-d...@**googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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 
 

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
i didn't understand you, the adapter doesn't have a getView method

El viernes, 1 de febrero de 2013 12:50:46 UTC+1, Kostya Vasilyev escribió:

 Is that it?

  

 You could call the adapter's getView, making sure to pass the existing 
 view as the convertView.

 

 -- K

 2013/2/1 saex elpab...@gmail.com javascript:

 i know how to get the views, the problems is that i can't reach the way 
 to tell the adapter to update the content of only these views... did you 
 know?

 thanks

 El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev escribió:

 Might look something like this:

 final int nFirst = mAccountListView.**getFirstVisiblePosition();
 final int nLast = mAccountListView.**getLastVisiblePosition();
  for (int position = nFirst; position = nLast; ++position) {

 View itemView = mAccountListView.getChildAt(**position - nFirst);

 As for asking the adapter to update the view, well, there isn't a direct 
 way to do this. You could call the adapter's getView, making sure to pass 
 the existing view as the convertView.

 Or just reach into the content of your item layout (findViewById, 
 ViewHolder) and update the values.

 If the number of items in the adapter can change dynamically, it gets 
 more complicated, as the list view can be out of sync with the adapter.

 And remember, this can be considered an ugly hack that violates the holy 
 principles of Objectively Orientated Progammation (or whatever that thing 
 is called) :)  -- but can be useful where performance is important.

 -- K

 2013/2/1 saex elpab...@gmail.com

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload 
 their content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev 
 escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one 
 item is more work that necessary.

 When performance is important, you can walk the list of visible item 
 views, find the one you need to update, and do it right there. You will 
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets you 
 know when the list view is scrolling, and perhaps suspend your updates if 
 necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group haves 
 only one child, with a string on it.

 I have a thread that get's some updated data and *each second* calls 
 a handler that updates the string of one of the childs of the 
 ExpandableListView and then calls this method to refresh the view and 
 show 
 the updated data to the user: ((BaseExpandableListAdapter) mAdapter).
 **notifyDataSetChanged**();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);   
 children[2][0]=getUpdatedInfo();
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i 
 can see how the scroll is showing low performance, it stops sometimes. I 
 think that it is because this call ((BaseExpandableListAdapter) 
 mAdapter).**notifyDataSetChanged**(); is updating all the 
 ExpandableListView. 

 *Does not exist a better way to update a expandable list view? Maybe 
 a way to update only the child that you want to update?*

 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscribe**@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group**/android-developers?hl=enhttp://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+**unsubscribe**@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**grou**ps/opt_outhttps://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-d...@**googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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 

Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
Urm, for an expandable list view -- getChildView or getGroupView.

-- K

2013/2/1 saex elpablos...@gmail.com

 i didn't understand you, the adapter doesn't have a getView method

 El viernes, 1 de febrero de 2013 12:50:46 UTC+1, Kostya Vasilyev escribió:

 Is that it?

 

 You could call the adapter's getView, making sure to pass the existing
 view as the convertView.

 

 -- K

 2013/2/1 saex elpab...@gmail.com

 i know how to get the views, the problems is that i can't reach the way
 to tell the adapter to update the content of only these views... did you
 know?

 thanks

 El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev
 escribió:

 Might look something like this:

 final int nFirst = mAccountListView.**getFirstVisib**lePosition();
 final int nLast = mAccountListView.**getLastVisibl**ePosition();
  for (int position = nFirst; position = nLast; ++position) {

 View itemView = mAccountListView.getChildAt(**po**sition - nFirst);

 As for asking the adapter to update the view, well, there isn't a
 direct way to do this. You could call the adapter's getView, making sure to
 pass the existing view as the convertView.

 Or just reach into the content of your item layout (findViewById,
 ViewHolder) and update the values.

 If the number of items in the adapter can change dynamically, it gets
 more complicated, as the list view can be out of sync with the adapter.

 And remember, this can be considered an ugly hack that violates the
 holy principles of Objectively Orientated Progammation (or whatever that
 thing is called) :)  -- but can be useful where performance is important.

 -- K

 2013/2/1 saex elpab...@gmail.com

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload
 their content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev
 escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one
 item is more work that necessary.

 When performance is important, you can walk the list of visible item
 views, find the one you need to update, and do it right there. You will
 want to use listView.getFirstVisibleItem / getLastVisibleItem / getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets
 you know when the list view is scrolling, and perhaps suspend your 
 updates
 if necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group haves
 only one child, with a string on it.

 I have a thread that get's some updated data and *each second*calls a 
 handler that updates the string of one of the childs of the
 ExpandableListView and then calls this method to refresh the view and 
 show
 the updated data to the user: ((BaseExpandableListAdapter)
 mAdapter).**notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);
 children[2][0]=getUpdatedInfo(**);
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged**();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i
 can see how the scroll is showing low performance, it stops sometimes. I
 think that it is because this call ((BaseExpandableListAdapter)
 mAdapter).**notifyDataSetChanged(); is updating all the
 ExpandableListView.

 *Does not exist a better way to update a expandable list view?
 Maybe a way to update only the child that you want to update?*

 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-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscribe@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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+**unsubscribe
 @googlegroups.com.
 For more options, visit https://groups.google.com/**grou
 ps/opt_out 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-d...@**googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscribe**@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because 

Re: [android-developers] Re: Prevent sms sending

2013-02-01 Thread Lucas Diego
Thanks Kris


On Thu, Jan 31, 2013 at 6:35 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 (Though you can apparently still watch the incoming call log and kill
 calls, I see this as a bug in the Android framework, but you're free
 to use as you wish...)

 kris

 On Thu, Jan 31, 2013 at 4:30 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:
  Again: this *should not* be possible to do.  Fundamentally, on the app
  level, you should not have control over this kind of functionality.
 
  The relevant Google bug report is here:
 
  https://code.google.com/p/android/issues/detail?id=15022
 
  But it is marked as closed.  The basic story is: don't try to use
  system level APIs.
 
  kris
 
  On Thu, Jan 31, 2013 at 4:02 PM, Lucas Diego diegoluc...@gmail.com
 wrote:
  Yeah I've seen and tried it already...
  The problem is that, it doesn't work on android 2.3.7 or up
 
  On 31 Jan 2013 17:32, Kristopher Micinski krismicin...@gmail.com
 wrote:
 
  A google search on android stop call programmatically gives this:
 
 
 http://stackoverflow.com/questions/1083527/how-to-block-calls-in-android
 
  kris
 
  On Thu, Jan 31, 2013 at 3:05 PM, Lucas Diego diegoluc...@gmail.com
 wrote:
  Ok, so...
  what I did to avoid (or at least try to) user send sms, was to show
 users
  a
  message by the moment they send the sms. Basically, the messagem says
 that
  it is aganist the company's rules and they (users) are not suppose to
 do
  that. Well.. I think it is gonna decrease the amount of sms which is
 sent
  nowadays by them.
 
  Kris, what about incoming calls? It follows the same rules of SMS?
  am I able to programmatically answer and finish them?
 
  Thank you guys.
 
 
 
 
  On Wed, Jan 30, 2013 at 6:03 PM, Nobu Games dev.nobu.ga...@gmail.com
  wrote:
 
  On top of what Kristopher says: a custom launcher also does not
 prevent a
  user from installing another launcher or restore the default launcher.
  It's
  a bit hackish to enforce these company policies based on a user space
  app.
 
 
  You either need to create your custom firmware, which isn't that bad
 of
  an
  option because you are developing for a closed, controlled
 environment.
  And
  / or your client should negotiate with the mobile phone service
 provider
  and
  tell them not to accept text messages from these phones.
 
  On Wednesday, January 30, 2013 1:01:46 PM UTC-6, Lucas Diego wrote:
 
  Hi everybody,
 
  I have been developping a launcher for a company in order to prevent
  users (from this company of course) from doing some actions on the
  phone,
  like send sms text for example.
  So, I'd like to know how can I prevent user from sending sms text.
  After seaching it, all I have found is people saying that it is not
  possible. Well, I refuse to believe that. I think it's gotta be a
 way to
  do
  this;
 
  til now, all I'm getting is information about users' sms, using a
  extended class from ContentObserver, like this:
 
  public class SMSObserver extends ContentObserver {
 
  private Handler handle = null;
  private Context context;
 
  public SMSObserver(Handler handler, Context context) {
  super(handler);
  this.handle = handler;
  this.context = context;
  }
 
  @Override
  public void onChange(boolean selfChange) {
  super.onChange(selfChange);
 
  Uri uriSMS = Uri.parse(content://sms/sent);
  //Uri uriSMS = Uri.parse(content://sms/out);
  //Uri uriSMS = Uri.parse(content://sms/);
  Cursor cur =
  context.getApplicationContext().getContentResolver().query(uriSMS,
 null,
  null, null, null);
 
  if (cur.moveToNext()) {
  String[] nomes = cur.getColumnNames();
 
  for (String string : nomes) {
  Log.i(LAUNCHER, string);
  }
 
  Log.i(LAUNCHER,
  cur.getString(cur.getColumnIndex(address)));
  Log.i(LAUNCHER,
  cur.getString(cur.getColumnIndex(callback_number)));
  Log.i(LAUNCHER,
  cur.getString(cur.getColumnIndex(read)));
  Log.i(LAUNCHER,
  cur.getString(cur.getColumnIndex(type)));
  Log.i(LAUNCHER,
  cur.getString(cur.getColumnIndex(body)));
  }
  }
  }
 
 
 
  does anybody knows how to do it?
  any help would be really great.
 
  thanks.
 
  Lucas Diego
 
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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 

Re: [android-developers] How to lock android phone with pin from code??? (screen lock)

2013-02-01 Thread Παύλος-Πέτρος Τουρνάρης
http://stackoverflow.com/questions/5167958/lock-the-screen-programmatically-on-android

check it!


On Fri, Feb 1, 2013 at 12:02 PM, Remo crajesh2...@gmail.com wrote:

 Hi Everyone,

 How to do screen lock with PIN number from code???

 Can anyone help me. Thx on advance

 Thanks,
 Remo

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

2013-02-01 Thread Pent
 I have a StartUp Activity, which, based on user preference, can start the
 app in various real activity.  So, I guess, I effectively disabled the
 preview screen, by doing this?

If animations are enabled in system prefs, you should get an animation
between the startup activity and the subactivity. Do you not ?

I couldn't disable that.

Intent.FLAG_ACTIVITY_NO_ANIMATION

in the intent to startActivity() is apparently just ignored.

Pent

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

2013-02-01 Thread Pent
 Chrome (and Contacts) prevents its activity from being destroyed when he
 user presses Back (the normal code, in the framework, is to call finish
 then).

 If you did the same, the mismatched animation won't happen so often, since
 when resuming an existing activity, the system will animate its actual
 content.

Ah, that's what you meant. A small improvement I guess, but not very
satisfying somehow :-)

Thanks anyway!

Pent

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] android using url.openstream isn't throwing IOException if no internet connection. Why?

2013-02-01 Thread Narendra Singh Rathore
 

Hi all, I am using url.openstream for requesting on to server. In case no 
internet connection while this, I want data to be stored in database, and 
hence doing the storage in catch clause of IOException, but instead of 
being caught here, it just hangs on url.openstream. I even waited for a 
minute but, still it doesn't caught in IOException catch clause.

What must I do to overcome 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
--- 
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] is Google going to ship Chrome as a default browser for next OS release

2013-02-01 Thread H
Probably unlikely to replace the Stock Browser in AOSP Android - Chrome is 
dependant on the Google APIs, so if it replaced the browser then there wouldn't 
be a browser on AOSP Android. But on Google licensed devices, there's no reason 
to not remove the Stock Browser. However Chrome doesn't provide a public 
bookmarks provider, so all those apps that rely on a provider to show the 
user's bookmarks in a widget (for example) would no longer work. 

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

2013-02-01 Thread Tobias Lindberg


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

2013-02-01 Thread Tobias Lindberg


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

2013-02-01 Thread Pent
Progress! Don't know what I changed but managed to prevent the between
startup and main activity animation. So a startup activity works, but
only if there's a delay before
I call the main activity. Here's the code:

public class FrontDoor extends MyActivity {

@Override
public void onCreate( Bundle icicle ) {

super.onCreate( icicle );

MyFrameLayout v = new MyFrameLayout(this);

v.setLayoutParams( new
ViewGroup.LayoutParams( LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT ) );
setContentView( v );

v.setOnLayoutCallback( new MyFrameLayout.OnLayoutCallback() {
@Override
public void onLayout(int width, int height) {
new Handler() {
public void handleMessage( Message m ) {
 startActivity(
new Intent( FrontDoor.this, 
Tasker.class ).
setFlags( 
Intent.FLAG_ACTIVITY_NO_ANIMATION )
);
}
}.sendEmptyMessageDelayed( 0, 500 );
}
});
   }

(the theme-setting stuff is in MyActivity)

If there's no delay, the startup activity disappears immediately and
is not there while the main activity is loading. I put it in a layout
handler because that's the latest hook I can find into the activity
creation process so the time from there till the next activity is most
constant.

Anyone have a better hook where the activity has finished displaying
and I can safely start the sub-activity ? onResume() and
onPostResume() are not late enough.

Pent

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] LoaderManager OnLoadFinished();

2013-02-01 Thread Lars
Right now I am experiencing weird behavior from the loadermanager in my app.
I got 3 sherlocklistfragments in my app under tabs.
when i start up the app it works great the loadermanager does exactly what 
it should do
but when i change the orientation of my app the loadermanager's 
onloadfinished gets called 
immediately.
Even the oncreateoptionsmenu isn't called before.
In an other fragment I experience that the onloadfinished gets called 
before the background loading is done,
when i change the orientation.

I call the loadermanager on the last line of my onActivityCreated:
getLoaderManager().initLoader(0, null, this).forceload();

Hope somebody can help me!
Thanks.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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: android using url.openstream isn't throwing IOException if no internet connection. Why?

2013-02-01 Thread skink


Narendra Singh Rathore wrote:
 Hi all, I am using url.openstream for requesting on to server. In case no
 internet connection while this, I want data to be stored in database, and
 hence doing the storage in catch clause of IOException, but instead of
 being caught here, it just hangs on url.openstream. I even waited for a
 minute but, still it doesn't caught in IOException catch clause.

 What must I do to overcome this problem?

just guessing:

1 openConnection()
2 play with timeouts 
http://developer.android.com/reference/java/net/URLConnection.html

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.




Re: [android-developers] Re: android using url.openstream isn't throwing IOException if no internet connection. Why?

2013-02-01 Thread vaibs malviya
use ConnectivityManager before using url.openstream
if net is available so call url otherwise from local database .


On Fri, Feb 1, 2013 at 8:05 PM, skink psk...@gmail.com wrote:



 Narendra Singh Rathore wrote:
  Hi all, I am using url.openstream for requesting on to server. In case no
  internet connection while this, I want data to be stored in database, and
  hence doing the storage in catch clause of IOException, but instead of
  being caught here, it just hangs on url.openstream. I even waited for a
  minute but, still it doesn't caught in IOException catch clause.
 
  What must I do to overcome this problem?

 just guessing:

 1 openConnection()
 2 play with timeouts
 http://developer.android.com/reference/java/net/URLConnection.html

 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.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
arg... you didn't understand me or i can't understand you

getChildView and getGroupView are from the ExpandableListView, but we are 
talking about the Adapter,

i dont know how to update only the view of only the two childs i want to 
update, please, can you give me code example of what you want to say to me? 
i can't understand

El viernes, 1 de febrero de 2013 13:08:36 UTC+1, Kostya Vasilyev escribió:

 Urm, for an expandable list view -- getChildView or getGroupView.

 -- K

 2013/2/1 saex elpab...@gmail.com javascript:

 i didn't understand you, the adapter doesn't have a getView method

 El viernes, 1 de febrero de 2013 12:50:46 UTC+1, Kostya Vasilyev escribió:

 Is that it?

  

 You could call the adapter's getView, making sure to pass the existing 
 view as the convertView.

 

 -- K

 2013/2/1 saex elpab...@gmail.com

 i know how to get the views, the problems is that i can't reach the way 
 to tell the adapter to update the content of only these views... did you 
 know?

 thanks

 El viernes, 1 de febrero de 2013 12:37:51 UTC+1, Kostya Vasilyev 
 escribió:

 Might look something like this:

 final int nFirst = mAccountListView.**getFirstVisib**lePosition();
 final int nLast = mAccountListView.**getLastVisibl**ePosition();
  for (int position = nFirst; position = nLast; ++position) {

 View itemView = mAccountListView.getChildAt(**po**sition - nFirst);

 As for asking the adapter to update the view, well, there isn't a 
 direct way to do this. You could call the adapter's getView, making sure 
 to 
 pass the existing view as the convertView.

 Or just reach into the content of your item layout (findViewById, 
 ViewHolder) and update the values.

 If the number of items in the adapter can change dynamically, it gets 
 more complicated, as the list view can be out of sync with the adapter.

 And remember, this can be considered an ugly hack that violates the 
 holy principles of Objectively Orientated Progammation (or whatever that 
 thing is called) :)  -- but can be useful where performance is important.

 -- K

 2013/2/1 saex elpab...@gmail.com

 OK, i can get the childs View with:

 el.getChildAt(1);
 el.getChildAt(2);

 but... what shouild i do to notify these views that they must reload 
 their content from the adapter?

 El viernes, 1 de febrero de 2013 11:38:42 UTC+1, Kostya Vasilyev 
 escribió:

 While TreKing's advice to profile is of course excellent...

 ...rebuilding the entire {expandable} list view just to update one 
 item is more work that necessary.

 When performance is important, you can walk the list of visible item 
 views, find the one you need to update, and do it right there. You will 
 want to use listView.getFirstVisibleItem / getLastVisibleItem / 
 getChild.

 Also there is a callback, AbsListView.onScrollListener, which lets 
 you know when the list view is scrolling, and perhaps suspend your 
 updates 
 if necessary.

 -- K

 2013/2/1 saex elpab...@gmail.com

  I have a ExpandableListView with some groups, and each group 
 haves only one child, with a string on it.

 I have a thread that get's some updated data and *each second*calls a 
 handler that updates the string of one of the childs of the 
 ExpandableListView and then calls this method to refresh the view and 
 show 
 the updated data to the user: ((BaseExpandableListAdapter) 
 mAdapter).**notifyDataSetChanged();

 This is the update handler:

 infoUpdateHandler = new Handler(){
 @Override
 public void handleMessage(Message msg) {
 super.handleMessage(msg);   
 children[2][0]=getUpdatedInfo(**);
 ((BaseExpandableListAdapter) 
 mAdapter).notifyDataSetChanged**();
 }
 };

 The problem is that when i'm scrolling the expandable list view, i 
 can see how the scroll is showing low performance, it stops sometimes. 
 I 
 think that it is because this call ((BaseExpandableListAdapter) 
 mAdapter).**notifyDataSetChanged(); is updating all the 
 ExpandableListView. 

 *Does not exist a better way to update a expandable list view? 
 Maybe a way to update only the child that you want to update?*

 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-d...@**
 googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscribe@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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+**unsubscribe
 @googlegroups.com.
 For more options, visit https://groups.google.com/**grou
 ps/opt_out https://groups.google.com/groups/opt_out.
  
  


  -- 

[android-developers] Re: asynctask vs. FragmentRetainInstance.java in API demo

2013-02-01 Thread Streets Of Boston
After your Fragment, the one without a UI, has started the AsyncTask, i.e. 
after the AsyncTask's 'execute' method has been called, it can stop it by 
calling 'cancel' on it.




task.execute(...);
...
...


And on some event, (Fragment's onDestroy for example), you just call.
task.cancel(true);

This will remove the task if it was scheduled or, if it is already running, 
interrupt the thread on which it is running.
See more info about cancelling 
herehttps://developer.android.com/reference/android/os/AsyncTask.html#cancel(boolean)
.



On Wednesday, January 30, 2013 11:30:56 AM UTC-5, Greenhand wrote:

 For asynctask to deal with activity rotation, I find this solution: 
 https://github.com/commonsguy/cw-android/blob/master/Rotation/RotationAsync/src/com/commonsware/android/rotation/async/RotationAsync.java
  .
 However, getlastnonconfigurationinstance() is deprecated in API level 13 (
 http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()
  ) 
 and fragment is recommended.
 I think that fragment is more graceful than asynctask like the code 
 mentioned above in terms of attaching to and detaching from an 
 activity because fragment lifecycles manage them. Besides, fragment can be 
 retained on rotation.
  
 Therefore, I take a look at *
 http://developer.android.com/guide/components/fragments.html*http://developer.android.com/guide/components/fragments.html
  and 
 read For an example activity that uses a fragment as a background worker, 
 without a UI, see the FragmentRetainInstance.java sample. .
 After reading the source code of FragmentRetainInstance.java, I have 
 question on this line 
 getFragmentManager().beginTransaction().add(android.R.id.content, new 
 UiFragment()).commit();.
 It adds the UiFragment()) to the layout and starts the worker thread in 
 RetainedFragment consequently.
  
 I would like to modify the worker thread to perform network operation 
 according to user interaction. For example, when a user fire a 
 View.OnClickListener event, I add the fragment in order to perform network 
 operation.
 Is it okay to add the fragment multiple times if users fire more than one 
 event? Will it lead to some side effect (to view hierarchy)?
  
 The other question, why
 synchronized (mThread) {
 mReady = false;
 mThread.notify();
 }
 appears in both onDestroy() and onDetach()?
 Aren't they duplicate because the thread is gone when onDestroy() returns? 
 Why try to stop the thead again in onDetach()?
  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread skink


saex wrote:
 arg... you didn't understand me or i can't understand you

 getChildView and getGroupView are from the ExpandableListView, but we are
 talking about the Adapter,

no, see 
http://developer.android.com/reference/android/widget/ExpandableListAdapter.html

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: html parsing issuess

2013-02-01 Thread bob
It looks like there is missing code here:

*webview.loadUrl(http://www.indianrail.gov.in/pnr_Enq.html;);*
*
*
*-- missing code --*
*
*
**
*Parser parser=Parser.createParser(responseBody, HTTP.UTF_8);*


You need to declare responseBody and assign it the contents of that URL.




On Thursday, January 31, 2013 2:29:33 PM UTC-6, prudhvi wrote:

 hi everyone,

 i am parsing html page into webview page in android. for this case ,i was 
 using html parser. so please download the html parser 1.6 jar while 
 executing the code

 The error i was facing is :
 responseBody cannot be resolved to a variable
  
 can anyone solve this error..


 this is my code

 layout page
 -
 ?xml version=1.0 encoding=utf-8?
 WebView  xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/webView1
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 /

 activity page

 ---
 package com.android.pnr;

 import java.util.ArrayList;
 import java.util.List;
 import org.apache.http.protocol.HTTP;
 import org.htmlparser.Parser;
 import org.htmlparser.filters.TagNameFilter;
 import org.htmlparser.util.NodeList;

 import android.R.string;
 import android.app.Activity;
 import android.app.Dialog;
 import android.os.Bundle;
 import android.webkit.WebView;
 import android.webkit.WebViewClient;



 public class MainActivity extends Activity {
 WebView webview;
  List allTables;
  Dialog dialog;

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);
 webview = (WebView) findViewById(R.id.webView1);  
 webview.setWebViewClient(new WebViewClient());  
 webview .getSettings().setJavaScriptEnabled(true);
 webview .getSettings().setDomStorageEnabled(true);  
 webview.loadUrl(http://www.indianrail.gov.in/pnr_Enq.html;);
 
 Parser parser=Parser.createParser(responseBody, HTTP.UTF_8);
 NodeList nl = parser.parse(null);
 NodeList tables = nl.extractAllNodesThatMatch(new
 TagNameFilter(table),true);
 CharSequence error1=FLUSHED PNR / PNR NOT YET GENERATED;
 CharSequence error2=Following ERROR was encountered in your Query 
 Processing;
 CharSequence error3=Please Try Again;
 CharSequence error4=Facility Not Avbl due to Network Connectivity 
 Failure.;
 for(int i=0;itables.size();i++) {

 

 if(tables.elementAt(i).toPlainTextString().contains(error1)||tables.elementAt(i).toPlainTextString().contains(error2)||tables.elementAt(i).toPlainTextString().contains(error3)||tables.elementAt(i).toPlainTextString().contains(error4)){
 dialog.dismiss();
 return ;
 }
 {
 List table=new ArrayList();
 List rows;
 List columns;
 NodeList nodes = tables.elementAt(i).getChildren();
 NodeList trs  = nodes.extractAllNodesThatMatch(new
 TagNameFilter(tr),true);

 rows=new ArrayList();
 for(int j=0;jtrs.size();j++){
 NodeList trnodes = trs.elementAt(j).getChildren();
 NodeList tds  = trnodes.extractAllNodesThatMatch(new
 TagNameFilter(td),true);
 columns=new ArrayListObject();
 for(int z=0;ztds.size();z++){
 
 if(tds.elementAt(z).toPlainTextString().contains(error1)||tds.elementAt(z).toPlainTextString().contains(error2)||tds.elementAt(z).toPlainTextString().contains(error3)||tds.elementAt(z).toPlainTextString().contains(error4)){
 dialog.dismiss();

 return ;
 }
 else
 columns.add(tds.elementAt(z).toPlainTextString().replaceAll(  , 
  ));
 }
 rows.add(columns);
 }
 table.add(rows);

 allTables.add(table);
 }
 
 }

 }}


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

2013-02-01 Thread dany varghese
can suggest a site to download the program code for an OCR app(Text
extraction from Image) .

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread bob
 

It seems that both of your games are probably a violation of a Milton 
Bradley trademark.  You might want to just pull yours down unless you 
actually got permission from Milton Bradley.




On Friday, February 1, 2013 1:41:46 AM UTC-6, Adam wrote:

 I released a game a few years ago with little to no success, around 6k 
 downloads. It was a bit of fun, I didn't intend to make money from it, so 
 had no ads.

 Anyway, it turns out someone has decompiled it to include ads and a link 
 to their other games (where it would otherwise go to my pro version). 

 Now normally I wouldn't care, but it has over 100k+ downloads and they 
 have copied all my art in Google Play.

 My game:

 https://play.google.com/store/apps/details?id=com.userassistance.simon

 Cloned/stolen game:

 https://play.google.com/store/apps/details?id=com.apps.simon

 What should I do?

 Thanks!


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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 you debug?... here error: syntax error : insert ( to complete expression

2013-02-01 Thread bob
 

Why would that have fixed the problem?




On Friday, February 1, 2013 2:54:14 AM UTC-6, lselwd wrote:

 problem fixed: I removed  reinserted whole function...

 On Wednesday, January 30, 2013 7:25:44 PM UTC+2, lselwd wrote:

  


 private ListString fileNameList; // flag file names

 int[] sizeWordCountries = new int[9];  // 10   

   

   for (int i = 0; i  9; i++)  

   { 

   sizeWordCountries[i]=(fileNameList.get(i)).length();  // here 
 error: syntax error : insert ( to complete expression

   }



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] is Google going to ship Chrome as a default browser for next OS release

2013-02-01 Thread Kristopher Micinski
This surprises me, are the user's bookmarks accessible in a public
provider?  I had been under the impression that this was removed
(always throws a `SecurityException`) since 2.2.

kris

On Fri, Feb 1, 2013 at 8:42 AM, H m...@howardb.com wrote:
 Probably unlikely to replace the Stock Browser in AOSP Android - Chrome is 
 dependant on the Google APIs, so if it replaced the browser then there 
 wouldn't be a browser on AOSP Android. But on Google licensed devices, 
 there's no reason to not remove the Stock Browser. However Chrome doesn't 
 provide a public bookmarks provider, so all those apps that rely on a 
 provider to show the user's bookmarks in a widget (for example) would no 
 longer work.

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




Re: [android-developers] Disable Triple Buffering In 4.1?

2013-02-01 Thread Romain Guy
No it cannot be disabled. What issue is it causing?
On Feb 1, 2013 1:16 AM, muleskinner ja...@bitbull.com wrote:

 Hi,

 Is there any way to disable Jelly Bean triple buffering from within my
 app? It's causing me issues and the easiest way to fix would be to disable
 it...

 Help much appreciated!

 cheers

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




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
I see, but i can't understand how to do what i need to do...

El viernes, 1 de febrero de 2013 16:03:17 UTC+1, skink escribió:



 saex wrote: 
  arg... you didn't understand me or i can't understand you 
  
  getChildView and getGroupView are from the ExpandableListView, but we 
 are 
  talking about the Adapter, 

 no, see 
 http://developer.android.com/reference/android/widget/ExpandableListAdapter.html
  

 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.




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread skink


saex wrote:
 I see, but i can't understand how to do what i need to do...



just call getChildView

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.




Re: [android-developers] Re: can you debug?... here error: syntax error : insert ( to complete expression

2013-02-01 Thread Kostya Vasilyev
Sometimes Java compile errors stick after they've been corrected. I just
saw this today (Eclipse 3.7.2, latest ADT). Not sure if it's an issue with
Eclipse or ADT.

-- K

2013/2/1 bob b...@coolfone.comze.com

 Why would that have fixed the problem?




 On Friday, February 1, 2013 2:54:14 AM UTC-6, lselwd wrote:

 problem fixed: I removed  reinserted whole function...

 On Wednesday, January 30, 2013 7:25:44 PM UTC+2, lselwd wrote:




 private ListString fileNameList; // flag file names

 int[] sizeWordCountries = new int[9];  // 10



   for (int i = 0; i  9; i++)

   {

   sizeWordCountries[i]=(**fileNameList.get(i)).length();  // here
 error: syntax error : insert ( to complete expression

   }

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




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it is 
not the problem, read the full post please

El viernes, 1 de febrero de 2013 17:10:53 UTC+1, skink escribió:



 saex wrote: 
  I see, but i can't understand how to do what i need to do... 
  
  

 just call getChildView 

 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.




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread skink


saex wrote:
 argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it is
 not the problem, read the full post please



i did read the full thread and still i think you should call
getChildView as Kostya suggested


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: Android Geocoder yields inaccurate results only with MY package name

2013-02-01 Thread Franklin
This problem still bugs the hell out of me. I have written an obscure 
workaround that doesn't work 100% of the time, and it really bugs the hell 
out of my users (I have about 500,000 active users) as well.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Kostya Vasilyev
And if you can't call getChildView, just copy the code from there to where
you need it.

(Can't believe I wrote copy the code... will my developer license be
revoked now?)

-- K

2013/2/1 skink psk...@gmail.com



 saex wrote:
  argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it is
  not the problem, read the full post please
 
 

 i did read the full thread and still i think you should call
 getChildView as Kostya suggested


 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.




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

2013-02-01 Thread dashman

If i'm drawing bitmaps (multiple small ones) to my canvas,

should i check whether it's within the cliprect or will the system
do it automatically for me.

i.e. i do not want android to draw bitmaps that will not be seen.

which is more efficient.

also - does this apply to all canvas operations.


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

2013-02-01 Thread Bram Stolk
Hi there,


Did anyone else see a sharp drop in downloads on jan 31?
I was hoping it could be related to Google's transition to different pay 
out schedule this month.
If not, my app started to do not as good anymore. It went down roughly 25% 
between wed and thu.
Normally, I only see sudden drops after a weekend.

Thanks,

  Bram Stolk


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android Geocoder yields inaccurate results only with MY package name

2013-02-01 Thread Nobu Games
Maybe you should provide an alternative driver based on a service like 
geonames.org. Their address database is free to use (with content 
attribution). Only downside is that they have a daily usage limit which 
must not be exceeded unless you pay for some premium access.

However, if that problem just occurs with a fraction of your users you 
could run that workaround only on their particular devices. You could let 
the user decide which driver to use (native one or geonames).

On Friday, February 1, 2013 11:15:56 AM UTC-6, Franklin wrote:

 This problem still bugs the hell out of me. I have written an obscure 
 workaround that doesn't work 100% of the time, and it really bugs the hell 
 out of my users (I have about 500,000 active users) as well.

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

2013-02-01 Thread Romain Guy
The system will do it for you but if it's easy for you to do it you should
do it as well.


On Fri, Feb 1, 2013 at 9:30 AM, dashman erjdri...@gmail.com wrote:


 If i'm drawing bitmaps (multiple small ones) to my canvas,

 should i check whether it's within the cliprect or will the system
 do it automatically for me.

 i.e. i do not want android to draw bitmaps that will not be seen.

 which is more efficient.

 also - does this apply to all canvas operations.


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






-- 
Romain Guy
Android framework engineer
romain...@android.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 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: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread Jake Colman
 T == TreKing  treking...@gmail.com writes:

   T On Tue, Jan 29, 2013 at 10:51 AM, Jake Colman jake.col...@gmail.com 
wrote:

I am finding that, on occasion, after I delete my widget from my
homescreen the underlying Service that I use is still receiving
alarms and doing work.  I do all my clean-up in onDisabled and do
nothing on onDeleted.  Is it possible that onDeleted can be called
without an intervening call to onDisabled?


   T You've verified that the method is definitely not being called? It
   T could be that it's being called and you have a bug, like not
   T deleting the correct alarm or something.

   T Also, if you're cleaning up a single instance, I think you should
   T use onDeleted. onDisable is for when there are no widgets at all
   T left and you need to clean up some shared state or something.

I am doing my clean-up in onDisabled since I only need to clean up after
the last widget is removed.

Under normal circumstances, when I remove the widget onDeleted fires
followed by onDisabled.  In the following scenario I get screwed:

1) Press on homescreen to install the widget
2) Configuration activity is displayed.  Press back arrow to exit.
3) On CM7 (my test phone) the resize widget activity is displayed.
   Instead of pressing OK, press back arrow.  The widget is NOT
   created.

In this instance, if I create another widget and delete it only
onDeleted is fired but onDisabled is not.  It looks like Android thinks
that the first aborted instance is still there.

How can I protect against this scenario?

-- 
Jake Colman -- Android Tinkerer

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread saex
What? where should i put that view? i dont understand you...

the objective is to update one item instead of rebuilding the entire 
{expandable} list view.

So... what should i do with that view? how can i make that view to be 
refreshed when i want?

i'm stuck

El viernes, 1 de febrero de 2013 18:19:57 UTC+1, Kostya Vasilyev escribió:

 And if you can't call getChildView, just copy the code from there to where 
 you need it.

 (Can't believe I wrote copy the code... will my developer license be 
 revoked now?)

 -- K

 2013/2/1 skink psk...@gmail.com javascript:



 saex wrote:
  argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it is
  not the problem, read the full post please
 
 

 i did read the full thread and still i think you should call
 getChildView as Kostya suggested


 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 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.




Re: [android-developers] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread skink


saex wrote:
 What? where should i put that view? i dont understand you...

 the objective is to update one item instead of rebuilding the entire
 {expandable} list view.

 So... what should i do with that view? how can i make that view to be
 refreshed when i want?



its simple: if your child view (I assume you can somehow get child
view as you said) is for example TextView simply call setText()

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: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread Kostya Vasilyev
There was a bug in Android 2.* where doing what you described (canceling 
the widget config activity) caused the Android framework (or the Launcher?) 
to still save the assigned widget id.

Another case for ghost widget IDs was when there was not enough room on the 
home screen.

On one of my devices, I had over 80 of these ghost widget IDs at a time. As 
you might imagine, running an update for all of them was pretty slow.

You mention CM7, I guess that's 2.3?

I've long gotten into the habit of tracking widget IDs myself, adding new 
ones when the user confirms in the config activity, and removing in the 
widget's onDelete.

-- K

On Friday, February 1, 2013 11:31:54 PM UTC+4, Jake Colman wrote:

  T == TreKing  treki...@gmail.com javascript: writes: 

T On Tue, Jan 29, 2013 at 10:51 AM, Jake Colman 
 jake@gmail.comjavascript: 
 wrote: 

 I am finding that, on occasion, after I delete my widget from my 
 homescreen the underlying Service that I use is still receiving 
 alarms and doing work.  I do all my clean-up in onDisabled and do 
 nothing on onDeleted.  Is it possible that onDeleted can be called 
 without an intervening call to onDisabled? 
 

T You've verified that the method is definitely not being called? It 
T could be that it's being called and you have a bug, like not 
T deleting the correct alarm or something. 

T Also, if you're cleaning up a single instance, I think you should 
T use onDeleted. onDisable is for when there are no widgets at all 
T left and you need to clean up some shared state or something. 

 I am doing my clean-up in onDisabled since I only need to clean up after 
 the last widget is removed. 

 Under normal circumstances, when I remove the widget onDeleted fires 
 followed by onDisabled.  In the following scenario I get screwed: 

 1) Press on homescreen to install the widget 
 2) Configuration activity is displayed.  Press back arrow to exit. 
 3) On CM7 (my test phone) the resize widget activity is displayed. 
Instead of pressing OK, press back arrow.  The widget is NOT 
created. 

 In this instance, if I create another widget and delete it only 
 onDeleted is fired but onDisabled is not.  It looks like Android thinks 
 that the first aborted instance is still there. 

 How can I protect against this scenario? 

 -- 
 Jake Colman -- Android Tinkerer 



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

2013-02-01 Thread RichardC
http://code.google.com/hosting/search?q=OCRbtn=Search+Projects


On Friday, February 1, 2013 3:24:33 PM UTC, dany varghese wrote:

 can suggest a site to download the program code for an OCR app(Text 
 extraction from Image) . 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To 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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Nobu Games
Your Adapter has these 
getChildViewhttp://developer.android.com/reference/android/widget/ExpandableListAdapter.html#getChildView(int,
 
int, boolean, android.view.View, android.view.ViewGroup) and 
getGroupViewhttp://developer.android.com/reference/android/widget/ExpandableListAdapter.html#getGroupView(int,
 
boolean, android.view.View, android.view.ViewGroup) methods. Both these 
methods have an argument called *convertView*. That *convertView* 
argument is a view object that already has been created and filled with 
data by your adapter. If convertView is *not null* your Adapter should 
reuse that object instead of inflating or creating a new view.

And that's the whole point and one possible solution to your problem. You 
can manually do the same what ListAdapter does under the hood. Just get 
the correct child view you want to update and pass that child view as 
convertView argument to your adapter's getChildView method (with the 
correct group index and child item position of course). If your adapter is 
correctly programmed it will reuse that existing view object and just fill 
it with the correct data to display.

However, you may experience update errors while scrolling quickly through 
your listview. There are workarounds possible by using a scroll listener. 
When your listener detects a fling that causes fast scrolling, you could 
stop your updates, because they won't be visible anyway. You could also 
generally stop updates while the user is scrolling.

Now to the real question: why is scrolling your list view so slow? Even 
with using notifyDataSetChanged it shouldn't slow down that much because 
ListView only updates the currently visible list items and that's it.

What exactly does your adapter do in getChildView and getGroupView? Does it 
query a database? Does it decode bitmap objects? Does it read data from a 
file?
What does getUpdateInfo do?

You should create and update the adapter data only in a background thread. 
The UI thread should not be burdened with anything that might be blocking 
(like network or file I/O, database access, bitmap loading...). Is your 
handler code in your first post invoked on the UI thread? If so, you should 
move this update to a background thread that is continuously running and 
pausing for a second. When the activity is paused that thread should be 
stopped.

On Friday, February 1, 2013 1:37:05 PM UTC-6, saex wrote:

 What? where should i put that view? i dont understand you...

 the objective is to update one item instead of rebuilding the entire 
 {expandable} list view.

 So... what should i do with that view? how can i make that view to be 
 refreshed when i want?

 i'm stuck

 El viernes, 1 de febrero de 2013 18:19:57 UTC+1, Kostya Vasilyev escribió:

 And if you can't call getChildView, just copy the code from there to 
 where you need it.

 (Can't believe I wrote copy the code... will my developer license be 
 revoked now?)

 -- K

 2013/2/1 skink psk...@gmail.com



 saex wrote:
  argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it 
 is
  not the problem, read the full post please
 
 

 i did read the full thread and still i think you should call
 getChildView as Kostya suggested


 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-d...@googlegroups.com
 To unsubscribe from this group, 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.




Re: [android-developers] Re: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 1:31 PM, Jake Colman jake.col...@gmail.com wrote:

 1) Press on homescreen to install the widget
 2) Configuration activity is displayed.  Press back arrow to exit.
 3) On CM7 (my test phone) the resize widget activity is displayed.


I think you may have a bad build of CM. I have CM7 as well on my G2X and
when I back out of my configuration Activity, the resize control is NOT
displayed, as expected.

That said, I tried on an emulator and after starting my config activity, if
I back out, the widget instance has onUpdate called but never deleted,
resulting in onDisable never being called.

I checked the bug database and I think you're suffering from this:

http://code.google.com/p/android/issues/detail?id=2539

Not sure what you can do about this ...

-
TreKing http://sites.google.com/site/rezmobileapps/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 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: AppWidgetProvider onDeleted vs onDisabled

2013-02-01 Thread Kostya Vasilyev


On Saturday, February 2, 2013 12:10:54 AM UTC+4, TreKing wrote:

 I checked the bug database and I think you're suffering from this:

 http://code.google.com/p/android/issues/detail?id=2539


According to the last comment on that page, it's still not fixed in 4.2?

And that comment is correct, I just ran a quick test... Galaxy Nexus, stock 
4.2.1, stock launcher :)

-- K
 

 Not sure what you can do about this ...


 -
 TreKing http://sites.google.com/site/rezmobileapps/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 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] eclipse logcat problem

2013-02-01 Thread dashman
sometimes eclipse logcat stops working and i have to restart
both eclipse and the emulator.

any better way?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Adam
You're probably right, and the the irony of me complaining about it isn't 
lost on me. I'm more than happy to take the app down, I've made all of $16 
on the paid version (which is different to the MB classic) and it cost me 
$25 to publish it. So I'm down $9. It was just a little project I did to 
learn Android, there are heaps of other Simon Says games out there - some 
very successful (in terms of downloads at least).

The other developer has still copied all my recourses, translations, 
artwork etc. I'm actually over the initial shock now, of seeing someone 
playing 'my game' at work - but with ads and 20 times the downloads LOL

And, hey, I'll go on record to say that if I make another cent from it 
(miraculously) I'll donate it all to *Médecins Sans Frontières* an 
international, independent organisation for medical humanitarian aid.

Cheers.

Also, can you actually remove aps yourself form from the developer console 
of Play?

On Saturday, 2 February 2013 02:27:53 UTC+11, bob wrote:

 It seems that both of your games are probably a violation of a Milton 
 Bradley trademark.  You might want to just pull yours down unless you 
 actually got permission from Milton Bradley.


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

2013-02-01 Thread Nobu Games
For me the following usually works:

- Clicking device / emulator entry in device list
- Clearing log cat
- Restarting ADB and clicking device in device list

If you're developing with a real device the problem can be the device 
itself as well. One quick workaround is deactivating USB debugging in the 
system settings and activating it again. Sometimes only restarting the 
device helps.

An older Samsung Android firmware I was using was even more problematic. I 
could make USB debugging only work again by rebooting into the service menu 
(volume up + home button + power button). And from there I had to clear the 
cache partition. That was usually the last resort for solving that problem.

On Friday, February 1, 2013 2:38:52 PM UTC-6, dashman wrote:

 sometimes eclipse logcat stops working and i have to restart
 both eclipse and the emulator.

 any better way?



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

2013-02-01 Thread bob
Can someone help me understand why the startActivity method is in the 
Activity class?

I really don't feel like it clearly belongs in any class.

I basically want to call the function when I don't necessarily have a 
handle to an Activity object yet.

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

2013-02-01 Thread Doug Gordon
I've just updated my app to use an ActionBar with navigation tabs and 
the splitActionBarWhenNarrow option, integrated with ViewPager to allow 
swiping between tabs. The home icon and title in the bar are disabled.  
It is functionally working on all configurations, but in one case it 
doesn't act as I would expect.


When on a smartphone in portrait config, the Action Bar splits with the 
tabs in the top bar and the menu/action items in the bottom bar. Of 
course I can select a page by tapping a tab, and when I swipe from page 
to page the tab selection highlight (underbar) moves to the selected 
tab. So far so good.


When I turn the device into the landscape position, I now get a single 
Action Bar at the top. The action and overflow menu icons are at the 
right, and Android has turned my tabs into a dropdown selector on the 
left side. This works OK when I use the selector to change pages, but 
when I swipe from page to page the selector *does not change* to 
indicate the current tab.


My code of course does not change depending on configuration, and I set 
breakpoints to show that onPageSelected is called, which calls 
bar.setSelectedNavigationItem, causing onTabSelected to be called in 
turn. So the expected actions are taking place, but the selector in the 
dropdown does not change.


Any ideas what is going on?

(For what it's worth, in landscape position on a tablet, I get yet 
another variant: a single Action Bar with my tabs on the left and action 
items on the right. In this case, the tab highlight correctly follows 
when swiping.)


  Doug Gordon
   GHCS Software

--
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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: My game has cloned/stolen, how has this happend?

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 2:51 PM, Adam a...@thesadpig.com wrote:

 Also, can you actually remove aps yourself form from the developer console
 of Play?


No. Once you publish, there is no going back. Hell, you're stuck with apps
in your console even if you so much as create an empty test space. Be very
careful.

-
TreKing http://sites.google.com/site/rezmobileapps/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 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] startActivity

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 3:22 PM, bob b...@coolfone.comze.com wrote:

 Can someone help me understand why the startActivity method is in the
 Activity class?

 I really don't feel like it clearly belongs in any class.

 I basically want to call the function when I don't necessarily have a
 handle to an Activity object yet.


Try reading the documentation.

-
TreKing http://sites.google.com/site/rezmobileapps/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 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: startActivity

2013-02-01 Thread Nobu Games
Think of an Android app as a website. A single HTML page is an Activity. 
And startActivity is like a link to another HTML page / acitvity. Since 
every page / activity needs links to navigate the whole website / app you 
also need the startActivity method in the Activity class.


On Friday, February 1, 2013 3:22:34 PM UTC-6, bob wrote:

 Can someone help me understand why the startActivity method is in the 
 Activity class?

 I really don't feel like it clearly belongs in any class.

 I basically want to call the function when I don't necessarily have a 
 handle to an Activity object yet.



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

2013-02-01 Thread Kostya Vasilyev
Better way -- running adb logcat -v time in a command line window /
terminal of your operating system :)

2013/2/2 dashman erjdri...@gmail.com

 sometimes eclipse logcat stops working and i have to restart
 both eclipse and the emulator.

 any better way?

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




Re: [android-developers] Re: My game has cloned/stolen, how has this happend?

2013-02-01 Thread Adam
Yeah, that's what I thought. As I said, I'd be more than happy to take my 
app down. But I can't.

It's a pretty funny situation to be honest. I doubt he would have made much 
from the ads and I'm guessing those 100k+ downloads and 300 odd comments 
have been done by a bot. The game is crap, full of bugs, doesn't handle 
onPause and onResume properly so you loose your score/count when you 
receive a call which isn't ideal.

I wonder what happened with the scoreloop integration? I'd test it, but 
don't even have an Android device anymore. In fact, I don't even develop 
anymore. I wonder if the top scores are all still there?

Anyway, thanks for all the help.

On Saturday, 2 February 2013 08:23:20 UTC+11, TreKing wrote:


 On Fri, Feb 1, 2013 at 2:51 PM, Adam ad...@thesadpig.com javascript:wrote:

 Also, can you actually remove aps yourself form from the developer 
 console of Play?


 No. Once you publish, there is no going back. Hell, you're stuck with apps 
 in your console even if you so much as create an empty test space. Be very 
 careful.


 -
 TreKing http://sites.google.com/site/rezmobileapps/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 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] “Fix Project Properties”

2013-02-01 Thread bob
Can anyone explain in layman's terms what “Fix Project Properties” does?

Also, is there a log or something you can check to see exactly what it has 
done after you ran it?

Thanks.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] “Fix Project Properties”

2013-02-01 Thread TreKing
On Fri, Feb 1, 2013 at 4:43 PM, bob b...@coolfone.comze.com wrote:

 Can anyone explain in layman's terms what “Fix Project Properties” does?


Will you please learn to use Google? The very first hit is an answer on
StackOverflow.

-
TreKing http://sites.google.com/site/rezmobileapps/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 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: “Fix Project Properties”

2013-02-01 Thread Lew
bob wrote:

 Can anyone explain in layman's terms what “Fix Project Properties” does?


Basically tells the project where the Android SDK is. 

If you see a message suggesting that you fix your project's properties, it 
tells you what it does.


 Also, is there a log or something you can check to see exactly what it has 
 done after you ran it?


logcat?

Pretty basic stuff. As TreKing hinted, GIYF.

Also, there's http://developer.android.com/.

Oh, wait, I see from 
http://lmgtfy.com/?q=Android+fix+project+properties
that you were asking about Eclipse?

You might want to mention that in the question.

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




[android-developers] Re: startActivity

2013-02-01 Thread Lew
bob wrote:

 Can someone help me understand why the startActivity method is in the 
 Activity class?


Because it's an abstract method in 'Context' and must be implemented in any 
non-abstract 
derived type.

 I really don't feel like it clearly belongs in any class.

No one is concerned with your feelings.

In Java, *every* method and variable belongs to a type, or is local to a 
method or initializer
within a class. So your feeling violates the fundamental structure of the 
Java language itself.

 I basically want to call the function when I don't necessarily have a 
handle to an Activity object yet.

Okay.

Call from where?

-- 
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] Efficient way to update one of the childs of a ExpandableListView group?

2013-02-01 Thread Lew
saex wrote:

 argg you didn't understand me. I KNOW HOW TO GET THE VIEW, it is 
 not the problem, read the full post please



Instead of bitching and shouting at everyone trying to help you for free, 
which is a pretty 
darn good way to stop receiving free help altogether as people start to 
resent your 
chastisements, how about you 
- attempt to follow their advice, and
- post an SSCCE http://sscce.org/ illustrating your attempt.

Follow this advice also:
http://www.catb.org/esr/faqs/smart-questions.html

-- 
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: can you debug?... here error: syntax error : insert ( to complete expression

2013-02-01 Thread Lew
Kostya Vasilyev wrote:

 Sometimes Java compile errors stick after they've been corrected. I just 
 saw this today (Eclipse 3.7.2, latest ADT). Not sure if it's an issue with 
 Eclipse or ADT.

 It's Eclipse, not ADT, I assess.

Eclipse is notable for maintaining its own idea of artifact state.

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




[android-developers] Alpha ordering ListPreference values to suit current locale

2013-02-01 Thread William Ferguson
What's the optimal way to ensure that the values in a ListPreference are 
alpha ordered according to the current locale?

Eg if my list contains languages
string-array name=language_keys
  itemcs/item
  itemda/item
  itemde/item
  itemen/item
  itemes/item
  itemfi/item
/string-array

string-array name=language_values !-- English displays --
  itemCzech/item
  itemDanish/item
  itemGerman/item
  itemEnglish/item
  itemSpanish/item
  itemFinnish/item
/string-array

string-array name=language_values !-- German displays --
  itemTschechisch/item
  itemDänisch/item
  itemDeutsch/item
  itemEnglisch/item
  itemSpanisch/item
  itemFinnisch/item
/string-array

Should I replicate the keys and values in all resource locales and change 
their order to suit? Or is their some way that I haven't found yet where I 
can readily apply a sort to the ListPreference keys and values?

William

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

2013-02-01 Thread lbendlin
smells like a database driven custom preference to me.

On Friday, February 1, 2013 9:13:09 PM UTC-5, William Ferguson wrote:

 What's the optimal way to ensure that the values in a ListPreference are 
 alpha ordered according to the current locale?

 Eg if my list contains languages
 string-array name=language_keys
   itemcs/item
   itemda/item
   itemde/item
   itemen/item
   itemes/item
   itemfi/item
 /string-array

 string-array name=language_values !-- English displays --
   itemCzech/item
   itemDanish/item
   itemGerman/item
   itemEnglish/item
   itemSpanish/item
   itemFinnish/item
 /string-array

 string-array name=language_values !-- German displays --
   itemTschechisch/item
   itemDänisch/item
   itemDeutsch/item
   itemEnglisch/item
   itemSpanisch/item
   itemFinnisch/item
 /string-array

 Should I replicate the keys and values in all resource locales and change 
 their order to suit? Or is their some way that I haven't found yet where I 
 can readily apply a sort to the ListPreference keys and values?

 William


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

2013-02-01 Thread Hand Green
Thank you for your response. If I use a fragment as a worker thread, I will
adapt the pattern in FragmentRetainInstance.java. Because it is unnecessary
for a worker fragment to start a asynctask, the worker thread can do the
task directly by using java.lang.Thread.

However, I still do not understand whether it is okay to add multiple
invisible fragments as worker threads to the UI and why it tries to stop
the thread in both onDestroy() and onDetach().

2013/2/1 Streets Of Boston flyingdutc...@gmail.com

 After your Fragment, the one without a UI, has started the AsyncTask, i.e.
 after the AsyncTask's 'execute' method has been called, it can stop it by
 calling 'cancel' on it.


 
 
 task.execute(...);
 ...
 ...


 And on some event, (Fragment's onDestroy for example), you just call.
 task.cancel(true);

 This will remove the task if it was scheduled or, if it is already
 running, interrupt the thread on which it is running.
 See more info about cancelling 
 herehttps://developer.android.com/reference/android/os/AsyncTask.html#cancel(boolean)
 .




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

2013-02-01 Thread Kevin TeslaCoil Apps
For animations you can use
overridePendingTransition(0, 0); which I think is more reliable than the 
Intent flag.
http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int,
 
int)
Do it right before the startActivity

As for when to start the activity you might have luck creating a handler 
and just posting a runnable to it in onCreate. I've done this in 
transparent activities to avoid a brief black screen.


On Friday, February 1, 2013 8:08:27 AM UTC-6, Pent wrote:

 Progress! Don't know what I changed but managed to prevent the between 
 startup and main activity animation. So a startup activity works, but 
 only if there's a delay before 
 I call the main activity. Here's the code: 

 public class FrontDoor extends MyActivity { 

 @Override 
 public void onCreate( Bundle icicle ) { 

 super.onCreate( icicle ); 

 MyFrameLayout v = new MyFrameLayout(this); 

 v.setLayoutParams( new 
 ViewGroup.LayoutParams( LayoutParams.FILL_PARENT, 
 LayoutParams.FILL_PARENT ) ); 
 setContentView( v ); 

 v.setOnLayoutCallback( new MyFrameLayout.OnLayoutCallback() { 
 @Override 
 public void onLayout(int width, int height) { 
 new Handler() { 
 public void handleMessage( Message 
 m ) { 
  startActivity( 
 new Intent( 
 FrontDoor.this, Tasker.class ). 
 setFlags( 
 Intent.FLAG_ACTIVITY_NO_ANIMATION ) 
 ); 
 } 
 }.sendEmptyMessageDelayed( 0, 500 ); 
 } 
 }); 
} 

 (the theme-setting stuff is in MyActivity) 

 If there's no delay, the startup activity disappears immediately and 
 is not there while the main activity is loading. I put it in a layout 
 handler because that's the latest hook I can find into the activity 
 creation process so the time from there till the next activity is most 
 constant. 

 Anyone have a better hook where the activity has finished displaying 
 and I can safely start the sub-activity ? onResume() and 
 onPostResume() are not late enough. 

 Pent 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Exploring and Downloading files from a device over a wifi connection

2013-02-01 Thread Raneez


I want my android application to connect to a device like 
FlashAirhttp://www.toshiba-components.com/FlashAir/index.html
 over *wifi* connection and *explore* its *directories* and *download* the 
selected files to the android device.

I have gone through this 
posthttp://marakana.com/forums/android/examples/40.html and 
got some idea how to *scan* and *detect* devices over wifi. Now how can i 
access its *file directories* and *download* the files?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Adjusting the mic sensitivity for recording audio in android

2013-02-01 Thread Raneez


I am developing an android application which records audio in *PCM* using 
the *AudioRecord* API. I want to adjust the mic sensitivity to low, medium 
and high as the user chooses it in the settings.

Is it possible to adjust the *mic sensitivity*? Your answers will be highly 
appreciated :)

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