[android-developers] database for content provider

2012-09-12 Thread Ehsan Sadeghi
I create a database file by sqlitebrowser and copy it in data/data/ir.smspeik.sms/databases/mydb1. How can I use it as a content provider in my app? Which Uri I must use to declare it? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Save Sms in Custom Inbox

2012-09-11 Thread Ehsan Sadeghi
I have a broadcastreceiver and after receive sms, I abort the receiver so the sms doesn't go to inbox. I want to have a custom inbox in my app to users can see last 20 received sms in it. I use adapter to view inbox but only saved smss are shown and my app sms are lost. How can I handle those?

[android-developers] No string in extras

2012-09-10 Thread Ehsan Sadeghi
I have these codes in broadcast receiver : Intent mainActivityIntent = *new* Intent(context, ir.smspeik.sms.GetResponse.*class*); mainActivityIntent.setFlags(Intent. *FLAG_ACTIVITY_NEW_TASK*); context.startActivity(mainActivityIntent); Intent broadcastIntent = *new* Intent(); broadca

[android-developers] disable menu item in broadcast receiver

2012-09-08 Thread Ehsan Sadeghi
I create a broadcast receiver : package ir.smspeik.sms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; public class ReceiveSms exten

[android-developers] Toolbar

2012-09-06 Thread Ehsan Sadeghi
How can I create a toolbar that shows in every activity in my android app. how can I hide/show some button in that toolbar by a background service? For example, I want everytime a sms received, a button showed in toolbar and when sms read, the toolbar hide. -- You received this message becau

[android-developers] Save Received Sms

2012-09-05 Thread Ehsan Sadeghi
I want to save received sms and show last 20 sms to users in an activity. I want users can click on each sms and see details of sms like builtin sms application. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Save Received sms

2012-09-05 Thread Ehsan Sadeghi
I want to save received sms and show last 20 sms to users in an activity. I want users can click on each sms and see details of sms like builtin sms application. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

Re: [android-developers] Update Activity

2012-09-05 Thread Ehsan Sadeghi
And how can I change that? در چهارشنبه 5 سپتامبر 2012، ساعت 15:29:06 (UTC+4:30)، asheesh arya نوشته: > > check your permission in android manifest file > > در چهارشنبه 5 سپتامبر 2012، ساعت 15:29:06 (UTC+4:30)، asheesh arya نوشته: > > check your permission in android manifest file > > -- You recei

[android-developers] Update Activity

2012-09-05 Thread Ehsan Sadeghi
I use this code as a broadcast receiver : package ir.smspeik.sms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import android.widget.Toast;

[android-developers] Receive Sms

2012-09-03 Thread Ehsan Sadeghi
I write this broadcast receiver to receive sms from certains number : package ir.smspeik.sms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage;

[android-developers] Re: background intent

2012-08-22 Thread Ehsan Sadeghi
I have this public class ReceiveSms extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { //---get the SMS message passed in--- //---get the SMS message passed in--- Bundle bundle = intent.getExtras(); SmsMessage[] msgs

[android-developers] background intent

2012-08-21 Thread Ehsan Sadeghi
How can I run an activity in background and minimized it until invoke that? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] error in new activity

2012-08-21 Thread Ehsan Sadeghi
I create an activity Hoghoughi but when i try to start it an error raise : 08-22 05:50:08.890: E/AndroidRuntime(608): FATAL EXCEPTION: main 08-22 05:50:08.890: E/AndroidRuntime(608): java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Hoghoughi}: ja

[android-developers] Re: Get SMS

2012-08-12 Thread Ehsan Sadeghi
problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory) در شنبه 11 اوت 2012، ساعت 21:17:17 (UTC+4:30)، Ehsan Sadeghi نوشته: > I create an activity >an

[android-developers] Re: Get SMS

2012-08-12 Thread Ehsan Sadeghi
I use eclipse to debug but an error raise : Application SMS s waiting for the debugger to attach در شنبه 11 اوت 2012، ساعت 21:17:17 (UTC+4:30)، Ehsan Sadeghi نوشته: > I create an activity >android:name=".GetResponse" > >

[android-developers] Get SMS

2012-08-11 Thread Ehsan Sadeghi
I create an activity that starts when a sms received. i write this code to display sms but nothing is shown : public class GetResponse extends Activity{ IntentFilter intentFilter; private Broadcas

[android-developers] Error in App

2012-08-08 Thread Ehsan Sadeghi
I declare an intent in my manifest : and then create a class name GetResponse : package ir.smspeik.sms; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.c

[android-developers] Re: Receive SMS

2012-08-07 Thread Ehsan Sadeghi
it doesn't any solution for filter در دوشنبه 6 اوت 2012، ساعت 6:51:32 (UTC)، HOUSSEM ZAIER نوشته: > > > You have to filter all what you are receiving by the broadcast receiver. > http://www.tutos-android.com/broadcast-receiver-android > example of using the broadcast receiver. > Good luck --

[android-developers] Receive SMS

2012-08-05 Thread Ehsan Sadeghi
How can I receive from certain numbers and only for them my app is started and how doesn't messages that app receive appear in the messaging built in? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Re: Receive sms

2012-08-01 Thread Ehsan Sadeghi
How can I receive from certain numbers and only for them my app is started and how doesn't messages that app receive appear in the messaging built in? در دوشنبه 30 ژوئیهٔ 2012، ساعت 18:44:03 (UTC)، Ehsan Sadeghi نوشته: > > I write this code in manifest file : > android:mi

[android-developers] Landscape

2012-07-30 Thread Ehsan Sadeghi
I have layout and layout-land in my app and in both have a file is named realstate.xml, in portrait everything is ok, but in landscape application stops by following error : 07-30 18:29:51.186: D/gralloc_goldfish(659): Emulator without GPU emulation detected. 07-30 18:29:53.757: D/InputEventCons

[android-developers] Receive sms

2012-07-30 Thread Ehsan Sadeghi
I write this code in manifest file : and this code in Receiv

[android-developers] Error in definde new activity and showing it

2012-07-26 Thread Ehsan Sadeghi
I create a new activity by below code : an warning raise : Exported activity does not require permission but when i add android:exported="false" to it the warning disapears. what is it? also I write this code to show car

[android-developers] Error in Hello world project

2012-07-22 Thread Ehsan Sadeghi
I am newbie in android. I use eclipse. When I create new project and add some controls to activity_main.xml the following error raise : res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined. [2012-07-23 02:05:41 - EhsanCan] res\layout\activity_main.out.xml:0: