Re: [android-developers] Notifications and killed app

2013-04-24 Thread Piren
Were you talking about the notification of the service? because that can 
obviously cannot be removed while the service is running.. it's whole point 
is to show you have a foreground service.

On Wednesday, April 24, 2013 1:14:43 AM UTC+3, Larry Meadors wrote:

 OK, there was a foreground service involved. I added a call to 
 stopForeground(true) in my app when the service stops, and that seems 
 to make it behave better. 

 Larry 


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

2013-04-24 Thread Piren
The swipe thing has a funny way of working when you have a foreground 
service... everything in the app gets closed (all activities are gone) 
except for that service... that means that if you re-launch the app you 
need to figure out the state the app was before.

in you case, display which files are being played and go back to showing 
the ui in playing mode. 

regarding the notification, see my other response.

On Tuesday, April 23, 2013 7:47:32 PM UTC+3, Larry Meadors wrote:

 BTW, there is a foreground service here, and that service lives on. 

 That's what I can't quite get my head around. The service is still 
 running and our activity starts and binds to it. 

 But when we call notificationManager.cancelAll(); from the service, 
 it doesn't cancel the previously created notification. :-/ 

 Larry 


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

2013-04-24 Thread Piren
Android isnt a web server, it doesn't have the concept of Session not its 
memory/cache management system.
It does have other ways of having data persistency. 

But it does make me wonder, do people even read the instructions/tutorials, 
or do you guys just start Eclipse and assume it will feed you with 
knowledge on how to program for android?
http://developer.android.com/training/basics/data-storage/index.html

On Tuesday, April 9, 2013 11:47:34 AM UTC+3, rohan.d...@gmail.com wrote:

 Hi

 I have one application build on android 2.2. I need to know is there any 
 *Session* management kind of stuff exist in android development ? So i 
 can implement it in my entire android application.

 If yes then can you please share any web urls or code for my reference ?

 Thanks in advance !!




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




[android-developers] Re: Launch Mode : singleTop FAILS on first time app start of signed build

2013-04-24 Thread Piren
Well, when i encountered issues i couldn't overcome because of android's 
picky way of deciding which activity to show i just made my own 
implementation... had only one entry point to the app using a single 
activity which then decided what should be shown next.


On Tuesday, April 23, 2013 7:36:19 PM UTC+3, Dritan wrote:

 Thank you Piren and Andrei for your replies but neither seem to do the 
 same job as singleTop :(

 SingleTop remembers which activity you were last on and always brings that 
 up when launching from the icon. I have tried setting my application to 
 android:allowTaskReparenting=true but that didn't work. 

 I have tried using launchMode=singleTask but that brings up only the 
 main activity - not the last activity user was on. The user has to re-tap 
 within the main activity to get back in the last activity they were on.

 SingleInstance is out of the question - it's always a new instance. 

 My main activity is the only activity with intent filters MAIN and 
 LAUNCHER. 

 I just don't understand why the very first time my app is installed 
 sinlgeTop behaves like standard and only after quitting and restarting 
 the app will singleTop actually work as it should.

 Thanks for your help!
 Dritan
  

 On Tuesday, 23 April 2013 03:34:58 UTC-4, Andrei Ponomarenko wrote:

 Here you go:
 application android:icon=@drawable/icon
  android:label=@string/app_name
 android:theme=@android:style/Theme.Black.NoTitleBar
 android:debuggable=true
 android:allowTaskReparenting=true
 android:name=com.company.product.AppName


 activity 
 android:theme=@style/Theme.Sherlock
 android:name=com.company.product.MainActivity
 android:label=@string/app_name
 android:launchMode=singleTop
 
 

 If you don't want singleTask there is a way to make sure singleTop always 
 has only one instance. Just like Piren said - make sure there are no other 
 intents to launch your app - they will create a different instance. If you 
 absolutely need to have other intents that can launch your activity but 
 still want only one instance use this:
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | 
 Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
 It won't be the same instance but there will be only one.
 Good luck!



 On Tuesday, April 23, 2013 12:10:12 AM UTC-7, Piren wrote:

 Sorry, you should probably try singleTask before singleInstance :)

 On Tuesday, April 23, 2013 10:08:49 AM UTC+3, Piren wrote:

 Sounds like the intent being used to launch the app by default and the 
 intent used to launch from the icon behave differently. SingleTop does not 
 guarantees that only one activity will be shown, rather one per task. 
 sounds as if you keep creating different tasks in one instance.  I had 
 something similar happen to me and it was specific to some Motorola based 
 devices.. i guess their launcher treated launch intents a bit differently.

 If you can, change it to singleInstance. If not, try checking the 
 different intents you use to launch and also see if enabling 
 taskReparenting helps you.

 On Tuesday, April 23, 2013 2:49:13 AM UTC+3, Dritan wrote:

 I just noticed that even when I export the app with a debug key via 
 ant debug the app behaves the same way as OTA installation, which is 
 the incorrect behavior. 

 How come my app's main activity's launchMode stops behaving weirdly 
 AFTER it has run once? I don't have any code handling the activity 
 stack, I left it purely on Android's hands. 

 Any clues? 

 Thanks!! 


 On Apr 22, 6:52 pm, Dritan djdea...@gmail.com wrote: 
  Hello, 
  
  When I sideload my app to my phone via USB, the very first time it 
  runs, the main activity behaves as expected. Only 1 instance of main 
  can be launched, no matter what. 
  
  When I export my app as a signed app, then install the app OTA the 
  main activity behaves completely different ONLY the first time it 
  runs. 
  
  After installing the app, the main activity loads. I press the 
 'Home' 
  button, then relaunch the app from the icon and a new main activity 
 is 
  loaded. I can keep on doing this for tens of hundreds of activity 
  instances. 
  
  Once I have closed all such lose instances and restart the app, then 
  the main activity returns the expected behavior as being a 
 singleTop 
  instance. 
  
  I have removed all proguard-related lines and files from my app so 
  when I export as signed, doesn't try to obfuscate? (to my knowledge) 
  
  I do not understand why this is happening, is this a bug with 
 Android 
  or am I doing something I have never heard of before? Does anyone 
 have 
  a solution? 
  
  Thank you, 
  Dritan 



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

[android-developers] Re: layout_span

2013-04-24 Thread Piren
sounds like this question should be directed to the adt-dev group :)

On Tuesday, April 23, 2013 10:47:51 PM UTC+3, bob wrote:

 Can someone help me understand why there is no auto-complete when I try to 
 add the *layout_span* attribute to a TableRow?

 I was working with this code:

 TableRow
 android:layout_width=wrap_content
 android:layout_height=wrap_content 

 Button
 android:id=@+id/clear_cache_button
 android:layout_width=wrap_content
 android:layout_height=wrap_content
   *  android:layout_span=2*
 android:text=Clear cache
 android:textSize=32sp
 android:textStyle=bold /
 /TableRow

 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] Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread Piren
Actually Push notifications will not work if he Force Closes the app, since 
they stop functioning at that point... Will probably work if killed by a 
Task Killer.

I personally think that if a user is stupid enough to use task killers and 
kill your app, it shouldn't be running on his phone... but if you wanna 
cater to these users, the trick is to use the AlarmManager to check if your 
app is running. If you want that to work on android 2.x (and probably 
till  eternity if you're really diabolical) you can set up another app that 
is responsible for waking up the first up if it is closed.


On Tuesday, April 23, 2013 11:28:14 PM UTC+3, TreKing wrote:


 On Thu, Apr 18, 2013 at 11:28 AM, Archibald Archi 
 adry@gmail.comjavascript:
  wrote:

 I'm currently developing an application with a service. My service is 
 always listening from a server and waiting for messages or notifications 
 and It mustn't be stopped.


 Use Push Notifications. What you're trying to achieve is ill-advised on 
 Android and can only be achieved through cheap hacks.


 -
 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: help needed for raw developer like me

2013-04-24 Thread Piren


 . Is there any book or web site of collections of all classes and methods 
 well explained,


really??
http://developer.android.com/develop/index.html 

On Thursday, April 18, 2013 6:51:11 AM UTC+3, Arun Karkare wrote:

 Hello dear expert programmers!
 I am extremely new and very raw to Android development, but keen to learn 
 Android Applications development.I have so far understood the anatomy of 
 Android application and now know  basics of eclipse IDE and what is src, 
 package, manifest, res, gen, etc folders. I can understand very basic 
 program like Hello world. But I am unable 
 to understand more complecated programs like app-widget-provider, intents 
 etc, I wonder how expert programmer know all the Android classes and 
 methods included there in.How the programmer chooses what class to use 
 where. Is there any book or web site of collections of all classes and 
 methods well explained, so that I can select and use an appropriate class, 
 method for my application whenever I will write one? I tried to find on 
 google search, also tried to understand' developer.android'  site but could 
 find what I really need.Please help.Arun Karkare

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

2013-04-24 Thread Piren
Do you have a URL he can use for this Google you speak of?

;-)

On Wednesday, April 24, 2013 12:51:58 AM UTC+3, TreKing wrote:


 On Mon, Apr 8, 2013 at 1:50 AM, Vinod Devgan 
 vi...@wisknowtech.comjavascript:
  wrote:

 can anyone tell me is Whatsapp Integration . 


 I can tell you what Google is.


 -
 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] VPN connect/disconnect detection on Android 4+

2013-04-24 Thread Martin Heller
Hi,

is there a way to detect VPN connection/disconnection on Android 4.0 and 
newer?
I found 
http://stackoverflow.com/questions/6031821/no-connectivity-change-with-vpn
and
http://stackoverflow.com/questions/3461967/get-vpn-connection-status-on-android
however this only works on Android older than 4.0.

Thanks

Martin

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

2013-04-24 Thread yccheok
The following scenario is not uncommon under activity with list view.

1) Long pressed an item to enter multi-selection mode.
2) Select the desired item, then press an action button. For example, 
delete button.
3) Exit from multi-selection mode (CHOICE_MODE_MULTIPLE) to none-selection 
mode (CHOICE_MODE_NONE).

I tested the following situation under Android 4.1.

1) Scroll the list view to the end till Item 1023 is seen.
2) Long press on Item 1023 to enter action mode.
3) Select Item 1019 till Item 1022. Now, total 5 items is selected 
including Item 1023
4) Scroll up the list, till only the last visible item is Item 1019
5) Pressed delete button on the top right.
6) Scroll up to the top most. 

