[Q] Android and JavaScript - General Questions and Answers

I created an web application in PHP and Javascript (jQuery) which plays music and there are lots of AJAX requests running in background, for scrobbling music to last.fm and storing all data to database. It works great on my android phone but only while this tab is active. When I minimize the browser, visit another tab or turn the screen off, the music is still playing but javascript doesn't work anymore. I read somewhere on StackOverflow that all javascript is stoped while tab is inactive to save battery.
But I want to be able to use my app with screen turned off or while browsing the web / playing games etc, so is there any browser with possibility to run javascript while tab/browser is inactive?

Low level wrapper
xplod2841 said:
I created an web application in PHP and Javascript (jQuery) which plays music and there are lots of AJAX requests running in background, for scrobbling music to last.fm and storing all data to database. It works great on my android phone but only while this tab is active. When I minimize the browser, visit another tab or turn the screen off, the music is still playing but javascript doesn't work anymore. I read somewhere on StackOverflow that all javascript is stoped while tab is inactive to save battery.
But I want to be able to use my app with screen turned off or while browsing the web / playing games etc, so is there any browser with possibility to run javascript while tab/browser is inactive?
Click to expand...
Click to collapse
Hello, I think you need to use cordova/ionic application that transforms your app in android web-view, then you can use cordova/ionic plugins to make your app work in background

Related

uZard Web Browser Beta v2.0

