How to Create a file in Android Emulator Phone Memory

by naveenballa » Mon, 23 Nov 2009 14:15:20 GMT


Sponsored Links
 I have added these permissions

        <uses-permission android:name="android.permission.READ_OWNER_DATA"></
uses-permission>
        <uses-permission android:name="android.permission.WRITE_OWNER_DATA"></
uses-permission>
        <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-
permission>

but i cannot able to create a file in phone memory of android emulator
it is showing the error

11-23 11:44:06.019: WARN/System.err(1625): java.io.IOException: Parent
directory of file is not writable: /data/tripdata

Please help me thanks in Advance

--



Other Threads

1. New to Android/Java, Creating a Test Program

Okay, so I am creating a test program (my version of "hello world"
every time I start developing on a new platform) that flashes the
numbers 0 through 500 on the screen rapidly. Here's what I have in my
main Java file so far. Problem is, it won't display anything. Anyone
know what is wrong?

I have some experience in C/C++ but I'm almost completely new to Java.
Thanks!

package com.mh.test;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class AndroidTest extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        TextView tv = new TextView(this);
        super.onCreate(savedInstanceState);
        for(int i=0; i >= 500; i++)
        {
            tv.setText(Integer.toString(i));
            setContentView(tv);
            try {
                                Thread.sleep(4000);
                        } catch (InterruptedException e) {
                                // TODO Auto-generated catch block
                                e.printStackTrace();
                        }

        }

        }
    }


--~--~---------~--~----~------------~-------~--~----~

2. Easy way to restarting soft keyboard service?

Hi,

I'm implementing my own soft keyboard and everything works. There is
one thing that's a little frustrating that after I compile and
reinstall the keyboard .apk, I have to restart the emulator for the
changes to take affect. Is there an easy way to start and stop the
keyboard service? Also is it possible to debug this service in
Eclipse?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. onSaveInstanceState and onRestoreInstanceState are not properly called

4. Extending AdapterView - getting only 1 level of children

5. Show dialog on creation - question?

6. Paid applications - are they downloadable now? By Al Sutton

7. Checkout email notification