using SQLiteOpenHelper outside emulator

by robin bakkerus » Tue, 25 Aug 2009 01:05:38 GMT


Sponsored Links
 Is it possible to use/test the SQLiteOpenHelper outside the emulator
(to speed up development).
The problem is that constructor of the SQLiteOpenHelper needs an
Android.context.Context.
Hence is is possible to mimic the context.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Change text size and color of listview

Hi all,

I am adding listview programmatically.
My code is as follow.

<------- start

LinearLayout llIn2 = new LinearLayout(this);
llIn2.setOrientation(LinearLayout.VERTICAL);

llIn2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));

ListView lv = new ListView(this);

lv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
lv.setAdapter(new ArrayAdapter<String>(getApplicationContext(),
android.R.layout.simple_list_item_1, alPlaces));

llIn2.addView(lv);

this.setContentView(llIn2);

<------end

now i want to change the size and color of text.

[there is know method like lv.settextsize / lv.settextcolor ]

Any kind of help will be grateful

Thanks,
Pawan

-- 

2. How to send the Email

Hi all,

   I am new in android.I need one help from all.

   I need to send the email, I have tryed in emulator, i have checked
my mail but i didnt got any mail,. how to do that?? Plz give me a
solution for that.

I have mention below the my code for your reference.

package com.test.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class auboutus extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aboutus);

        Button aboutUs_button = (Button)
findViewById(R.id.aboutUs_button);
                aboutUs_button.setOnClickListener(new OnClickListener() {

                        public void onClick(View arg0) {

                        Intent i = new Intent(Intent.ACTION_SEND);
                        i.setType("text/plain");
                        i.putExtra(Intent.EXTRA_EMAIL, new String[]
{"t...@gmail.com"});
                        i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here");
                        i.putExtra(Intent.EXTRA_TEXT,"body goes here");
                        startActivity(Intent.createChooser(i, "Select email
application."));


                        }
                });
    }
}


Thanks
C.RAjesh

-- 

3. EditText Image changing look when given at runtime.

4. Widget Auto Install

5. Android porting on AM3517

6. Adding child views

7. set clip in canvas