uZard Web Browser P Beta Ver.2.0
Requirements:Android 2.X
#it doesn't work on hvga screen#
Overview:
uZard Web P is a mobile web browser. It allows
users to experience the same web surfing they
do with PC.
uZard Web P shows the fastest performance
not only on 3G or 4G networks but also on 2G
and 2.5G networks. As long as the devices have
the access to a network, users can experience
the same web surfing and multimedia contents
through uZard Web P just as they do with PC.
uZard Web P is optimized for use on a broad
range of mobile devices and networks.
uZard Web P shows same screen as you see in
your PC ’s.
> is the fastest mobile web browser.
> supports cross platform.
> works independently of chipset and
technologies.
> doesn’t require high processing power.
> takes smallest data traffic.
> is a small size application.
> is easy to customize and converge.
To see it to believe - uZard Web P introduction
Video ▼
Latest uZard Web P Functions
uZard Web P provides even more joyful web
surfing functions as it provides the important
mobile functions in additional to the basic
features of PC browser.
Complete Support of Video and Audio
- Fully experience various UCC video on
YouTube and others as well as real- time news
video such as CNN (Video formats such as Flash,
Silverlight, WMV, Etc.)
- Experience the music on Internet. (Sound
formats such as MP3, AAC, WMA, Etc.)
Real-time Multimedia File Uploading to the
Web
- Upload the pictures or videos in real-time
while your are surfing the Web sites such as
Facebook, Twitter, Flickr and others. You don’t
need to tediously search for files saved in your
PC or mobile phone and send them through
MMS.
- Download sound source from a Web site and
use it as the bell tone of your mobile phone.
Download the video file and view it later.
Daily Lives of You and Your Friends in Your
Hand
- Easily connect to the blogs or cafe (Group) in
Facebook and Twitter through easy and quick
login and writing. Now your friends in long
distance are only finger touch away.
Same UX (User Experience) as Your PC
- Same screen as you see while Web surfing on
PC is provided.
The Web pages are displayed as they are
originally intended without summarization or
alteration. Familiar UX helps users from the
burden of having to learn new navigation.
Download from here :
www.uzard.com/en/down/download_android.asp
follow me on twitter :
www.twitter.com/wiineeth
I installed the application. When I try to run, it says no Sim found, I have my sim installed and can make calls, I have HTC Aria CM6.1.x experimental. Why should that browser need a sim card.
Thanks
Has anyone tried this with positive results?
Its ok. Can't turn off hepatic feedback!! Major downer. Its slightly slower than opera.
Sent from my SPH-D700 using XDA App
It loads the pages WAY too big for the htc dream screen... iv tried every option in the settings to fix this but they did nothing.... non of the options work... at least its not another peice of **** stock browser recompile like dolphin.. ect
Looks Nice and Sounds nice, I'm using a HTC incredible, and every time I try to run it it say's no SIM found, also the haptic feedback is annoying. sounds promising though, thanks for the Beta.
Works fine on my hd mini, with one problem though, if i leave the device alone for a while so that it locks itself while uzard running on horizontal view...everything freezes and requires a soft reset. Device getting locked with vertical view works perfectly fine ... any ideas guys?
no SIM found using htc evo
No unfortunately it works on x10 Experia. but after you start is always on the homepage .... : (
Pretty good so far. Works with a Bing Maps GPS tracker where no other browsers would. Needs to be able to register as a browser when clicking links outside the app (i.e. link in Gmail)

[APP][5.0+][v3.8.0.2] BubbleUPnP - UPnP/DLNA/Chromecast Control Point and Renderer

BubbleUPnP on Google Play [current version: 3.8.0.2, released on March 18th 2023]
BubbleUPnP on Amazon appstore [current version: 3.8.0.2, released on March 16th 2023]
BubbleUPnP latest APKs, Google Play version (notably for side-loading on Android TV)
BubbleUPnP latest APK, Amazon appstore version (notably for side-loading on Fire TV)
BubbleUPnP 'Audio Cast' Xposed Module. Only needed on Android < 10. (current version: 1.1, released on April 28th 2021)
BubbleUPnP Server home page (download and documentation) [current version: 0.9-update46, released on February 4th 2023]
BubbleUPnP home page
Stream all your music, videos and photos to various devices in your house:
Chromecast
DLNA TVs
gaming consoles: Xbox, Playstation (from XMB)
UPnP/DLNA renderers: XBMC, WDTV Live, other Android devices, ...
various HiFi gear from Sonos, Denon, Pioneer, Onkyo and many more
local Android playback
BubbleUPnP can access your media from a lot of sources, including:
UPnP/DLNA media servers: most NASes, XBMC, Plex, Twonky, Serviio, Windows Media Player and many more
local media stored on your Android device
cloud media: Google Drive, Dropbox, Box, OneDrive, Google Music, Google+
SMB Shares
WebDAV (ownCloud, NextCloud, webserver...)
media from other apps such as web browsers and file managers, using Share/Send
captured audio from most other apps. Requires Xposed (root)
Shoutcast radio (with XiiaLive)
BubbleUPnP is a versatile app packed with many features for you to discover, some of which are:
extensive Chromecast support: play incompatible Chromecast media with transcoding (*), subtitles, audio/video track selection (*)
fast and secure Internet access to your home media while on the go, from mobile and WiFi networks (*)
playback queue, editable playlists, scrobbling, sleep timer, various shuffle modes
integrated full screen image viewer and controller
media download to your SD Card
...and much more!
(*) Some features are provided by BubbleUPnP Server, an optional software that can be installed on any machine on your local network to provide additional services. To learn more about BubbleUPnP Server, visit https://bubblesoftapps.com.
Some features are restricted and can be unlocked by purchasing the BubbleUPnP License app.
If something is not working, you can record a log file and mail it to me at [email protected]:
- launch the app
- go into More > Gear icon > Control
- Enable "logging to file" (at the end of the page).
- IMPORTANT: Exit the app (More > "X" bottom left icon)
- restart the app
- run the app and trigger the problem to troubleshoot
- exit the app
- email me the files found on internal storage:
On Android 10 and below:
/Android/data/com.bubblesoft.android.bubbleupnp/log.txt
/Android/data/com.bubblesoft.android.bubbleupnp/prev_log.txt
On Android 11 and higher:
/Documents/com.bubblesoft.android.bubbleupnp_log.txt
/Documents/prev_com.bubblesoft.android.bubbleupnp_log.txt (if present)
You can access them with a file manager app and share them to your email app for sending them.
IMPORTANT: Make sure to not restart BubbleUPnP until you have sent or saved the log file as it is overwritten on app startup.
Looks like an awesome app - all the features I want... BUT it is not currently recognizing my Synology NAS (upnp/dlna). Win 7 media player works great.
EDIT - Sorry it did eventually show up. It would be nice to have some asynchronous loading notifications. Also, if I queue up an entire genre, for example, it takes a looong time to load/start playing (thousands of songs). Otherwise looking good.
radeon_x said:
Looks like an awesome app - all the features I want... BUT it is not currently recognizing my Synology NAS (upnp/dlna). Win 7 media player works great.
EDIT - Sorry it did eventually show up. It would be nice to have some asynchronous loading notifications. Also, if I queue up an entire genre, for example, it takes a looong time to load/start playing (thousands of songs). Otherwise looking good.
Click to expand...
Click to collapse
Thanks for the feedback.
I'll think again about async loading notifications (I suppose you mean loading of folders here), but I do not like the additional clutter they involve.
For the second point, the playlist is not designed to handle thousands of tracks. What what your exact use case ? Doing shuffle on an entire genre ?
--------
I updated the first post with an Android Market link to install the app.
bubbleguuum said:
For the second point, the playlist is not designed to handle thousands of tracks. What what your exact use case ? Doing shuffle on an entire genre ?
Click to expand...
Click to collapse
Yeah, exactly. But after using it for a while, I don't mind the delay all that much since it only happens on the initial adding the songs to the playlist. Once the songs are added there are no slowdowns.
No other complaints really - hands down the best functioning and looking UPnP audio player on the market.
excellent app, works great with PS3MediaServer
minor issues:
reports search as not supported but I guess that's a PS3MediaServer problem?
doesn't show any album art
I have a DLNA TV (LG_42LD790) but it doesn't show up as a renderer, only local renderer available
how much are you going to charge for the unlocker?
jonengland said:
excellent app, works great with PS3MediaServer
minor issues:
reports search as not supported but I guess that's a PS3MediaServer problem?
Click to expand...
Click to collapse
Yes, it doesn't support searching at all.
I tried PS3MediaServer and it is not the best server you can find for audio (only folder browsing, no search, some bugs in returned data).
I found 2 bugs in less than 1h usage
doesn't show any album art
Click to expand...
Click to collapse
It likely doesn't expose any album art to the app.
I have a DLNA TV (LG_42LD790) but it doesn't show up as a renderer, only local renderer available
Click to expand...
Click to collapse
Most DLNA TV are not remotely controllable to push content. You can just browse from their interface to play content.
how much are you going to charge for the unlocker?
Click to expand...
Click to collapse
Undecided yet but it won't break the bank .
Correction: album art is working ok with ps3mediaserver, think I must have been playing tracks without art, doh!
1: has the potential of being better than upnplay (although the latter is free & ad-free)
2: needs a landscape mode (or use system/sensor detection)
3: exit on back key press
4: ability to add WAN server
5: use built-in player (like you already do for music types) for divx+mp3,x264+aac,mpeg2 files (detect via 4cc and/or extension - avi,divx,mkv,mp4,mpg,mpeg,vob,m2v)
open external player for other file types (mov/qt/rm/ac3); the system, hardware renderer should be able to decode most of the aforementioned files, thus eliminating the need for an additional app expressedly for that purpose (vplayer/mobo etc)
This COULD give you an edge over the other upnp/dlna solutions, since none of them provide this functionality (yet).
My Setup: Twonky Media Server and WD TV Live as Renderer!
This setup works fine with other apps, also on iOS...
BubbleUPNP looks really good, BUT:
- the timeline / song progress bar (dont know how you call it) doesn't work (even if use the setting 'use other...')!
-> so as a result, the next song in the playlist doesnt play
So by now, the app is useless. Would like to use yours, all the others work, but yours seems more smooth and has a better usability.
Looking forward to some updates!
Would def. pay for this if the issue gets fixed!
adwinp said:
1: has the potential of being better than upnplay (although the latter is free & ad-free)
2: needs a landscape mode (or use system/sensor detection)
3: exit on back key press
4: ability to add WAN server
5: use built-in player (like you already do for music types) for divx+mp3,x264+aac,mpeg2 files (detect via 4cc and/or extension - avi,divx,mkv,mp4,mpg,mpeg,vob,m2v)
open external player for other file types (mov/qt/rm/ac3); the system, hardware renderer should be able to decode most of the aforementioned files, thus eliminating the need for an additional app expressedly for that purpose (vplayer/mobo etc)
This COULD give you an edge over the other upnp/dlna solutions, since none of them provide this functionality (yet).
Click to expand...
Click to collapse
Thanks for the feedback
2. Not a priority for the initial stable version but in consideration for future versions. Landscape is mostly useful for tablets as it is the natural orientation.
3. You can exit the app via the "Exit" menu action found in the Now Playing tab.
4. definitely on the todo list although probably not in the first stable version
5 in consideration for a future verson
debay said:
My Setup: Twonky Media Server and WD TV Live as Renderer!
This setup works fine with other apps, also on iOS...
BubbleUPNP looks really good, BUT:
- the timeline / song progress bar (dont know how you call it) doesn't work (even if use the setting 'use other...')!
-> so as a result, the next song in the playlist doesnt play
Would def. pay for this if the issue gets fixed!
Click to expand...
Click to collapse
Thanks for reporting, it is a sign that the app has trouble getting timing info from the WD TV Live. There's logging inside the app that should be able to tell why and allow me to fix it. Can you record a log file following the step below, and send me the log to [email protected]:
- launch the app
- go into the Settings page (Menu > Settings) and then in the Advanced Settings section
- check "Enable logging to file".
- IMPORTANT: Exit the app using the "Exit " menu item found in menu of tab "Now Playing"
- restart the app.
- handle the app to trigger the problem
- connect your phone to your PC or MAC and mail me the file /Android/data/com.bubblesoft.android.bubbleupnp/log.txt found on the SD Card
Using as Renderer and Controller on two devices
Hi,
I am using your app to control my old HD2 (CM7) connected to external speakers with my Galaxy S2.
I am having some issues that when I start it up to control the renderer and the renderer have been running for some time, sometimes it will not find/connect to the renderer.
If I restart both apps then they will usually pick up and connect to each other again. I am not sure if this is my HD2 going to sleep in some way that makes it not being visible. But it will still continue to play music from my upnp server (WMP7) though I can't control or add new tracks...
I will put both devices to log when I am home later tonight and send you some log files that hopefully will help.
Thanks for all the hard work!
Cheers
Jonas
jonolo said:
Hi,
If I restart both apps then they will usually pick up and connect to each other again. I am not sure if this is my HD2 going to sleep in some way that makes it not being visible. But it will still continue to play music from my upnp server (WMP7) though I can't control or add new tracks...
Jonas
Click to expand...
Click to collapse
I just upgraded my SGS from stock 2.2 to CM7 and fixed today a WiFi connectivity issues that is related to sleep mode. It is not CM7 specific but related to how the WiFi chipset operates when going into power save mode.
So look forward to the next beta which should be out soon.
Using WMP as media player
Hi,
I just installed BubbleUPnP, and it looks really great. I already tested a few similar apps (2Player, Andromote, etc) but it's definetely the most impressive and promising one.
I just encounter a small problem when I enqueue a few music files and then launch the playlist. it sends each file to WMP but directly goes to the next one until the last one. So, only the last file is read.
A workaround is to launch the playlist with only 1 item, and then add other items while playing. Don't know if the problem comes from BubbleUPnP or WMP...
Also FYI, my Synology is well recognized, as well as my Samsung LED TV.
[email protected] said:
Hi,
I just encounter a small problem when I enqueue a few music files and then launch the playlist. it sends each file to WMP but directly goes to the next one until the last one. So, only the last file is read.
A workaround is to launch the playlist with only 1 item, and then add other items while playing. Don't know if the problem comes from BubbleUPnP or WMP...
TV.
Click to expand...
Click to collapse
Thanks for reporting, I can reproduce this issue so it will likely be fixed in the next beta.
Can you try playing a video on your Samsung TV an tell me if it works ?
I haven't tried it as there is no point, being a BubbleDS user already (and loving it, might I add...feels like a factory app and works far better than anything on the Apple side). But just out of interest, will this be a separate product or will BubbleDS be merged with it?
Sent from my Desire HD
lambomanx1 said:
I haven't tried it as there is no point, being a BubbleDS user already (and loving it, might I add...feels like a factory app and works far better than anything on the Apple side). But just out of interest, will this be a separate product or will BubbleDS be merged with it?
Click to expand...
Click to collapse
BubbleUPnP and BubbleDS will remain separate apps (mostly to avoid to clutter BubbleDS with unneeded stuff).
The next major version of BubbleDS will be updated to use the same codebase than BubbleUPnP, which will bring some fixes and even some new functionnality (Shuffle Library).
As a bonus, BubbleUPnP will be a free app to use for BubbleDS owners, as it will act as an unlocker.
Thanks for the clarification
Sent from my Desire HD
bubbleguuum said:
Can you try playing a video on your Samsung TV an tell me if it works ?
Click to expand...
Click to collapse
Yes, I tried. It works like a charm. Furthermore, my TV shows SRT subtitles as if I launched the video from the TV itself.
0.9.9.1 available on the Market.
WDTV Live as a renderer may be partially or totally fixed, needs testing.
Library: fixed "Browse timeout" errors specific to Android 3.0.1+ (tablets)
Library: faster browsing
Library: display spinning wheel while loading folders / searching
Library: browse compatibility fixes with some Media Servers
Library: tweaked album list layout to make more of the album title visible
fixed wifi issue (on some devices) preventing from playback advance in playlist (and possibly other network issues) after screen has turned off
fixed track advance in Playlist not working correctly with WMP and likely other renderers
videos can now be downloaded in the Videos subfolder of the download folder
Now Playing: display container format of videos
Settings: added rate app button, known issues button
obscure crash fixes

Need help developing android app

I Am trying to make an app similar to Pandora... I own an online radio station
worldhypefm .net and I want to make a custom page coded with php and flash player to or just make a regular html webpage with the content and turn it into an app....
the main feature that I would like for this app to have is the ability to stay open and run in the background like pandora....
leaving the live stream audio playing from the speakers and letting the app user be able to do other activities on there phones....I.E browse the internet, send sms, etc....
please some one help me or point me in the right direction.....
Why not just make the stream accessible by other audio players?
It works with other players with your pc/mac but on mobile phones it only plays back the current playing song at the time and doesnt play the stream.... if tried that method... SO ID RATHER JUST MAKE IT AN APP OUT OF A WEBSITE THAT DOESNT CLOSE W/ Tabs so that ppl could send request or place an ad or something of that nature

[Q] Syncing podcasts and playback location between devices

How do you sync your podcast subscriptions and playback location between Android and Windows/Mac/Linux? I'm open to anything, and gPodder looks nice, but even though its app page on the Play Store says it supports syncing across devices it definitely does not (the Android app doesn't even have an options menu).
I'd love to utilize my personal server somehow as a web player, but that's not a big deal and probably isn't possible without writing a system completely from scratch. Basically, I need a good podcast app that allows me to download OR stream podcasts to/from my phone and that syncs subscriptions AND playback position with either a) server software that I can install/manage, or b) an app that works with Cloud Caster.
(Free apps are greatly preferred but I'm willing to pay a couple bucks for a good app. The web player isn't completely necessary, I'm fine with a client like gPodder offers if necessary, but the web player would be nice.)
Thoughts? Thank you in advance!

PC alternative to Web video caster?

Hi all, using WVC on an android phone -
Although generally it works well, I get it stop every 10 minutes, I have to open the app, restart the stream and restream it. I am 99% sure its due to Androids aggressive battery optimisation, I have done as much as I can but cannot get the behaviour to change and now giving up on that.
I am wondering if there is any PC based alternative that has the same capability? Web video caster doesn't cast the browser tab, it finds the video stream in the page and sends that directly over wifi to the app which runs on the TV, its full screen and high quality and doesn't use Chromecast.
The TV's built in browser doesn't work for video sites, (probably missing a lot of plugins) and cast tab to the builtin chromecast doesn't work as it only works for "specific sites"
Any suggestions?
Do a Google search for "PC alternative to Web video caster?". You'll get dozens of findings ...
Among those is this site:
27 Web Video Cast Alternatives – Top Best Alternatives
www.topbestalternatives.com

Categories

Resources