Can anyone tell me how to play .pls on Windows phone 7 media element
Maybe you get the answer when you clone this thread 10 times.
Until now you did it only three times.
http://forum.xda-developers.com/showthread.php?t=1852573
http://forum.xda-developers.com/showthread.php?t=1852581
http://forum.xda-developers.com/showthread.php?t=1854194
Try several times more. But first - go read forum rules - especially the chapter about creating new threads.
I've closed all your similar repetitive threads. Please read the XDA ruls before posting: http://forum.xda-developers.com/showthread.php?t=726334
This thread remains open for getting your answer.
Moved to related forum.
WP7 doesn't natively understand the format, of course, so you'd need an app that could process it. The app would have to parse the playlist files, acquire the actual media files, and then play the media files (such as through a MediaElement) one at a time in the order specified by the playlist(s). None of this should be too hard.
Now, if you want to be able to open a .PLS file directly on WP7 - that is, from an email attachment or a download link on a webpage or something like that - you'll need to be able to set file associations. This is possible, but requires at least interop-unlock on your phone or root-unlock on your app. You need to add an entry under HKEY_CLASSES_ROOT for .PLS, with the default value specifying something like "plsplaylist", and then create HKCR\plsplaylist, give it a registry value called EditFlags of 0x00010000, and create additional registry keys HKCR\plsplaylist\shell\open\command with a default value of your app's launch URI (app://{APP_PRODUCT_ID_HERE}/_default?pls=%s). To understand that, your app would need to have a check in its OnNavigatedTo event that examines the parameters of the navigation for the key "pls" and loads the file represented by its value.
Related
im trying to get a very very small program runnint, however im very lost when it comes to programming windows mobile device, i have a database online, and i want a small dialog box to show up on my wm device and alow me to type something in , then it search the online database.. and return the information, or even just take me to where the online listing is, that's all no bells or whistles.. could someone help me with this please?
i have even added a search feature to my database, soo i just basically want this little program to relay text to that search feature, then take me to it.. so i don't have to go to all these links and whatnot
Well,
it is quite hard to advice you anything without actually knowing about the file structure / database format. Maybe the easiest way would be to simply set up a search option online as a WAP2.0 page - if you don't want others to access this section, simply password protect it.
If you really have a need to generate the 'search string' offline (which I just can't understand since you want to be taken to your DB online) then simply use something which generates the search string for you.
For example you could have a "results.php" online which simply needs the search terms 'attached' in order to list you all relevant records. Now, the question remains how the database is structured. If you have 2 fields in your database, containing firstname and lastname, then it would be simple. You would need only something that adds your search terms to the string and then navigates to your server. For example you search for SMITH as lastname, it would have to transfer the string as followed:
www.mysite.com/results.php?lastname=smith
For sure your results.php needs to be programmed first!
However,
this has nothing to do with your device, you better join a programmer forum - in this case I would suggest you look for web development forums since this can be done entirely on the server side!
Hello,
I would like to get a list of database names in code. I'm not looking for databases outside my application/package, just those in my /data/data/<my_package>/database folder.
I can easily locate them on the file system and open them using adb and sqlite3,
but I need to dynamically get a list of databases so that I can open and manage them in code.
I currently use a separate database to keep track of database names as they get created/deleted through my application, but I imagine there is a way to get a list of databases directly via SQL query or some sqlite library call.
Can anyone help me with this?
Thanks,
-dj
This should be in the "Android Development" forum.
BTW, I tried to post this question in a more topical "Android Development" forum, but I'm an XDA newb and don't have permissions to post in there.
Maybe these links can help you? I don't do much droid programming anymore and I never worked with databases in droid. Also welcome to XDA
http://www.devx.com/wireless/Article/40842
http://developer.android.com/reference/android/database/sqlite/package-summary.html
solution
The solution turned out to be very simple.
The main application context has a databaseList() function that, conveniently, returns a list of database names associated with the application.
String[] dbList = getApplicationContext().databaseList();
Thanks for the links dbzfanatic. devx looks like a good resource... it's going on my bookmark bar for sure.
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
database names
dbzfanatic said:
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
Click to expand...
Click to collapse
Correct, just a list of the database names.
I need a few more posts before I'm permitted to post a link, but this is the approximate reference link:
developer.android.com/reference/android/content/Context.html#databaseList()
Hey guys,
I'm really new to this app development and would like to ask one of you experienced developers a question.
Basically I have recently been creating mobile websites from a set of css files which are just a basic template. The template files have individual files for some of the most common pages that a small business would need, google map, contact us with form, menu, opening hours and so on.
What happens is you simply upload the company logo and such into the images folder, update the css style sheet for colours, then simply edit one of the relevant pages e.g place the food items in the menu page.
When the whole set of files gets uploaded it creates a personalised functional business mobile website.
What I would like to know is, would it be possible to set something like this up for an android app? Whereby the user could simply change the details as above and then compile the apk file which will create the app?
Your input is much appreciated, also have any of you got any idea where I could get someone to code something like this?
Regards,
Stephen
Hello world,
yes, I used the search function.
Background: (you may wish to skip to the question)
I'm a multitasker and I don't like Android killing my browser if I use one or two other applications for a minute or so, because I lose all my tabs content that way. While that isn't bad having a good network connection, it is real bad in subway train where I usally read news by phone and the internet connection is very bad.
So I tried many different things in order to prevent android from killing my browser, and finally I found a solution in the opera forum:
(I really would like to link you there, but: "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!")
knumsole wrote in Opera forum:
Here, take this: (sorry, can't post link, see above)
This is Opera Mobile 11.5.3, (...). I repackaged it with a dummy service which increases the OOM priority of the application. This will very effectively prevent Android from killing it.
Click to expand...
Click to collapse
(google for the complete sentences in that quote will lead you there.)
Adding this dummy service changed the applications oom priority from about 7 to 10 (--> gets killed soon to first) to an oom priority of 2 (which is totally stable for me).
[ooms read by auto memory manager.]
Question:
Is there a relative easy way to add a dummy service to an existing application? Such as "knumsole" did described before? (I tried contacting him, but wasn't successful)
I'd like to be able to do that myself, e.g. if I need a newer version of the browser. With "easy", I mean: I'm not an application developer, and I don't intend to become one. But I am able to extract an .apk file and modify text files in there and so. And if it is necessary, I would also compile that, too.
I use Android 4.1.2 on a rooted Samsung Galaxy S2.
Thank you!
* (more than) 24h bump *
24h bump
*bump*
Hi. I am new to XDA and Android development, and am trying to learn some basics. I am looking over the tutorial at (stupid forum won't let me post outside links yet...) but it is flawed in a few ways. As of now, it says "browse to kernel_source". In my Android's default file browser, even with hidden files shown, I cannot find that location. Do I need a more powerful browser that lets me look at system files, or am I just misnavigating?
The tutorial is about adding features to the kernel, such as CPU governors.
Also, do I have to write android code on the phone itself, or can I write on the computer (much easier to use a keyboard) and transfer when I'm done?
Thank you!