data passing in android -
i want have transfer item list page(main page). main page, list of item, quantity , button "add new item". list of item , quantity page(apper when click on "add new item" button. page, list of item database. when click on item ask quantity dialog box(how many quantity want?) , click ok on dialog box. take main page. , show on main page item , quantity. how can that? idea that?
listitem.java
@override public void onlistitemclick(listview listview, view view, int position, long id) { // save our current position mcurcheckposition = position; toast.maketext(getapplicationcontext(), position+ "clicked", toast.length_short).show(); // return selected item caller intent intent = new intent(getapplicationcontext(),transferlist.class); intent.putextra("strname", position); setresult(result_ok, intent); finish(); } how pass , show data main page? can me solve?
your question worded in such way i'm not 100% sure you're trying do, think use of sqlite might you.
http://www.vogella.com/tutorials/androidsqlite/article.html great tutorial feet wet in sqlite.
Comments
Post a Comment