[android-beginners] Help with UI XML
Hi, I need to create a view in GridView which will have a checkbox over an image (on the bottom right corner). so, when someone selects that image, the checkbox is checked. I know I will have to create a custom adapter but how do I write the XML for the cell? Thanks in advance, Moazzam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Urgent Help Req :)
You will need to make a custom adapter for the listview and populate your list using that , but yes, it is possible. - Moazzam http://moazzam-khan.com/ On Sep 28, 9:15 am, Justin Anderson janderson@gmail.com wrote: Typically you won't get much of a response when the word urgent is in your tittle... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Sun, Sep 27, 2009 at 11:00 PM, Alok Kulkarni kulsu...@gmail.com wrote: Any takers ? On Mon, Sep 28, 2009 at 12:44 AM, Alok Kulkarni kulsu...@gmail.comwrote: By the text should be scrollable i mean It should be like Marquee of HTML .. thanks :) On Mon, Sep 28, 2009 at 12:40 AM, Alok kulsu...@gmail.com wrote: Hi guys, I am developing a music application where there will be almost 30 to 35 lists . Example .. A list on page one say albums , artists etc etc Then if you select one list item say Albums , you go on a new page with Album list, when u click on one album listitem , u enter song list.. that way . each list item has an image associated with it . And the text for the listitem may be 2 lines per item. And the text should be scrollable. Now my idea is to create a generic list which is common to all the listview screens. At runtime i should be able to pass the contents of each list to this generic class. What approach should i take? Can a XML layout solve this purpose.. Please give me some guidelines. Reuse is my main aim.. And for each listitem i should be able to handle click listeners.. Please give me some guidelines. Thanks in advance, Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can i fetch the latest image from gallery taken from camera ?
A quick search on google gave me this link: http://2008.hfoss.org/Tutorial:Creating_a_Camera_Application - Moazzam http://moazzam-khan.com On Sep 24, 7:05 am, wahib wahib.t...@gmail.com wrote: HI ! I want to fetch the latest image taken from camera into my code and then can do manipulation on it. Being a newbie i dont know how to get hold of that image .. and secondly how to read that image into my code. I guess i have to use content providers but how?? plz guide me with a sample code. I'll be so thankful to u ppl. Regards, wahib --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Emulator view in Eclipse
Press F11 key when you are in eclipse. It *should* start the emulator. - Moazzam http://moazzam-khan.com On Sep 22, 3:57 pm, stanlick stanl...@gmail.com wrote: I configured a new machine today running Galileo and the Android ADT plug-in. When I run a new project as Android Application everything seems to work fine, except I never see the emulator! I see its PID but nothing visual. I can kill the PID and start the emulator from the command prompt. Any idea what is going on inEclipse? Also, should there be an emulator view under Window - Show View? There is none. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: database openOrCreateDatabase
I don't know what's causing the error in your code but it seems like you are using an older version of Android (maybe older than 1.0). I would recommend upgrading your Android SDK and using the method suggested in this link: http://moazzam-khan.com/blog/?cat=26paged=2 . - Moazzam http://moazzam-khan.com/ On Aug 21, 5:59 pm, gandor gand...@gmail.com wrote: Emre Now I am using myDB = openOrCreateDatabase(data2, SQLiteDatabase.CREATE_IF_NECESSARY, null); before I was doing myDB = null; myDB.openOrCreateDatabase(data2, null); which was absurd Have to initialize myDB as the prototype of openOrCreateDatabase has the return as static On Aug 20, 4:53 pm, Emre A. Yavuz eayl...@hotmail.com wrote: Hi, Am I missing something here or are you setting your database pointer to null and yet use it later on to crate/open your database ? Emre Date: Thu, 20 Aug 2009 16:08:35 -0700 Subject: [android-beginners] database openOrCreateDatabase From: gand...@gmail.com To: android-beginners@googlegroups.com Hi Guys, I am creating a new database, with a table and inserting some fields in it But I get the following error in opening or creating database. What am I missing ? Thanks a lot ERROR/Database(167): sqlite3_open_v2(data2, handle, 6, NULL) failed code follows.. public class DataBaseWork extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ArrayListString results = new ArrayListString(); SQLiteDatabase myDB = null; String MY_DATABASE_TABLE = t_Users; try { /* Create the Database (no Errors if it already exists) */ myDB.openOrCreateDatabase(data2, null); myDB.execSQL(CREATE TABLE IF NOT EXISTS + MY_DATABASE_TABLE + (LastName VARCHAR, FirstName VARCHAR, + Country VARCHAR, Age INT(3));); myDB.execSQL(INSERT INTO + MY_DATABASE_TABLE + (LastName, FirstName, Country, Age) + VALUES ('Ggg', 'Nn', 'G', 20);); } catch (SQLException e){ } if (myDB != null) myDB.close(); } } _ Stay on top of things, check email from other accounts!http://go.microsoft.com/?linkid=9671355 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to update a listview
You have to change the data structure that stores the data for the listView and then call notifyDataSetChange(); Let;s say you are using and ArrayListString lst, you would do something like this: public void getRemoteData() { // .. get data and put it in the array list adapter.notifyDataSetChange(); } And, it will update itself. Hope it made sense and helped :) - Moazzam http://moazzam-khan.com/ On Aug 21, 1:31 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: What is the adapter class? For an ArrayAdapter, you don't need to call notifyDataSetChanged() unless you called setNotifyOnChange(false). Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 20, 5:40 am, Liviu Ungureanu smartli...@gmail.com wrote: Hi all! I have a ListView with and adapter extended from BaseAdapter. I insert some data in my list but when i try to insert an other item in list nothing happend. Can someone give me a ideea about updating listview data? this is the code: //insertData info_list.setCacheColorHint(Color.WHITE); info_list.setSelector(R.drawable.list_item_border); ItemInfo phone = new ItemInfo(this,R.drawable.phone,Phone,item.getPhoneFormatted()); ItemInfo address = new ItemInfo(this,R.drawable.address,Address,item.getAddress()); ItemInfo e_mail = new ItemInfo(this,R.drawable.email,E-mail,formatTextV2(item.getEMail())); ItemInfo web_site = new ItemInfo(this,R.drawable.website,Website,formatTextV2(item.getWebSite())) ; ItemInfo category = new ItemInfo(this,R.drawable.category,Category,item.getCategory()); adapter.addItemInfo(phone); adapter.addItemInfo(address); adapter.addItemInfo(e_mail); adapter.addItemInfo(web_site); adapter.addItemInfo(category); info_list.setAdapter(adapter); ///insertData //updateData button_prev.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Item item_received = ResultsActivity.getItemAt(current_index--); int i; adapter.update(0,item.getPhoneFormatted()); adapter.addItemInfo(new ItemInfo(TestActivity.this,R.drawable.address,Address,formatTextV2(item.g etAddress(; adapter.addItemInfo(new ItemInfo(TestActivity.this,R.drawable.email,E-mail,formatTextV2(item.getE Mail(; adapter.addItemInfo(new ItemInfo(TestActivity.this,R.drawable.website,Website,formatTextV2(item.g etWebSite(; adapter.addItemInfo(new ItemInfo(TestActivity.this,R.drawable.category,Category,item.getCategory( ))); adapter.notifyDataSetChanged(); } }); ///updateData Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] help! adding an activity of my application to another application
Hi Guys, After a picture is taken in Android, you get a menu to save it, etc. Is it possible to add a menu item in it saying Upload pic to xyz.com and then have it launch an activity of my app ? Thanks, Moazzam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Help with threading and UI changes
Hi guys, I have a function in my activity that starts a new thread and that threads send a message back to an event handler. I need to start an activity after that thread finishes. How can I do that. I keep getting an error when I try to do this : class mainClass extends Activity { Handler guiUpdateHandler = new Handler() { @Override public void handleMessage(Message msg) { switch (msg.what) { case LOGGED_IN: try { // i get an error here. // it says i cant use mainClass.this for the first param. Intent inte = new Intent(mainClass.this, newIntent.class); inte. Bundle bun = new Bundle(); bun.putCharSequence(user, user); bun.putCharSequence(pass, pass); bun.putCharSequence(sid, sid); gallery.putExtra(data, bun); StartActivity(newIntent); } catch (Exception e) { Log.e(ASDASD, e.toString()); } break; public void login(String lUser, String lPass) { Thread t = new Thread() { public void run() { loginThread(user,pass); } }; t.start(); } public void loginThread(String lUser, String lPass) { Message message = new Message(); message.what = iyobo.SOME_CONST; iyobo.this.guiUpdateHandler.sendMessage(message); } } Please let me know if my question is unclear. Thanks in advance, Moazzam Khan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Help with threading and UI changes
Ah, I can't believe I did that. Sorry about that and thanks for your advice. The error was that eclipse kept telling me I was providing the wrong context. And, that the method with such a signature didn't exist. It wouldn't let me even compile the code (let alone run it). Somehow the same code works now without any changes. Although, I added the other activity to my manifest file so maybe that was the issue. I will take a look at the other methods you suggested. - Moazzam On Jul 24, 6:42 am, Mark Murphy mmur...@commonsware.com wrote: moazzamk wrote: I have a function in my activity that starts a new thread and that threads send a message back to an event handler. I need to start an activity after that thread finishes. How can I do that. I keep getting an error when I try to do this : If you don't tell us the error, it is difficult to help you. For your scenario, consider using AsyncTask rather than your own Handler. You can start your activity in onPostExecute(), update your original activity in onPublishProgress(), etc. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problem with SQLite database, accessing the table
Use a different database name and see if that helps (since it will run your onCreate() method). You can also try changing the name of the table to something else (like user_options) and see if that works. I wonder if options is an internal keyword used by SQLite. - Moazzam http://moazzam-khan.com/ On May 7, 1:42 pm, Glen Humphrey glendon.humphr...@gmail.com wrote: It looks to me like your program tries to fetch from the options table before it has been created. On May 7, 2:28 am, mic.ger...@gmail.com mic.ger...@gmail.com wrote: Hi all, I am developing an application that need a database (store username and password) and when I try to access to it I obtain those errors in the logCat : 05-07 09:02:17.194: ERROR/AndroidRuntime(520): Uncaught handler: thread main exiting due to uncaught exception 05-07 09:02:17.213: ERROR/AndroidRuntime(520): android.database.sqlite.SQLiteException: no such table: options: , while compiling: SELECT DISTINCT _id, title, body FROM options WHERE _id=0 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteProgram.native_compile(Native Method) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java:59) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:48) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteDirectCursorDriver.query (SQLiteDirectCursorDriver.java:49) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory (SQLiteDatabase.java:1017) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteDatabase.queryWithFactory (SQLiteDatabase.java:905) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:863) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.application.MonkeySMS.OptionDb.fetchOption(OptionDb.java: 84) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.application.MonkeySMS.Option$1.onClick(Option.java:70) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.View.performClick(View.java:2129) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.View.onTouchEvent(View.java:3543) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.widget.TextView.onTouchEvent(TextView.java:4664) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.View.dispatchTouchEvent(View.java:3198) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1593) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1089) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.app.Activity.dispatchTouchEvent(Activity.java:1871) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1577) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.os.Handler.dispatchMessage(Handler.java:88) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.os.Looper.loop(Looper.java:123) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at android.app.ActivityThread.main(ActivityThread.java:3739) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at java.lang.reflect.Method.invokeNative(Native Method) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at java.lang.reflect.Method.invoke(Method.java:515) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 05-07 09:02:17.213: ERROR/AndroidRuntime(520): at dalvik.system.NativeStart.main(Native Method)
[android-beginners] Re: Get alarms from Alarm Clock application
You can create your own alarms and sort of get them back. Here's how I did it : http://moazzam-khan.com/blog/?p=157 - Moazzam http://moazzam-khan.com/ On May 7, 5:12 pm, kaloer mkal...@gmail.com wrote: Yep, I could guess that :-) But thank you for the answer.. On 7 Maj, 21:14, Jack Ha (T-Mobile USA) jack...@t-mobile.com wrote: Sorry for my earlier typo. What I meant was that you are NOT able to do that. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 7, 11:01 am, kaloer mkal...@gmail.com wrote: Okay thank you, I'll look at it .. On 7 Maj, 18:45, Jack Ha (T-Mobile USA) jack...@t-mobile.com wrote: As far as I know, you are able to do that since the Alarm Clock app doesn't expose those specific intents. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 7, 5:55 am, kaloer mkal...@gmail.com wrote: Hi, Is it possible to access the alarms from the Alarm Clock application, so i can use them in my application? And can I create an alarm in my application, which is visible in the Alarm Clock app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: gadget
You can add a shortcut to your application on the home screen (at least in the emulator) by dragging an application icon to the home screen. - Moazzam http://moazzam-khan.com/ On Mar 2, 9:14 am, Mr.No f.hi...@arcor.de wrote: and as a graphiclink on the desktop? rgds Mr.No --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to open another screen
You will need to create a new intent and call it. Intent myIntent = new Intent(); myIntent.setClassName(somePackage, somePackage.SomeClass); startActivity(myIntent); you have to declare your activity in the manifest file also, though. - Moazzam http://moazzam-khan.com/ On Feb 4, 12:41 am, sancti sanathshett...@gmail.com wrote: hi all, I am using three radiobuttons for three different applications. When i select one particular radiobutton, it should open another screen to show that particular application. Similarly for all the three radiobuttons. Can anybody tel me how can i do this.. thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: basic doubts on andriod
Hi Sriniamul, This might help you : http://moazzam-khan.com/blog/?p=41 - Moazzam On Jan 12, 9:38 am, srini amul srinia...@yahoo.com wrote: Hi, I am new to andriod. I have some basic doubts, please clarify it. a) I have a RGB565 frame buffer. I need to display it on a screen. I am not finding a suitable API to pass a frame buffer [unsigned char*] to display on a screen. How can i display my own frame buffer on a screen ? I have my own library file say [sample.so file] and it will be in library layer and its in C/C++ . I need to load this library in a application say Browser app. b) How browser app can load my library ? Is it dl_open function call (or) through BINDER IPC ? c) My library exposed a function say CreatePlayer(). If browser wants to call CreatePlayer() then does browser should use dl_sym() function ? Can a application directly talks to a library through dl_sym function call which is in library layer ? My librray also exposed a JNI API. d) My library needs media framework utitlity in andriod. So From C/C++ code, can i call JNI API of media framework function say mPlayer = new MediaPlayer() .. so on, Thanks Regards, P.Sriniamul Add more friends to your messenger and enjoy! Go tohttp://messenger.yahoo.com/invite/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sqlite connection coding
Here's an article which teaches you how to do it . http://moazzam-khan.com/blog/?cat=26 - Moazzam On Dec 6, 8:19 am, Mark Murphy [EMAIL PROTECTED] wrote: habi wrote: hi i created one databse in Sqlitethe databse is stored in raw folder.now how to write the connection coding You can't, AFAIK. Databases cannot be used if they are packaged in the APK. A pattern that I have used, and will eventually need to blog about, is: 1. Create a SQLite database in my project, but not in res/raw/ or any place where it would get packaged up (e.g., create a db/ folder) 2. Use the console sqlite3 utility to dump the contents (schema + data) of the various tables into SQL scripts in res/raw/ -- you can integrate this into Ant if you so choose 3. In your SQLiteOpenHelper, rather than hard-code the SQL statements to create and populate your database, open each of your SQL scripts in res/raw/ and execute the statements contained in them -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-beginners] Re: java + android newbie! - help on saving data.
You can also try storing it in a database. Here's a post I wrote on how to use databases for storing data in Android : http://moazzam-khan.com/blog/?p=58 - Moazzam On Nov 14, 6:32 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well in case anyone else has a similar problem to me, I found this pretty handy tutorial: http://www.anddev.org/working_with_files-t115.html On Nov 13, 8:35 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone, First of all I just want to point out that, though I'm not a complete beginner to programming, I only started learning java on monday! Despite this I've managed fairly well, but have a few questions about savingdata. I want my program to be able to save some basicdata; name, date of birth, stuff like that. I want to avoid the contacts list and preferences, as I will likely besavingthedatafor more than one object in the near future. I was wondering if anyone has any links to, or examples of working save code, which savesdatato either an xml file or some other raw file. I know there's some sample code provided on the android site, but as far as I can see this is mainly used to load resources, and though I am interested in this too, I'm more interested insaving first. Anyhelpat all will be much appreciated. Currently I find myself trolling through documentation and it's getting a little tedious! But it all helps... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-beginners] Back end process displaying a UI
Hey guys, I am writing an application in which you a backend process (service) waits for a certain time and then displays a window with a text field. For example, it will wait until 8:30pm today and then display a dialog with a text field with a random message. I have been reading about services but I am still a bit confused about this. It would be great if someone can point me in the right direction. Thanks in advance, Moazzam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-beginners] Running an app when Android boots
Hey, Is there a way I can start an app as soon as android boots? I've been reading the documentation but couldn't find anything about that. Thanks, Moazzam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---