You will realize along the way, certain rows are being selected. It seems 
that the recycle views's state_activated stage is not being cleared off, 
when we exit from multi-selection mode.

Even though I have the following code

@Override
public void onDestroyActionMode(ActionMode mode) {
// 
http://stackoverflow.com/questions/9754170/listview-selection-remains-persistent-after-exiting-choice-mode
// Using View.post is the key to solve the problem.
final ListView listView = MainActivity.this.getListView();
listView.clearChoices();
for (int i = 0, ei = listView.getChildCount(); i  ei; i++) {
listView.setItemChecked(i, false);
}
listView.post(new Runnable() {
@Override
public void run() {
listView.setChoiceMode(ListView.CHOICE_MODE_NONE);
}
});
actionMode = null;
}


It doesn't help much.

Any workaround on this long standing bug? 


   - 
   
http://stackoverflow.com/questions/9754170/listview-selection-remains-persistent-after-exiting-choice-mode
   - 
   
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/TDG9-yP5ddg

Is this being reported in Android bug ticketing? 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] ListView selection remained after exit from action mode

2013-04-24 Thread yccheok
The following scenario is not uncommon under activity with list view.

1) Long pressed an item to enter multi-selection mode.
2) Select the desired item, then press an action button. For example, 
delete button.
3) Exit from multi-selection mode (CHOICE_MODE_MULTIPLE) to none-selection 
mode (CHOICE_MODE_NONE).

I tested the following situation under Android 4.1.

1) Scroll the list view to the end till Item 1023 is seen.
2) Long press on Item 1023 to enter action mode.
3) Select Item 1019 till Item 1022. Now, total 5 items is selected 
including Item 1023
4) Scroll up the list, till only the last visible item is Item 1019
5) Pressed delete button on the top right.
6) Scroll up to the top most. 

You will realize along the way, certain rows are being selected. It seems 
that the recycle views's state_activated stage is not being cleared off, 
when we exit from multi-selection mode.

Even though I have the following code

@Override
public void onDestroyActionMode(ActionMode mode) {
// 
http://stackoverflow.com/questions/9754170/listview-selection-remains-persistent-after-exiting-choice-mode
// Using View.post is the key to solve the problem.
final ListView listView = MainActivity.this.getListView();
listView.clearChoices();
for (int i = 0, ei = listView.getChildCount(); i  ei; i++) {
listView.setItemChecked(i, false);
}
listView.post(new Runnable() {
@Override
public void run() {
listView.setChoiceMode(ListView.CHOICE_MODE_NONE);
}
});
actionMode = null;
}


It doesn't help much.

Any workaround on this long standing bug? 


   - 
   
http://stackoverflow.com/questions/9754170/listview-selection-remains-persistent-after-exiting-choice-mode
   - 
   
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/TDG9-yP5ddg

Is this being reported in Android bug ticketing? Thanks.

I include a complete workable code to demonstrate this 
bug. https://www.dropbox.com/s/t5zgadtz9q61j00/multimode_bug.zip



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

2013-04-24 Thread Mukesh Srivastav
Did i say that Android is a webserver , i talked about the session
managment can be implmented on Android and the server side(Webserver)


On Wed, Apr 24, 2013 at 12:44 PM, Piren gpi...@gmail.com wrote:

 Android isnt a web server, it doesn't have the concept of Session not its
 memory/cache management system.
 It does have other ways of having data persistency.

 But it does make me wonder, do people even read the
 instructions/tutorials, or do you guys just start Eclipse and assume it
 will feed you with knowledge on how to program for android?
 http://developer.android.com/training/basics/data-storage/index.html


 On Tuesday, April 9, 2013 11:47:34 AM UTC+3, rohan.d...@gmail.com wrote:

 Hi

 I have one application build on android 2.2. I need to know is there any 
 *Session* management kind of stuff exist in android development ? So i
 can implement it in my entire android application.

 If yes then can you please share any web urls or code for my reference ?

 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.






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2013-04-24 Thread Jadranko Bodiroga
do you have installed Java on mashine...i had a same problem and it has
fixed when i changed and add on  PATH on enviroment Variables on system
propetties :

;C:\Program Files\Java\jdk1.6.0_27\bin;    offcourse, you have to map
folder that you installed yout JAVA.


On Wed, Apr 24, 2013 at 4:05 AM, Lew lewbl...@gmail.com wrote:

 Anthony Vescio wrote:

 Hey guys I  downloaded the SDK thing from here
 http://developer.android.com/**sdk/index.htmlhttp://developer.android.com/sdk/index.htmlbecause
  I wanted to test the emulator. The folder is on my desktop, I got
 into it, go into tools, there's emulator there there's emulatr x86 but when
 I click on them, a very quick box, a command prompt like box appears and
 nothing.
 How do I get this to open??


 Have you read and followed the FM?
 http://developer.android.com/tools/devices/emulator.html

 (It only takes one question mark to indicate an interrogative.)

 You talk about desktop and go into but you don't say which OS you're
 using. I assume by go into you mean open the directory in some sort of
 file explorer window.

 How are you passing the necessary options to the emulator program?

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




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

2013-04-24 Thread askl
*Hi Friends, *
*How to connect HTC One V to Windows 7
*
*
*
*I try to many times to debug my android app using HTC device. But pc not 
detect my HTC mobile. How to Connect HTC deceive with eclipse on windows 7.*
*
*
*Thank you,*
*
*
*
*
*
*

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

2013-04-24 Thread askl
*This method is not working properly. *
http://docs.xamarin.com/guides/android/deployment,_testing,_and_metrics/set_up_for_device_development

On Wednesday, April 24, 2013 3:38:22 PM UTC+5:30, askl wrote:

 *Hi Friends, *
 *How to connect HTC One V to Windows 7
 *
 *
 *
 *I try to many times to debug my android app using HTC device. But pc not 
 detect my HTC mobile. How to Connect HTC deceive with eclipse on windows 7.
 *
 *
 *
 *Thank you,*
 *
 *
 *
 *
 *
 *


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

2013-04-24 Thread Larry Meadors
On Wed, Apr 24, 2013 at 12:58 AM, Piren gpi...@gmail.com wrote:
 Were you talking about the notification of the service? because that can
 obviously cannot be removed while the service is running.. it's whole point
 is to show you have a foreground service.

I was trying to remove the notification from the service after
stopping the service.

So I was calling service.stopSelf() then
notificationManager.cancelAll() in that order.

That doesn't work, I had to call service.stopForeground(true). That worked.

Larry

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

2013-04-24 Thread Larry Meadors
On Wed, Apr 24, 2013 at 1:01 AM, Piren gpi...@gmail.com wrote:
 The swipe thing has a funny way of working when you have a foreground
 service... everything in the app gets closed (all activities are gone)
 except for that service... that means that if you re-launch the app you need
 to figure out the state the app was before.

 in you case, display which files are being played and go back to showing the
 ui in playing mode.

Yeah, I expected the swipe to really kill everything - so I was
surprised that the service survived so persistently (a good thing).

The UI worked as expected now - the only thing I can think of that
would make it better is if it could somehow set up the activity stack
when launched from the notification. Right now it goes directly to my
MusicPlayerActivity and back exits. If I could get it to go to
MusicPlayerActivity with the back stack looking like MainActivity 
TitleDetailActivity  MusicPlayerActivity, it would be perfect.

This'll do for 1.0, however...so close... :)

Thanks for your help, guys.

Larry

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

2013-04-24 Thread Naseem Rafique
Hi All,

I integrated JakeWharton / Android-DirectionalViewPager (https://
github.com/JakeWharton/Android-DirectionalViewPager) and I m facing

java.lang.NoClassDefFoundError:
com.directionalviewpager.DirectionalViewPager$DataSetObserver

Have any one come up with any solution for this.. or this widget is only
useful  for the JakeWharton's sample app.


Thanks,


On Wed, Apr 24, 2013 at 2:10 AM, Naseem Rafique 
naseem.rafi...@northbaysolutions.net wrote:

 I decided to use same Jake's component, would u enlighten me what are the
 flaws in that component as it was commited 2 year ago after that no update
 on github

 Thanks for reply!

 Sent from my Galaxy Nexus
 On Apr 24, 2013 12:18 AM, Dmitriy F midnight@gmail.com wrote:

 Writing your own component would be too hard - check out the ViewPager
 source code and tweak it. It worked for me.


 2013/4/23 Naseem Rafique naseem.rafi...@northbaysolutions.net

 Hi Dmitriy F

 I want to use same vertical pager.. did u used Jake Wharton's component
 or write ur own.. plz suggest some good component

 ThanX!


 On Tuesday, December 11, 2012 6:56:00 PM UTC+5, Dmitriy F wrote:

 I'm currently working on attaching Jake Wharton's library - I bet to
 implement vertical scrolling on my own even with horizontal code online
 would take a lot of time which I don't have.

 вторник, 11 декабря 2012 г., 17:52:00 UTC+4 пользователь Piren написал:

 either try to figure out the solution to the issue he brought up or
 just dont use that version of the support library :)

 You can also just implement ViewPager in the vertical form instead
 of extending it (the source is available if i'm not mistaken)

 On Tuesday, December 11, 2012 3:33:30 PM UTC+2, Dmitriy F wrote:

  I have to implement vertical scrolling with view pager. I am trying
 to adopt Jake Wharton's 
 libraryhttps://github.com/grantland/android-verticalpager but
 it doesn't seem to be working because of some changes in the support
 library discussed 
 herehttp://code.google.com/p/android/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Owner%20Summary%20Starsgroupby=sort=id=19110.
 What're my other options ?

 P.S. I think I could tinker around listview so that it shows one item
 per screen but I hardly believe I will be able to achieve it.

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/q-0ifE3pfes/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/q-0ifE3pfes/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Regards,
*Naseem Rafique | Software Engineer*
*NorthBay Solutions | 410-G4 Johar Town, Lahore
Cell: 0331-4153428
*

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

2013-04-24 Thread Perry168
Hi TreKing,

   I hope to check user is download my apps from google play store or from 
other place. But I don't know how to write the program.


TreKing於 2013年4月24日星期三UTC+8上午9時14分54秒寫道:


 On Tue, Apr 23, 2013 at 5:46 PM, Perry168 perr...@gmail.com javascript:
  wrote:

 I need to add a function to check the apps installed/downloaded from 
 google play store or not.


 Your question is not very clear.


 -
 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: Clock widget with second hand

2013-04-24 Thread Mady Zaid
Thanks for your advice, and I'm sorry for this behavior.


2013/4/24 Lew lewbl...@gmail.com

 Resurrcting the champ wrote:

 https://custom-analog-clock.**googlecode.com/svn/trunk/https://custom-analog-clock.googlecode.com/svn/trunk/

 https://github.com/MadyZaid/**Android-widget-Custom-Analog-**Clock.githttps://github.com/MadyZaid/Android-widget-Custom-Analog-Clock.git

 Please help me make this code better


 This sort of spamming the newsgroup will not make you any allies.

 Make one post, in your own thread. Don't hijack threads, and don't
 resurrect zombie threads.

 You are violating netiquette with this behavior.

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




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

2013-04-24 Thread Piren
I didnt reply to you, i replied to the guy with the question.

Work on your thread navigational skills.

On Wednesday, April 24, 2013 12:03:07 PM UTC+3, Mukesh Srivastav wrote:

 Did i say that Android is a webserver , i talked about the session 
 managment can be implmented on Android and the server side(Webserver)


 On Wed, Apr 24, 2013 at 12:44 PM, Piren gpi...@gmail.com javascript:wrote:

 Android isnt a web server, it doesn't have the concept of Session not its 
 memory/cache management system.
 It does have other ways of having data persistency. 

 But it does make me wonder, do people even read the 
 instructions/tutorials, or do you guys just start Eclipse and assume it 
 will feed you with knowledge on how to program for android?
 http://developer.android.com/training/basics/data-storage/index.html


 On Tuesday, April 9, 2013 11:47:34 AM UTC+3, rohan.d...@gmail.com wrote:

 Hi

 I have one application build on android 2.2. I need to know is there any 
 *Session* management kind of stuff exist in android development ? So 
 i can implement it in my entire android application.

 If yes then can you please share any web urls or code for my reference ?

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




 -- 
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.
  

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

2013-04-24 Thread Piren
3 steps procedure:

1) Install HTC One V drivers
2) Enable USB Debugging on the device
3) Stop writing in bold letters with increased font size.

