Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Media

Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...



Reply
 
LinkBack Thread Tools
Old November 25th, 2011, 12:44 PM   #1 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default parameters

Hi,

I am a newbie with android.
I'de like to know if an application has the possibility to get parameters?

I have an automation software that allows me to run an application from my tablet by pushing a button.

I can provide the path of the application with, I beleive parameters.

Does it work like windows?

like
myapp param1 param2?

actually I am looking for a software that would play music from my tablet and accept parameters so I could select a playlist of a list of mp3 files when I call the software from another software.

BTW,
how do I know the name of the application to call (with windows, I go to program files, I search the software folder, then I search for the xxx.exe file, or I can read from the shortcut if there is one from the start menu or desktop).
But with android, what is the procedure?

thanks a lot.
Rod

webrod is offline  
Reply With Quote
Sponsors
Old November 25th, 2011, 06:15 PM   #2 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,090
 
Device(s): GalaxyNexus(LTE), NexusOne, OG Droid, GalaxyTab 10.1(LTE), Eris, Logitech Revue (fishtank)
Thanks: 4,164
Thanked 3,126 Times in 1,292 Posts
Default

In Android the software would need to accept Intents that would trigger the task.


Are you asking as a developer or as a user though? As the answer to your question is very different depending on what you're trying to do
alostpacket is offline  
Reply With Quote
Old November 25th, 2011, 11:13 PM   #3 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by alostpacket View Post
In Android the software would need to accept Intents that would trigger the task.


Are you asking as a developer or as a user though? As the answer to your question is very different depending on what you're trying to do
as a user.
I did a test with Talk, and it didn't ask.
(or maybe the very first time only and I don't remember).
But now it does not ask.
i just entered "talk" in the "path" field (I am using HSTouch as a client of HomeSeer, the home automation software)

thanks
Rod
webrod is offline  
Reply With Quote
Old November 26th, 2011, 05:05 AM   #4 (permalink)
Member
 
Join Date: Apr 2010
Posts: 344
 
Device(s):
Thanks: 6
Thanked 25 Times in 24 Posts
Default

If you are saying something like in PC browser, you put http://www.abc.com?search=xxx such stuff to trigger action in Android, it is possible but you need to formulate the correct Intent that is recognizable to the app. Intent has concept of categories,data etc to fine-tuned which app get the Intent to work on.
sohguanh is offline  
Reply With Quote
Old November 26th, 2011, 12:01 PM   #5 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,090
 
Device(s): GalaxyNexus(LTE), NexusOne, OG Droid, GalaxyTab 10.1(LTE), Eris, Logitech Revue (fishtank)
Thanks: 4,164
Thanked 3,126 Times in 1,292 Posts
Default

Yep as sohguanh said, it's possible for a dev to implement. An example is putting a shortcut on your desktop. That's basically sending a "parameter" to the browser to launch that particular page.

This is much the same as Windows, in that a dev would need to plan to accept the parameter, or it wouldnt do much.

However it's a bit different for Android, in that the dev has to set up a way for users to make shortcuts. You cant just add a shortcut to the screen, and add data to it like windows ("myprogram.exe" -launchbig)

Rather the dev needs to provide a list of available "parameters" to the Android OS in a way that allows the user to select a specific parameter as a shortcut.


All that said, you should be able to make a playlist and save it -- then later add it as a shortcut with most media players out there (though maybe not stock or Google Music)
alostpacket is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Media User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 03:16 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo