[android-beginners] Re: Sqlite connection coding

2008-12-12 Thread Mark Murphy

shilpi jhilmil wrote:
  can u suggest me a book from which i can start my basics...

There are several Android books listed in my Android Programming Knol:

http://knol.google.com/k/mark-murphy/android-programming

Others may be available in beta form as well, notably Ed Burnette's 
_Hello, Android_.

I am partial to _The Busy Coder's Guide to Android Development_. :-)

-- 
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



RES: [android-beginners] Re: Sqlite connection coding

2008-12-12 Thread George Lanes

Try this books.
Android, A Programmer's Guide from J.F. DiMarzio
http://book.pdfchm.com/android-a-programmers-guide-12791/
Android Essentials (Firstpress) from Chris Haseman
http://book.pdfchm.com/android-essentials-firstpress--11777/

George Lanes

-Mensagem original-
De: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] Em nome de Mark Murphy
Enviada em: sexta-feira, 12 de dezembro de 2008 10:17
Para: android-beginners@googlegroups.com
Assunto: [android-beginners] Re: Sqlite connection coding


shilpi jhilmil wrote:
  can u suggest me a book from which i can start my basics...

There are several Android books listed in my Android Programming Knol:

http://knol.google.com/k/mark-murphy/android-programming

Others may be available in beta form as well, notably Ed Burnette's 
_Hello, Android_.

I am partial to _The Busy Coder's Guide to Android Development_. :-)

-- 
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
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

2008-12-11 Thread shilpi jhilmil
caN U HELP ME PLZ.
I M THE beginer of android.
i am facing a problem.
i want to make call from my application..for that i am using Intent...

My Code is...
package android.phonedialer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.net.Uri;

public class AndroidPhoneDialer extends Activity {
/** Called when the Activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
/** Create our Intent to call the Dialer */
/** Pass the Dialer the number 5551212 */
Intent DialIntent = new
Intent(Intent.DIAL_ACTION,Uri.parse(tel:052325));
/** Use NEW_TASK_LAUNCH to launch the Dialer Activity */
DialIntent.setLaunchFlags(Intent.NEW_TASK_LAUNCH );
/** Finally start the Activity */
startActivity(DialIntent);
}
}

I am getting error in Intent.DIAL_ACTION and Intent.NEW_TASK_LAUNCH
Its saying that these cannot be resolved..
Please anyone help me..




On Thu, Dec 11, 2008 at 1:02 AM, habi kiran.h...@gmail.com wrote:




 thanks for ur reply sir
 



-- 
Thanks n Regards,
Shilpi Bhowmick

--~--~-~--~~~---~--~~
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

2008-12-11 Thread Mark Murphy

shilpi jhilmil wrote:
 caN U HELP ME PLZ.
 I M THE beginer of android.
 i am facing a problem.
 i want to make call from my application..for that i am using Intent...
 
 My Code is...
 package android.phonedialer;
 
 import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.net.Uri;
 
 public class AndroidPhoneDialer extends Activity {
 /** Called when the Activity is first created. */
 @Override
 public void onCreate(Bundle icicle) {
 super.onCreate(icicle);
 setContentView(R.layout.main);
 /** Create our Intent to call the Dialer */
 /** Pass the Dialer the number 5551212 */
 Intent DialIntent = new
 Intent(Intent.DIAL_ACTION,Uri.parse(tel:052325));
 /** Use NEW_TASK_LAUNCH to launch the Dialer Activity */
 DialIntent.setLaunchFlags(Intent.NEW_TASK_LAUNCH );
 /** Finally start the Activity */
 startActivity(DialIntent);
 }
 }
 
 I am getting error in Intent.DIAL_ACTION and Intent.NEW_TASK_LAUNCH
 Its saying that these cannot be resolved..
 Please anyone help me..

If you look in the documentation for Intent:

http://code.google.com/android/reference/android/content/Intent.html

you will see that DIAL_ACTION is now ACTION_DIAL. I think 
setLaunchFlags(Intent.NEW_TASK_LAUNCH) is now 
setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), though I am not completely certain.