On Wednesday, April 24, 2013 1:08:22 PM UTC+3, askl wrote:

 *Hi Friends, *
 *How to connect HTC One V to Windows 7
 *
 *
 *
 *I try to many times to debug my android app using HTC device. But pc not 
 detect my HTC mobile. How to Connect HTC deceive with eclipse on windows 7.
 *
 *
 *
 *Thank you,*
 *
 *
 *
 *
 *
 *


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

2013-04-24 Thread Piren
Change the notification intent to point to the first activity and add a 
flag to indicate you want to open the other activities (propagate through 
the activities).


On Wednesday, April 24, 2013 1:16:12 PM UTC+3, Larry Meadors wrote:

 On Wed, Apr 24, 2013 at 1:01 AM, Piren gpi...@gmail.com javascript: 
 wrote: 
  The swipe thing has a funny way of working when you have a foreground 
  service... everything in the app gets closed (all activities are gone) 
  except for that service... that means that if you re-launch the app you 
 need 
  to figure out the state the app was before. 
  
  in you case, display which files are being played and go back to showing 
 the 
  ui in playing mode. 

 Yeah, I expected the swipe to really kill everything - so I was 
 surprised that the service survived so persistently (a good thing). 

 The UI worked as expected now - the only thing I can think of that 
 would make it better is if it could somehow set up the activity stack 
 when launched from the notification. Right now it goes directly to my 
 MusicPlayerActivity and back exits. If I could get it to go to 
 MusicPlayerActivity with the back stack looking like MainActivity  
 TitleDetailActivity  MusicPlayerActivity, it would be perfect. 

 This'll do for 1.0, however...so close... :) 

 Thanks for your help, guys. 

 Larry 


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

2013-04-24 Thread Larry Meadors
So if the flow is main - title detail - player, do you mean the
MainActivity (by the first activity)?

Larry

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

2013-04-24 Thread Piren
Yes.

It's actually weird to me that it wasn't already like that... If you wish
the notification to bring the app forward, the intent should match the
launcher intent. the additional bundle flag you add will also make sure to
start activities if they weren't already there.


On Wed, Apr 24, 2013 at 2:51 PM, Larry Meadors larry.mead...@gmail.comwrote:

 So if the flow is main - title detail - player, do you mean the
 MainActivity (by the first activity)?

 Larry


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

2013-04-24 Thread Daniel Rindt
Hello,

i just experienced a InflateException when i start the app which gradle 
builds before. The layouts use custom views:

com.viselabs.core.ui.FontTextView
android:id=@+id/tv1
 ...
/

The code is working fine when build with eclipse. Someone can confirm this?
The result of the layout.xml from gradle build is different to eclipse 
built ones. Maybe aapt can get some special params to properly build the 
files?

Thanks in advance
Daniel

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

2013-04-24 Thread Larry Meadors
On Wed, Apr 24, 2013 at 6:03 AM, Piren gpi...@gmail.com wrote:
 It's actually weird to me that it wasn't already like that... If you wish
 the notification to bring the app forward, the intent should match the
 launcher intent. the additional bundle flag you add will also make sure to
 start activities if they weren't already there.

Heh, I'm going to have to do some more research to understand what
you're telling me here - I'm not sure I'm following you completely.

Larry

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

2013-04-24 Thread Piren
If you have the flow : main - title detail - player, you press Home, then
the Launcher icon for you app, it will just go back to your app with
player being the displayed activity.
it basically just took you back to where you were. This is because the
intent the Launcher used is the same intent used to start the app in the
first place.

If you add a notification and you want it to open the app like the launcher
does, you'll use the same intent as well. That means that if player is
shown, and you press the notification either the app will launch normally
(if it was removed by swipe) or will just bring the app forward like any
launcher intent does (if it was running previously and got backgrounded).

If the intent directs to player directly and player isn't singleInstance,
 it will create a new player and add it to the stack (so the flow would
be main - title detail - player - player)

Now days it is actually much more complex because of the addition of
TaskStackBuilder (which btw can be used instead of propagating the
inten)... you can read more about it here:
http://developer.android.com/guide/topics/ui/notifiers/notifications.html


On Wed, Apr 24, 2013 at 3:11 PM, Larry Meadors larry.mead...@gmail.comwrote:

 On Wed, Apr 24, 2013 at 6:03 AM, Piren gpi...@gmail.com wrote:
  It's actually weird to me that it wasn't already like that... If you wish
  the notification to bring the app forward, the intent should match the
  launcher intent. the additional bundle flag you add will also make sure
 to
  start activities if they weren't already there.

 Heh, I'm going to have to do some more research to understand what
 you're telling me here - I'm not sure I'm following you completely.

 Larry


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

2013-04-24 Thread mbarbiero
I need to create a JAR lib (like KSOAP or Spongycastle) to distribute but I 
dont find documentation! 
Is it possible?
Can anybody help me?
Thanks
mBarbiero

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

2013-04-24 Thread Manish Srivas
try this

http://unrevoked.com/rootwiki/doku.php/public/windows_hboot_driver_install


On Wed, Apr 24, 2013 at 5:11 PM, Piren gpi...@gmail.com wrote:

 3 steps procedure:

 1) Install HTC One V drivers
 2) Enable USB Debugging on the device
 3) Stop writing in bold letters with increased font size.


 On Wednesday, April 24, 2013 1:08:22 PM UTC+3, askl wrote:

 *Hi Friends, *
 *How to connect HTC One V to Windows 7
 *
 *
 *
 *I try to many times to debug my android app using HTC device. But pc
 not detect my HTC mobile. How to Connect HTC deceive with eclipse on
 windows 7.*
 *
 *
 *Thank you,*
 *
 *
 *
 *
 *
 *

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






-- 

Thanks  Regards,
--
Manish Shrivas
ADI Soft Tech (P)  Ltd.
54, Anand Nagar, Near Devi Ahilya Hospital,
Chitawad Road ,
INDORE
Mob no. 9907631333
**
*manish.sri...@adisoftin.com*
http://www.adisoftin.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]

