I copied the apk to my phone, and when i tap in the menu button
"export", same problem! Plus the directory is not created(in the
Simulator yes the direc is created)!
Here is the menu button export code:
case R.id.exporter:
final SharedPreferences preferences = PreferenceManager
.getDefaultSharedPreferences(context);
String fileName = getResources().getString(R.string.fileName);
fileDir = "" + preferences.getString("login", "") + "."+
preferences.getString("marque", "") + ".";
Import myImport = new Import(this,fileDir+fileName);
myImport.transfer();
return true;
Is that correct ? Thank you for verifying it.
On 3 avr, 17:41, TreKing <[email protected]> wrote:
> On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi <[email protected]
>
> > wrote:
> > I solved the half of the problem for now, however, i'm having a File Not
> > Found exception !
>
> OK. From what?
>
> > why the file is not copied ?
>
> I assume your FileNotFoundException has something to do with it.
>
> > How can i verify the file in the SDCARD in the emulator ?
>
> You can use the File Explorer tool to navigate the emulator contents.
>
> On Sun, Apr 3, 2011 at 11:20 AM, Alaeddine Ghribi <[email protected]
>
> > wrote:
> > The directory is well created, but i have also storeddata is created as a
> > directiry too not as a file !
>
> Please Google "Java IO".
>
> ---------------------------------------------------------------------------
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en