Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-26 Thread Mohamed Gougam
Sorry i didn't get your question.

On Sun, Feb 26, 2012 at 5:19 AM, lbendlin l...@bendlin.us wrote:

 Detecet ? Really?

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


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

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-26 Thread YuviDroid
Uhmthe root of the error is at that line 87 of your BTD...Activity.
What's at that line?

is it: SetBluetoothDevice pairedDevices = mBtAdapter.getBondedDevices(); ?
ant it might be that mBtAdapter is null (by reading the docs it says that
BluetoothAdapter.getDefaultAdapter() returns null when bluetooth is not
supported -
http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#getDefaultAdapter()
 ).
Maybe you are using the emulator to run this? (AFAIK the emulator doesn't
support bluetooth)

so, just add a if (mBtAdapter != null) { ... rest of your code .. }


On Sat, Feb 25, 2012 at 10:19 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 You mean this part of the log:

  02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228):  at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)


 The program doesn't stop at that point !!

 i was looking at this one:

 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.
 helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException


 On Sat, Feb 25, 2012 at 11:43 PM, YuviDroid yuvidr...@gmail.com wrote:

 As the log suggests the NullPointerException occurs at line 87 of
 BTDdetecetwithV7Activity.java.
 Take a look at that line and see what might be wrong..


 On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread
 main exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-26 Thread Mohamed Gougam
yes it's:

 // Get a set of currently paired devices
SetBluetoothDevice pairedDevices = mBtAdapter.getBondedDevices();
 
So i wonder what's about it.

Just a question about the Log.e and Log.d

i added this:

if (D) Log.d(Tag, in onCreate());
if (D) Log.e(Tag, onCreate());
if (D) Log.i(Tag, onCreate());


Am i getting it right? because i can't see how the three are different (e:
Error, I: information, ) if it's me who has to specify the displayed
message...for example: in onCreate message.




On Sun, Feb 26, 2012 at 2:07 PM, YuviDroid yuvidr...@gmail.com wrote:

 Uhmthe root of the error is at that line 87 of your BTD...Activity.
 What's at that line?

 is it: SetBluetoothDevice pairedDevices = mBtAdapter.getBondedDevices();
 ?
 ant it might be that mBtAdapter is null (by reading the docs it says that
 BluetoothAdapter.getDefaultAdapter() returns null when bluetooth is not
 supported -
 http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#getDefaultAdapter()
  ).
 Maybe you are using the emulator to run this? (AFAIK the emulator doesn't
 support bluetooth)

 so, just add a if (mBtAdapter != null) { ... rest of your code .. }


 On Sat, Feb 25, 2012 at 10:19 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 You mean this part of the log:

  02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228):  at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)


 The program doesn't stop at that point !!

 i was looking at this one:

 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.
 helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException


 On Sat, Feb 25, 2012 at 11:43 PM, YuviDroid yuvidr...@gmail.com wrote:

 As the log suggests the NullPointerException occurs at line 87 of
 BTDdetecetwithV7Activity.java.
 Take a look at that line and see what might be wrong..


 On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam 
 mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with
 the onCreate since you said you think that the source of the bug most
 probably is onCreate method, well i am putting the Logcat error messages
 and Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread
 main exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread Mohamed Gougam
Hello,

I used The Log.e and Log.d in many places in the code including in the
onCreate method and i found that the error is there and it's not going any
further beyond it...


Still don't know what's wrong though.