The example you are working from is probably for the older M5 SDK, so 
you may have other changes you need to make to have it work on the 
current SDK.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~-~--~~~---~--~~
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

2008-12-11 Thread shilpi jhilmil
thanks mark...
 can u suggest me a book from which i can start my basics...



On Thu, Dec 11, 2008 at 3:53 PM, Mark Murphy mmur...@commonsware.comwrote:


 shilpi jhilmil wrote:
  caN U HELP ME PLZ.
  I M THE beginer of android.
  i am facing a problem.
  i want to make call from my application..for that i am using Intent...
 
  My Code is...
  package android.phonedialer;
 
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.net.Uri;
 
  public class AndroidPhoneDialer extends Activity {
  /** Called when the Activity is first created. */
  @Override
  public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  setContentView(R.layout.main);
  /** Create our Intent to call the Dialer */
  /** Pass the Dialer the number 5551212 */
  Intent DialIntent = new
  Intent(Intent.DIAL_ACTION,Uri.parse(tel:052325));
  /** Use NEW_TASK_LAUNCH to launch the Dialer Activity */
  DialIntent.setLaunchFlags(Intent.NEW_TASK_LAUNCH );
  /** Finally start the Activity */
  startActivity(DialIntent);
  }
  }
 
  I am getting error in Intent.DIAL_ACTION and Intent.NEW_TASK_LAUNCH
  Its saying that these cannot be resolved..
  Please anyone help me..

 If you look in the documentation for Intent:

 http://code.google.com/android/reference/android/content/Intent.html

 you will see that DIAL_ACTION is now ACTION_DIAL. I think
 setLaunchFlags(Intent.NEW_TASK_LAUNCH) is now
 setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), though I am not completely
 certain.

 The example you are working from is probably for the older M5 SDK, so
 you may have other changes you need to make to have it work on the
 current SDK.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Published!

 



-- 
Thanks n Regards,
Shilpi Bhowmick

--~--~-~--~~~---~--~~
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

2008-12-11 Thread Sandeep Kukreti
hishilipi
i m also in new in android
and i have some pdf file which is very useful for starting...so u send ur
mail address then sent those pdf book...

On Fri, Dec 12, 2008 at 5:23 AM, Mark Murphy mmur...@commonsware.comwrote:


 shilpi jhilmil wrote:
  caN U HELP ME PLZ.
  I M THE beginer of android.
  i am facing a problem.
  i want to make call from my application..for that i am using Intent...
 
  My Code is...
  package android.phonedialer;
 
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.net.Uri;
 
  public class AndroidPhoneDialer extends Activity {
  /** Called when the Activity is first created. */
  @Override
  public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  setContentView(R.layout.main);
  /** Create our Intent to call the Dialer */
  /** Pass the Dialer the number 5551212 */
  Intent DialIntent = new
  Intent(Intent.DIAL_ACTION,Uri.parse(tel:052325));
  /** Use NEW_TASK_LAUNCH to launch the Dialer Activity */
  DialIntent.setLaunchFlags(Intent.NEW_TASK_LAUNCH );
  /** Finally start the Activity */
  startActivity(DialIntent);
  }
  }
 
  I am getting error in Intent.DIAL_ACTION and Intent.NEW_TASK_LAUNCH
  Its saying that these cannot be resolved..
  Please anyone help me..

 If you look in the documentation for Intent:

 http://code.google.com/android/reference/android/content/Intent.html

 you will see that DIAL_ACTION is now ACTION_DIAL. I think
 setLaunchFlags(Intent.NEW_TASK_LAUNCH) is now
 setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), though I am not completely
 certain.

 The example you are working from is probably for the older M5 SDK, so
 you may have other changes you need to make to have it work on the
 current SDK.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Published!

 



-- 
Thanks  Regards,
Sandeep Kukreti
Software Engineer
Noida

--~--~-~--~~~---~--~~
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

2008-12-07 Thread moazzamk

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: Sqlite connection coding

2008-12-06 Thread Mark Murphy

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
-~--~~~~--~~--~--~---