Android :: Mkdirs() On Sdcard Fails Silently

Dec 15, 2009

My app suddenly could not create a directory on sdcard using mkdirs(), it was working fine before. As the method throws no exception, I have no idea what the cause is. I have checked for a duplicate directory/file of same name, and there is none. I did remove and insert sd card but to no avail.

Android :: mkdirs() on sdcard fails silently


Android :: Mkdirs Returns False For Directory On Sd Card While The Parent Directory Is Writable

Oct 31, 2010

At some points while running my android application, I need to create a directory on the sd card, for a small number of users this fails and I can't figure out the reason for it... (I've found similar problems caused by the WRITE_EXTERNAL_STORAGE permission missing, it's there and it works for almost all users so I don't think this is reason) When mkdirs returns false I crash the program and log the following java.io.File properties, starting at the directory I want to create, then recursive printing properties of the parent directory and so on...

/sdcard/MyDirectory/Dir1/Dir2 (exists: false, canWrite: false, isDirectory: false, isFile: false);
/sdcard/MyDirectory/Dir1 (exists: true, canWrite: true, isDirectory: true, isFile: false);
/sdcard/MyDirectory (exists: true, canWrite: true, isDirectory: true, isFile: false);
/sdcard (exists: true, canWrite: true, isDirectory: true, isFile: false);
/ (exists: true, canWrite: false, isDirectory: true, isFile: false);

The strange thing is that the parent directory is writable (canWrite=true), I can't print the execute file permission but from what I've read, write is what you need when creating directories... What I've looked at so far is the WRITE_EXTERNAL_STORAGE permission, if the sd card is full and if the sdcard is mounted read only:...........................

View 2 Replies View Related

Android :: Silently Recording Phone Calls

Sep 8, 2010

I need to record all phone calls automatically...and have it do it silently. Does there exist an app that can do this? I've got netnanny on our PC but need to know what my daughter is talking about on her phone.

View 19 Replies View Related

Android :: AlertDialog.show Silently Ignored Within Service

Nov 9, 2010

I have a service running a background thread. What I'd like to do is to show an AlertDialog initiated from my background thread. I know that this is not the recommended way of notifying the user and that it interrupts the workflow (as they can pop-up in any application at any time) but it's a suitable way for my use case. There is a handler registered with the background thread and showing a Toast notification withing the handler works fine. But after switching to an AlertDialog nothing happens anymore. My showDialog logic is silently ignored. No Dialog window appears, no log entry. It's a bit strange as I'd expect at least a log entry saying that I'm doing something wrong or whatever. Are there any limitations for showing an AlertDialog initiated from a service background thread? Some people seem to recommend a Dialog themed Activity to get a similar behavior.

View 2 Replies View Related

Android :: Refreshing Sdcard From Code After Pushing File To Sdcard

Feb 22, 2009

I've got some code that downloads mp3s remotely over a streaming url connection... This all works fine but my problem is once the file is complete and I pull up the music app it's not there. A reboot of the phone and it now shows up... anyone know how to force this refresh to occur from without my code?

View 3 Replies View Related

Android :: Need To Re-initialize / Kill A Core Process Silently?

Nov 24, 2009

What is the quickest way to restart or re-init the launcher a core process without the "you've killed the a core process unexpectedly" notification message?

View 2 Replies View Related

Android :: Enable Device Policy Manager Silently

Nov 9, 2010

there was a way to enable the Device Policy Manager without getting the users consent? The examples I've seen say to start an activity with intent DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN which results in a window being popped up on the handset. Is it possible to enable the Device Policy Manager without a popup window?

View 2 Replies View Related

HTC Desire :: How To Turn On Silently

May 14, 2010

Is there a setting that I can use so that the HTC tune does not play when I turn the phone on? Also, is there any way of rebooting the phone without turning it off and then on? Something like a restart in windows.

View 1 Replies View Related

HTC EVO 4G :: Will Formatting Sdcard Via Phone Solve Sdcard Mount Read Only Errors

Aug 16, 2010

I replaced my original sdcard with a sandisk 16gb card. Everything went well until I started getting these blasted read on errors. Earlymon suggested a fix from another board but I don't have a stand alone card reader so I couldn't do it that way.

I was wondering if I just backed up all my stuff from my sdcard to my iMac and then just reformatted my sdcard via the phone, would that solve my problems?

View 3 Replies View Related

Sony Ericsson Xperia X8 :: Silently Restarting Often ?

Nov 17, 2010

It's hardly one month that i bought an Xperia X8. Its silently restarting often. This happens 3 - 4 times a day. As suggested in the forum, i restored my phone to factory settings, but in vain.. the issue continues. Everytime i check Settings > About Phone > Status > Up time, i get a time less than 7 hours, which means the phone cannot run without a restart for more than 7 hours.. Anybody experiencing this kind of problem?

View 1 Replies View Related

Samsung I7500 :: Switch On / Boot Up I5700 Silently?

May 17, 2010

Is it possible to disable/delete the annoying and loud melody/ tune that plays when you switch on/boot up the i5700?

View 6 Replies View Related

Android :: Adb Remount Fails On 1.5

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

Android :: App Fails To Launch?

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

Android :: SDK Fails To Install ?

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

Android :: SAXParser Fails On Some RSS Feeds

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

Android :: Camera Prepare Fails

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

Android :: GeoCoding Fails After SDK Upgrade To 8

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

Android :: Market Update Fails

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

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 View Related

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 View Related

Android : ContentProvider Fails On Insert

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

Android :: APK Installation Fails / Package Conflict

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

Android :: Fails To Connect With AP / Get An Auto IP Address?

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

Android :: Connect Works On Wifi / Fails On 3G

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

Android :: Dex Fails Placing Debug Info

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

Android :: AndroidTestCase Fails With Dependency On Third Project

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

Android :: Generated Build File Fails?

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

Android :: SetContentView Fails / When Creating New Activity

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

Android :: Traceview And Dmtracedump Fails To Start

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

Android :: Uploading Pictures To Picasa Fails

Jun 22, 2009

Uploading pictures to picasa always fails in my phone. Does anybody has faced similar problem. It always says retrying after 1 minute, 3 minute.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved