listview - android how to save give file names to saved files by coding -
i have code saves json files internal or external memory, problem have how give them file names coding when users clicks on listview item assigns file name @ runtime, have no idea of start, have code saves file eg
string filename = "storyone.json"
i need code automaticly give file name .json extenton can me of start???
the other problem have listview of files updates stories avalible download listview dont know how make when list gets bigger onitemclick matches how many stories there here listview code
@override public void onitemclick(adapterview<?> parent, view view, int position, long id) { if (position == 0) { showdialog(0); } if (position == 1) { showdialog(0); } if (position == 2) { showdialog(0); } if (position == 3) { showdialog(0); }
so code can save 4 files, how fix gives new story if statement..... clear have web site users can submit stories, android users can download stories dont know how make work when more stories added appreciated
Comments
Post a Comment