2013-04-24 Thread asma rezgui
hii , does anyone know how to solve my problem, i have to convert an image
from byte[] to base64 to read it in json file and convert it back from
base64 to byte and from byte[] to bitmap to display it in imageview
in converting it to bitmap , i have this error: --- SkImageDecoder::Factory
returned null  and the byte[]is shown as below [B@4059e1a0
i don t understand where is the problem and if there is the correct form of
bitmap or not :(
pleaaase i need help

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




Re: [android-developers] How to create JAR libs in Android

2013-04-24 Thread Roland Mueller
Hello,

Android SW is distributed in apk archives which are creatred from the
source code, from possibly included jar files and from resource files
(bitmaps, texts, layouts, ...).

Thus, jar files as such are NOT distributed and do not work since Android
devices use Dalvik VM instead of Java VM.

-Roland



2013/4/24 mbarbiero marco.barbi...@gmail.com

 I need to create a JAR lib (like KSOAP or Spongycastle) to distribute but
 I dont find documentation!
 Is it possible?
 Can anybody help me?
 Thanks
 mBarbiero

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 2:41 AM, Piren gpi...@gmail.com wrote:

 Actually Push notifications will not work if he Force Closes the app,
 since they stop functioning at that point...


I'm no expert on push notifications, but my understanding was that the
device receives the push notification then sends out a broadcast that can
be handled by your app, which will be started if need be.

http://developer.android.com/google/gcm/gs.html

Section 4.

This broadcast receiver is responsible for handling the 2 intents that can
be sent by GCM (com.google.android.c2dm.intent.RECEIVE and
com.google.android.c2dm.intent.REGISTRATION) and should be defined in the
manifest (rather than programmatically) so that *these intents can be
received even if the application is not running*.

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

2013-04-24 Thread Manish Srivas
http://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html


On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui asmarezgu...@gmail.com wrote:

 hii , does anyone know how to solve my problem, i have to convert an image
 from byte[] to base64 to read it in json file and convert it back from
 base64 to byte and from byte[] to bitmap to display it in imageview
 in converting it to bitmap , i have this error: ---
 SkImageDecoder::Factory returned null  and the byte[]is shown as below
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct form
 of bitmap or not :(
 pleaaase i need help


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






-- 

Thanks  Regards,
--
Manish Shrivas
ADI Soft Tech (P)  Ltd.
54, Anand Nagar, Near Devi Ahilya Hospital,
Chitawad Road ,
INDORE
Mob no. 9907631333
**
*manish.sri...@adisoftin.com*
http://www.adisoftin.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.




Re: [android-developers] How to program the apps which is download from play store?

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 5:42 AM, Perry168 perry...@gmail.com wrote:

 I hope to check user is download my apps from google play store or from
 other place. But I don't know how to write the program.


There is no way for you to detect 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] gradle build with custom views

2013-04-24 Thread Tor Norbye
How are the two layout files different?


On Wed, Apr 24, 2013 at 5:09 AM, Daniel Rindt daniel.ri...@gmail.comwrote:

 Hello,

 i just experienced a InflateException when i start the app which gradle
 builds before. The layouts use custom views:

 com.viselabs.core.ui.FontTextView
 android:id=@+id/tv1
  ...
 /

 The code is working fine when build with eclipse. Someone can confirm this?
 The result of the layout.xml from gradle build is different to eclipse
 built ones. Maybe aapt can get some special params to properly build the
 files?

 Thanks in advance
 Daniel

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

2013-04-24 Thread asma rezgui
thanks Manish Shrivas


2013/4/24 Manish Srivas manish.sri...@adisoftin.com


 http://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html


 On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui asmarezgu...@gmail.comwrote:

 hii , does anyone know how to solve my problem, i have to convert an
 image from byte[] to base64 to read it in json file and convert it back
 from base64 to byte and from byte[] to bitmap to display it in imageview
 in converting it to bitmap , i have this error: ---
 SkImageDecoder::Factory returned null  and the byte[]is shown as below
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct form
 of bitmap or not :(
 pleaaase i need help


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






 --

 Thanks  Regards,
 --
 Manish Shrivas
 ADI Soft Tech (P)  Ltd.
 54, Anand Nagar, Near Devi Ahilya Hospital,
 Chitawad Road ,
 INDORE
 Mob no. 9907631333
 **
 *manish.sri...@adisoftin.com*
 http://www.adisoftin.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.




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

2013-04-24 Thread Daniel Rindt
2013/4/24 Tor Norbye tnor...@google.com:
 How are the two layout files different?

I opened the apk and extracted the binary xml's and they are different.

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

2013-04-24 Thread mbarbiero
Thanks for your response Roland, but I use KSOAP in my APP and it is a JAR 
file. 

Must be a secret to generate this kind of lib. 

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

2013-04-24 Thread RichardC
You can use .JARs with Android you just can not create .JARs with Android 
as the files that an Android Library would need to put into the .JAR are 
non-standard (resources, layouts etc).

On Wednesday, April 24, 2013 3:52:27 PM UTC+1, mbarbiero wrote:

 Thanks for your response Roland, but I use KSOAP in my APP and it is a JAR 
 file. 

 Must be a secret to generate this kind of lib. 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread RichardC
If an application has been killed by the end-user from the built-in task 
manager then it is put in to a state where it does not respond to any 
system event other than being launched from the Home Screen, see *Launch 
controls on stopped applications* in (almost at the end):
http://developer.android.com/about/versions/android-3.1.html


On Wednesday, April 24, 2013 3:19:33 PM UTC+1, TreKing wrote:


 On Wed, Apr 24, 2013 at 2:41 AM, Piren gpi...@gmail.com javascript:wrote:

 Actually Push notifications will not work if he Force Closes the app, 
 since they stop functioning at that point...


 I'm no expert on push notifications, but my understanding was that the 
 device receives the push notification then sends out a broadcast that can 
 be handled by your app, which will be started if need be.

 http://developer.android.com/google/gcm/gs.html

 Section 4.

 This broadcast receiver is responsible for handling the 2 intents that 
 can be sent by GCM (com.google.android.c2dm.intent.RECEIVE and 
 com.google.android.c2dm.intent.REGISTRATION) and should be defined in the 
 manifest (rather than programmatically) so that *these intents can be 
 received even if the application is not running*.


 -
 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] insidious multi-threading bug

2013-04-24 Thread bob
I've been investigating an insidious error in an Android OpenGL game app. 
 This error was brought to my attention by ACRA.

I believe that the source of the error is that the code in an onTouchEvent 
executes in a different thread than the code
 in the OpenGL drawing thread.

So, basically, the drawing thread was looping thru some enemy ships trying 
to draw them.

Meanwhile, someone pressed the reset button on the game (an onTouchEvent), 
and the enemy ship LinkedList got cleared.  This clearing occurred while 
the drawing thread was looping thru them.  Thus an 
IndexOutOfBoundsException occurred.

Anyhow, I guess my question is...  how would the professional Android 
developer have prevented this?

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: How to create App for social site with WebView?

2013-04-24 Thread JackN
Also, you don't need an app. Just distribute the URL and you will find that 
most people already have some method to view web based 'apps'

On Friday, April 12, 2013 8:18:02 AM UTC-7, Amon Olimov wrote:


 I`m new on android programming and I want to create Android App for my 
 social site. In this App on center I want to use WebView(like 
 AppsGeyserhttp://www.appsgeyser.com/`s 
 App, but there must Menu like 
 odnoklassniki.ruhttps://play.google.com/store/apps/details?id=ru.ok.android
  App).
  
 How can I make this app correctly with WebView which classes and libs can 
 I use?

 Give me advice and sample codes, please.


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

2013-04-24 Thread Piren
yeah, but doesn't apply if the app was force closed :)  it something that 
started on android 3.1

it's actually in the release notes, but not really in a way any developer 
would actually infer it:
http://developer.android.com/about/versions/android-3.1.html#launchcontrols







On Wednesday, April 24, 2013 5:19:33 PM UTC+3, TreKing wrote:


 On Wed, Apr 24, 2013 at 2:41 AM, Piren gpi...@gmail.com javascript:wrote:

 Actually Push notifications will not work if he Force Closes the app, 
 since they stop functioning at that point...


 I'm no expert on push notifications, but my understanding was that the 
 device receives the push notification then sends out a broadcast that can 
 be handled by your app, which will be started if need be.

 http://developer.android.com/google/gcm/gs.html

 Section 4.

 This broadcast receiver is responsible for handling the 2 intents that 
 can be sent by GCM (com.google.android.c2dm.intent.RECEIVE and 
 com.google.android.c2dm.intent.REGISTRATION) and should be defined in the 
 manifest (rather than programmatically) so that *these intents can be 
 received even if the application is not running*.


 -
 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] Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread Piren
beat me to it :)
Took me a while to locate the url hehe.. 

On Wednesday, April 24, 2013 6:25:31 PM UTC+3, RichardC wrote:

 If an application has been killed by the end-user from the built-in task 
 manager then it is put in to a state where it does not respond to any 
 system event other than being launched from the Home Screen, see *Launch 
 controls on stopped applications* in (almost at the end):
 http://developer.android.com/about/versions/android-3.1.html


 On Wednesday, April 24, 2013 3:19:33 PM UTC+1, TreKing wrote:


 On Wed, Apr 24, 2013 at 2:41 AM, Piren gpi...@gmail.com wrote:

 Actually Push notifications will not work if he Force Closes the app, 
 since they stop functioning at that point...


 I'm no expert on push notifications, but my understanding was that the 
 device receives the push notification then sends out a broadcast that can 
 be handled by your app, which will be started if need be.

 http://developer.android.com/google/gcm/gs.html

 Section 4.

 This broadcast receiver is responsible for handling the 2 intents that 
 can be sent by GCM (com.google.android.c2dm.intent.RECEIVE and 
 com.google.android.c2dm.intent.REGISTRATION) and should be defined in 
 the manifest (rather than programmatically) so that *these intents can 
 be received even if the application is not running*.


 -
 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: insidious multi-threading bug

2013-04-24 Thread Piren
Either synchronize things to prevent this (either synchronizing the list or 
the clearing with drawing),  or use a list that is concurrent 
(http://developer.android.com/reference/java/util/concurrent/package-summary.html)
 
or add an event to run the clearing of the list on the same thread that 
handles the game (naturally preventing the option of a threading issue).

I'm no game developer, but i'd go for the third option. although harder to 
implement it will be more efficient.


On Wednesday, April 24, 2013 6:26:02 PM UTC+3, bob wrote:

 I've been investigating an insidious error in an Android OpenGL game app. 
  This error was brought to my attention by ACRA.

 I believe that the source of the error is that the code in an onTouchEvent 
 executes in a different thread than the code
  in the OpenGL drawing thread.

 So, basically, the drawing thread was looping thru some enemy ships trying 
 to draw them.

 Meanwhile, someone pressed the reset button on the game (an onTouchEvent), 
 and the enemy ship LinkedList got cleared.  This clearing occurred while 
 the drawing thread was looping thru them.  Thus an 
 IndexOutOfBoundsException occurred.

 Anyhow, I guess my question is...  how would the professional Android 
 developer have prevented this?

 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] Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 10:25 AM, RichardC
richard.crit...@googlemail.comwrote:

 If an application has been killed by the end-user from the built-in task
 manager then it is put in to a state where it does not respond to any
 system event other than being launched from the Home Screen


Oh, of course. I'm way behind on the new stuff so I always forget about
this. Thanks.

-
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] insidious multi-threading bug

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 10:26 AM, bob b...@coolfone.comze.com wrote:

 So, basically, the drawing thread was looping thru some enemy ships trying
 to draw them.

 Meanwhile, someone pressed the reset button on the game (an onTouchEvent),
 and the enemy ship LinkedList got cleared.  This clearing occurred while
 the drawing thread was looping thru them.  Thus an
 IndexOutOfBoundsException occurred.

 Anyhow, I guess my question is...  how would the professional Android
 developer have prevented this?


This is a bit of an advanced multi-threading question that is not specific
to Android. In short, you need to synchronize any resource that is being
accessed by multiple threads, in this case your list. There are many
strategies and facilities for doing so, some built right into Java (see the
synchronized keyword). You will have to do some research on multi-threaded
resource use.

-
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: insidious multi-threading bug

