okie dokie,
I'll post the main jist of it
//Intents n stuff!
public class filebrowser extends ListActivity {
protected final int SUCCESS_RETURN_CODE = 1;
Intent data = new Intent();
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
super.onCreateOptionsMenu(menu);
MenuItem item = menu.add(0,1,0, "Set Fav Dir");
MenuItem item = menu.add(0,2,0,"Change Layout");
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
if(item.getItemId()==1){
SharedPreferences settings = getSharedPreferences
("MyPrefsFile", 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("directory", mCurrentDirectory.getAbsolutePath
());
editor.commit();
}
return true;}
//other stuff
}
On Aug 2, 10:23 pm, Mark Murphy <[email protected]> wrote:
> [email protected] wrote:
> > does anyone have any thoughts as to why this isn't working, or
> > suggestions for workarounds?
>
> Without any code, in this case, it is difficult to provide you with
> advice. If possible, please post the activity that is giving you trouble.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---