On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread main
 exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.Window;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class BTDdetecetwithV7Activity extends Activity  {
 /** Called when the activity is first created. */
 // Debugging
 private static final String TAG = DeviceListActivity;
 private static final boolean D = true;

 // Return Intent extra
 public static String EXTRA_DEVICE_ADDRESS = device_address;

 // Member fields
 private BluetoothAdapter mBtAdapter;
 private ArrayAdapterString mPairedDevicesArrayAdapter;
 private ArrayAdapterString mNewDevicesArrayAdapter;

   @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 // Setup the window
 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
 setContentView(R.layout.main);


 // Set result CANCELED in case the user backs out
 setResult(Activity.RESULT_CANCELED);

 // Initialize the button to perform device discovery
 Button scanButton = (Button) findViewById(R.id.button_scan);
 scanButton.setOnClickListener(new OnClickListener() {
 public void onClick(View v) {
 doDiscovery();
 v.setVisibility(View.GONE);
 }
 });

 // Initialize array adapters. One for already paired devices and
 // one for newly discovered devices
 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread YuviDroid
As the log suggests the NullPointerException occurs at line 87 of
BTDdetecetwithV7Activity.java.
Take a look at that line and see what might be wrong..


On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.com wrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread main
 exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.Window;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class BTDdetecetwithV7Activity extends Activity  {
 /** Called when the activity is first created. */
 // Debugging
 private static final String TAG = DeviceListActivity;
 private static final boolean D = true;

 // Return Intent extra
 public static String EXTRA_DEVICE_ADDRESS = device_address;

 // Member fields
 private BluetoothAdapter mBtAdapter;
 private ArrayAdapterString mPairedDevicesArrayAdapter;
 private ArrayAdapterString mNewDevicesArrayAdapter;

   @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 // Setup the window
 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
 setContentView(R.layout.main);


 // Set result CANCELED in case the user backs out
 setResult(Activity.RESULT_CANCELED);

 // Initialize the button to perform device discovery
 Button scanButton = (Button) findViewById(R.id.button_scan);
 scanButton.setOnClickListener(new OnClickListener() {
 public void onClick(View v) {
 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread Mohamed Gougam
Hello,

You mean this part of the log:

 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
java.lang.NullPointerException
02-23 18:35:35.985: E/AndroidRuntime(228):  at
android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)


The program doesn't stop at that point !!

i was looking at this one:

02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
Unable to start activity ComponentInfo{android.mgo.helloandroid/android.mgo.
helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException


On Sat, Feb 25, 2012 at 11:43 PM, YuviDroid yuvidr...@gmail.com wrote:

 As the log suggests the NullPointerException occurs at line 87 of
 BTDdetecetwithV7Activity.java.
 Take a look at that line and see what might be wrong..


 On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread main
 exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.Window;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class BTDdetecetwithV7Activity extends Activity  {
 /** Called when the activity is first created. */
 // Debugging
 private static final String TAG = DeviceListActivity;
 private static final boolean D = true;

 // Return Intent extra
 public static String EXTRA_DEVICE_ADDRESS = device_address;

 // Member fields
 private BluetoothAdapter mBtAdapter;
 private ArrayAdapterString mPairedDevicesArrayAdapter;
 private ArrayAdapterString 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread Mohamed Gougam
Just a quick question please, why in my code, i use button but it didn't
ask me to add implements OnClickListener and when i try to add, it shows
error...??

On Sun, Feb 26, 2012 at 1:19 AM, Mohamed Gougam mblack...@gmail.com wrote:

 Hello,

 You mean this part of the log:

  02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228):  at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)


 The program doesn't stop at that point !!

 i was looking at this one:

 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.
 helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException


 On Sat, Feb 25, 2012 at 11:43 PM, YuviDroid yuvidr...@gmail.com wrote:

 As the log suggests the NullPointerException occurs at line 87 of
 BTDdetecetwithV7Activity.java.
 Take a look at that line and see what might be wrong..


 On Sat, Feb 25, 2012 at 8:21 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello,

 I used The Log.e and Log.d in many places in the code including in the
 onCreate method and i found that the error is there and it's not going any
 further beyond it...


 Still don't know what's wrong though.


 On Thu, Feb 23, 2012 at 11:40 PM, Mohamed Gougam mblack...@gmail.comwrote:

 Hello Moktarul, sorry for the late reply, i was playing around with the
 onCreate since you said you think that the source of the bug most probably
 is onCreate method, well i am putting the Logcat error messages and
 Activity code bellow,

 LogCat:

 02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
 02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread
 main exiting due to uncaught exception
 02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.os.Looper.loop(Looper.java:123)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invokeNative(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 java.lang.reflect.Method.invoke(Method.java:521)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 dalvik.system.NativeStart.main(Native Method)
 02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
 java.lang.NullPointerException
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 02-23 18:35:35.985: E/AndroidRuntime(228): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
 02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
 02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
 02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
 '/data/anr/traces.txt'


 *The Activity:*

 package android.mgo.helloandroid;

 import java.util.Set;

 import android.app.Activity;
 import android.bluetooth.BluetoothAdapter;
 import android.bluetooth.BluetoothDevice;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.Window;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class BTDdetecetwithV7Activity extends Activity  {
 /** Called when the activity is first created. */
 // Debugging
 private static final String TAG = DeviceListActivity;
 private static final boolean D = true;

 // Return 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-25 Thread lbendlin
Detecet ? Really?

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


Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-23 Thread Mohamed Gougam
Hello Moktarul, sorry for the late reply, i was playing around with the
onCreate since you said you think that the source of the bug most probably
is onCreate method, well i am putting the Logcat error messages and
Activity code bellow,

LogCat:

02-23 18:35:35.935: D/AndroidRuntime(228): Shutting down VM
02-23 18:35:35.946: W/dalvikvm(228): threadid=3: thread exiting with
uncaught exception (group=0x4001b188)
02-23 18:35:35.946: E/AndroidRuntime(228): Uncaught handler: thread main
exiting due to uncaught exception
02-23 18:35:35.985: E/AndroidRuntime(228): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
java.lang.NullPointerException
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.os.Looper.loop(Looper.java:123)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread.main(ActivityThread.java:4363)
02-23 18:35:35.985: E/AndroidRuntime(228): at
java.lang.reflect.Method.invokeNative(Native Method)
02-23 18:35:35.985: E/AndroidRuntime(228): at
java.lang.reflect.Method.invoke(Method.java:521)
02-23 18:35:35.985: E/AndroidRuntime(228): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
02-23 18:35:35.985: E/AndroidRuntime(228): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
02-23 18:35:35.985: E/AndroidRuntime(228): at
dalvik.system.NativeStart.main(Native Method)
02-23 18:35:35.985: E/AndroidRuntime(228): Caused by:
java.lang.NullPointerException
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(BTDdetecetwithV7Activity.java:87)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-23 18:35:35.985: E/AndroidRuntime(228): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
02-23 18:35:35.985: E/AndroidRuntime(228): ... 11 more
02-23 18:35:36.015: I/dalvikvm(228): threadid=7: reacting to signal 3
02-23 18:35:36.065: I/dalvikvm(228): Wrote stack trace to
'/data/anr/traces.txt'


*The Activity:*

package android.mgo.helloandroid;

import java.util.Set;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class BTDdetecetwithV7Activity extends Activity  {
/** Called when the activity is first created. */
// Debugging
private static final String TAG = DeviceListActivity;
private static final boolean D = true;

// Return Intent extra
public static String EXTRA_DEVICE_ADDRESS = device_address;

// Member fields
private BluetoothAdapter mBtAdapter;
private ArrayAdapterString mPairedDevicesArrayAdapter;
private ArrayAdapterString mNewDevicesArrayAdapter;

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Setup the window
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);


// Set result CANCELED in case the user backs out
setResult(Activity.RESULT_CANCELED);

// Initialize the button to perform device discovery
Button scanButton = (Button) findViewById(R.id.button_scan);
scanButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
doDiscovery();
v.setVisibility(View.GONE);
}
});

// Initialize array adapters. One for already paired devices and
// one for newly discovered devices
mPairedDevicesArrayAdapter = new ArrayAdapterString(this,
R.layout.main);
mNewDevicesArrayAdapter = new ArrayAdapterString(this,
R.layout.main);

// Find and set up the ListView for paired devices
ListView pairedListView = (ListView)
findViewById(R.id.paired_devices);
pairedListView.setAdapter(mPairedDevicesArrayAdapter);

// Find and set up the ListView for newly 

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-22 Thread Mohamed Gougam
Hello moktarul, the thing about manifest.xml, is tht i have only one
activity so nothing to get confused with. the manifest file is bellow:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=android.mgo.helloandroid
android:versionCode=1
android:versionName=1.0 

uses-sdk android:minSdkVersion=7 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name 
activity
android:label=@string/app_name
android:name=.BTDdetecetwithV7Activity
intent-filter
action android:name=android.intent.action.MAIN/

category android:name=android.intent.category.LAUNCHER/
/intent-filter
/activity
/application
uses-permission android:name=android.permission.BLUETOOTH/
uses-permission
android:name=android.permission.BLUETOOTH_ADMIN/
/manifest

On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com wrote:

 Hello  moktarul,

 Thanks alot, i will do that, and let you know :)


 On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.comwrote:

 sorry, its Activity Intent filter not internt filter
 Moktarul

 On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
  Hi Soyer,
  All your activity class has to be there in your Manifest.xml file
 
  if you call your activity class from other activity then that class
  has to be main( internt filter main) Please check these two point and
  i think this will solve ur problem.
  I am sure some problem in ur Manifest.xml file
 
  Moktarul
 
  On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi Moktarul, What is in the the manifest file, you mean i have to
 remove
   the . ? i don't think that's it, the . has to be there.
 
   Thanks guys for the help, Kris is it wrong if somebody try to learn
   something different, out of his field !! Thanks for the help though i
   really appreciate it.
 
   On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com
 wrote:
Hi
BTDdetecetwithV7Activity in ur android  Manifest file
activity name=BTDdetecetwithV7Activity/\
 
Enjoy
moktarul
 
On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
 Hello everyone, Can anyone explain to me what this following error
 means? have anyone faced the same?
 
 ERROR:
 
 02-19 18:10:41.321: E/AndroidRuntime(319):
 java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.helloandroid/
 android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 
--
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

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




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

[android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-22 Thread moktarul anam
Hi Soyer,

I think problem is in ur oncreate or onstart method.  can u please do
that ...
remove all code from oncreate and check


Can u please send little more log
Moktarul


On Feb 22, 11:42 pm, Mohamed Gougam mblack...@gmail.com wrote:
 Hello moktarul, the thing about manifest.xml, is tht i have only one
 activity so nothing to get confused with. the manifest file is bellow:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
     package=android.mgo.helloandroid
     android:versionCode=1
     android:versionName=1.0 

     uses-sdk android:minSdkVersion=7 /

     application
         android:icon=@drawable/ic_launcher
         android:label=@string/app_name 
         activity
             android:label=@string/app_name
             android:name=.BTDdetecetwithV7Activity
             intent-filter
                 action android:name=android.intent.action.MAIN/

                 category android:name=android.intent.category.LAUNCHER/
             /intent-filter
         /activity
     /application
             uses-permission android:name=android.permission.BLUETOOTH/
             uses-permission
 android:name=android.permission.BLUETOOTH_ADMIN/
 /manifest







 On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com wrote:
  Hello  moktarul,

  Thanks alot, i will do that, and let you know :)

  On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.comwrote:

  sorry, its Activity Intent filter not internt filter
  Moktarul

  On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
   Hi Soyer,
   All your activity class has to be there in your Manifest.xml file

   if you call your activity class from other activity then that class
   has to be main( internt filter main) Please check these two point and
   i think this will solve ur problem.
   I am sure some problem in ur Manifest.xml file

   Moktarul

   On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:

Hi Moktarul, What is in the the manifest file, you mean i have to
  remove
the . ? i don't think that's it, the . has to be there.

Thanks guys for the help, Kris is it wrong if somebody try to learn
something different, out of his field !! Thanks for the help though i
really appreciate it.

On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com
  wrote:
 Hi
 BTDdetecetwithV7Activity in ur android  Manifest file
 activity name=BTDdetecetwithV7Activity/\

 Enjoy
 moktarul

 On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
  Hello everyone, Can anyone explain to me what this following error
  means? have anyone faced the same?

  ERROR:

  02-19 18:10:41.321: E/AndroidRuntime(319):
  java.lang.RuntimeException:
  Unable to start activity ComponentInfo{android.mgo.helloandroid/
  android.mgo.helloandroid.BTDdetecetwithV7Activity}:
  java.lang.NullPointerException

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

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

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


[android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-22 Thread moktarul anam
can u please send me ur activity code and little more log message

Moktarul anam

On Feb 23, 10:18 am, moktarul anam mokta...@gmail.com wrote:
 Hi Soyer,

 I think problem is in ur oncreate or onstart method.  can u please do
 that ...
 remove all code from oncreate and check

 Can u please send little more log
 Moktarul

 On Feb 22, 11:42 pm, Mohamed Gougam mblack...@gmail.com wrote:







  Hello moktarul, the thing about manifest.xml, is tht i have only one
  activity so nothing to get confused with. the manifest file is bellow:

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=android.mgo.helloandroid
      android:versionCode=1
      android:versionName=1.0 

      uses-sdk android:minSdkVersion=7 /

      application
          android:icon=@drawable/ic_launcher
          android:label=@string/app_name 
          activity
              android:label=@string/app_name
              android:name=.BTDdetecetwithV7Activity
              intent-filter
                  action android:name=android.intent.action.MAIN/

                  category android:name=android.intent.category.LAUNCHER/
              /intent-filter
          /activity
      /application
              uses-permission android:name=android.permission.BLUETOOTH/
              uses-permission
  android:name=android.permission.BLUETOOTH_ADMIN/
  /manifest

  On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com wrote:
   Hello  moktarul,

   Thanks alot, i will do that, and let you know :)

   On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.comwrote:

   sorry, its Activity Intent filter not internt filter
   Moktarul

   On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
Hi Soyer,
All your activity class has to be there in your Manifest.xml file

if you call your activity class from other activity then that class
has to be main( internt filter main) Please check these two point and
i think this will solve ur problem.
I am sure some problem in ur Manifest.xml file

Moktarul

On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:

 Hi Moktarul, What is in the the manifest file, you mean i have to
   remove
 the . ? i don't think that's it, the . has to be there.

 Thanks guys for the help, Kris is it wrong if somebody try to learn
 something different, out of his field !! Thanks for the help though i
 really appreciate it.

 On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com
   wrote:
  Hi
  BTDdetecetwithV7Activity in ur android  Manifest file
  activity name=BTDdetecetwithV7Activity/\

  Enjoy
  moktarul

  On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
   Hello everyone, Can anyone explain to me what this following 
   error
   means? have anyone faced the same?

   ERROR:

   02-19 18:10:41.321: E/AndroidRuntime(319):
   java.lang.RuntimeException:
   Unable to start activity ComponentInfo{android.mgo.helloandroid/
   android.mgo.helloandroid.BTDdetecetwithV7Activity}:
   java.lang.NullPointerException

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

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

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


[android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-21 Thread moktarul anam
sorry, its Activity Intent filter not internt filter
Moktarul

On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
 Hi Soyer,
 All your activity class has to be there in your Manifest.xml file

 if you call your activity class from other activity then that class
 has to be main( internt filter main) Please check these two point and
 i think this will solve ur problem.
 I am sure some problem in ur Manifest.xml file

 Moktarul

 On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:







  Hi Moktarul, What is in the the manifest file, you mean i have to remove
  the . ? i don't think that's it, the . has to be there.

  Thanks guys for the help, Kris is it wrong if somebody try to learn
  something different, out of his field !! Thanks for the help though i
  really appreciate it.

  On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote:
   Hi
   BTDdetecetwithV7Activity in ur android  Manifest file
   activity name=BTDdetecetwithV7Activity/\

   Enjoy
   moktarul

   On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
Hello everyone, Can anyone explain to me what this following error
means? have anyone faced the same?

ERROR:

02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException:
Unable to start activity ComponentInfo{android.mgo.helloandroid/
android.mgo.helloandroid.BTDdetecetwithV7Activity}:
java.lang.NullPointerException

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

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


Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-21 Thread Mohamed Gougam
Hello  moktarul,

Thanks alot, i will do that, and let you know :)

On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.com wrote:

 sorry, its Activity Intent filter not internt filter
 Moktarul

 On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote:
  Hi Soyer,
  All your activity class has to be there in your Manifest.xml file
 
  if you call your activity class from other activity then that class
  has to be main( internt filter main) Please check these two point and
  i think this will solve ur problem.
  I am sure some problem in ur Manifest.xml file
 
  Moktarul
 
  On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi Moktarul, What is in the the manifest file, you mean i have to
 remove
   the . ? i don't think that's it, the . has to be there.
 
   Thanks guys for the help, Kris is it wrong if somebody try to learn
   something different, out of his field !! Thanks for the help though i
   really appreciate it.
 
   On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com
 wrote:
Hi
BTDdetecetwithV7Activity in ur android  Manifest file
activity name=BTDdetecetwithV7Activity/\
 
Enjoy
moktarul
 
On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
 Hello everyone, Can anyone explain to me what this following error
 means? have anyone faced the same?
 
 ERROR:
 
 02-19 18:10:41.321: E/AndroidRuntime(319):
 java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.helloandroid/
 android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException
 
--
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread moktarul anam
Hi
BTDdetecetwithV7Activity in ur android  Manifest file
activity name=BTDdetecetwithV7Activity/\

Enjoy
moktarul

On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
 Hello everyone, Can anyone explain to me what this following error
 means? have anyone faced the same?

 ERROR:

 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{android.mgo.helloandroid/
 android.mgo.helloandroid.BTDdetecetwithV7Activity}:
 java.lang.NullPointerException

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


Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread Mohamed Gougam
Hi Moktarul, What is in the the manifest file, you mean i have to remove
the . ? i don't think that's it, the . has to be there.

Thanks guys for the help, Kris is it wrong if somebody try to learn
something different, out of his field !! Thanks for the help though i
really appreciate it.

On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote:

 Hi
 BTDdetecetwithV7Activity in ur android  Manifest file
 activity name=BTDdetecetwithV7Activity/\

 Enjoy
 moktarul

 On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
  Hello everyone, Can anyone explain to me what this following error
  means? have anyone faced the same?
 
  ERROR:
 
  02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException:
  Unable to start activity ComponentInfo{android.mgo.helloandroid/
  android.mgo.helloandroid.BTDdetecetwithV7Activity}:
  java.lang.NullPointerException

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


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

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread Kristopher Micinski
 Thanks guys for the help, Kris is it wrong if somebody try to learn
 something different, out of his field !! Thanks for the help though i really
 appreciate it.

If a NullPointerException is out of your field, then your field
certainly isn't programming Java.  Students learn about this extremely
quickly in even their first few classes of any introductory Java
course.

If your problem is that you haven't programmed in Java a lot, there
are many resources available for learning Java development, and it
would be best to learn this before trying to learn Android
development.

kris

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


Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread Mohamed Gougam
This is included in the program...
PS: i am not a student i am a hardware person, this is a parallel program i
am getting into, and yes i did java programming and web designing using
javaservlet and JSP by using MySQL...you maybe didn't get my question in
the post or i dint express my self properly but that doesn't allow you to
be hasty and judge anyone.

Eventhough i honestly can see that your intentions are good.

If you can give me hand in how to fix this problem, that would be more
than appreciated :)

On Mon, Feb 20, 2012 at 10:41 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

  Thanks guys for the help, Kris is it wrong if somebody try to learn
  something different, out of his field !! Thanks for the help though i
 really
  appreciate it.

 If a NullPointerException is out of your field, then your field
 certainly isn't programming Java.  Students learn about this extremely
 quickly in even their first few classes of any introductory Java
 course.

 If your problem is that you haven't programmed in Java a lot, there
 are many resources available for learning Java development, and it
 would be best to learn this before trying to learn Android
 development.

 kris

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


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

Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread Kristopher Micinski
On Mon, Feb 20, 2012 at 2:06 PM, Mohamed Gougam mblack...@gmail.com wrote:
 This is included in the program...
 PS: i am not a student i am a hardware person, this is a parallel program i
 am getting into, and yes i did java programming and web designing using
 javaservlet and JSP by using MySQL...you maybe didn't get my question in the
 post or i dint express my self properly but that doesn't allow you to
 be hasty and judge anyone.

 Eventhough i honestly can see that your intentions are good.

 If you can give me hand in how to fix this problem, that would be more
 than appreciated :)


