Android :: File-creation Fails?
Apr 28, 2010
I use the following code to create a folder "mymir" and a file ".nomedia" (in the mymir-folder) on the sdcard of an android unit. However, somehow it fails with the exception that the folder the ".nomedia"-file is to be placed in dosn't exist.
Here's the code:
CODE:....................
View 1 Replies
Apr 4, 2010
When I add this code to my Android 2.1 Java app, it fails:
CODE:........
Do I need a special permission to create a database, or can anybody provide a suggestion how to find out what goes wrong?
Here is the LogCat output:
CODE:....................
View 1 Replies
View Related
Apr 15, 2010
Building our Android app from Ant fails with this error:
[apply]
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply] at java.util.HashMap.<init>(HashMap.java:209)
[apply] at java.util.HashSet.<init>(HashSet.java:86)
[apply] at com.android.dx.ssa.Dominators.compress(Dominators.java:96)
[apply] at com.android.dx.ssa.Dominators.eval(Dominators.java:132)
[apply] at com.android.dx.ssa.Dominators.run(Dominators.java:213)
[apply] at com.android.dx.ssa.DomFront.run(DomFront.java:84)
[apply] at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:265)
[apply] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:100)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:297)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:245)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:87)
BUILD FAILED
Ive tried giving Ant more memory by setting ANT_OPTS="-Xms256m -Xmx512m". (This build machine has 1Gb RAM). Do I just need more memory or is there anything else I can try?
View 4 Replies
View Related
Jul 13, 2009
I have a class that implements a multipart file upload. The code works on every java client I've tried it on but does not work on Android, *and* it's the only HTTP request code in my Android app that doesn't play nice with my back end service. I've looked through the posts to see if other are having similar issues but so far have only found posts like this http://groups.google.com/group/android-developers/msg/c4b0270153d194d9 , which are nearly the same as mine. T The symtoms I'm seeing are that the connection responseCode is "-1" & no entries show up in the Apache access or error logs. It seems as if the request is never making it off of the android platform. The code gets right through the connection writes in the debugger with no errors, but hangs on the connection read, times out and then returns with -1. Behavior is same for real phone and emulator. As I mentioned, this code is in use elsewhere and works fine.
Does anyone know of any gotchas one needs to look out for when posting a multipart file in Android? Anything about doing a POST or a POST w/ data on Android?
I'm including the code/class below so you can see what I'm up to.
CODE:.................
View 2 Replies
View Related
May 5, 2010
I have an activity that uses VideoView and MediaController. I have a .mp4 file. When I put the file in res/raw folder, I can play the video using Uri.parse("android.resource://<package>/" + R.raw.id_video)
However, when I put the same file in the filesystem, it plays properly. I use videoView.setVideoPath("/sdcard/myfile.mp4");
View 1 Replies
View Related
Oct 7, 2010
Does anyone have Snes and the games that go along with it. I have Snes but when I try to download a game, the zip file fails me everytime.
View 9 Replies
View Related
Jun 3, 2010
I have an Android application with a main activity that is the tabhost. I'm adding multiple tabs to the tabhost with an intent to several activities.
My problem is that these activities are not created (onCreate is not called) until I click on the tab. This is a problem because I need to register broadcastreceivers: there may be broadcasts that are sent -before- a particular tab is opened.
I tried to work around this by:
Setting my receivers as static and registering from somewhere else. This is not possible because I need to call into methods.
Calling into tabHost.setCurrentTabByTag(the_tag) and then switching back to my root tab. This only works sometimes and this is a very ugly solution imo.
Not using activities but just using views instead. Also not a very elegant solution because it turns my tabHost activity into one huge master class doing all kinds of unrelated things.
View 1 Replies
View Related
May 10, 2010
A question that might be a bit general/basic knowledge, but for me it has a quite direct background, so i'll form it as an example:
I have an activity "entry" showing something equivalent of a blogpost, that might have comments. You can click somewhere to open a "comments" activity. But in this activity there are links back to entries, creating a nice line of activities.
If I call the "entry" activity (with an intent) on a link to show this entry, am I re-using the old activity, or am I creating an endless string of entry, comment, entry, comment activities (pretty cost- ineffective that would be).
View 9 Replies
View Related
Nov 1, 2009
Is there any free or opensource Eclipce plug in avaliable for UML diagram auto generation for Android?
View 2 Replies
View Related
May 14, 2010
I have a TabActivity. Within this activity (in the onCreate method) I create a TabHost and a TabSpec and do a tabSpectSearch.setContent(intenSearch); The Indent is created using intentSearch = new Intent().setClass(this, MyActivity.class);
As far as I already found out the class MyActivity is instantiated when I select the tab, to which it is connected. Is there a way from my TabActivity to force the creation of all activities (all tabs) at once?
View 4 Replies
View Related
Nov 17, 2010
I'm looking for apps which allow me to make music. Preferably something which does not just make crappy loops. Something with a staff or matrix would be nice.
View 5 Replies
View Related
Feb 3, 2010
I created a simple client socket from my Activity, but it fails. I am running this activity in emulator and server runs on PC(its a different application without Android stuff).
*clientSock = new Socket("127.0.0.1", 30001);*
logcat shows java.net.SocketException: permission denied <maybe missing INTERNET permission>
If I enable permission for my Activity(android.permission.INTERNET), my Activity constructor itself not called and logcat shows following info. Permission Denial: starting Intent < flg=0x10000000 cmp=com.example.client/.MyClientActivity > from null <pid=-1, uid=-1> requires android.permission.INTERNET.
Any suggestion on how to resolve this issue?
View 3 Replies
View Related
Feb 12, 2010
I am trying to write a code for an SMS widget. I wrote something that I can compil, and print on screen my first sms. When I click on next, nothing happend.
View 1 Replies
View Related
Nov 25, 2009
I haven't seen much about music apps for Android. I just saw a video of NESynth for iPhone. Is there anything similar on Android. I hope there will be.
I have Musical, Synthesizer and Rock Out. They are ok apps for free. I'd pay for NESynth though.
View 2 Replies
View Related
Mar 31, 2010
I would like to display a an access dialog activity at the start of my application.
In other words, I would like to start another activity (in dialog theme) as soon as my Main Activity is loaded. But, I know that I can not start an activity while another is creating.
I tried to start this activity in the onResume() method : I can see the new activity called, but the Main activity do not respond after closing the new activity.
Is there a solution to do this, without using delayed intent ? May i use a special flag for my intent ? I did not find, in the activity cycle, a way to detect the end of activity loading.
View 6 Replies
View Related
Mar 22, 2010
How do most of you wise developers create a YouTube video for your Android Apps, if at all.?
Do you:
Hire some teenagers to do something creative and viral? Use a tool to capture the screen as a video and then add caption and voiceover later? Set up a home camcorder on a mini tripod, aimed at your Android handset on the table top? Don't bother with the video since it's too much trouble?
View 3 Replies
View Related
Apr 21, 2010
I was wondering if it is possible to start a ListActivity and in real time decide how far down the list it should be focused on. (Example: When the activity is started it checks for certain conditions and then it may scroll down to a row partially through the list.)
View 1 Replies
View Related
Sep 27, 2010
As the title says, where can i find small application creation jobs for Android.
Please don't tell me 'freelancer' because I have already checked there.
View 3 Replies
View Related
Feb 8, 2010
Is there a simple way to change the contents of a dialog box in Android without having to re-create the dialog box? I know that Activity.onCreateDialog() is only called once when the dialog first needs to be created, and this is where you initially set the dialog's contents. I need to change the dialog's contents later, so I'm wondering what is the proper way to do this.
View 1 Replies
View Related
Sep 22, 2009
I'm a programmer looking to play in the mobile world. The application I'd like to play with would support my musical hobbies. I suspect a mobile phone with a music player could easily be programmed to support a classical musicians practice sessions. Access to media player APIs without the need to open external apps or do clunky things with files.Adequate access to playback API to create specific notes and beat patterns. As a hobby application, this should not require expensive tooling.I can switch to a new phone to use the application. Bonus points for something that easily ports to a netbook.I will admit I new to the world of sexy phones. I currently use an obsolete voice device with text messaging. I won't revealing my current flavor of programming because learning a new platform is just fine.
View 4 Replies
View Related
May 11, 2010
I have an activity (called Sender) with the most basic UI, only a button that sends a message when clicked.This works ok, the message is sent but every time a message is sent a new instance of Sender is started on top of the other. If I call sendSMS method three times, three new instances are started. I'm quite new to android so I need some help with this, I only want the same Sender to be on all the time
View 3 Replies
View Related
Jan 31, 2010
Say my app has a widget and I use a configuration screen to do initial app widget setup and set a few preferences.
I want the user to be able to change those settings by simply going into my app's settings screen and clicking an intent preference to open up the same options the user was given when the app was created.
Can I use the same activity as the configuration activity? Will I have to handle it differently? How does the existing widget get updated with the new settings?
How can I get this to work?
View 1 Replies
View Related
Oct 14, 2009
I trying to understand how a new process is being created based on AndroidManifest.xml, also looking for the possibility of creating/ forking a new Java process/new DVM instance at runtime.
I could find that using Runtime.exec one can issue system commands or launch native applications, but this is not what I am looking for, I am looking for creating an equivalent java process just as the parent java process.
Can I launch an installed android application at runtime from another android application? Whats the way for doing this?
View 2 Replies
View Related
Feb 16, 2010
I added an intent filter to one of my activities, so that when a user clicks a URL like "www.mysite.com", and if my app is installed, my registered activity can be launched. It works well.
I see that this creates a new instance of my registered activity though, every time a link is clicked. Is there any way to prevent multiple instances from being created - just recycle an existing instance if one already exists?
View 6 Replies
View Related
May 10, 2013
I have a Feiteng H7189 with MTK 6589 and Android 4.2.1.
I have rooted it.
I have taken the scatter file with MTKDroid.
I have taken the Recovery.IMG with ADB.
I want to compite a new recovery with CWM or TWRP.
I have tried but all the file I create do not work.
If I put again the original recovery.img all fine.
here the scatter and the recovery original:
[URL]
Here some info to compile:
shell@android:/ $ cat /proc/cpuinfo
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
processor : 0
BogoMIPS : 2439.94
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 2
[code]......
View 1 Replies
View Related
Feb 18, 2013
My mum won this GT-P7320T branded to telstra ( Australia) and overall, the hardware specs werent too bad, but before the ics update came out finally in january it was terribe to use.
The update has actually been a massive improvement, but being branded and all that junk is as annoying as hell, so i have decided to build my own rom. this is my first time building a rom. ive flashed plenty, but its a different kettle of fish.
i am using the telstra branded stock ics rom with rom kitchen to try to build something acceptable, but first things first, the compiled rom must boot. because the device isnt supported i have to create i file in the /directory_to_kitchen/tools/edify_defs named GT-P7320T defining all the mount points.
this is where it gets tricky, here is the contents of the /directory_to_kitchen/tools/edify_defs named GT-P7320T that i have created
#
# The values below should be set in each file in this folder.
#
# Each file represents a device name (set in ro.product.device of
[Code]......
as you can see, i have copied and pasted the contets of my recovery.fstab and commented it out as a reference. this should be quite straight foward, but the mount points for data and sdcard hve additional parameters, which i dont know what to do with.
the parameters are currently commented out and i cannot get it to flash i've tried lots of different combinations but to no avail.
During flashing attempts it is giving me error 7, which to me seems to indicate a problem with setting the mount points.
View 1 Replies
View Related
Sep 7, 2013
When i power on the tablet it shows the android boot up logo and then the company logo "ORKIA OK-PP555" and then the screen goes bluish(back light remains on" and then it stays like that for ever.
Inside there is Allwinner A10 Chip. So I searched & downloaded various firmwares for A10 and Flashed it. The Device got all OK with Two of the firmwares but touchscreen is Working ODD or can say not working properly. In One of the firmware Touchscreen is working invertly (i.e. if touched on left opens function icon appearing on right, if touched on top --> open function icon appearing at botton and so on . . )
How to Correct it ?? How to make touchscreen working properly? Or If having Its True/Correct Firmware.
View 6 Replies
View Related
Aug 7, 2009
i search a tool to develop/create mock ups for android. The only things i find are psd files (http://www. matcheck.cz /androidguipsd/ and http://chrisbrummel.com/google-android-gui-psd - not all widgets) and this tool: http://www.balsamiq.com/products/mockups. But this tool isn't only for android and so the look of the elements isn't equal to the android widgets (button, menu/list item etc.). If someone knows a tool, please let me know.
View 3 Replies
View Related
Jun 27, 2012
Im here because of my problem with SGA 2.Few days ago I bought ACE 2 and I found few problems with "external_sd".So the problems are
1. When I try to create folder it gives me error "Creation failed"
2. When trying to move folder from internal memory to external sd it gives me error like "Moving failed", while copying goes fine.
3. I can move/copy any file to sd card, but sometimes those files got corrupted, gives me error about memory when trying to open pictures, same problem when saved camera saved photo to sd card. Even getting error when trying to play video.
APK files got corrupted too.
4. When I have moved apps to sd card some while apps work great, but after some time cant launch apps because it gives me error about that app doesnt exist.
I tried formatting sd card with pc and android.
Factory reset.
Repartition to same firmware with Odin.
Wipe cache, wipe data.
I dunno what causes those error, bugs, glitches. Is it phone or android sytem?
Tried many sd card and always got same errors. But when I mounted mine sd card to another phone it worked perfect.
View 2 Replies
View Related
Apr 14, 2010
On the Microsoft XNA forums there is a services wanted/offered recruitment section which is meant to help developers find artists / sound designers and vice versa. I can't seem to find something like this for Android. Does anyone know of a forum that has something like this? Other than just posting another Developer wanted topic on this group?
View 3 Replies
View Related