2013-04-24 Thread RichardC
Put the input events into your own internal queue. Process the your event 
queue in your update-AI/update-user-event phase of your game logic. The 
queue should be locked when adding/removing events.

On Wednesday, April 24, 2013 4:26:02 PM UTC+1, bob wrote:

 I've been investigating an insidious error in an Android OpenGL game app. 
  This error was brought to my attention by ACRA.

 I believe that the source of the error is that the code in an onTouchEvent 
 executes in a different thread than the code
  in the OpenGL drawing thread.

 So, basically, the drawing thread was looping thru some enemy ships trying 
 to draw them.

 Meanwhile, someone pressed the reset button on the game (an onTouchEvent), 
 and the enemy ship LinkedList got cleared.  This clearing occurred while 
 the drawing thread was looping thru them.  Thus an 
 IndexOutOfBoundsException occurred.

 Anyhow, I guess my question is...  how would the professional Android 
 developer have prevented this?

 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: insidious multi-threading bug

2013-04-24 Thread bob
I think I'm going to use this method in GLSurfaceView:

*/***
* * Queue a runnable to be run on the GL rendering thread. This can be 
used*
* * to communicate with the Renderer on the rendering thread.*
* * Must not be called before a renderer has been set.*
* * @param r the runnable to be run on the GL rendering thread.*
* */*
*public void queueEvent(Runnable r) {*
*mGLThread.queueEvent(r);*
*}*


I'll create a *Runnable* that calls the reset function and pass the *
Runnable* on to queueEvent.

Thanks.



On Wednesday, April 24, 2013 10:26:02 AM UTC-5, bob wrote:

 I've been investigating an insidious error in an Android OpenGL game app. 
  This error was brought to my attention by ACRA.

 I believe that the source of the error is that the code in an onTouchEvent 
 executes in a different thread than the code
  in the OpenGL drawing thread.

 So, basically, the drawing thread was looping thru some enemy ships trying 
 to draw them.

 Meanwhile, someone pressed the reset button on the game (an onTouchEvent), 
 and the enemy ship LinkedList got cleared.  This clearing occurred while 
 the drawing thread was looping thru them.  Thus an 
 IndexOutOfBoundsException occurred.

 Anyhow, I guess my question is...  how would the professional Android 
 developer have prevented this?

 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]

2013-04-24 Thread asma rezgui
hello, i have followed the steps in this tutorial  and the encoding is done
successfully in the server side. the problem now in the decoding
in the client side
this is my code:
byte[] decodedString = Base64.decode(image, Base64.DEFAULT);
System.out.println(ss+decodedString);
decodedByte = BitmapFactory.decodeByteArray(decodedString, 0,
decodedString.length);

System.out.println(aaa+decodedString.length);
map.put(IMAGE,decodedByte);
System.out.println(b+decodedByte);


if (decodedByte != null) {
img = (ImageView) findViewById(R.id.imageview);
  img.setImageBitmap(decodedByte);
System.out.println(bitmap is not null);
} else {
System.out.println(bitmap is null);
}

in the logcat i found null pointer exception in this line
(img.setImageBitmap(decodedByte);)
and no message is shown. does anyone know the reason !!


2013/4/24 asma rezgui asmarezgu...@gmail.com

 thanks Manish Shrivas


 2013/4/24 Manish Srivas manish.sri...@adisoftin.com


 http://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html


 On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui asmarezgu...@gmail.comwrote:

 hii , does anyone know how to solve my problem, i have to convert an
 image from byte[] to base64 to read it in json file and convert it back
 from base64 to byte and from byte[] to bitmap to display it in imageview
 in converting it to bitmap , i have this error: ---
 SkImageDecoder::Factory returned null  and the byte[]is shown as below
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct form
 of bitmap or not :(
 pleaaase i need help


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






 --

 Thanks  Regards,
 --
 Manish Shrivas
 ADI Soft Tech (P)  Ltd.
 54, Anand Nagar, Near Devi Ahilya Hospital,
 Chitawad Road ,
 INDORE
 Mob no. 9907631333
 **
 *manish.sri...@adisoftin.com*
 http://www.adisoftin.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.






-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How to create App for social site with WebView?

2013-04-24 Thread bob
It sounds like you will want to look at the file WebView1.java in the 
apidemos sample.

https://lh5.googleusercontent.com/-6gSMVurlF98/UXgg0adn0oI/AaU/jgkKeINUGDw/s1600/webview2.png


Thanks.


On Friday, April 12, 2013 10:18:02 AM UTC-5, Amon Olimov wrote:


 I`m new on android programming and I want to create Android App for my 
 social site. In this App on center I want to use WebView(like 
 AppsGeyserhttp://www.appsgeyser.com/`s 
 App, but there must Menu like 
 odnoklassniki.ruhttps://play.google.com/store/apps/details?id=ru.ok.android
  App).

 How can I make this app correctly with WebView which classes and libs can 
 I use?

 Give me advice and sample codes, please.


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

2013-04-24 Thread bob
It sounds like this returned *null*:

findViewById(R.id.imageview);

Maybe you forgot to do a *setContentView*?

Thanks.


On Wednesday, April 24, 2013 12:50:04 PM UTC-5, ASMA wrote:

 hello, i have followed the steps in this tutorial  and the encoding is 
 done successfully in the server side. the problem now in the decoding 
 in the client side
 this is my code: 
 byte[] decodedString = Base64.decode(image, Base64.DEFAULT);
 System.out.println(ss+decodedString);
 decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, 
 decodedString.length);
 
 System.out.println(aaa+decodedString.length);
 map.put(IMAGE,decodedByte);
 System.out.println(b+decodedByte);


 if (decodedByte != null) {
 img = (ImageView) findViewById(R.id.imageview);
   img.setImageBitmap(decodedByte);
 System.out.println(bitmap is not null);
 } else {
 System.out.println(bitmap is null);
 }

 in the logcat i found null pointer exception in this line 
 (img.setImageBitmap(decodedByte);)
 and no message is shown. does anyone know the reason !!


 2013/4/24 asma rezgui asmare...@gmail.com javascript:

 thanks Manish Shrivas


 2013/4/24 Manish Srivas manish...@adisoftin.com javascript:


 http://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html
  

 On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui 
 asmare...@gmail.comjavascript:
  wrote:

 hii , does anyone know how to solve my problem, i have to convert an 
 image from byte[] to base64 to read it in json file and convert it back 
 from base64 to byte and from byte[] to bitmap to display it in imageview 
 in converting it to bitmap , i have this error: --- 
 SkImageDecoder::Factory returned null  and the byte[]is shown as below 
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct 
 form of bitmap or not :(
 pleaaase i need help


  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-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.comjavascript:
 .
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 

 Thanks  Regards,
 --
 Manish Shrivas
 ADI Soft Tech (P)  Ltd.
 54, Anand Nagar, Near Devi Ahilya Hospital,
 Chitawad Road ,
 INDORE
 Mob no. 9907631333
 **
 *manish...@adisoftin.com javascript:*
 http://www.adisoftin.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-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.comjavascript:
 .
 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] Server code for In App Billing with Google App Engine.

2013-04-24 Thread Nathan
I seem to recall - at least for version 1 - that there was some sample code 
in Google App Engine to accomplish the server side of inapp billing. 

We have been working on Billing V3 - there is no link to it now, although 
they still mention having a server side as a good idea. 

I haven't found it in searches - can anyone point me in the right 
direction? 

Nathan

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




Re: [android-developers]

2013-04-24 Thread asma rezgui
unfortunately i didn't forget it . Thanks