Okay,

You're using Eclipse right?  Run your program in debug mode.  It will
crash.  Then you will get a backtrace, you can google how to do that.
The backtrace will tell you *where* your code failed.  Also post your
manifest here so we can make sure this isn't some silly thing with
your activity not being included in the manifest.  (Though typically
that raises a different exception, iirc.)

kris

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


Re: [android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread Mohamed Gougam
Alright will do that.thanks.


On Tue, Feb 21, 2012 at 1:51 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 On Mon, Feb 20, 2012 at 2:06 PM, Mohamed Gougam mblack...@gmail.com
 wrote:
  This is included in the program...
  PS: i am not a student i am a hardware person, this is a parallel
 program i
  am getting into, and yes i did java programming and web designing using
  javaservlet and JSP by using MySQL...you maybe didn't get my question in
 the
  post or i dint express my self properly but that doesn't allow you to
  be hasty and judge anyone.
 
  Eventhough i honestly can see that your intentions are good.
 
  If you can give me hand in how to fix this problem, that would be more
  than appreciated :)
 

 Okay,

 You're using Eclipse right?  Run your program in debug mode.  It will
 crash.  Then you will get a backtrace, you can google how to do that.
 The backtrace will tell you *where* your code failed.  Also post your
 manifest here so we can make sure this isn't some silly thing with
 your activity not being included in the manifest.  (Though typically
 that raises a different exception, iirc.)

 kris

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


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

[android-developers] Re: Hello Everyone, i just have a quick question:

2012-02-20 Thread moktarul anam
Hi Soyer,
All your activity class has to be there in your Manifest.xml file


if you call your activity class from other activity then that class
has to be main( internt filter main) Please check these two point and
i think this will solve ur problem.
I am sure some problem in ur Manifest.xml file


Moktarul


On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote:
 Hi Moktarul, What is in the the manifest file, you mean i have to remove
 the . ? i don't think that's it, the . has to be there.

 Thanks guys for the help, Kris is it wrong if somebody try to learn
 something different, out of his field !! Thanks for the help though i
 really appreciate it.







 On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote:
  Hi
  BTDdetecetwithV7Activity in ur android  Manifest file
  activity name=BTDdetecetwithV7Activity/\

  Enjoy
  moktarul

  On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote:
   Hello everyone, Can anyone explain to me what this following error
   means? have anyone faced the same?

   ERROR:

   02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException:
   Unable to start activity ComponentInfo{android.mgo.helloandroid/
   android.mgo.helloandroid.BTDdetecetwithV7Activity}:
   java.lang.NullPointerException

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

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