MP3 Works In Browser But Not In Final APK?
Feb 2, 2012
I'm working on a fairly simple web based app. Basic functionality is push a button and hear a sound. It's all done in HTML and JavaScript and then built using Phonegap Build. It works perfectly in Android's browser. But when packaged into an APK and installed on the phone, the sounds don't play.
I'm still fairly new to Android development, so I'm just looking for some direction. I downloaded a logcat viewer, found where the mp3 files are being loaded up, but nothing stands out as an error or problem. Here's the basic JS code that should play the sound.
var sounds = new Array();
sounds[0] = "0.mp3";
sounds[1] = "1.mp3";
sounds[2] = "2.mp3";
sounds[3] = "3.mp3";
function PlaySound() {
randNum = Math.floor(Math.random()*4);
var sound = new Audio(sounds[randNum]);
sound.play();
}
The PlaySound function is called when the button is tapped. I've done console logs to ensure the function is called properly.
View 8 Replies
Jan 20, 2010
Can anyone explain why, when I use the Final keyword the following code works fine, but without it, it doesn't?
I just find it irritating that I don't understand why it works! ;)
CODE:................................
View 6 Replies
View Related
Sep 15, 2010
Why should a static method in java accept only final or non final variables within its method, but not static?
For example I have the following method:
CODE:.................
View 6 Replies
View Related
May 6, 2010
So. Hulu works kind of on the skyfirfe browser. Thought? Sent from my Droid using Tapatalk.
View 3 Replies
View Related
Nov 2, 2010
I want to create a TabActivity that works like a browser.
When the activity is created, it has two tabs: "Tab1" and "Add Tab". When the "Add Tab" is clicked, it should Add a new tab.
Tab 1 | Add Tab
==> Add Tab is clicked
Tab 1 | Tab 2 | Add Tab
==> Add Tab is clicked
Tab 1 | Tab 2 | Tab 3 | Add Tab
All my tabs contents are instances of the same Activity.
View 2 Replies
View Related
Feb 17, 2013
I've been trying to set up a tablet to connect to Windows shares on the companies domain - all legitimate. I have been asked to look at their use within the company.
It's a standard Server 2008 based domain.
The main problem I am having is that the wireless is a different subnet to the main network.
The file browsers I have tried so far are not apparently capable of routing over subnets - due to smb (which the browsers use) not being a routable protocol so I am told.
The question is are there any Android apps that uses IP Routing to find shares rather than SMB.
I hope the above makes sense. I am going off what I have been told. I can connect to shares on the wireless subnet itself so this seems to all make sense to me.
Are there any such apps?
View 2 Replies
View Related
Jun 8, 2010
I made a test http://www.checkdent.com/mobile/gps2.html based on the demo: http://code.google.com/apis/gears/api_geolocation.html#getpermission
when i open it from android browser i get my location. but opened from within a webview, nothing happens??
i already gave several permissions <uses-permission android:name="android.permission.INTERNET"></uses- permission> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></ uses-permission>
but still no success! what do i have to do?
View 2 Replies
View Related
May 21, 2010
Please help. Ever since official update that sprint did at the store it seems the stock browser will foreclose. The only way I can get it to be stable is by going to google search that came with 2.1. Anyone have a suggestion....if I factory reset it works then goes back to foreclosing
View 9 Replies
View Related
Nov 19, 2010
Got a brand new phone yesterday. Upgraded it to Android 2.1 before using it. In general, phone is functioning properly, however none of the applications (i.e. YouTube, Gmail, Maps) will work over the 3G connection, but the Web Browser does function ok. The apps will work over WiFi (which isn't much use if you're trying to use maps or gmail on the go). I have tried restarting phone (battery out restart). It is not a signal strength issue, I am getting HSPA with full bars and it still times out with "no connection detected" (or variations thereof, depending on the actual application). I can work around this using the web browser based clients for these apps, but as they aren't streamlined they are a PITA to use.
View 6 Replies
View Related
Jan 28, 2010
I've seen a lot of use of final for local primitives.
Presumable to indicate to the compiler that the value shouldn't be changed.
However, what's the implication of this on Dalvik?
I believe final local variables are usually placed on the heap for extended lifetime (for use in inner classes), so is their a runtime overhead rather than using simple locals (which use Dalvik registers)?
View 15 Replies
View Related
Mar 29, 2010
New ROM over at XDA for those of you who haven't seen it. Just flashed it. It's a port from a CDMA Hero build, basically a final build apparently. Seems nice so far except for a dodgy skin (update.zip will be available tonight apparently to revert to normal sense), and I can't seem to sync my facebook contacts.
[ROM] 29/03/10 - VillainROM 5.0: CDMA Hero 2.1 Port for GSM HERO - STABLE BETA - xda-developers
View 8 Replies
View Related
Jul 1, 2010
VillainROM 12.0.0 based on HTC OTA update WWE 2.1. Lots of stuff in the OP that wasn't in 11. Livewallpapers, Rosie config, Friendstream, News widget fixed, etc.
[ROM] VillainROM 12.0.0 Final - WWE Android 2.1 by TeamVillain - xda-developers
VillainROM Forums • View topic - VillainROM 12.0.0 FINAL WWE Android 2.1 Release
View 49 Replies
View Related
Nov 13, 2010
I don't take credit for any of this just passing it along since I don't think many team Defuse guys frequent this forum.
2.1 final is now available at their site here. They originally were only releasing it today to people that donated, but since he is so nice he has opened it up to everyone else (although donating isn't a bad idea, he has done a lot and it's always nice to support devs.) I have been on this ROM since the early stages and it's awesome!
A little excerpt about the ROM from their site:
This is not an AOSP ROM but all stock packages are built from source. It is a complete set of vanilla Android applications. All Blur has been removed so it is the closest you will get to a true AOSP clean ROM for the Droid2/X/Global/Pro right now. This is not a themed ROM to make it look like AOSP ROM.
The purpose of this ROM was to remove all Blur and have a real Android experience. Please do not ask to add anything to ROM. Everything that is missing can be found in the Add On folder that was created when you installed ROM or can be downloaded from market.
The installed applications are all of your basic Android apps. Gmail, Voice Search, Car Home, YouTube and some other apps are missing since there are more updated versions on the market.
--
It is wicked fast and has greatly increased my battery life. I highly recommend this ROM to everyone. Please be sure to follow the directions exactly.
Instructions for downloading ROM can be found at his original thread over at XDA here
View 49 Replies
View Related
Mar 23, 2010
Cant believe Moment is beating the Droid.The Android Tournament Final Four.
View 36 Replies
View Related
Nov 13, 2010
----Fission 2.0.1 ONLY.----
Themes for Fission 2.0.1. and only fission 2.
Think Im done with these and wanted to post up a cleaned up thread with a couple things in it. (Hope nobody minds).
Only gonna post the one I ran for awhile and had most download hits and the one Im on now that people will probably like. Kept everything moved to a theme previously o.k.'d for Fission 2.+ as a base theme.
Pretty simple themes. (But then look who put them together ).
---------------------------------------------------------------------------
Fission rc1 was released, no idea if this works on that.
2.1 released as well; have not tried on it.
No idea about earlier versions either.
im using this on 2.0.1
----KangeradeX theme:
mix between;
Joe772's "x" dark theme
D2 Kangerade in blue theme
download link;
KangeradeX.zip
Seems to have resolved some things I didnt like about the X theme like the check marks not being real visible in options and it also gave me the status bar back I like.
Im a rookie. Use at your own risk.
blue check marks;
------------------
back up current theme your using
download file
copy to sd card
bootstrap recover/ ok
reboot recovery
mounts and storage, mount system
back, install zip from sd card, choose zip from sd card
choose theme
install, done; back and tell it to reboot
-----------------
----if you notice any issues after reboot; reboot one more time.----
(or just reboot one more time anyway)^
credit links for themes used (not download links for KangeradeX);
[THEME - Fission 2.0+] X v1.1.4 (11/5/2010) (NO 2.1 YET) - xda-developers
[THEME] Kangerade Blue for the Droid2 - xda-developers
thanks to tom for turning me on to 7zip which has helped me waste a lot of my free time playing around with themes....lol.... i enjoy it.
thanks to mruno for naming it
------------------------------------------------------------------------------------------------
----KangeradeX theme with the smoother looking alarm clock and rotary battery charge/animated recharge icon:
Im running this now but haven't been real long. It should be fine as it is based on the same setup as above with the exception of the battery icon.
(Battery icon should be out NO MORE then 10% from what system says at any time.
basically if system says 90%; bat. icon will either say 90 or 80, then they will both say 80 for awhile, and on and on....you get the idea. Not enough you should notice according to my testing).
http://www.megaupload.com/?d=SM8HLZUX
^1st download link
[url]
^2nd download link if first link doesnt work.
credits:
Thanks to colchiro for helping me through the bat. icon change.
and link to the credit for bat. icons:
NexTheme 10% Circle Battery Mod
then the same links given credit above for the other version.
And of course thanks to Fission for such an awesome rom!
----check out their newer rom version;[url]
-----and their web site;[url]
------------------------------------------------------------------------------------
The last one that got a few download........ (which I have no idea whom to give credit to):
droid peeing on apple boot animation;
bootanimation.zip
download link^
copy to sd card, use file browser, copy bootanimation.zip from card, back click, data, paste in local, quit, reboot.
---------------------------------------------------------------------------------
Link to original thread with more downloads and other info.:
KangeradeX theme Fission2.+ (questions/thoughts)
Let me know if there are any issue that werent there before theme install (if anyone tries these). I haven't heard anything on the one that got a few downloads; I assume thats a good thing....lol.....
Hope someone enjoys.....
View 6 Replies
View Related
Jun 1, 2010
i have completed my First android application and i have deployed that application to different android based mobile phones which is working fine. my question to you is, is there iphone store like thing exists in android to upload your application by paying fee to android store or something like that. or nothing or should i start passing my application to end users directly? any help would be appreciated.
View 2 Replies
View Related
Jun 3, 2010
I am trying to add some updates to an already released application but something has happened with my workspace that prevents me from Running or Exporting the application. I keep getting the following code...
You think it would be an easy fix but I looked into the HDPI drawables folder and there were no doubles. I even went as far as to delete the entire folder and the error still appears. Anyone got any clever ideas?
View 3 Replies
View Related
Oct 27, 2009
That would be so awesome if someone made an Android Game out of the card game found in those games. That card game was the shiz!
Minigames of Final Fantasy - Wikipedia, the free encyclopedia
The one's I'm referring to are Triple Triad and TetraMaster. Tetra Master is the best one, someone, anyone?
View 11 Replies
View Related
Jul 21, 2013
Is there a save game editor for the FF IV? You have editors for FF Dimension and FF III listed in here. I don't seem to find editor for FF IV?
View 9 Replies
View Related
Jul 21, 2010
there are test phones out there and from what I can tell they have had the 720p OTA update for about the last month now. But what will happen if froyo is added into the final update? I would expect they would be in the same shape as many of us rooters now with the leaked version. Just thinking ahead if we will be able to install another leaked or modified version of the update over what we have now and just have it add froyo since testers are not going to be able to roll back what they have already on their end.
View 4 Replies
View Related
Nov 28, 2010
I'm calling it final for Fission 2.1 and just booted it up fine on 2.2.1.
First a warning from jaroch on 2.2.1 usage;
Blkkangblue final theme for Fission 2.1 and running on 2.2.1 currently
Expect a long reboot as the name/carrier color changes cause that.
Big thanks to justintoxicated for a lot of bug work/help and some photo shop.
A huge thanks to bouchigo for the help with the new/sweet addition of the carrier change and color in the bar writing/clock....looks awesome!
Shout out to dhoffman1421 for being the first to toss it on 2.2.1 and reporting back.
Props to colchiro for the link for fold animation.
Warning; theme uses wide screen dx camera and notepad, etc.
blkkangbluefinallghtblue.zip
light blue time download link^11/27/10
blkkangbluefinaldrkblue.zip
dark blue time download link^ 11/27/10
----------------------------------------
animated versions;
http://www.mediafire.com/?0nc8itn998ebjg3
light blue time download link with fold animation^11/28/10
[url]
light blue time download with fly in and flip mix^11/28/10
[url]
dark blue time download with fold animation^11/28/10
[url]
dark blue time download with fly and flip mix animation^11/28/10
(did not load these last two animated ones, please report any issues with them or anything else....should be fine).
----------------------------
Install;
drop on sd card then:
go into recovery, mounts, mount system, back out to install from zip, chose zip, chose your zip and yes install, go to reboot when done. (may not be exact steps).
do one more simple reboot if you think its fun....lol....wouldnt hurt anyway.
-------------------------------
next: ?
---------------
more credits;
animation link:
[How To] + [MOD] Custom Transition Animations
You can see credits, warnings, and original trouble shooting here;
Blkkangbluecircbat theme for Fission 2.1 gone final (?)
swype credit;
Download: Blue/Red/Gold Swype Keyboards - Droid Life: A Droid Community Blog
View 32 Replies
View Related
Sep 15, 2010
I am having a static method .In the method when I decalare a variable , it was showing an error in eclipse saying that the variable should be decalared as final.
Can I know the reason for this , y should a variable in a static method be declared as final? I am writng an Android application where I should pass as an argument current Context of that application. So, when I pass the current context to the method and trying to copy it in a local variable , I am getting this error saying that the variable should be declared as final.
My method is like this:
CODE:.............
Error is showing at line where Context myctx=ctx; is declared and asking me to declare it as final.
View 4 Replies
View Related
May 29, 2010
I put two projects into Eclipse, called Project1 and Project2.Project1 is independent, but Project2 must be dependent to Project1.When I build the Project2, the error msg comes like this: Error generating final archive: duplicate entry: AndroidManifest.xml
View 1 Replies
View Related
Nov 25, 2009
They have just been posted on HDblog.it here are the links:
SAMSUNG Galaxy ROMS: GALAXHERO FINAL VERSION V1.1 - HDblog - Forum
UPDATE 24/11 - V4.3! - ROOT/RECOVERY IMAGE update, wipe, backup and restore GALAXY - HDblog - Forum
View 49 Replies
View Related
Nov 10, 2010
When I compile my Android Project I always get this Error:
Error generating final archive: duplicate entry: about.html
But I can't find any about.html in my Project.
Does anyone know how to solve the error?
View 2 Replies
View Related
Sep 11, 2010
Just posted on XDA by designgears : I897ucjh7 - not froyo, - xda-developers. Looks like it's the final test firmware before the official release. Word from those that have flashed is that they are getting a GPS lock, Indoors. Also, it Looks like updates to the phone will be done with Kies, not OTA. Also has been said that it's pretty quick and the lag issue has been addressed.
View 49 Replies
View Related
Sep 29, 2010
OK, after being on the phone with AT&T for 2 hours and being conferenced call with Samsung this is the result:
Samsung claims that *3282# is the Samsung code to lower the notification volume.
Samsung claims that they are now aware that *3282# is the AT&T code to check our data usage.
Because of this conflict, they claim they will send an OTA fix; but will not state when that will be.
AT&T has been receiving many complaints regarding this problem. Samsung claims they have never heard of this before. Apparently they forgot to log in my call last week?
View 1 Replies
View Related
Nov 1, 2010
Right now I've finished an application that I want to distribute on Android Market. It will have a payed version and a free version with some limited features. While developing it, I was doing obviously just the main project of fully featured release. And now after finished I've included a "boolean" DEMO_VERSION=true that restrict those features. My question is if it's possible to generate both apk from the same project? Or should I create new project with the same source but changing the Java package to tell android market that they're two different applications.
View 1 Replies
View Related
Oct 2, 2009
I am currently developing a dictionary application with voice database. I would like to know about the current Android limitation on the file size. I am using a self-provided sqlite database ( > 50mb ) . I tested that once the built .apk size exceeds ~30mb the app will not be installed onto the simulator (INSTALL_FAILED_ INSUFFICIENT _STORAGE). Could anyone confirm me that if up until now there is no way to embed such large size files in a single apk ( Aimed to sell at Google Market without requiring user to download datafile afterwards). Also, is there a limitation of 1,048,576 bytes for a single file in the assets folder ?
View 3 Replies
View Related
Jul 4, 2012
I used Titanium Backup to backup my apps with data and system files. How do I restore those bookmarks and saved pages?
View 2 Replies
View Related