2013/4/24 bob b...@coolfone.comze.com

 It sounds like this returned *null*:

 findViewById(R.id.imageview);

 Maybe you forgot to do a *setContentView*?

 Thanks.


 On Wednesday, April 24, 2013 12:50:04 PM UTC-5, ASMA wrote:

 hello, i have followed the steps in this tutorial  and the encoding is
 done successfully in the server side. the problem now in the decoding
 in the client side
 this is my code:
 byte[] decodedString = Base64.decode(image, Base64.DEFAULT);
 System.out.println(**ss+decodedString)**;
 decodedByte = BitmapFactory.decodeByteArray(**decodedString, 0,
 decodedString.length);

 System.out.println(**aaa+**
 decodedString.length);
 map.put(IMAGE,decodedByte);
 System.out.println(b**+decodedByte);


 if (decodedByte != null) {
 img = (ImageView) findViewById(R.id.imageview);
   img.setImageBitmap(**decodedByte);
 System.out.println(bitmap is not null);
 } else {
 System.out.println(bitmap is null);
 }

 in the logcat i found null pointer exception in this line
 (img.setImageBitmap(**decodedByte);)
 and no message is shown. does anyone know the reason !!


 2013/4/24 asma rezgui asmare...@gmail.com

 thanks Manish Shrivas


 2013/4/24 Manish Srivas manish...@adisoftin.com

 http://myjeeva.com/how-to-**convert-image-to-string-and-**
 string-to-image-in-java.htmlhttp://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html


 On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui asmare...@gmail.comwrote:

 hii , does anyone know how to solve my problem, i have to convert an
 image from byte[] to base64 to read it in json file and convert it back
 from base64 to byte and from byte[] to bitmap to display it in imageview
 in converting it to bitmap , i have this error: ---
 SkImageDecoder::Factory returned null  and the byte[]is shown as below
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct
 form of bitmap or not :(
 pleaaase i need help


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






 --

 Thanks  Regards,
 --
 Manish Shrivas
 ADI Soft Tech (P)  Ltd.
 54, Anand Nagar, Near Devi Ahilya Hospital,
 Chitawad Road ,
 INDORE
 Mob no. 9907631333
 **
 *manish...@adisoftin.com*
 http://www.adisoftin.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-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 

[android-developers] Re: Clock widget with second hand

2013-04-24 Thread bob
I would take a look at this code:

http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/widget/AnalogClock.java/?v=source

Then I would rename AnalogClock to something like MyAnalogClock and add the 
code for the seconds hand.

Thanks.


On Monday, November 14, 2011 3:41:19 AM UTC-6, Abhishek Kumar Gupta wrote:

 Hi All,

 Can anyone suggest me on how to add a second hand to the clock widget and 
 rotate it continuously? 

 Thanks in advance. 


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




Re: [android-developers]

2013-04-24 Thread asma rezgui
in the logcat i have also seen this message , i didn't understand where is
the cause
04-24 17:48:54.370: I/dalvikvm-heap(1121): Grow heap (frag case) to 8.921MB
for 448446-byte allocation


2013/4/24 asma rezgui asmarezgu...@gmail.com

 unfortunately i didn't forget it . Thanks


 2013/4/24 bob b...@coolfone.comze.com

 It sounds like this returned *null*:

 findViewById(R.id.imageview);

 Maybe you forgot to do a *setContentView*?

 Thanks.


 On Wednesday, April 24, 2013 12:50:04 PM UTC-5, ASMA wrote:

 hello, i have followed the steps in this tutorial  and the encoding is
 done successfully in the server side. the problem now in the decoding
 in the client side
 this is my code:
 byte[] decodedString = Base64.decode(image, Base64.DEFAULT);
 System.out.println(**ss+decodedString)**;
 decodedByte = BitmapFactory.decodeByteArray(**decodedString, 0,
 decodedString.length);

 System.out.println(**aaa+**
 decodedString.length);
 map.put(IMAGE,decodedByte);
 System.out.println(b**+decodedByte);


 if (decodedByte != null) {
 img = (ImageView) findViewById(R.id.imageview);
   img.setImageBitmap(**decodedByte);
 System.out.println(bitmap is not null);
 } else {
 System.out.println(bitmap is null);
 }

 in the logcat i found null pointer exception in this line
 (img.setImageBitmap(**decodedByte);)
 and no message is shown. does anyone know the reason !!


 2013/4/24 asma rezgui asmare...@gmail.com

 thanks Manish Shrivas


 2013/4/24 Manish Srivas manish...@adisoftin.com

 http://myjeeva.com/how-to-**convert-image-to-string-and-**
 string-to-image-in-java.htmlhttp://myjeeva.com/how-to-convert-image-to-string-and-string-to-image-in-java.html


 On Wed, Apr 24, 2013 at 7:35 PM, asma rezgui asmare...@gmail.comwrote:

  hii , does anyone know how to solve my problem, i have to convert
 an image from byte[] to base64 to read it in json file and convert it 
 back
 from base64 to byte and from byte[] to bitmap to display it in imageview
 in converting it to bitmap , i have this error: ---
 SkImageDecoder::Factory returned null  and the byte[]is shown as below
 [B@4059e1a0
 i don t understand where is the problem and if there is the correct
 form of bitmap or not :(
 pleaaase i need help


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






 --

 Thanks  Regards,
 --
 Manish Shrivas
 ADI Soft Tech (P)  Ltd.
 54, Anand Nagar, Near Devi Ahilya Hospital,
 Chitawad Road ,
 INDORE
 Mob no. 9907631333
 **
 *manish...@adisoftin.com*
 http://www.adisoftin.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-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] Re: Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread AndreiP
When you are getting killed do you get to go through onDestroy()? If so you 
can check if it's a graceful exit through your menu choices or killed by a 
system. If killed by a system schedule then schedule a restart via 
AlarmManager after whatever time period you choose. I didn't check that, 
just my line of thinking. If onDestroy doesn't get triggered have alarm 
(via AlarmManager) just pop at certain intervals checking if you are alive, 
implement WatchDog service basically.

On Thursday, April 18, 2013 9:28:20 AM UTC-7, Archibald Archi wrote:

 Hi!
 I'm currently developing an application with a service. My service is 
 always listening from a server and waiting for messages or notifications 
 and It mustn't be stopped. 
 I've solved this issue when the application is killed by the OS Task 
 Manager. However, I can't figure out how to prevent this when a Task 
 Killing app kills my app. 
 I need something like Whatsapp or Line. It's always running since you turn 
 on your phone, and if it's killed by OS Task Manager or an especific app 
 for this purpose, it restarts after a few seconds.

 I really need help on this since I've been reading a lot and searching all 
 over the Internet.

 Thanks in advance!

 Archi

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread AndreiP
When you are getting killed do you get to go through onDestroy()? If so you 
can check if it's a graceful exit through your menu choices or killed by a 
system. If killed by a system then schedule a restart via AlarmManager 
after whatever time period you choose. I didn't check that, just my line of 
thinking. If onDestroy doesn't get triggered have alarm (via AlarmManager) 
just pop at certain intervals checking if you are alive, implement WatchDog 
service basically.

On Thursday, April 18, 2013 9:28:20 AM UTC-7, Archibald Archi wrote:

 Hi!
 I'm currently developing an application with a service. My service is 
 always listening from a server and waiting for messages or notifications 
 and It mustn't be stopped. 
 I've solved this issue when the application is killed by the OS Task 
 Manager. However, I can't figure out how to prevent this when a Task 
 Killing app kills my app. 
 I need something like Whatsapp or Line. It's always running since you turn 
 on your phone, and if it's killed by OS Task Manager or an especific app 
 for this purpose, it restarts after a few seconds.

 I really need help on this since I've been reading a lot and searching all 
 over the Internet.

 Thanks in advance!

 Archi

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Launch Mode : singleTop FAILS on first time app start of signed build

2013-04-24 Thread Dritan
Yes I was afraid it'd have to come to that, it's similar to re-inventing 
the wheel that Android provides for me already.. with a slight tweak.. and 
for that slight tweak I now have to manage the stack on my own.

On Wednesday, 24 April 2013 03:29:06 UTC-4, Piren wrote:

 Well, when i encountered issues i couldn't overcome because of android's 
 picky way of deciding which activity to show i just made my own 
 implementation... had only one entry point to the app using a single 
 activity which then decided what should be shown next.


 On Tuesday, April 23, 2013 7:36:19 PM UTC+3, Dritan wrote:

 Thank you Piren and Andrei for your replies but neither seem to do the 
 same job as singleTop :(

 SingleTop remembers which activity you were last on and always brings 
 that up when launching from the icon. I have tried setting my application 
 to android:allowTaskReparenting=true but that didn't work. 

 I have tried using launchMode=singleTask but that brings up only the 
 main activity - not the last activity user was on. The user has to re-tap 
 within the main activity to get back in the last activity they were on.

 SingleInstance is out of the question - it's always a new instance. 

 My main activity is the only activity with intent filters MAIN and 
 LAUNCHER. 

 I just don't understand why the very first time my app is installed 
 sinlgeTop behaves like standard and only after quitting and restarting 
 the app will singleTop actually work as it should.

 Thanks for your help!
 Dritan
  

 On Tuesday, 23 April 2013 03:34:58 UTC-4, Andrei Ponomarenko wrote:

 Here you go:
 application android:icon=@drawable/icon
  android:label=@string/app_name
 android:theme=@android:style/Theme.Black.NoTitleBar
 android:debuggable=true
 android:allowTaskReparenting=true
 android:name=com.company.product.AppName


 activity 
 android:theme=@style/Theme.Sherlock
 android:name=com.company.product.MainActivity
 android:label=@string/app_name
 android:launchMode=singleTop
 
 

 If you don't want singleTask there is a way to make sure singleTop 
 always has only one instance. Just like Piren said - make sure there are no 
 other intents to launch your app - they will create a different instance. 
 If you absolutely need to have other intents that can launch your activity 
 but still want only one instance use this:
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | 
 Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
 It won't be the same instance but there will be only one.
 Good luck!



 On Tuesday, April 23, 2013 12:10:12 AM UTC-7, Piren wrote:

 Sorry, you should probably try singleTask before singleInstance :)

 On Tuesday, April 23, 2013 10:08:49 AM UTC+3, Piren wrote:

 Sounds like the intent being used to launch the app by default and the 
 intent used to launch from the icon behave differently. SingleTop does 
 not 
 guarantees that only one activity will be shown, rather one per task. 
 sounds as if you keep creating different tasks in one instance.  I had 
 something similar happen to me and it was specific to some Motorola based 
 devices.. i guess their launcher treated launch intents a bit differently.

 If you can, change it to singleInstance. If not, try checking the 
 different intents you use to launch and also see if enabling 
 taskReparenting helps you.

 On Tuesday, April 23, 2013 2:49:13 AM UTC+3, Dritan wrote:

 I just noticed that even when I export the app with a debug key via 
 ant debug the app behaves the same way as OTA installation, which 
 is 
 the incorrect behavior. 

 How come my app's main activity's launchMode stops behaving weirdly 
 AFTER it has run once? I don't have any code handling the activity 
 stack, I left it purely on Android's hands. 

 Any clues? 

 Thanks!! 


 On Apr 22, 6:52 pm, Dritan djdea...@gmail.com wrote: 
  Hello, 
  
  When I sideload my app to my phone via USB, the very first time it 
  runs, the main activity behaves as expected. Only 1 instance of 
 main 
  can be launched, no matter what. 
  
  When I export my app as a signed app, then install the app OTA the 
  main activity behaves completely different ONLY the first time it 
  runs. 
  
  After installing the app, the main activity loads. I press the 
 'Home' 
  button, then relaunch the app from the icon and a new main activity 
 is 
  loaded. I can keep on doing this for tens of hundreds of activity 
  instances. 
  
  Once I have closed all such lose instances and restart the app, 
 then 
  the main activity returns the expected behavior as being a 
 singleTop 
  instance. 
  
  I have removed all proguard-related lines and files from my app so 
  when I export as signed, doesn't try to obfuscate? (to my 
 knowledge) 
  
  I do not understand why this is happening, is this a bug with 
 Android 
  or am I doing something I have never heard of before? Does anyone 
 have 
  a solution? 
  
  Thank 

Re: [android-developers] Re: Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread Kristopher Micinski
Task killers just do a process kill, so you *don't* get an
`onDestroy()`, your app just disappears...

Kris

On Wed, Apr 24, 2013 at 3:06 PM, AndreiP andre...@gmail.com wrote:
 When you are getting killed do you get to go through onDestroy()? If so you
 can check if it's a graceful exit through your menu choices or killed by a
 system. If killed by a system schedule then schedule a restart via
 AlarmManager after whatever time period you choose. I didn't check that,
 just my line of thinking. If onDestroy doesn't get triggered have alarm (via
 AlarmManager) just pop at certain intervals checking if you are alive,
 implement WatchDog service basically.

 On Thursday, April 18, 2013 9:28:20 AM UTC-7, Archibald Archi wrote:

 Hi!

 I'm currently developing an application with a service. My service is
 always listening from a server and waiting for messages or notifications and
 It mustn't be stopped.
 I've solved this issue when the application is killed by the OS Task
 Manager. However, I can't figure out how to prevent this when a Task Killing
 app kills my app.
 I need something like Whatsapp or Line. It's always running since you turn
 on your phone, and if it's killed by OS Task Manager or an especific app for
 this purpose, it restarts after a few seconds.

 I really need help on this since I've been reading a lot and searching all
 over the Internet.

 Thanks in advance!

 Archi

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

2013-04-24 Thread bob
I'm also seeing an error like this:

*java.lang.IllegalStateException: Can not perform this action after 
onSaveInstanceState*
* at 
android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1265)*
* at 
android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:451)
*
* at android.app.Activity.onBackPressed(Activity.java:2121)*
* at android.app.Activity.onKeyDown(Activity.java:2017)*
* at android.view.KeyEvent.dispatch(KeyEvent.java:2635)*
* at android.app.Activity.dispatchKeyEvent(Activity.java:2329)*
* at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1954)
*
* at 
android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3360)*
* at android.view.ViewRootImpl.handleFinishedEvent(ViewRootImpl.java:)*
* at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2477)*
* at android.os.Handler.dispatchMessage(Handler.java:99)*
* at android.os.Looper.loop(Looper.java:137)*
* at android.app.ActivityThread.main(ActivityThread.java:4514)*
* at java.lang.reflect.Method.invokeNative(Native Method)*
* at java.lang.reflect.Method.invoke(Method.java:511)*
* at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
*
* at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)*
* at dalvik.system.NativeStart.main(Native Method)*

