Android :: Mkdir() Fails When Min Sdk Version Is 4
Sep 11, 2010
The following code works when I either have no min sdk version specified in the app manifest or if it's 5 or greater. But if I set the min sdk level to 4 (Android 1.6) , it fails to create a subdirectory in the sdcard.
There is no error. mkdir() or mkdirs() just returns false.
CODE:....
Am I doing something wrong here? Or is this a bug? I'd prefer not to set the target to 2.1 and min version to 1.6. But right now, I have to set it to 2.0 for it to work.
View 8 Replies
Jan 16, 2010
I am trying to create a directory hierarchy byt the mkdir returns false. What am I missing here?
File directory = _Context.getFileStreamPath("");
File subdirectory = new File(directory, "dir/mk/foo");
boolean result = subdirectory.mkdir();
View 4 Replies
View Related
Jan 19, 2009
Is it possible to use linux version flash player plug-in on x86 for android x86 version?
View 3 Replies
View Related
Apr 5, 2010
I used to be a C/C++ programmer before getting in to android. I am not sure how people maintain 2 versions of a program without using #ifdef preprocessor macros. Right now I am changing the package name in eclipse and changing the code manually, but this seems really inefficient. Can anybody suggest a good way of having 2 or more projects that share most of the code?
View 3 Replies
View Related
May 25, 2010
I'm planning on getting LockBot when I get my EVO and I was wondering, what's the difference between the free version and paid version. I basically want the Moto Droid lock screen on my EVO for the slide to toggle sound on/off feature due to the lack of an external switch on the EVO. Would I be best to get the paid version or will the free version do that?
View 1 Replies
View Related
May 26, 2010
How to get the MIDlet and CLDC version programmatically in android? Regards, Sudeep Warm Regards, Sudeep
View 5 Replies
View Related
Dec 1, 2010
is the 2.1 firmware version dj07 baseband version the latest update available for the samsung moment?
View 1 Replies
View Related
Aug 20, 2010
Possible? ON some sites, the mobile version is horrible...
View 7 Replies
View Related
Sep 23, 2010
Does anyone know the main differences between the full HTC version of 2.2 and the T-Mobile version that has just been rolled out? From what I have seen in some articles the camera and camcorder functions / look and feel haven't changed. anybody else know of differences other than the addition of crappy new apps i didn't ask for... thanks T-Mobile
View 7 Replies
View Related
Jul 12, 2010
I am having my Galaxy S delivered tomorrow and was wondering what protection people are using. I was going to use some sort of film protector, such as Zagg invisible shield and a Flip Case. But the only flip case I can find for the Galaxy S looks horrid, and I am not sure on the texture of Zagg Invisible Shields.I have also considered silicone gel cases, but I am having trouble finding one that is nice, and pouches in combo with a screen protector.What would you use and if I did buy a screen protector, which brand should it be, I want one that will protect but with minimum difference to the feel or colour of the screen.
View 18 Replies
View Related
Nov 26, 2009
I am wondering if I am on the newest firmware / software for my Hero (Sprint) I went to Settings / About Phone / System Updates etc .. downloaded a update... It now saysmy firmware version is 1.5 and software version is 1.56.651.2 not really sure but I thought I was reading people are on version 2.0 and higher not sure but anyway do Ihave to go to the Sprint website or the HTC website for the newer version if there is in fact one?
View 2 Replies
View Related
Aug 26, 2010
I am a beginner to android, just i am developing android applications and testing in on htc magic(version 1.5). Will it bring any problem on running with higher version of android devices.
View 1 Replies
View Related
May 13, 2009
I have upgraded my phone's images to Android 1.5 images (from http://www.htc.com/www/support/android/adp.html) Now when I try commands like adb remount, chmod, adb push etc I get "Operation not permitted" and "Permission denied" errors
I was able to give this command when I had 1.0 images flashed on my phone.
Has something related to permissions changed with Android 1.5?
View 2 Replies
View Related
Apr 16, 2010
I'm trying to do is open a very simple application that is supposed to do nothing but display an imageView above a textView. The application worked fine until I added the imageView so I'm assuming my problem has something to do with that.
Here is the code:
CODE:............
Here is my layout -> main.xml
CODE:....................
When I try and run the app in Eclipse through the Emulator the emulator gives me the following error:
The application Application Name (process.com.isi.sa) has stopped unexpectedly. Please try again.
The Console log in Eclipse shows the following messages:
CODE:.......................
View 1 Replies
View Related
Jan 6, 2010
When I try to install the android SDK it fails to install.
My OS is Windows XP. I just downloaded and installed Java JDK 1.6 Java -version from the command line returns: http://stackoverflow.com/questions/ask java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
My environment vars have: JAVA_HOME=c:progra~1javajdk1.6.0_11. I downloaded android-sdk-r04-windows.zip. I unziped it in V:AndroidInstall
When I go to the V:androindinstallandroid-sdk-windows> and type "SDK Install.exe" nothing happens...If I go this from graph
When I do this from a graphical file viewer I get a quick flash that looks like a command line window and nothing....
When I try to run android list targets from the tool directory I get:
Error: Error parsing the sdk.
Error: V:androindinstallandroid-sdk-windowsplatforms is missing.
Error: Unable to parse SDK content.
So the basic install setup is not happening.
Additional clues:
I have a G1 and Android 1.0 was running on this machine. (Almost a year ago) I've updated my G1 to 1.6 so I thought I'd update my SDK before starting new development.
When I tried to upgrade it tried and then died as the "directory was in use"
So I cleaned out all the android directories, rebooted and redownloaded everythign from scratch.
Now it won't run at all.
I've clearly got something in an unhappy state, but I've cleaned up all the directories and no remanants seem to be running I've rebooted....
View 3 Replies
View Related
Feb 28, 2009
I'm using the SAX parser to read some RSS feeds and have found a problem. Some feeds, for example CNN Money Top Stories, have embedded some characters in their content, i.e. the copyright symbol. Well, that's not valid XML and the SAX Parser fails with an exception "invalid token". The only help I have seen given is to fix the XML at the source and that's not an option obviously. So, I can think of 2 options and they both stink:
(a) read the content first, scrub it, and then pass it to the parser.
(b) Use DOM instead of SAX.
What I *want* to do is make the parser a little more forgiving and just accept or discard/ignore the bad text. I'm not have any luck with setErrorHandler. My error handler does not get called.
View 7 Replies
View Related
Sep 10, 2009
I'm trying to build a simple video recorder for an Android device and I've had limited success and mixed results. It worked once, but now, without changing anything, I'm getting a "Camera is not available" error followed by "prepare failed -2147483648" error.
View 1 Replies
View Related
Sep 24, 2010
I recently upgraded my SDK from 7 to 8. One of my applications uses Google GeoCoding, specifically the Geocoder object. After the upgrade, when I call the getFromLocation method, it doesn't return any addresses and I see a message in the logcat to the effect that GLS failed with status 20. My Google Maps API key is working fine because I'm seeing the map tiles, but GeoCoding is broken. It works fine if I run a previous (SDK 7) build of my app.
View 6 Replies
View Related
Oct 3, 2010
I want to upload an upgrade in the market. But when I upload the apk and new images and click save or publish everything is lost when I return to the listing (the old apk and images are restored). The only thing that changes is the saved versioncode of the app. Is there something broken?
View 2 Replies
View Related
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
View Related
Jul 30, 2010
I am brand new to developing for android and have hit something of a stumbling block that I cant seem to get around.
Using the NotePad example, I have created my own ContentProvider to serve up data from a database that I will eventually host on a webserver. But that is lightyears away from where I am right now.
Just testing my ContentProvider has caused a bit of a headache that I cant solve. For some reason, when the provider calls SQLiteDatabase db = mOpenHelper.getWritableDatabase(); I get a null pointer exception.
Code Follows:
CODE:............
Stack Trace
CODE:......................
View 1 Replies
View Related
Jun 17, 2010
Let's say for example that I have some Android app that does X. The free version has ads or basic features. I want to have a paid version that removes the ads and adds extra features. How can I use the paid app as a "license key" to unlock the features in the free app? So the user would install the free app, then install the paid app to get the extra features, but they would still run the free app (which would now be unlocked). What's the best approach to doing this?
View 4 Replies
View Related
Mar 24, 2009
I'm testing an app I'm developing and asked a friend to install on their device. I wanted to make it as easy as possible for them to help me out so I put the .apk up on my website for them to download to the phone (rather than making them download the SDK and use adb to install). The install of the downloaded .apk fails, complaining of a package conflict.
I have since gotten my hands on the phone briefly and I verified that:
* they have selected "allow unsigned apps" in settings
* there is no package with the same (or similar) name in data/data * installing via adb works with not a peep
* when I download the .apk to my phone the app installs fine.
It would be really nice to make it as easy as possible to distribute to people who might be willing to do me the favor of testing.
View 3 Replies
View Related
Mar 11, 2009
I tried connect to AP(DHCP componet is disabled) with Google dev phone 1. It fails to connect to that AP. Can't get a ip address from AP. I hoped the dev phone successfully connect to the AP, and assign own auto-ip by itself(169.254.xx.xx). But It didn't happened. I think it must be abnormal case. Is there any special way to get an Auto IP address?
View 2 Replies
View Related
Oct 14, 2009
I am trying to test the availability of a service with a socket. the code is quite simple. Code...
View 5 Replies
View Related
Apr 19, 2010
My build was failing with a dex error. After I turned verbosity up to debug I got the following:
CODE:............
Here is the source of the class where it is failing to place debug info:
CODE:..................
View 4 Replies
View Related
Aug 4, 2010
I have a and Android project and its test project. I can run tests successfully in the emulator. As the Android project has dependencies on a third library project, I want to use classes of the third project in the test cases too. For this, I need to add a dependency from the test project to the third project as well. Compile-time this works, but when I do a remote run of my AndroidTestCase, all tests fail. For each test, I get a NoClassDefFoundError, but not for third project classes, but for a class in the Android project itself!
View 4 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
Jan 19, 2010
My code is calling setContentView(R.layout.someLayoutID); from an activities' onCreate method. The activity is launched with the following: Code...
View 4 Replies
View Related
Apr 3, 2009
Tried to trace for the first time but got the following exception when I started the "traceview" application with my trace file. mane@Labbe:/tmp$ traceview gldraw.trace Exception in thread "main" java.lang.RuntimeException: Method exit (java/lang/BootClassLoader.getInstance ()Ljava/lang/BootClassLoader;) does not match currentmethod (dalvik/system/VMDebug.startClassPrep () V) at com.android.traceview.ThreadData.exit(ThreadData.java:116) at com.android.traceview.ThreadData.handleCall(ThreadData.java: 78).....
View 4 Replies
View Related