Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a activity in which i send response to server and get output.
The problem what i am facing is when i left my phone ideal (phone get auto locked ) and unlock screen to open app screen.
That activity sends request to server again i don not want this to happen as i am on same activity.

Is there any way i can stop it using onResume,Onpause ??
Posted
Comments
ridoy 6-Sep-13 11:56am    
do something by what your screen wouldn't lock until closing your app.
garav kumar mishra 6-Sep-13 12:09pm    
this is not proper solution ??

Check this LINK which explains ACTION_USER_PRESENT which is a protected intent and can be send by system only.
 
Share this answer
 
Hi Kumar,
Check this Link[^]

and also this
Link 2[^]

Please post your queries if u have any doubts

Thanks
Ganesh
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900