Need help regarding key configuration...

Put your problem here if it does not fit any of the other categories.

Need help regarding key configuration...

Postby ksp » Tue Nov 11, 2008 11:35 am

Hi..

I am new to android. Need few information on whether we can start an application on press of a key from the keypad. If so then how?

And also how can we make an application run in background like a daemon process and keep providing alerts to the user?

hoping for a quick response..

thanks in advance. :)
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Top

Postby MrSnowflake » Tue Nov 11, 2008 12:08 pm

1) This is default on the G1. You can assign keys to apps.
2) Yes, and in Android they are called Services.
Check the docs for more info. Everything is in there.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby ksp » Mon Nov 17, 2008 8:26 am

Thanks MrSnowflake.

Other than the key settings in G1 mobile, is there a way to get the application started on press of a button?

Like say any tag or any attribute in Android Manifest file, using which we set a key for this application, and then allow the application to start.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Postby MrSnowflake » Mon Nov 17, 2008 11:54 am

Nope and this shouldn't be! The user has to choose if he wants a task (and which task) to start when he presses a certain button, not the application programmer!
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby ksp » Tue Nov 18, 2008 10:00 am

Thanks for the response MrSnowflake.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: TurnitinBot [Bot] and 35 guests