Closed GoogleCodeExporter closed 9 years ago
This has been requested before actually. It is also similar but different to
issue 35. It will take some work but I will consider it for a future release.
Thanks for the request.
Original comment by JimR...@gmail.com
on 3 May 2011 at 10:39
Original comment by JimR...@gmail.com
on 3 May 2011 at 10:39
Found this:
http://qtcstation.com/2011/02/how-to-launch-another-app-from-your-app/
Should be fairly simple to add a field to the database to store the package to
launch after a device connects. Just need to take the time to implement it.
Original comment by JimR...@gmail.com
on 17 Jun 2011 at 10:54
Ok, the test app is now ready. Download version 2.0.0 in the downloads tab
above and start testing it.
Original comment by JimR...@gmail.com
on 18 Jun 2011 at 2:39
Found a few bugs (null exceptions) and cleaned that up. Would like feedback on
the package auto-launch feature. The nice thing about typing it in is that you
can just remove the last letter to effectively disable the auto launch. If it
create a package browser, you would have to relist and re chose your package to
launch. Listing the installed packages is very slow.
Also considering multiple packages. Maybe separate with semicolon. Thoughts?
Original comment by JimR...@gmail.com
on 19 Jun 2011 at 2:32
Hi,
had trouble testing it yesterday because "find devices" caused a FC. Now i
installed the new version and i was able to test it.
1. Launching an application works as advertised. The application (in my case
winamp) is running in foreground even if the display is off. All i have to do
is unlock the screen and press the play-button.
2. Typing the package is ok for me. Maybe it could be optional to use to
package browser. The result of the package browser selection would be the
string in the textfield.
3. Not sure if multiple packages are necessary.
4. I don't find a way to start the audio playback with a given package name.
Atm I have no clue about android development but there have to be way to tell
the device to start playback without naming the application. If i use my
headset and press the play button of the headset android "knows" the default
application for audio playback. The nice thing about using an "event" is that
you don't need to change the settings of a2dpvolume when the mediaplayer
software is replaced. Android would handle the routing of the event. Another
advantage for me: I can turn bluetooth on and leave the phone in my pocket and
would still be able to listen to music in my car :)
I hope it helps?!
Original comment by bjoern.h...@googlemail.com
on 19 Jun 2011 at 8:33
RE item 4: There is a way to launch a URI instead of launching a package. I
already do this for maps with the location data. For instance, you can launch
a playlist. This is similar to double clicking a file in Windows Explorer. It
will find a program that can load that file. In Android it will list all the
programs that can launch that file and let you choose. You can also select a
default. This is bacically a method to load the content of the URI though.
You would have to launch a song or playlist for example. It would not just
open the player.
Pandora launches and starts playing your last station right away. On my
Motorola T605 car kits, the buttons on the car kit will control the player
(Pandora or the default music player). Does your bluetooth device not have
controls on it? I leave the phone in my pocket all the time and I can control
the music player from the cars bluetooth controls.
Original comment by JimR...@gmail.com
on 19 Jun 2011 at 1:03
As my car has no bluetooth out-of-the-box i had to install a solution that uses
an aux port. thats why i can't start the playback from the car cause there are
no bluetooth controls. but now i see why nobody else has got the problem :)
And i use winamp because it supports over the air synchronisation but
unfortunately it doesn't start playback when it is launched.
The URI solution is close to what i have in mind. But this way the state of the
mediaplayer would be reset, wouldn't it?
I've looked into the api and only found the possibility to add extra
information to an intent like a "KeyEvent" which knows the static member
KEYCODE_MEDIA_PLAY_PAUSE. I am absolutely not sure whether it's the right
direction but it sounds like my headset event analogy :)
Sorry for having such crazy requirements :)
Original comment by bjoern.h...@googlemail.com
on 19 Jun 2011 at 2:42
One thought for you, the Motorola T605 will connect to that aux port and you
can find them cheap on eBay. It gives you hands free phone features plus A2DP
streaming and you have controls. A quick eBay search showed them as cheap as
$45 buy it now with free shipping. Most car devices I am aware of have
controls.
Launching the app is useful for all devices. Once a music player is active,
then the bluetooth controls act on that device. Pandora is one popular example
and this new auto launch feature works great with it. Another user wanted a
radar app to auto launch and this should work great for that too.
I think I will clean up any bugs (test it a bit more) and call it good with the
current functionality of 2.0.1.
Original comment by JimR...@gmail.com
on 20 Jun 2011 at 10:54
Ok for me. Launching an application is useful. If I find a solution for my
problem (maybe an application which starts the media playback), I will give
feedback.
Original comment by bjoern.h...@googlemail.com
on 20 Jun 2011 at 11:08
OK, so I went ahead and made a package browser after all. The new test file is
available now. It is version 2.0.2. I need some folks to help me test this
and report any problems.
Original comment by JimR...@gmail.com
on 27 Jun 2011 at 10:39
First thoughts for the new package explorer:
- Sort by package name (i.e. at the moment com.imdb.mobile is before ad2p.vol)
OR
- Application Name like in the app drawer (instead of "com.nullsoft.winamp"
only "Winamp")
Original comment by bjoern.h...@googlemail.com
on 27 Jun 2011 at 11:18
I can do the sort. Getting the friendly name of the app requires a detailed
search of each package (very slow). I was trying to keep the app responsive.
I can see this would be a problem for the average user who does not have an
understanding of software. I have seen other apps show the package list too
but it is no doubt clunky and cryptic. OK, will look into this more....
Original comment by JimR...@gmail.com
on 28 Jun 2011 at 1:46
Implemented sort in 2.0.3 (just posted) test. I looked into the app name to
list instead of the package name. Found a few issues (like some apps can
launch different packages but they have the same name). Will continue to
investigate an improved interface tot he app list. Comments, concerns, issues
always welcome.
Original comment by JimR...@gmail.com
on 29 Jun 2011 at 2:35
I have done more research on closing the app on disconnect. There appears to
be no way to do this for an active app. I can close a background task but even
most of those will just restart. It may come down to having apps that accept
an intent to close. Lacking that, you just have to manually close it when you
exit the car.
The launch is working now and I filter to only packages that have an intent,
and an icon, and are runable. I also sort alphabetically. I have not figured
out a really good way to list the apps by the friendly name we know them by.
Original comment by JimR...@gmail.com
on 3 Jul 2011 at 4:26
Implemented a better app browser leveraged from App Alarm Pro which is now open
source. https://github.com/ghackett/AppAlarm
I may introduce the other custom intents and features to A2DP Volume from App
Alarm as well. This does take a lot longer to load though. For those less
patient, a long click on the [start app on connect] button will give the quick
list. These features were introduced with version 2.0.6 test now available for
download here.
Original comment by JimR...@gmail.com
on 4 Jul 2011 at 10:33
Oh, one other thing. Froyo introduced the inability to kill other apps. So,
it can launch them but you will have to manually kill them after you
disconnect. It still makes an attempt to kill them and any related backgr0und
processes but this will rarely if ever work. There is no way around that
really. Apps can implemented an intent to close them that other apps can use
but there is no protocol that I know of for that.
Original comment by JimR...@gmail.com
on 4 Jul 2011 at 10:35
Original comment by JimR...@gmail.com
on 12 Jul 2011 at 10:10
2.0.9 test is now available in the downloads. Please test it out. Added many
new launch features including Pandora integration, launch shortcuts, and custom
intents.
Original comment by JimR...@gmail.com
on 22 Jul 2011 at 3:08
Original issue reported on code.google.com by
bjoern.h...@googlemail.com
on 3 May 2011 at 7:47