However, I'm not explicitly working with fragments at all.

Any ideas what's going on?

Thanks.



On Sunday, January 29, 2012 7:45:48 PM UTC-6, Teo Yan wrote:

 Thx Murphy. 

 I try to fix it by like this: 

 boolean activityActive = true; 

 protected void onResume() { 
 // do something 
 activityActive = true; 
 } 

 protected void onPause() { 
// do something 
activityActive = false; 
 } 

 public boolean onKeyUp(int keyCode, KeyEvent event)  { 
if (!activityActive) { 
   return false; 
   } 
   // do something 
 } 

 public boolean onKeyDown(int keyCode, KeyEvent event) { 
if (!activityActive) { 
   return false; 
   } 
   // do something 
 }

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

2013-04-24 Thread Latimerius
On Wed, Apr 24, 2013 at 4:22 PM, TreKing treking...@gmail.com wrote:

 On Wed, Apr 24, 2013 at 5:42 AM, Perry168 perry...@gmail.com wrote:

 I hope to check user is download my apps from google play store or from
 other place. But I don't know how to write the program.


 There is no way for you to detect this.


Well, there is PackageManager.getInstallerPackageName() which was probably
meant for this purpose, however as it turns out, installer packages apart
from the Google Play client routinely ignore it (apparently they just leave
it at null).  Even the Google Play client is said to put varying values in
it so even if the function returns non-null, the returned string might be
hard to make sense of as you don't know what to look for.

I too would love to have a way of checking who installed a particular
package (our app, most of the time) but to my knowledge, you can't find out
reliably.

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

2013-04-24 Thread WB
I'm try to determine if this class works, or is hardware dependent, etc.  I 
have not been able to 
observe a difference between when it is turned on and turned off.  Testing 
on a GS3 and a Nexus S,
I find that the GS3 really doesn't echo at all, regardless of whether the 
AEC is on or off, and the
Nexus S always echos, regardless of whether the AEC is on or off.

Does anyone have any experience with this class, or know which devices 
support this capability.

It is entirely possible that I am not using the class correctly due to very 
limited documentation.

In my code, I have an AudioRecord object from which I extract the 
sessionID, and also use that to
set the sessionID of the AudioTrack (for playback).  I create an 
AcousticEchoCanceler using this
sessionID.  I can then use the AEC method to turn cancellation on and off, 
and query the state.
If this report as expected.  AEC is available of the devices running 4.1 
and above, and by
default it is disabled.   I can then enable it, and check to see if it is 
enabled, and it is.

I am accessing this through reflection because I am building with an older 
SDK that doesn't 
support the AEC class.

C.

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

2013-04-24 Thread bob
 

https://lh6.googleusercontent.com/-3FBojQDWmFg/UXhIOtIfNvI/Aak/38Rl6-URmaA/s1600/vidview3.png

I would take a look at the VideoViewDemo in the ApiDemos sample:




Thanks.



On Monday, April 22, 2013 8:11:37 AM UTC-5, Nine wrote:

 Dear all,

 I want to make a VideoView to play a stream video at Portrait mode, and 
 then I rotate the screen to Landscape, the VideoView will show fullscreen. 

 Do you have any ideal to solve this issue ? Please help me. Give me the 
 solution. Thanks in advanced.

 AndroidLover


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

2013-04-24 Thread deepwinter2
ideas ?


On Friday, April 19, 2013 6:47:03 PM UTC-7, deepw...@winterroot.net wrote:

 I would like to be able to call filter() on a merge cursor I'm using.  The 
 filter functionality needs to pass through to one of the cursors, a 
 database cursor, and update it's sql query (or just manually filter the 
 results).  What is the best way to implement this?  I can see that I can 
 perform this processing within performFiltering and publishResults, but I'm 
 not clear on what the objects within FilterResults should be - the new 
 cursors for the merge cursor?  

 Thanks for assistance.


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

2013-04-24 Thread bob
 

Yes, there is a way to do this

You basically create a class called Config.

Then you put a static boolean in there like so:

public static boolean ON_GOOGLE_PLAY_STORE = true;

Then you make two APKs - one for the Play Store and one for everywhere 
else.  You set the boolean accordingly.  

To check, you simply look at the boolean.

Thanks.



On Wednesday, April 24, 2013 5:42:19 AM UTC-5, Perry168 wrote:

 Hi TreKing,

I hope to check user is download my apps from google play store or from 
 other place. But I don't know how to write the program.


 TreKing於 2013年4月24日星期三UTC+8上午9時14分54秒寫道:


 On Tue, Apr 23, 2013 at 5:46 PM, Perry168 perr...@gmail.com wrote:

 I need to add a function to check the apps installed/downloaded from 
 google play store or not.


 Your question is not very clear.


 -
 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: Clock widget with second hand

2013-04-24 Thread Mady Zaid
i already develop a custom analog clock widget with themes, skins and some
other options, but the big problem clock stop working after some period
that differ from mobile to another, I don't know if it's stopping depend on
the android version or just mobile specification, so I put my code as an
open source for geeks to help me improve it.


2013/4/24 bob b...@coolfone.comze.com

 I would take a look at this code:


 http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/widget/AnalogClock.java/?v=source

 Then I would rename AnalogClock to something like MyAnalogClock and add
 the code for the seconds hand.

 Thanks.


 On Monday, November 14, 2011 3:41:19 AM UTC-6, Abhishek Kumar Gupta wrote:

 Hi All,

 Can anyone suggest me on how to add a second hand to the clock widget and
 rotate it continuously?

 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.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Task Killing apps kill my service. How can I avoid it?

2013-04-24 Thread AndreiP
Thanks Kris. I suspected that would be the case. Well then, he would have 
to implement a WatchDog if he doesn't use Push Notifications.

On Wednesday, April 24, 2013 1:13:47 PM UTC-7, Kristopher Micinski wrote:

 Task killers just do a process kill, so you *don't* get an 
 `onDestroy()`, your app just disappears... 




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




[android-developers] Activity start+restarts when launched with screen off

2013-04-24 Thread Shri
If an activity (with WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | 
FLAG_SHOW_WHEN_LOCKED | FLAG_TURN_SCREEN_ON) is launched while the screen 
is off, the order of activity lifecycle callbacks is:
   onCreate, onStart, onResume, onPause, onStop, onRestart, onStart, 
onResume
Why does Android stop the activity and restart it?

I happenned to be calling finish() in onStop() (not realizing the above 
behavior) since I did not want to handle restart*. With this, the order of 
activity lifecycle callbacks is usually:
   onCreate, onStart, onResume, onPause, onStop

However, once in a while, the order of callbacks is:
   onCreate, onStart, onResume, onPause, onStop, onRestart, ...
This seems like a bug. If onStop calls finish(), it should not be followed 
by onRestart, right?

Thanks,
Shri

* The activity displays a snapshot of the current state. If it can be 
restarted, it has to handle the case where the state has changed (which is 
doable, but a bit tricky) and update the UI to display the new state. I was 
attempting to simplify my logic by ensuring that the activity is never 
restarted so that I do not have to worry about a change in state.

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

2013-04-24 Thread Nathan
It might have been this presentation I was thinking of:

http://www.google.com/events/io/2011/sessions/evading-pirates-and-stopping-vampires-using-license-verification-library-in-app-billing-and-app-engine.html

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

2013-04-24 Thread Indicator Veritatis
There is a world of a difference, Ian, between updating our software and 
completely breaking an entire set of APIs. Google did the latter. Many 
other companies instead keep the old APIs working for years, encouraging 
developers to develop only for the new API set.

Now Google may have had a good reason for completely scrapping v1 and 
forcing everyone to migrate to v2 with no backwards compatibility -- but 
did Google ever communicate this to developers? I never saw this. 
Evidently, neither did a number of contributors to this thread.

Finally, why are you even asking if he got a v1 API key? Even his first 
post should have made it clear that he got further than that in the 
development process. For you to insinuate that he did not even get this far 
shows both laziness on your part and contempt for Google's customers and 
partners, developers.

On Tuesday, April 23, 2013 8:38:09 AM UTC-7, Ian Ni-Lewis wrote:

 You say that My career doesn't revolve around only Google, and I have 
 other things to do than checking each x months if one API has been 
 discontinuated and I need to develop everything again. We do occasionally 
 need to update our software, and although we do try very hard to avoid 
 breaking changes, they do sometimes happen. How would you prefer to be 
 notified of these changes? Have you ever obtained a v1 API key or uploaded 
 an app to Google Play? If not, then how would Google have communicated this 
 important information to you? 
 Ian


 On Tuesday, April 23, 2013 2:59:07 AM UTC-7, user123 wrote:

 Yes, in moments like this, I ask myself why I'm an Android developer :) I 
 think I started basically because I didn't/don't like Apple. But 
 reconsidering this position.

 Another thing I found quite annoying during this experience, is that 
 there's not even a direct contact possibility. All I found was an email 
 Address of Googe Play, then I got an automatic e-Mail in response, which 
 told me, to answer directly if this doesn't solve the problem, I did, and 
 then I got:

 Thank you for your note. If you're looking for information regarding Google 
 Maps Android API, please visit our Google Play Android Developer site:
 http://developer.android.com/google/play-services/maps.html;

 I probably can't call this bad costumer service, since I'm only a 
 stupid developer, not a costumer, and I don't deserve any direct 
 communication with Google. And not to dream about the possibility to get 
 some human-generated consideration about my case and a key for v1.

 And I'm not afraid of writing this, because Google will not even read it 
 :)

 So I'll delay my release and post soon my questions about v2. And try my 
 best to keep my motivation to be an Android developer.


 Am Dienstag, 23. April 2013 03:07:00 UTC+2 schrieb Indicator Veritatis:

 In your message starting this thread, you say: The context: I finished 
 an app a few months ago. I want to release it now.

 Well, it appears Google has, in its infinite wisdom, decided during 
 those few months not to give anyone a v1 key. Of course, this is 
 inconsiderate to developers, but Google is like that. Even in its worst 
 days, Apple had better relations with independent developers.

 But no doubt Google would ask, well, what were you doing in those 'few 
 months' that you did not notice the need to update your app for the new 
 API? Android developers have to roll with the punches and live with this 
 kind of abuse from Google, we cannot change it.

 Complain if you have to to get it out of your system, but then move on. 
 Either drop the app or rewrite it to use the new API.

 On Monday, April 22, 2013 3:47:10 AM UTC-7, user123 wrote:

 Can you please stop using this conversation (only) to promote yourself 
 :) thanks.

 I can google the information myself. This is not any serious help. What 
 I need is an API key for v1 to release my finished app.


 Am Montag, 22. April 2013 12:27:57 UTC+2 schrieb VenomVendor™:

 There is no other way, than porting to MapsV2. 
 If you find any difficulty in anypart of MapsV2, We as a developer 
 will support you to the best.
 I suggest you to post in the same thread rather than creating new 
 thread.
 Before you Post, Search in 
 StackOverflowhttp://stackoverflow.com/questions/tagged/android-maps-v2


 *To start with MapsV2.*

 Here are few links to start with MapsV2   Getting Started with 
 Google 
 MapsV2http://venomvendor.blogspot.in/2013/04/getting-started-with-google-mapv2-for.html
 To create a custom overlay with custom typeface, I suggest you to see 
 this  Using Custom Typeface in Maps 
 V2http://stackoverflow.com/q/15668430/1008278
 If you want any help, let us know, Sharing is Caring.

 My Android Apps-(Rate  
 Reviewhttps://play.google.com/store/apps/developer?id=VenomVendor
 )



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

Re: [android-developers] Re: Deep sleep after 1 hour?

2013-04-24 Thread paladin
That looks like it fixed the issue. Thanks a lot!

On Tuesday, April 23, 2013 10:16:15 AM UTC-4, Kristopher Micinski wrote:

 this... 

 http://developer.android.com/guide/components/services.html#Foreground 

 Kris 

 On Tue, Apr 23, 2013 at 10:05 AM, paladin quot...@gmail.com javascript: 
 wrote: 
  Yes, if what that means what I think it means. 
  
  
  On Tuesday, April 23, 2013 8:48:57 AM UTC-4, Kristopher Micinski wrote: 
  
  Just to check, you are running a foregrounded service, correct..? 
  
  Kris 
  
  On Tue, Apr 23, 2013 at 8:44 AM, Kristopher Micinski 
  krismi...@gmail.com wrote: 
   An AlarmManager will wake the device up, but isn't typically used for 
   30 second granularity.  Still, perhaps a solution to try. 
   
   Kris 
   
   On Tue, Apr 23, 2013 at 4:51 AM, paladin quot...@gmail.com wrote: 
   It's actually sending the location of the phone every 30 seconds to 
 the 
   server. Where would the alarm be located that you're talking about? 
   
   
   On Tuesday, April 23, 2013 4:26:11 AM UTC-4, Dave Shortman wrote: 
   
   Does the app do anything else other than ping the server? Best way 
 to 
   approach this really would be to set an alarm which fires every 30 
   seconds, 
   when you receive the alarm take a partial wakelock and fire a 
 service 
   to 
   perform the ping, this service should also take and release a 
 wakelock 
   whilst performing the ping. 
   
   On Monday, 22 April 2013 22:00:32 UTC+1, paladin wrote: 
   
   I have an app that is supposed to send a ping to a server every 30 
   seconds. When the app goes to sleep, it's still supposed to do 
 this, 
   but 
   I've been testing and it seems to stop sending any updates after 1 
   hour, 
   consistently. Is this a deep sleep? I have seen no documentation 
 on 
   this. 
   Has anyone experienced this? Would anyone know how to keep it from 
   going 
   into deep sleep? 
   
   -- 
   -- 
   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 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.comjavascript:. 

   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-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] How to program the apps which is download from play store?

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 4:44 PM, bob b...@coolfone.comze.com wrote:

 Then you make two APKs - one for the Play Store and one for everywhere
 else.  You set the boolean accordingly.

 To check, you simply look at the boolean.


This tells you which store *you* built the app for. It says nothing about
where the *user actually* downloaded the app from.

But if this is what the OP was getting at, then sure, that will work well
enough.

-
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: ListView selection remained after exit from action mode

2013-04-24 Thread yccheok
Side Note

Using MultiChoiceModeListener couple with CHOICE_MODE_MULTIPLE_MODAL will 
make this bug gone. However, for device below API level 11 will not able to 
use this solution.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [Q][Dev]****Facebook Home****How to implement a screen locker just like fb home

2013-04-24 Thread Tim Cho
Halo

How does the Facebook Home work? 

I wanna achieve a screen locker app with some futures(showing picture etc.)

That locker must appare before the system [pattern or password]locker.

How can i do that? Any tips~

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] Maps api key v1?

2013-04-24 Thread Ian Ni-Lewis
On Wed, Apr 24, 2013 at 4:01 PM, Indicator Veritatis mej1...@yahoo.comwrote:

 There is a world of a difference, Ian, between updating our software and
 completely breaking an entire set of APIs. Google did the latter. Many
 other companies instead keep the old APIs working for years, encouraging
 developers to develop only for the new API set.


But we *are* keeping the old APIs working for years. The deprecation is
following the normal Google policy. Existing users will be supported for
some time to come--something on the order of three years, if I recall
correctly. What we're not doing is issuing new keys. I'm unable to think of
a way of deprecating an API that's significantly more fair than that.


 Now Google may have had a good reason for completely scrapping v1 and
 forcing everyone to migrate to v2 with no backwards compatibility -- but
 did Google ever communicate this to developers? I never saw this.
 Evidently, neither did a number of contributors to this thread.


We did communicate this via G+ and a fairly prominent paragraph on the Maps
API page. We probably could have done more communicating directly from the
Android team. As it was, we let the Maps team communicate the change, and
perhaps missed many Android developers.


 Finally, why are you even asking if he got a v1 API key? Even his first
 post should have made it clear that he got further than that in the
 development process. For you to insinuate that he did not even get this far
 shows both laziness on your part and contempt for Google's customers and
 partners, developers.


I think you're being overly harsh with me and overly kind to the OP. I'm
not familiar with his development process, but I'm fairly certain that had
he requested a key, it would still be operational (see my comments about
the deprecation policy, above). If I understood the original post, the
developer claimed that he fully developed an app, waited for a period of
several months, and then requested a key just before he intended to go
live. Perhaps he used someone else's key during development?

In any case, you appear to be assuming that we shut down a service without
informing its users. This is not the case. We stopped accepting new users
into a service which we intend to keep online for a period of several
years. No existing users were affected by this change. No users who
obtained an API key before beginning development (as they were clearly
instructed to do) should have been affected.

Hence, my question. If the OP has a key that is not working, then I will do
everything within my power to fix that for him. However, it appears that
what he has is no key, and no plausible reason for why he didn't obtain a
key when it was possible for him to do so. That's significantly more
difficult for me to fix.
Thanks
Ian




 On Tuesday, April 23, 2013 8:38:09 AM UTC-7, Ian Ni-Lewis wrote:

 You say that My career doesn't revolve around only Google, and I have
 other things to do than checking each x months if one API has been
 discontinuated and I need to develop everything again. We do occasionally
 need to update our software, and although we do try very hard to avoid
 breaking changes, they do sometimes happen. How would you prefer to be
 notified of these changes? Have you ever obtained a v1 API key or uploaded
 an app to Google Play? If not, then how would Google have communicated this
 important information to you?
 Ian


 On Tuesday, April 23, 2013 2:59:07 AM UTC-7, user123 wrote:

 Yes, in moments like this, I ask myself why I'm an Android developer :)
 I think I started basically because I didn't/don't like Apple. But
 reconsidering this position.

 Another thing I found quite annoying during this experience, is that
 there's not even a direct contact possibility. All I found was an email
 Address of Googe Play, then I got an automatic e-Mail in response, which
 told me, to answer directly if this doesn't solve the problem, I did, and
 then I got:

 Thank you for your note. If you're looking for information regarding Google
 Maps Android API, please visit our Google Play Android Developer site:
 http://developer.android.com/**google/play-services/maps.htmlhttp://developer.android.com/google/play-services/maps.html
 **

 I probably can't call this bad costumer service, since I'm only a
 stupid developer, not a costumer, and I don't deserve any direct
 communication with Google. And not to dream about the possibility to get
 some human-generated consideration about my case and a key for v1.

 And I'm not afraid of writing this, because Google will not even read it
 :)

 So I'll delay my release and post soon my questions about v2. And try my
 best to keep my motivation to be an Android developer.


 Am Dienstag, 23. April 2013 03:07:00 UTC+2 schrieb Indicator Veritatis:

 In your message starting this thread, you say: The context: I
 finished an app a few months ago. I want to release it now.

 Well, it appears Google has, in its infinite wisdom, decided during