[android-developers] Re: hello any samsung dev here?

2017-08-23 Thread IT technology


On Wednesday, August 23, 2017 at 12:13:34 PM UTC+5, IT technology wrote:
>
> Hello. 
> how are you allz?
> i,m new here. 
>
> i want to know something. 
> how we change or edit android HW rev? baseband ? 
> i see many changes devices with changed. i want to know that how can we 
> change it?
>
> kindly contact me 
almeerafr...@gmail.com
 

> thanks 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/62dba951-1ec1-41d5-9c46-e643ca9593f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Hello World! I've decided to start dabbling in Android Development, mainly to get more out of my personal devices. If anyone has tips on getting started let me know!

2016-05-15 Thread freephone281
http://imgur.com/czUB0nP this should help a lot :)

On Sunday, May 15, 2016 at 4:09:07 AM UTC-5, freeph...@gmail.com wrote:
>
> After several disappointing attempts at finding a File Explorer capable of 
> accessing EVERY file and partition of my S5's internal storage in a Windows 
> environment, I've decided to install Android Studio and check out their 
> Monitor feature to see if it is able to do this. I read there is a File 
> Explorer feature in there somewhere so hopefully it is robust and sees 
> everything.
>
> At some point in the future I might actively register and try my hand at 
> publishing an app, but that really isn't my primary goal right now.
>
> I'm mainly looking for tips on how I can get the most out of my device 
> using Android Studio from an end-user perspective. I've read the entire AS 
> guide online, but every single line was about coding and compiling, etc. 
> which isn't a surprise honestly, but I just figure someone out there knows 
> a few features to recommend for my case.
>
> Another thing I'd like to get into is somehow creating a ROM directly from 
> my internal storage or using a TWRP backup. This way I can share various 
> stages of my current installation with others without having to become a 
> fully fledged ROM developer.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/80039173-fa56-4059-a4fa-28c9131fe5f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Hello. I am Japanese. Is it possible to divide View used using a conditional expression within a xml file?

2013-06-05 Thread amro alfares
Hello 
As far as i know this is not possible 
you can achieve that at run time 
but not in XML file 
Hope that helps 
Regards 

Amro Alfares

On Tuesday, June 4, 2013 5:15:54 AM UTC+3, マキレット wrote:
>
> Hello.
> I am Japanese.
> Is it possible to divide View used using a conditional expression within
> a xml file?
> The boolean value used by a conditional expression wants then to use
> what the java side defines.
> Thank you for your consideration.
>
> -- 
>  

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Hello. I am Japanese. Is it possible to divide View used using a conditional expression within a xml file?

2013-06-04 Thread rauf qureshi
Xml is only used for layout which will load at run-time.


On Tue, Jun 4, 2013 at 9:16 AM, Jonathan S  wrote:

> Not in XML. You only do that in Java.
>
>
> On Monday, June 3, 2013 10:15:54 PM UTC-4, マキレット wrote:
>>
>> Hello.
>> I am Japanese.
>> Is it possible to divide View used using a conditional expression within
>> a xml file?
>> The boolean value used by a conditional expression wants then to use
>> what the java side defines.
>> Thank you for your consideration.
>>
>> --
>>
>  --
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Hello. I am Japanese. Is it possible to divide View used using a conditional expression within a xml file?

2013-06-04 Thread rauf qureshi
Xml file is not used for layout which will load on run-time.


On Tue, Jun 4, 2013 at 9:16 AM, Jonathan S  wrote:

> Not in XML. You only do that in Java.
>
>
> On Monday, June 3, 2013 10:15:54 PM UTC-4, マキレット wrote:
>>
>> Hello.
>> I am Japanese.
>> Is it possible to divide View used using a conditional expression within
>> a xml file?
>> The boolean value used by a conditional expression wants then to use
>> what the java side defines.
>> Thank you for your consideration.
>>
>> --
>>
>  --
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Hello. I am Japanese. Is it possible to divide View used using a conditional expression within a xml file?

2013-06-03 Thread Jonathan S
Not in XML. You only do that in Java.

On Monday, June 3, 2013 10:15:54 PM UTC-4, マキレット wrote:
>
> Hello.
> I am Japanese.
> Is it possible to divide View used using a conditional expression within
> a xml file?
> The boolean value used by a conditional expression wants then to use
> what the java side defines.
> Thank you for your consideration.
>
> -- 
>  

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Soyer
my program it does a comparison after  splitting the lines, and  The
problem is solved now, it was counting the ',' with the string which
makes the comparison on and off correct, depending on the order of the
strings, so if the string i want to match is in the beginning of the
line then, a comma will be added which makes the condition of the
equality false, and if it comes in the last position in the line then
the comma won't appear so the condition is true, so i had to notice
the comma in the logcat.(the line changes...)








Thanks for your replies guys.
cheers.





On Apr 15, 2:19 pm, Farhan Tariq  wrote:
> String string = "This is what i want to split";
> String[] tokens = string.split(" ");
>
> for(int i =0;i    Log.d("TOKEN : ", tokens[i]);
>
> }
>
> I think you are looking for something like this. This has nothing to do
> with android SDK, you should first google your questions up before you post
> them here
>
>
>
>
>
>
>
> On Sun, Apr 15, 2012 at 2:31 PM, Soyer  wrote:
> > yes i know its a very beginner question, i even dint expect to be the
> > problem with my code, however i tried the other way "String[] t1 =
> > str.split(" ");" and for some reason it's still giving me the same
> > output.
>
> > On Apr 15, 2:22 am, Justin Anderson  wrote:
> > > This isn't an android question...  This is more of a really beginner java
> > > question.
>
> > > That being said, what are you doing to print out the strings?
> >http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#sp...
>
> > > Thanks,
> > > Justin Anderson
> > > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> > > On Sat, Apr 14, 2012 at 2:49 PM, Soyer  wrote:
> > > > Hello everybody, i am trying to split a line to a set of strings, and
> > > > i am using the following bunch of code:
>
> > > > str = hello welcome to your application
> > > > text= X, A
>
> > > >                                 String t1[]=str.split(" ");
> > > >                                 String t2[]=text.split(" ");
>
> > > > the problem is that the strings (the original ones) are printed
> > > > correctly but once it's splatted, it gets printed something like:
>
> > > > 04-14 21:29:56.985: W/System.err(3427):
> > > > ===132[Ljava.lang.String;@4462ac88
>
> > > > before splitting method was: 04-14 21:29:56.985: W/System.err(3427):
> > > > ===133A, X
>
> > > > Please any help will be very appreciated.
>
> > > > cheers.
>
> > > > --
> > > > 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


Re: [android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Farhan Tariq
String string = "This is what i want to split";
String[] tokens = string.split(" ");

for(int i =0;i wrote:

> yes i know its a very beginner question, i even dint expect to be the
> problem with my code, however i tried the other way "String[] t1 =
> str.split(" ");" and for some reason it's still giving me the same
> output.
>
> On Apr 15, 2:22 am, Justin Anderson  wrote:
> > This isn't an android question...  This is more of a really beginner java
> > question.
> >
> > That being said, what are you doing to print out the strings?
> http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#sp...
> >
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Apr 14, 2012 at 2:49 PM, Soyer  wrote:
> > > Hello everybody, i am trying to split a line to a set of strings, and
> > > i am using the following bunch of code:
> >
> > > str = hello welcome to your application
> > > text= X, A
> >
> > > String t1[]=str.split(" ");
> > > String t2[]=text.split(" ");
> >
> > > the problem is that the strings (the original ones) are printed
> > > correctly but once it's splatted, it gets printed something like:
> >
> > > 04-14 21:29:56.985: W/System.err(3427):
> > > ===132[Ljava.lang.String;@4462ac88
> >
> > > before splitting method was: 04-14 21:29:56.985: W/System.err(3427):
> > > ===133A, X
> >
> > > Please any help will be very appreciated.
> >
> > > cheers.
> >
> > > --
> > > 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---a Quick question please

2012-04-15 Thread Soyer
yes i know its a very beginner question, i even dint expect to be the
problem with my code, however i tried the other way "String[] t1 =
str.split(" ");" and for some reason it's still giving me the same
output.

On Apr 15, 2:22 am, Justin Anderson  wrote:
> This isn't an android question...  This is more of a really beginner java
> question.
>
> That being said, what are you doing to print out the 
> strings?http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#sp...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
>
>
>
>
>
>
> On Sat, Apr 14, 2012 at 2:49 PM, Soyer  wrote:
> > Hello everybody, i am trying to split a line to a set of strings, and
> > i am using the following bunch of code:
>
> > str = hello welcome to your application
> > text= X, A
>
> >                                 String t1[]=str.split(" ");
> >                                 String t2[]=text.split(" ");
>
> > the problem is that the strings (the original ones) are printed
> > correctly but once it's splatted, it gets printed something like:
>
> > 04-14 21:29:56.985: W/System.err(3427):
> > ===132[Ljava.lang.String;@4462ac88
>
> > before splitting method was: 04-14 21:29:56.985: W/System.err(3427):
> > ===133A, X
>
> > Please any help will be very appreciated.
>
> > cheers.
>
> > --
> > 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---a Quick question please

2012-04-15 Thread Soyer
Yes i know, it's very beginner, and i dint even expected to be the
problem in my code, until i discovered it, i tried the other way with
"String[] t1 = str.split(" ");"  right after posting my thread, but
for some reason its still giving me the same output :S

On Apr 15, 2:22 am, Justin Anderson  wrote:
> This isn't an android question...  This is more of a really beginner java
> question.
>
> That being said, what are you doing to print out the 
> strings?http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#sp...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
>
>
>
>
>
>
> On Sat, Apr 14, 2012 at 2:49 PM, Soyer  wrote:
> > Hello everybody, i am trying to split a line to a set of strings, and
> > i am using the following bunch of code:
>
> > str = hello welcome to your application
> > text= X, A
>
> >                                 String t1[]=str.split(" ");
> >                                 String t2[]=text.split(" ");
>
> > the problem is that the strings (the original ones) are printed
> > correctly but once it's splatted, it gets printed something like:
>
> > 04-14 21:29:56.985: W/System.err(3427):
> > ===132[Ljava.lang.String;@4462ac88
>
> > before splitting method was: 04-14 21:29:56.985: W/System.err(3427):
> > ===133A, X
>
> > Please any help will be very appreciated.
>
> > cheers.
>
> > --
> > 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, what i have done so far regarding passing a ListView from one activity to another

2012-04-06 Thread Soyer
Alright, thanks alot mate :)


Cheers.

On Apr 3, 9:24 pm, tarun sablok  wrote:
>   Firstly to make tts  work in your current activity use   init()  function
> which initializes the tts engine for  you in the current  activity .
>
>  secondly you can include the speak function in the onListItenClick()   ,
> in which you can get the exat position where it was  cllicked  and get the
> text from the array list by passing the position as the index.
>
> Cheers
>
> Tarun
>
>
>
>
>
>
>
> On Mon, Apr 2, 2012 at 9:11 PM, Soyer  wrote:
> > thanks a lot mate. that worked, i have to resolve the TTS issue now,
> > do have any idea about the second part of my thread(Regarding the
> > TTS)? i think the tts doesn't accept list view, so i thought of making
> > use of a loop to go through the different elements in the listso
> > in this way i can manipulate these elements as well for a better
> > result...
>
> > for(int i=0; i<=fLat.lastIndexOf(fLat);i++){
>
> >          System.out.println("=38"+flat[i]);
> >  }
>
> > so i tried the above loop to print out the elements separately (Just
> > to see this works) but as we know the syntax of flat[] is for an array
> > whilst flat is an arraylist
>
> > any ideas about this matter ?
>
> > On Apr 2, 5:36 pm, tarun sablok  wrote:
> > > You have to use  * flat  = getIntent().
> > > getStringArrayListExtra("fromLat");  * to get the  arraylist which has
> > been
> > > passed  and not  create a new  Intent object to get the list.
> > > *
> > > *
> > > *Cheers *
> > > *Tarun*
> > > *
> > > *
> > > *
> > > *
>
> > > On Mon, Apr 2, 2012 at 3:43 PM, Soyer  wrote:
> > > > Sorry i don't know if i am getting you properly, but this one is
> > > > different then the other, i found the method how to pass a list from
> > > > one activity to another but still for some reason it's not being
> > > > passed and it's returning null.
>
> > > > Don't be so hasty to comment before understanding the thread
> > > > properly !!!
>
> > > > On Apr 2, 12:03 pm, Zsolt Vasvari  wrote:
> > > > > Why spam the list with a new thread?  Your previous one is just
> > below.
> > > >  If
> > > > > you do this, NOBODY is going to help you.
>
> > > > > On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
>
> > > > > > Hello everyone,
>
> > > > > > i posted a question about passing a listview from one activity to
> > > > > > another and this is what i did so far..
>
> > > > > > the first activity is this:
>
> > > > > >   Bundle bundle = new Bundle(1);
>
> > > > > >                 bundle.putStringArrayList("fromLat", fromLat);
>
> > > > > >                         Intent intent1=new
> > > > > > Intent(piecesActivity.this,ttsActivity.class);
>
> > > > > >                         intent1.putStringArrayListExtra("fromLat",
> > > > > > fromLat);
>
> > > > > >                         startActivity(intent1);
> > > > > >                                startActivityForResult(intent1, 2);
>
> > > > > > in The Second Activity is:
>
> > > > > >  ArrayList fLat = new ArrayList ();
>
> > > > > > Intent intent=new Intent();
> > > > > >  fLat=intent.getStringArrayListExtra("fromLat");
>
> > > > > > System.out.println("=38"+fLat);
>
> > > > > > and in the second activity i am trying to make the list as a
> > > > > > text_to_speach:
>
> > > > > >         @Override
> > > > > >                 public void onClick(View v) {
>
> > > > > >                       if (fLat!=null && ((CharSequence)
> > > > fLat).length()>0)
> > > > > > {
> > > > > >                    Toast.makeText(ttsActivity.this, "Saying: " +
> > fLat,
> > > > > > Toast.LENGTH_LONG).show();
> > > > > >                    tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
> > > > > >                       }
>
> > > > > > i don't know why the second activity is giving me
> > NullPointerException
> > > > > > (the fLat is returning Null) and the .speak method is not
> > accepting a
> > > > > > list view... :S
>
> > > > > > I really need an advice...any Idea will be very appreciated.
>
> > > > --
> > > > 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

Re: [android-developers] Re: Hello everyone, what i have done so far regarding passing a ListView from one activity to another

2012-04-03 Thread tarun sablok
  Firstly to make tts  work in your current activity use   init()  function
which initializes the tts engine for  you in the current  activity .

 secondly you can include the speak function in the onListItenClick()   ,
in which you can get the exat position where it was  cllicked  and get the
text from the array list by passing the position as the index.

Cheers

Tarun


On Mon, Apr 2, 2012 at 9:11 PM, Soyer  wrote:

> thanks a lot mate. that worked, i have to resolve the TTS issue now,
> do have any idea about the second part of my thread(Regarding the
> TTS)? i think the tts doesn't accept list view, so i thought of making
> use of a loop to go through the different elements in the listso
> in this way i can manipulate these elements as well for a better
> result...
>
> for(int i=0; i<=fLat.lastIndexOf(fLat);i++){
>
>  System.out.println("=38"+flat[i]);
>  }
>
>
> so i tried the above loop to print out the elements separately (Just
> to see this works) but as we know the syntax of flat[] is for an array
> whilst flat is an arraylist
>
> any ideas about this matter ?
>
> On Apr 2, 5:36 pm, tarun sablok  wrote:
> > You have to use  * flat  = getIntent().
> > getStringArrayListExtra("fromLat");  * to get the  arraylist which has
> been
> > passed  and not  create a new  Intent object to get the list.
> > *
> > *
> > *Cheers *
> > *Tarun*
> > *
> > *
> > *
> > *
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Apr 2, 2012 at 3:43 PM, Soyer  wrote:
> > > Sorry i don't know if i am getting you properly, but this one is
> > > different then the other, i found the method how to pass a list from
> > > one activity to another but still for some reason it's not being
> > > passed and it's returning null.
> >
> > > Don't be so hasty to comment before understanding the thread
> > > properly !!!
> >
> > > On Apr 2, 12:03 pm, Zsolt Vasvari  wrote:
> > > > Why spam the list with a new thread?  Your previous one is just
> below.
> > >  If
> > > > you do this, NOBODY is going to help you.
> >
> > > > On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
> >
> > > > > Hello everyone,
> >
> > > > > i posted a question about passing a listview from one activity to
> > > > > another and this is what i did so far..
> >
> > > > > the first activity is this:
> >
> > > > >   Bundle bundle = new Bundle(1);
> >
> > > > > bundle.putStringArrayList("fromLat", fromLat);
> >
> > > > > Intent intent1=new
> > > > > Intent(piecesActivity.this,ttsActivity.class);
> >
> > > > > intent1.putStringArrayListExtra("fromLat",
> > > > > fromLat);
> >
> > > > > startActivity(intent1);
> > > > >startActivityForResult(intent1, 2);
> >
> > > > > in The Second Activity is:
> >
> > > > >  ArrayList fLat = new ArrayList ();
> >
> > > > > Intent intent=new Intent();
> > > > >  fLat=intent.getStringArrayListExtra("fromLat");
> >
> > > > > System.out.println("=38"+fLat);
> >
> > > > > and in the second activity i am trying to make the list as a
> > > > > text_to_speach:
> >
> > > > > @Override
> > > > > public void onClick(View v) {
> >
> > > > >   if (fLat!=null && ((CharSequence)
> > > fLat).length()>0)
> > > > > {
> > > > >Toast.makeText(ttsActivity.this, "Saying: " +
> fLat,
> > > > > Toast.LENGTH_LONG).show();
> > > > >tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
> > > > >   }
> >
> > > > > i don't know why the second activity is giving me
> NullPointerException
> > > > > (the fLat is returning Null) and the .speak method is not
> accepting a
> > > > > list view... :S
> >
> > > > > I really need an advice...any Idea will be very appreciated.
> >
> > > --
> > > 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/grou

[android-developers] Re: Hello everyone, what i have done so far regarding passing a ListView from one activity to another

2012-04-02 Thread Soyer
thanks a lot mate. that worked, i have to resolve the TTS issue now,
do have any idea about the second part of my thread(Regarding the
TTS)? i think the tts doesn't accept list view, so i thought of making
use of a loop to go through the different elements in the listso
in this way i can manipulate these elements as well for a better
result...

for(int i=0; i<=fLat.lastIndexOf(fLat);i++){

  System.out.println("=38"+flat[i]);
  }


so i tried the above loop to print out the elements separately (Just
to see this works) but as we know the syntax of flat[] is for an array
whilst flat is an arraylist

any ideas about this matter ?

On Apr 2, 5:36 pm, tarun sablok  wrote:
> You have to use  * flat  = getIntent().
> getStringArrayListExtra("fromLat");  * to get the  arraylist which has been
> passed  and not  create a new  Intent object to get the list.
> *
> *
> *Cheers *
> *Tarun*
> *
> *
> *
> *
>
>
>
>
>
>
>
> On Mon, Apr 2, 2012 at 3:43 PM, Soyer  wrote:
> > Sorry i don't know if i am getting you properly, but this one is
> > different then the other, i found the method how to pass a list from
> > one activity to another but still for some reason it's not being
> > passed and it's returning null.
>
> > Don't be so hasty to comment before understanding the thread
> > properly !!!
>
> > On Apr 2, 12:03 pm, Zsolt Vasvari  wrote:
> > > Why spam the list with a new thread?  Your previous one is just below.
> >  If
> > > you do this, NOBODY is going to help you.
>
> > > On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
>
> > > > Hello everyone,
>
> > > > i posted a question about passing a listview from one activity to
> > > > another and this is what i did so far..
>
> > > > the first activity is this:
>
> > > >   Bundle bundle = new Bundle(1);
>
> > > >                 bundle.putStringArrayList("fromLat", fromLat);
>
> > > >                         Intent intent1=new
> > > > Intent(piecesActivity.this,ttsActivity.class);
>
> > > >                         intent1.putStringArrayListExtra("fromLat",
> > > > fromLat);
>
> > > >                         startActivity(intent1);
> > > >                                startActivityForResult(intent1, 2);
>
> > > > in The Second Activity is:
>
> > > >  ArrayList fLat = new ArrayList ();
>
> > > > Intent intent=new Intent();
> > > >  fLat=intent.getStringArrayListExtra("fromLat");
>
> > > > System.out.println("=38"+fLat);
>
> > > > and in the second activity i am trying to make the list as a
> > > > text_to_speach:
>
> > > >         @Override
> > > >                 public void onClick(View v) {
>
> > > >                       if (fLat!=null && ((CharSequence)
> > fLat).length()>0)
> > > > {
> > > >                    Toast.makeText(ttsActivity.this, "Saying: " + fLat,
> > > > Toast.LENGTH_LONG).show();
> > > >                    tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
> > > >                       }
>
> > > > i don't know why the second activity is giving me NullPointerException
> > > > (the fLat is returning Null) and the .speak method is not accepting a
> > > > list view... :S
>
> > > > I really need an advice...any Idea will be very appreciated.
>
> > --
> > 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, what i have done so far regarding passing a ListView from one activity to another

2012-04-02 Thread tarun sablok
You have to use  * flat  = getIntent().
getStringArrayListExtra("fromLat");  * to get the  arraylist which has been
passed  and not  create a new  Intent object to get the list.
*
*
*Cheers *
*Tarun*
*
*
*
*
On Mon, Apr 2, 2012 at 3:43 PM, Soyer  wrote:

> Sorry i don't know if i am getting you properly, but this one is
> different then the other, i found the method how to pass a list from
> one activity to another but still for some reason it's not being
> passed and it's returning null.
>
> Don't be so hasty to comment before understanding the thread
> properly !!!
>
> On Apr 2, 12:03 pm, Zsolt Vasvari  wrote:
> > Why spam the list with a new thread?  Your previous one is just below.
>  If
> > you do this, NOBODY is going to help you.
> >
> >
> >
> >
> >
> >
> >
> > On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
> >
> > > Hello everyone,
> >
> > > i posted a question about passing a listview from one activity to
> > > another and this is what i did so far..
> >
> > > the first activity is this:
> >
> > >   Bundle bundle = new Bundle(1);
> >
> > > bundle.putStringArrayList("fromLat", fromLat);
> >
> > > Intent intent1=new
> > > Intent(piecesActivity.this,ttsActivity.class);
> >
> > > intent1.putStringArrayListExtra("fromLat",
> > > fromLat);
> >
> > > startActivity(intent1);
> > >startActivityForResult(intent1, 2);
> >
> > > in The Second Activity is:
> >
> > >  ArrayList fLat = new ArrayList ();
> >
> > > Intent intent=new Intent();
> > >  fLat=intent.getStringArrayListExtra("fromLat");
> >
> > > System.out.println("=38"+fLat);
> >
> > > and in the second activity i am trying to make the list as a
> > > text_to_speach:
> >
> > > @Override
> > > public void onClick(View v) {
> >
> > >   if (fLat!=null && ((CharSequence)
> fLat).length()>0)
> > > {
> > >Toast.makeText(ttsActivity.this, "Saying: " + fLat,
> > > Toast.LENGTH_LONG).show();
> > >tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
> > >   }
> >
> > > i don't know why the second activity is giving me NullPointerException
> > > (the fLat is returning Null) and the .speak method is not accepting a
> > > list view... :S
> >
> > > I really need an advice...any Idea will be very appreciated.
>
> --
> 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, what i have done so far regarding passing a ListView from one activity to another

2012-04-02 Thread Soyer
Sorry i don't know if i am getting you properly, but this one is
different then the other, i found the method how to pass a list from
one activity to another but still for some reason it's not being
passed and it's returning null.

Don't be so hasty to comment before understanding the thread
properly !!!

On Apr 2, 12:03 pm, Zsolt Vasvari  wrote:
> Why spam the list with a new thread?  Your previous one is just below.  If
> you do this, NOBODY is going to help you.
>
>
>
>
>
>
>
> On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
>
> > Hello everyone,
>
> > i posted a question about passing a listview from one activity to
> > another and this is what i did so far..
>
> > the first activity is this:
>
> >   Bundle bundle = new Bundle(1);
>
> >                 bundle.putStringArrayList("fromLat", fromLat);
>
> >                         Intent intent1=new
> > Intent(piecesActivity.this,ttsActivity.class);
>
> >                         intent1.putStringArrayListExtra("fromLat",
> > fromLat);
>
> >                         startActivity(intent1);
> >                                startActivityForResult(intent1, 2);
>
> > in The Second Activity is:
>
> >  ArrayList fLat = new ArrayList ();
>
> > Intent intent=new Intent();
> >  fLat=intent.getStringArrayListExtra("fromLat");
>
> > System.out.println("=38"+fLat);
>
> > and in the second activity i am trying to make the list as a
> > text_to_speach:
>
> >         @Override
> >                 public void onClick(View v) {
>
> >                       if (fLat!=null && ((CharSequence) fLat).length()>0)
> > {
> >                    Toast.makeText(ttsActivity.this, "Saying: " + fLat,
> > Toast.LENGTH_LONG).show();
> >                    tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
> >                       }
>
> > i don't know why the second activity is giving me NullPointerException
> > (the fLat is returning Null) and the .speak method is not accepting a
> > list view... :S
>
> > I really need an advice...any Idea will be very appreciated.

-- 
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, what i have done so far regarding passing a ListView from one activity to another

2012-04-02 Thread Zsolt Vasvari
Why spam the list with a new thread?  Your previous one is just below.  If 
you do this, NOBODY is going to help you.

On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
>
> Hello everyone, 
>
>
> i posted a question about passing a listview from one activity to 
> another and this is what i did so far.. 
>
> the first activity is this: 
>
>   Bundle bundle = new Bundle(1); 
>
> bundle.putStringArrayList("fromLat", fromLat); 
>
>
>
> Intent intent1=new 
> Intent(piecesActivity.this,ttsActivity.class); 
>
> intent1.putStringArrayListExtra("fromLat", 
> fromLat); 
>
> startActivity(intent1); 
>startActivityForResult(intent1, 2); 
>
> in The Second Activity is: 
>
>
>  ArrayList fLat = new ArrayList (); 
>
> Intent intent=new Intent(); 
>  fLat=intent.getStringArrayListExtra("fromLat"); 
>
> System.out.println("=38"+fLat); 
>
>
>
> and in the second activity i am trying to make the list as a 
> text_to_speach: 
>
> @Override 
> public void onClick(View v) { 
>
>
>   if (fLat!=null && ((CharSequence) fLat).length()>0) 
> { 
>Toast.makeText(ttsActivity.this, "Saying: " + fLat, 
> Toast.LENGTH_LONG).show(); 
>tts.speak(fLat, TextToSpeech.QUEUE_ADD, null); 
>   } 
>
>
>
>
> i don't know why the second activity is giving me NullPointerException 
> (the fLat is returning Null) and the .speak method is not accepting a 
> list view... :S 
>
>
> I really need an advice...any Idea will be very appreciated. 
>
>
>
>

-- 
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, Is there anyway we can pass a listView from one activity to another

2012-04-01 Thread Soyer
Hello there,

the part of my code which dispatch the string form the first activity
to the second is :
  if (BluetoothDevice.ACTION_FOUND.equals(action)) {
// Get the BluetoothDevice object from the Intent
BluetoothDevice device =
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
// If it's already paired, skip it, because it's been
listed already
if (device.getBondState() !=
BluetoothDevice.BOND_BONDED) {
mNewDevicesArrayAdapter.add(device.getName());
x=device.getName();
fromLat.add(x);
}
// When discovery is finished, change the Activity title
} else if
(BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
setProgressBarIndeterminateVisibility(false);
setTitle(R.string.Scanning_is_Over);
Bundle bundle = new Bundle(1);
String b=fromLat.toString();
bundle.putString("fromLat",b);
Intent intent1=new
Intent(AllthepiecesActivity.this,ttsActivity.class);
intent1.putExtras(bundle);
startActivity(intent1);
   startActivityForResult(intent1, 2);
and the TTS code is:
Bundle extras = this.getIntent().getExtras();
 final String fLat=extras.getString("fromLat");
 inputText.setText(fLat);
and
  if (text!=null && text.length()>0) {
   Toast.makeText(ttsActivity.this, "Saying: " +
text,
Toast.LENGTH_LONG).show();
   tts.speak(text, TextToSpeech.QUEUE_ADD, null);
  }
//to go to the first activity.
Intent i=new
Intent(ttsActivity.this,AllthepiecesActivity.class);
startActivity(i);

On Apr 1, 5:02 pm, lbendlin  wrote:
> Normally a listview is fed by an adapter. There is nothing stopping you
> from using the same adapter in different activities.
>
>
>
>
>
>
>
> On Sunday, April 1, 2012 8:53:45 AM UTC-4, Soyer wrote:
>
> > I am trying to pass a list view from one activity to another and use
> > it as a Text_to_speech.
>
> > I converted the list view to a string (Using toString()) in the first
> > activity and did work, but it's not so convenient since i can't
> > manipulate the elements in the list(I can't use them)...i thought of
> > convert the String back to a listview but i thing no such method can
> > do that.
>
> > Any ideas ?

-- 
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, Is there anyway we can pass a listView from one activity to another

2012-04-01 Thread lbendlin
Normally a listview is fed by an adapter. There is nothing stopping you 
from using the same adapter in different activities.

On Sunday, April 1, 2012 8:53:45 AM UTC-4, Soyer wrote:
>
> I am trying to pass a list view from one activity to another and use 
> it as a Text_to_speech. 
>
> I converted the list view to a string (Using toString()) in the first 
> activity and did work, but it's not so convenient since i can't 
> manipulate the elements in the list(I can't use them)...i thought of 
> convert the String back to a listview but i thing no such method can 
> do that. 
>
>
>
>
> Any ideas ? 
>

-- 
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 have a small Question.about Text_to_Speech activity.

2012-03-31 Thread Soyer
Hello Anirudh,

the thing is that i am using two activities, so the string  is getting
dispatched from the first activity...the string is an array list but
since for some reason, the list is not getting carried to the second
activity and used in the TTS method i converted the array list to a
string by using the method tostring().


so basically my problem would be solved if i know why the array list
has to be converted to a string before getting dispatched...


the part of my code which dispatch the string form the first activity
to the second is :

  if (BluetoothDevice.ACTION_FOUND.equals(action)) {
// Get the BluetoothDevice object from the Intent
BluetoothDevice device =
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
// If it's already paired, skip it, because it's been
listed already
if (device.getBondState() !=
BluetoothDevice.BOND_BONDED) {
mNewDevicesArrayAdapter.add(device.getName());
x=device.getName();


fromLat.add(x);


}
// When discovery is finished, change the Activity title
} else if
(BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
setProgressBarIndeterminateVisibility(false);
setTitle(R.string.Scanning_is_Over);


Bundle bundle = new Bundle(1);
String b=fromLat.toString();

bundle.putString("fromLat",b);
Intent intent1=new
Intent(AllthepiecesActivity.this,ttsActivity.class);
intent1.putExtras(bundle);
startActivity(intent1);
   startActivityForResult(intent1, 2);


and the TTS code is:

Bundle extras = this.getIntent().getExtras();
 final String fLat=extras.getString("fromLat");
 inputText.setText(fLat);

and



  if (text!=null && text.length()>0) {
   Toast.makeText(ttsActivity.this, "Saying: " + text,
Toast.LENGTH_LONG).show();
   tts.speak(text, TextToSpeech.QUEUE_ADD, null);
  }
//to go to the first activity.
Intent i=new 
Intent(ttsActivity.this,AllthepiecesActivity.class);
startActivity(i);

On Mar 31, 4:32 pm, Anirudh Loya  wrote:
> Use If else.. !! When there is braces it shouldnt speak out !
>
>
>
>
>
>
>
>
>
> On Sat, Mar 31, 2012 at 5:23 PM, Soyer  wrote:
> > Hello everyone,
>
> > I am using a Text_To_Speech in my application, which is detecting
> > bluetooth signal and give it as a vocal feedback, the application is
> > perfectly working, is just the given list of devices are given in
> > brackets hence the text_to_speech is saying: Left Bracket,...,
> > Right bracket.
>
> > I wonder if there is a way to remove the brackets ?
>
> > --
> > 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
>
> --
>
> Thank you
>
> Anirudh Loya | Android Developer**
>
> Desk: +9140-30681824 | Mobile: +91*9246561265*
>
> *Love your Job but don't Love your company, Because you may not know when
> your company stops loving you.--  Voice Of Love*

-- 
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 couldn't figure out what this error in the logcat means!!!

2012-03-31 Thread Soyer
:):)


--Soyer.

On Mar 28, 9:55 pm, Kostya Vasilyev  wrote:
> I second that motion.
>
> Taking Vicodin Ex with a glass of red wine after my own deviated septum
> surgery some twenty years ago was great :)
>
> -- K
>
> On 03/28/2012 09:36 PM, Mark Phillips wrote:
>
>
>
>
>
>
>
>
>
> > Penalty for wrong answer: you have to share your pain meds ;)
>
> > Mark
>
> > On Mar 24, 2012 6:45 PM, "Justin Anderson"  > > wrote:
>
> >     Kostya,
>
> >     Thanks for catching my mistake!  I had surgery for a deviated
> >     septum a couple days ago and I'm on some pretty heavy meds...
> >     Serves me right for trying to answer some questions while I'm
> >     obviously so very loopy!  :-)
>
> >     Thanks,
> >     Justin Anderson
> >     MagouyaWare Developer
> >    http://sites.google.com/site/magouyaware

-- 
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 couldn't figure out what this error in the logcat means!!!

2012-03-28 Thread Kostya Vasilyev

I second that motion.

Taking Vicodin Ex with a glass of red wine after my own deviated septum 
surgery some twenty years ago was great :)


-- K

On 03/28/2012 09:36 PM, Mark Phillips wrote:


Penalty for wrong answer: you have to share your pain meds ;)

Mark

On Mar 24, 2012 6:45 PM, "Justin Anderson" > wrote:


Kostya,

Thanks for catching my mistake!  I had surgery for a deviated
septum a couple days ago and I'm on some pretty heavy meds...
Serves me right for trying to answer some questions while I'm
obviously so very loopy!  :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



--
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 couldn't figure out what this error in the logcat means!!!

2012-03-28 Thread Mark Phillips
Penalty for wrong answer: you have to share your pain meds ;)

Mark
On Mar 24, 2012 6:45 PM, "Justin Anderson"  wrote:

> Kostya,
>
> Thanks for catching my mistake!  I had surgery for a deviated septum a
> couple days ago and I'm on some pretty heavy meds... Serves me right for
> trying to answer some questions while I'm obviously so very loopy!  :-)
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> 2012/3/24 Kostya Vasilyev 
>
>> 25 марта 2012 г. 0:55 пользователь Justin Anderson
>>  написал:
>> >> Apen sorry i dint notice ur suggestion, no it's not about the name,
>> >> hmm i think it's something wrong with the order of the blocks...
>> >
>> >
>> > No, it IS about the name... Apen was correct (and that is what I was
>> trying
>> > to say before, but was REALLY tired so I apologize for the incoherent
>> > replies).
>> >
>> >
>> >> mNewDevicesArrayAdapter = new ArrayAdapter(this,
>> >> R.layout.textviewlayout);
>> >
>> >
>> > That is incorrect... You should not be passing in an R.layout here...
>> you
>> > should be passing in an R.id
>>
>> No.
>>
>> The two-argument constructor takes a *layout* id:
>>
>>
>> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96
>>
>> and it's assumed that the layout consists of just one TextView at the
>> root.
>>
>>
>> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378
>>
>> So:
>>
>> res/layout/item_simple.xml:
>>
>> 
>> 
>>
>> and then:
>>
>> new ArrayAdapter(this, R.layout.item_simple)
>>
>> Constructor #2 takes a layout id and a view id:
>>
>>
>> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107
>>
>> and uses findViewId with the last (third) parameter locate the text
>> view within the layout:
>>
>>
>> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381
>>
>> res/layout/item_complex:
>>
>> 
>> 
>>  > 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

Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-28 Thread Justin Anderson
>
> Justin i hope u ll get will soon mate, take care, cheers.
>
Thanks, I'm better now... I can actually breathe and I'm no longer on pain
meds, so hopefully next time my "help" will actually help...  :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


2012/3/28 Soyer 

> Thanks guys for the help, the problem was solved just by making two
> different classes, one for buttons and listviews and the other is just
> for textview...thanks again...
>
> Justin i hope u ll get will soon mate, take care, cheers.
>
>
> On Mar 25, 5:43 am, Justin Anderson  wrote:
> > Kostya,
> >
> > Thanks for catching my mistake!  I had surgery for a deviated septum a
> > couple days ago and I'm on some pretty heavy meds... Serves me right for
> > trying to answer some questions while I'm obviously so very loopy!  :-)
> >
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
> >
> > 2012/3/24 Kostya Vasilyev 
> >
> >
> >
> >
> >
> >
> >
> > > 25 марта 2012 г. 0:55 пользователь Justin Anderson
> > >  написал:
> > > >> Apen sorry i dint notice ur suggestion, no it's not about the name,
> > > >> hmm i think it's something wrong with the order of the blocks...
> >
> > > > No, it IS about the name... Apen was correct (and that is what I was
> > > trying
> > > > to say before, but was REALLY tired so I apologize for the incoherent
> > > > replies).
> >
> > > >> mNewDevicesArrayAdapter = new ArrayAdapter(this,
> > > >> R.layout.textviewlayout);
> >
> > > > That is incorrect... You should not be passing in an R.layout
> here... you
> > > > should be passing in an R.id
> >
> > > No.
> >
> > > The two-argument constructor takes a *layout* id:
> >
> > >https://github.com/android/platform_frameworks_base/blob/master/core/.
> ..
> >
> > > and it's assumed that the layout consists of just one TextView at the
> root.
> >
> > >https://github.com/android/platform_frameworks_base/blob/master/core/.
> ..
> >
> > > So:
> >
> > > res/layout/item_simple.xml:
> >
> > > 
> > > 
> >
> > > and then:
> >
> > > new ArrayAdapter(this, R.layout.item_simple)
> >
> > > Constructor #2 takes a layout id and a view id:
> >
> > >https://github.com/android/platform_frameworks_base/blob/master/core/.
> ..
> >
> > > and uses findViewId with the last (third) parameter locate the text
> > > view within the layout:
> >
> > >https://github.com/android/platform_frameworks_base/blob/master/core/.
> ..
> >
> > > res/layout/item_complex:
> >
> > > 
> > > 
> > >   > > 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 couldn't figure out what this error in the logcat means!!!

2012-03-28 Thread Soyer
Thanks guys for the help, the problem was solved just by making two
different classes, one for buttons and listviews and the other is just
for textview...thanks again...

Justin i hope u ll get will soon mate, take care, cheers.


On Mar 25, 5:43 am, Justin Anderson  wrote:
> Kostya,
>
> Thanks for catching my mistake!  I had surgery for a deviated septum a
> couple days ago and I'm on some pretty heavy meds... Serves me right for
> trying to answer some questions while I'm obviously so very loopy!  :-)
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> 2012/3/24 Kostya Vasilyev 
>
>
>
>
>
>
>
> > 25 марта 2012 г. 0:55 пользователь Justin Anderson
> >  написал:
> > >> Apen sorry i dint notice ur suggestion, no it's not about the name,
> > >> hmm i think it's something wrong with the order of the blocks...
>
> > > No, it IS about the name... Apen was correct (and that is what I was
> > trying
> > > to say before, but was REALLY tired so I apologize for the incoherent
> > > replies).
>
> > >> mNewDevicesArrayAdapter = new ArrayAdapter(this,
> > >> R.layout.textviewlayout);
>
> > > That is incorrect... You should not be passing in an R.layout here... you
> > > should be passing in an R.id
>
> > No.
>
> > The two-argument constructor takes a *layout* id:
>
> >https://github.com/android/platform_frameworks_base/blob/master/core/...
>
> > and it's assumed that the layout consists of just one TextView at the root.
>
> >https://github.com/android/platform_frameworks_base/blob/master/core/...
>
> > So:
>
> > res/layout/item_simple.xml:
>
> > 
> > 
>
> > and then:
>
> > new ArrayAdapter(this, R.layout.item_simple)
>
> > Constructor #2 takes a layout id and a view id:
>
> >https://github.com/android/platform_frameworks_base/blob/master/core/...
>
> > and uses findViewId with the last (third) parameter locate the text
> > view within the layout:
>
> >https://github.com/android/platform_frameworks_base/blob/master/core/...
>
> > res/layout/item_complex:
>
> > 
> > 
> >   > 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 couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Justin Anderson
Kostya,

Thanks for catching my mistake!  I had surgery for a deviated septum a
couple days ago and I'm on some pretty heavy meds... Serves me right for
trying to answer some questions while I'm obviously so very loopy!  :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


2012/3/24 Kostya Vasilyev 

> 25 марта 2012 г. 0:55 пользователь Justin Anderson
>  написал:
> >> Apen sorry i dint notice ur suggestion, no it's not about the name,
> >> hmm i think it's something wrong with the order of the blocks...
> >
> >
> > No, it IS about the name... Apen was correct (and that is what I was
> trying
> > to say before, but was REALLY tired so I apologize for the incoherent
> > replies).
> >
> >
> >> mNewDevicesArrayAdapter = new ArrayAdapter(this,
> >> R.layout.textviewlayout);
> >
> >
> > That is incorrect... You should not be passing in an R.layout here... you
> > should be passing in an R.id
>
> No.
>
> The two-argument constructor takes a *layout* id:
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96
>
> and it's assumed that the layout consists of just one TextView at the root.
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378
>
> So:
>
> res/layout/item_simple.xml:
>
> 
> 
>
> and then:
>
> new ArrayAdapter(this, R.layout.item_simple)
>
> Constructor #2 takes a layout id and a view id:
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107
>
> and uses findViewId with the last (third) parameter locate the text
> view within the layout:
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381
>
> res/layout/item_complex:
>
> 
> 
>   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 couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Kostya Vasilyev
25 марта 2012 г. 0:55 пользователь Justin Anderson
 написал:
>> Apen sorry i dint notice ur suggestion, no it's not about the name,
>> hmm i think it's something wrong with the order of the blocks...
>
>
> No, it IS about the name... Apen was correct (and that is what I was trying
> to say before, but was REALLY tired so I apologize for the incoherent
> replies).
>
>
>> mNewDevicesArrayAdapter = new ArrayAdapter(this,
>> R.layout.textviewlayout);
>
>
> That is incorrect... You should not be passing in an R.layout here... you
> should be passing in an R.id

No.

The two-argument constructor takes a *layout* id:

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96

and it's assumed that the layout consists of just one TextView at the root.

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378

So:

res/layout/item_simple.xml:




and then:

new ArrayAdapter(this, R.layout.item_simple)

Constructor #2 takes a layout id and a view id:

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107

and uses findViewId with the last (third) parameter locate the text
view within the layout:

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381

res/layout/item_complex:



 http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-24 Thread Justin Anderson
>
> Apen sorry i dint notice ur suggestion, no it's not about the name,
> hmm i think it's something wrong with the order of the blocks...
>

No, it IS about the name... Apen was correct (and that is what I was trying
to say before, but was REALLY tired so I apologize for the incoherent
replies).

mNewDevicesArrayAdapter = new ArrayAdapter(this,
> R.layout.textviewlayout);
>

That is incorrect... You should not be passing in an R.layout here... you
should be passing in an R.id

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Mar 23, 2012 at 2:58 AM, Soyer  wrote:

> Apen sorry i dint notice ur suggestion, no it's not about the name,
> hmm i think it's something wrong with the order of the blocks...
>
> On Mar 23, 12:35 am, Soyer  wrote:
> > Hello Justin,
> >
> > thanks for the reply... yes it is in that form,
> >
> >  "extView newDevicesListView = (TextView)
> > findViewById(R.id.title_paired_devices); "
> >
> > On Mar 22, 9:17 pm, Justin Anderson  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Sorry... Didn't notice your ArrayAdapter constructor... You have more
> the
> > > correct NUMBER of arguments, but you are specifying the layout... not
> the
> > > id of the textview.
> >
> > > If your textview looks like this:
> >
> > > 
> >
> > > then the second parameter in your constructor should be
> R.id.my_textView
> >
> > > Thanks,
> > > Justin Anderson
> > > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
> >
> > > On Thu, Mar 22, 2012 at 11:13 AM, Justin Anderson <
> magouyaw...@gmail.com>wrote:
> >
> > > > Did you bother to look at the documentation?  An ArrayAdapter
> constructor
> > > > takes more than just one argument...  One of them happens to be the
> id of a
> > > > text view:
> >
> > > >
> http://developer.android.com/reference/android/widget/ArrayAdapter.ht...
> >
> > > > Thanks,
> > > > Justin Anderson
> > > > MagouyaWare Developer
> > > >http://sites.google.com/site/magouyaware
> >
> > > > On Thu, Mar 22, 2012 at 4:31 AM, Soyer  wrote:
> >
> > > >> 03-22 06:23:21.295: E/AndroidRuntime(1941):
> > > >> java.lang.IllegalStateException: ArrayAdapter requires the resource
> ID
> > > >> to be a TextView
> >
> > > >> the problem is in this couple of lines:
> >
> > > >>  mNewDevicesArrayAdapter = new ArrayAdapter(this,
> > > >> R.layout.textviewlayout);
> >
> > > >>// Find and set up the ListView for newly discovered devices
> > > >>   ListView newDevicesListView = (ListView)
> > > >> findViewById(R.id.new_devices);
> > > >>//TextView newDevicesListView = (TextView)
> > > >> findViewById(R.id.title_paired_devices);
> > > >>   newDevicesListView.setAdapter(mNewDevicesArrayAdapter);
> >
> > > >> now when i try to set the arrayadapter for a list view, it says that
> > > >> the arrayadapter requires a textview, and this message appear asking
> > > >> to assign an ID for the textView though the ID is assigned, so i did
> > > >> is i put the textview in a separate file, however the arrayadapter
> is
> > > >> still assigned to a list view...when i try to assign it to a
> textview,
> > > >> the method setAdapter won't be in the list of the methods supported
> by
> > > >> the textview element.
> >
> > > >> --
> > > >> 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:), About USB Debugging driver.

2012-03-23 Thread Soyer
hmm ok i will try these suggestions out, thanks a lot :)

On Mar 23, 7:21 pm, Kostya Vasilyev  wrote:
> Or edit the standard driver's .inf file, entering the UPnP ids for your
> device...
>
> Which is not any different from entering them in the udev rules file on
> Linux...
>
> 23.03.2012 19:14, Mark Murphy пишет:
>
> > Contact your device manufacturer for assistance, I guess.
>
> > Or, move to OS X or Linux and away from Windows.:-)
>
> --
> Kostya Vasilyev

-- 
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:), About USB Debugging driver.

2012-03-23 Thread Kostya Vasilyev
Or edit the standard driver's .inf file, entering the UPnP ids for your 
device...


Which is not any different from entering them in the udev rules file on 
Linux...


23.03.2012 19:14, Mark Murphy пишет:

Contact your device manufacturer for assistance, I guess.

Or, move to OS X or Linux and away from Windows.:-)


--
Kostya Vasilyev

--
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:), About USB Debugging driver.

2012-03-23 Thread Mark Murphy
Contact your device manufacturer for assistance, I guess.

Or, move to OS X or Linux and away from Windows. :-)

On Fri, Mar 23, 2012 at 11:13 AM, Soyer  wrote:
> Hello Mark, i found that the issue wasn't with uninstalled driver, the
> driver is installed (Using: Android SDK Manger) but once i want to
> update it, it says that the Windows could not find driver software for
> your device.
> the drivers i have in the folder are: i386 and amd64
>
>
>
>
> On Mar 23, 5:20 pm, Mohamed Gougam  wrote:
>> Thanks a lot. :)
>>
>> On Fri, Mar 23, 2012 at 5:03 PM, Mark Murphy wrote:
>>
>>
>>
>>
>>
>>
>>
>> >http://developer.android.com/sdk/oem-usb.html
>>
>> > On Fri, Mar 23, 2012 at 8:54 AM, Soyer  wrote:
>> > > Hello there,
>>
>> > > Does anyone knows from where can i download the driver to use the USB
>> > > Debugging ?
>>
>> > > Thanks.
>>
>> > > --
>> > > 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
>>
>> > --
>> > Mark Murphy (a Commons Guy)
>> >http://commonsware.com|http://github.com/commonsguy
>> >http://commonsware.com/blog|http://twitter.com/commonsguy
>>
>> > _Android Programming Tutorials_ Version 4.1 Available!
>>
>> > --
>> > 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.1 Available!

-- 
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:), About USB Debugging driver.

2012-03-23 Thread Soyer
Hello Mark, i found that the issue wasn't with uninstalled driver, the
driver is installed (Using: Android SDK Manger) but once i want to
update it, it says that the Windows could not find driver software for
your device.
the drivers i have in the folder are: i386 and amd64




On Mar 23, 5:20 pm, Mohamed Gougam  wrote:
> Thanks a lot. :)
>
> On Fri, Mar 23, 2012 at 5:03 PM, Mark Murphy wrote:
>
>
>
>
>
>
>
> >http://developer.android.com/sdk/oem-usb.html
>
> > On Fri, Mar 23, 2012 at 8:54 AM, Soyer  wrote:
> > > Hello there,
>
> > > Does anyone knows from where can i download the driver to use the USB
> > > Debugging ?
>
> > > Thanks.
>
> > > --
> > > 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
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 4.1 Available!
>
> > --
> > 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 couldn't figure out what this error in the logcat means!!!

2012-03-23 Thread Soyer
Apen sorry i dint notice ur suggestion, no it's not about the name,
hmm i think it's something wrong with the order of the blocks...

On Mar 23, 12:35 am, Soyer  wrote:
> Hello Justin,
>
> thanks for the reply... yes it is in that form,
>
>  "extView newDevicesListView = (TextView)
> findViewById(R.id.title_paired_devices); "
>
> On Mar 22, 9:17 pm, Justin Anderson  wrote:
>
>
>
>
>
>
>
> > Sorry... Didn't notice your ArrayAdapter constructor... You have more the
> > correct NUMBER of arguments, but you are specifying the layout... not the
> > id of the textview.
>
> > If your textview looks like this:
>
> > 
>
> > then the second parameter in your constructor should be R.id.my_textView
>
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> > On Thu, Mar 22, 2012 at 11:13 AM, Justin Anderson 
> > wrote:
>
> > > Did you bother to look at the documentation?  An ArrayAdapter constructor
> > > takes more than just one argument...  One of them happens to be the id of 
> > > a
> > > text view:
>
> > >http://developer.android.com/reference/android/widget/ArrayAdapter.ht...
>
> > > Thanks,
> > > Justin Anderson
> > > MagouyaWare Developer
> > >http://sites.google.com/site/magouyaware
>
> > > On Thu, Mar 22, 2012 at 4:31 AM, Soyer  wrote:
>
> > >> 03-22 06:23:21.295: E/AndroidRuntime(1941):
> > >> java.lang.IllegalStateException: ArrayAdapter requires the resource ID
> > >> to be a TextView
>
> > >> the problem is in this couple of lines:
>
> > >>  mNewDevicesArrayAdapter = new ArrayAdapter(this,
> > >> R.layout.textviewlayout);
>
> > >>        // Find and set up the ListView for newly discovered devices
> > >>       ListView newDevicesListView = (ListView)
> > >> findViewById(R.id.new_devices);
> > >>    //    TextView newDevicesListView = (TextView)
> > >> findViewById(R.id.title_paired_devices);
> > >>       newDevicesListView.setAdapter(mNewDevicesArrayAdapter);
>
> > >> now when i try to set the arrayadapter for a list view, it says that
> > >> the arrayadapter requires a textview, and this message appear asking
> > >> to assign an ID for the textView though the ID is assigned, so i did
> > >> is i put the textview in a separate file, however the arrayadapter is
> > >> still assigned to a list view...when i try to assign it to a textview,
> > >> the method setAdapter won't be in the list of the methods supported by
> > >> the textview element.
>
> > >> --
> > >> 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 couldn't figure out what this error in the logcat means!!!

2012-03-23 Thread apen sela
I think you should try using id instead of layout.
Like
  mNewDevicesArrayAdapter = new ArrayAdapter(this, 
R.*Id*.textviewlayout); 

hope it works. :)

On Thursday, 22 March 2012 10:31:16 UTC, Soyer wrote:
>
> 03-22 06:23:21.295: E/AndroidRuntime(1941): 
> java.lang.IllegalStateException: ArrayAdapter requires the resource ID 
> to be a TextView 
>
>
>
> the problem is in this couple of lines: 
>
>   mNewDevicesArrayAdapter = new ArrayAdapter(this, 
> R.layout.textviewlayout); 
>
>
>
> // Find and set up the ListView for newly discovered devices 
>ListView newDevicesListView = (ListView) 
> findViewById(R.id.new_devices); 
> //TextView newDevicesListView = (TextView) 
> findViewById(R.id.title_paired_devices); 
>newDevicesListView.setAdapter(mNewDevicesArrayAdapter); 
>
>
> now when i try to set the arrayadapter for a list view, it says that 
> the arrayadapter requires a textview, and this message appear asking 
> to assign an ID for the textView though the ID is assigned, so i did 
> is i put the textview in a separate file, however the arrayadapter is 
> still assigned to a list view...when i try to assign it to a textview, 
> the method setAdapter won't be in the list of the methods supported by 
> the textview element. 
>
>
>
>

-- 
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 couldn't figure out what this error in the logcat means!!!

2012-03-22 Thread Soyer
Hello Justin,


thanks for the reply... yes it is in that form,

 "extView newDevicesListView = (TextView)
findViewById(R.id.title_paired_devices); "


On Mar 22, 9:17 pm, Justin Anderson  wrote:
> Sorry... Didn't notice your ArrayAdapter constructor... You have more the
> correct NUMBER of arguments, but you are specifying the layout... not the
> id of the textview.
>
> If your textview looks like this:
>
> 
>
> then the second parameter in your constructor should be R.id.my_textView
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Thu, Mar 22, 2012 at 11:13 AM, Justin Anderson 
> wrote:
>
>
>
>
>
>
>
> > Did you bother to look at the documentation?  An ArrayAdapter constructor
> > takes more than just one argument...  One of them happens to be the id of a
> > text view:
>
> >http://developer.android.com/reference/android/widget/ArrayAdapter.ht...
>
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developer
> >http://sites.google.com/site/magouyaware
>
> > On Thu, Mar 22, 2012 at 4:31 AM, Soyer  wrote:
>
> >> 03-22 06:23:21.295: E/AndroidRuntime(1941):
> >> java.lang.IllegalStateException: ArrayAdapter requires the resource ID
> >> to be a TextView
>
> >> the problem is in this couple of lines:
>
> >>  mNewDevicesArrayAdapter = new ArrayAdapter(this,
> >> R.layout.textviewlayout);
>
> >>        // Find and set up the ListView for newly discovered devices
> >>       ListView newDevicesListView = (ListView)
> >> findViewById(R.id.new_devices);
> >>    //    TextView newDevicesListView = (TextView)
> >> findViewById(R.id.title_paired_devices);
> >>       newDevicesListView.setAdapter(mNewDevicesArrayAdapter);
>
> >> now when i try to set the arrayadapter for a list view, it says that
> >> the arrayadapter requires a textview, and this message appear asking
> >> to assign an ID for the textView though the ID is assigned, so i did
> >> is i put the textview in a separate file, however the arrayadapter is
> >> still assigned to a list view...when i try to assign it to a textview,
> >> the method setAdapter won't be in the list of the methods supported by
> >> the textview element.
>
> >> --
> >> 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 for all

2012-03-18 Thread kalandar
android 4.0 is supporting arabic...
try 4.0 devices

-- 
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 Mohamed Gougam
yes it's:

 "// Get a set of currently paired devices
Set 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  wrote:

> Uhmthe "root" of the error is at that line 87 of your BTD...Activity.
> What's at that line?
>
> is it: Set 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 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  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 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 
 wrote:

> 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

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: Set 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 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  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 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 wrote:
>>>
 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.bluetoot

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  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-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-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  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  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 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 wrote:
>>>
 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.

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  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 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 wrote:
>>
>>> 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
>>> pu

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  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 wrote:
>
>> 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 ArrayAdapter mPairedDevicesArrayAdapter;
>> private ArrayAdapter 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 scanButto

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

> 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 ArrayAdapter mPairedDevicesArrayAdapter;
> private ArrayAdapter 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

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 ArrayAdapter mPairedDevicesArrayAdapter;
private ArrayAdapter 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 ArrayAdapter(this,
R.layout.main);
mNewDevicesArrayAdapter = new ArrayAdapter(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 discovered devices
Lis

[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  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  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:
>
> > 
> > http://schemas.android.com/apk/res/android";
> >     package="android.mgo.helloandroid"
> >     android:versionCode="1"
> >     android:versionName="1.0" >
>
> >     
>
> >      >         android:icon="@drawable/ic_launcher"
> >         android:label="@string/app_name" >
> >          >             android:label="@string/app_name"
> >             android:name=".BTDdetecetwithV7Activity">
> >             
> >                 
>
> >                 
> >             
> >         
> >     
> >             
> >              > android:name="android.permission.BLUETOOTH_ADMIN"/>
> > 
>
> > On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam  wrote:
> > > Hello  moktarul,
>
> > > Thanks alot, i will do that, and let you know :)
>
> > > On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam wrote:
>
> > >> sorry, its Activity Intent filter not internt filter
> > >> Moktarul
>
> > >> On Feb 21, 12:42 pm, moktarul anam  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  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 
> > >> wrote:
> > >> > > > Hi
> > >> > > > BTDdetecetwithV7Activity in ur android  Manifest file
> > >> > > > \
>
> > >> > > > Enjoy
> > >> > > > moktarul
>
> > >> > > > On Feb 20, 12:26 am, Soyer  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  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:
>
> 
> http://schemas.android.com/apk/res/android";
>     package="android.mgo.helloandroid"
>     android:versionCode="1"
>     android:versionName="1.0" >
>
>     
>
>              android:icon="@drawable/ic_launcher"
>         android:label="@string/app_name" >
>                      android:label="@string/app_name"
>             android:name=".BTDdetecetwithV7Activity">
>             
>                 
>
>                 
>             
>         
>     
>             
>              android:name="android.permission.BLUETOOTH_ADMIN"/>
> 
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam  wrote:
> > Hello  moktarul,
>
> > Thanks alot, i will do that, and let you know :)
>
> > On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam wrote:
>
> >> sorry, its Activity Intent filter not internt filter
> >> Moktarul
>
> >> On Feb 21, 12:42 pm, moktarul anam  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  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 
> >> wrote:
> >> > > > Hi
> >> > > > BTDdetecetwithV7Activity in ur android  Manifest file
> >> > > > \
>
> >> > > > Enjoy
> >> > > > moktarul
>
> >> > > > On Feb 20, 12:26 am, Soyer  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


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:


http://schemas.android.com/apk/res/android";
package="android.mgo.helloandroid"
android:versionCode="1"
android:versionName="1.0" >
















On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam  wrote:

> Hello  moktarul,
>
> Thanks alot, i will do that, and let you know :)
>
>
> On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam wrote:
>
>> sorry, its Activity Intent filter not internt filter
>> Moktarul
>>
>> On Feb 21, 12:42 pm, moktarul anam  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  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 
>> wrote:
>> > > > Hi
>> > > > BTDdetecetwithV7Activity in ur android  Manifest file
>> > > > \
>> >
>> > > > Enjoy
>> > > > moktarul
>> >
>> > > > On Feb 20, 12:26 am, Soyer  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

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

> sorry, its Activity Intent filter not internt filter
> Moktarul
>
> On Feb 21, 12:42 pm, moktarul anam  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  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 
> wrote:
> > > > Hi
> > > > BTDdetecetwithV7Activity in ur android  Manifest file
> > > > \
> >
> > > > Enjoy
> > > > moktarul
> >
> > > > On Feb 20, 12:26 am, Soyer  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  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  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  wrote:
> > > Hi
> > > BTDdetecetwithV7Activity in ur android  Manifest file
> > > \
>
> > > Enjoy
> > > moktarul
>
> > > On Feb 20, 12:26 am, Soyer  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


[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  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  wrote:
> > Hi
> > BTDdetecetwithV7Activity in ur android  Manifest file
> > \
>
> > Enjoy
> > moktarul
>
> > On Feb 20, 12:26 am, Soyer  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 Mohamed Gougam
Alright will do that.thanks.


On Tue, Feb 21, 2012 at 1:51 AM, Kristopher Micinski  wrote:

> On Mon, Feb 20, 2012 at 2:06 PM, Mohamed Gougam 
> 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

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

> Hi
> BTDdetecetwithV7Activity in ur android  Manifest file
> \
>
> Enjoy
> moktarul
>
> On Feb 20, 12:26 am, Soyer  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

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

2012-02-20 Thread moktarul anam
Hi
BTDdetecetwithV7Activity in ur android  Manifest file
\

Enjoy
moktarul

On Feb 20, 12:26 am, Soyer  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 Everybody, i am developing an android App with Bluetooth.

2012-02-14 Thread Mohamed Gougam
What do you suggest to do? any ideas?

On Tue, Feb 14, 2012 at 3:59 PM, Mohamed Gougam  wrote:

> You are talking about this part, right!!
>
>   ListView pairedListView = (ListView) findViewById(R.id.paired_devices);
> pairedListView.setAdapter(mPairedDevicesArrayAdapter);
>
> // Find and set up the ListView for newly discovered devices
> ListView newDevicesListView = (ListView)
> findViewById(R.id.new_devices);
> newDevicesListView.setAdapter(mNewDevicesArrayAdapter);
>
>
> and then:
>
>
> if (pairedDevices.size() > 0) {
>
> findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);
>
> for (BluetoothDevice device : pairedDevices) {
> mPairedDevicesArrayAdapter.add(device.getName() + "\n" +
> device.getAddress());
> }
>
> } else {
> String noDevices =
> getResources().getText(R.string.none_paired).toString();
> mPairedDevicesArrayAdapter.add(noDevices);
> }
> }
>
>
>
> > that is to add the new detected BT devices to the array.
>
>
>
> On Tue, Feb 14, 2012 at 2:45 AM, Kostya Vasilyev wrote:
>
>> 14 февраля 2012 г. 2:37 пользователь Indicator Veritatis <
>> mej1...@yahoo.com> написал:
>>
>>
>>> So the REAL question is: why are you trying to call addView on an
>>> AdapterView?
>>>
>>>
>> He's not, the framework is -- since the ListView in the XML has children
>> (and one of those is another ListView, oh my).
>>
>>
>>  --
>> 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 Everybody, i am developing an android App with Bluetooth.

2012-02-14 Thread Mohamed Gougam
You are talking about this part, right!!

  ListView pairedListView = (ListView) findViewById(R.id.paired_devices);
pairedListView.setAdapter(mPairedDevicesArrayAdapter);

// Find and set up the ListView for newly discovered devices
ListView newDevicesListView = (ListView)
findViewById(R.id.new_devices);
newDevicesListView.setAdapter(mNewDevicesArrayAdapter);


and then:


if (pairedDevices.size() > 0) {

findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);

for (BluetoothDevice device : pairedDevices) {
mPairedDevicesArrayAdapter.add(device.getName() + "\n" +
device.getAddress());
}

} else {
String noDevices =
getResources().getText(R.string.none_paired).toString();
mPairedDevicesArrayAdapter.add(noDevices);
}
}



> that is to add the new detected BT devices to the array.



On Tue, Feb 14, 2012 at 2:45 AM, Kostya Vasilyev  wrote:

> 14 февраля 2012 г. 2:37 пользователь Indicator Veritatis <
> mej1...@yahoo.com> написал:
>
>
>> So the REAL question is: why are you trying to call addView on an
>> AdapterView?
>>
>>
> He's not, the framework is -- since the ListView in the XML has children
> (and one of those is another ListView, oh my).
>
>
>  --
> 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 Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Indicator Veritatis
Then it sounds like you just answered the question. Can we take this
as a general rule, that a ListView should not have another ListView as
a child view? What other restrictions are there on what it can have as
child views?

On Feb 13, 2:45 pm, Kostya Vasilyev  wrote:
> 14 февраля 2012 г. 2:37 пользователь Indicator Veritatis
> написал:
>
>
>
> > So the REAL question is: why are you trying to call addView on an
> > AdapterView?
>
> He's not, the framework is -- since the ListView in the XML has children
> (and one of those is another ListView, oh my).

-- 
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 Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Kostya Vasilyev
14 февраля 2012 г. 2:37 пользователь Indicator Veritatis
написал:

>
> So the REAL question is: why are you trying to call addView on an
> AdapterView?
>
>
He's not, the framework is -- since the ListView in the XML has children
(and one of those is another ListView, oh my).

-- 
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 Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread Indicator Veritatis
Correction: they are line numbers, just not in YOUR code: e.g., 461 is
a line number in AdapterView.java, which doesn't help much. As for
your original logcat listing, what you need to do here is notice that
this is a Runtime exception thrown because you don't have a method for
addView(View, LayoutParams) in the view you added, AdapterView.

And indeed, if you look at the up to date javadoc for AdapterView, you
will find that it throws an exception for most combination of addView,
in particular, for the one you tried to do. AdapterViews are not
supposed to get their views this way.

So the REAL question is: why are you trying to call addView on an
AdapterView?

On Feb 13, 12:32 pm, Mohamed Gougam  wrote:
> there is no more then 174 line in my code and this is in the .java file,
> while the XML files are twenties and 58... so those numbers are not line
> numbers...
>
> On Mon, Feb 13, 2012 at 10:56 PM, Kostya Vasilyev wrote:
>
>
>
>
>
>
>
> > This has nothing to do with API level.
>
> > As for line numbers, here they are:
>
> > 02-13 13:02:11.538: E/AndroidRuntime(196): Caused by:
>
> > java.lang.UnsupportedOperationException: addView(View, LayoutParams)
> > is not supported in AdapterView
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.widget.AdapterView.addView(AdapterView.java:*461*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:*622*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.view.LayoutInflater.rInflate(LayoutInflater.java:*621*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:*407*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:*320*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.view.LayoutInflater.inflate(LayoutInflater.java:*276*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
>
> > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
> > *198*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.app.Activity.setContentView(Activity.java:*1622*)
> > 02-13 13:02:11.538: E/AndroidRuntime(196):      at
> > android.mgo.helloandroid.BTDdetecetwithV7Activity.onCreate(*
> > BTDdetecetwithV7Activity.java:
> > 44*)
>
> > 13 февраля 2012 г. 22:33 пользователь Mohamed Gougam 
> > написал:
>
> > > isn't it related to being using Version 7 ? would it make sense if i try
> > the
> > > code on a API Version8?
>
> > > PS: no there is nothing such as line number, everything was displayed on
> > the
> > > LogCat screen is posted.
>
> > --
> > 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 Everybody, i am developing an android App with Bluetooth.

2012-02-13 Thread romdroid
isn't logcat giving more than that? it should also give you the
codeline (number) where the error is thrown in your application, how
about clickin' on it and find out which line of code gives you the
error?

On 13 Feb., 16:11, Mohamed Gougam  wrote:
> I know mate, i can't see what View it's talking about here, how is that
> it's not supported, i tried on Version14 it faced problems with the
> emulator both on Wind and Linux (Different versions) so i tried the
> Version7...
>
>  this is a part of a big project, i have been working on it since 5 months
> now, i got stacked once i reached to the bluetooth detection part,
> (Unsupported bluetooth), anyway, any guidance or help would be
> very appreciated...
>
>
>
>
>
>
>
> On Mon, Feb 13, 2012 at 6:46 PM, Kostya Vasilyev  wrote:
> > Rather than posting your entire code and then bumping the thread three
> > times...
>
> > ...you could have tried reading the error message. It spells out the
> > error quite clearly:
>
> > > java.lang.UnsupportedOperationException: addView(View, LayoutParams)
> > > is not supported in AdapterView"
>
> > -- K
>
> > 13 февраля 2012 г. 18:08 пользователь Soyer  написал:
> > > Hello Everyone, i am developing an app on android to catch bluetooth,
> > > and i am facing an error which i couldn't understand what its source
> > > can be, the error is on the logcat as the following:
>
> > > "02-13 13:02:11.538: E/AndroidRuntime(196):
> > > java.lang.RuntimeException: Unable to start activity
> > > ComponentInfo{android.mgo.helloandroid/
> > > android.mgo.helloandroid.BTDdetecetwithV7Activity}:
> > > java.lang.UnsupportedOperationException: addView(View, LayoutParams)
> > > is not supported in AdapterView"
>
> > --
> > 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 Grid View Tutorial don't work

2012-02-13 Thread moktarul anam
have u copied  R.drawable.sample_2,  R.drawable.sample_3. all
images in to your drawable folder??

On Feb 12, 10:30 pm, Asaf Nassi  wrote:
> I tray the Hello Grid View Tutorial, I using eclipse (even to copy and
> paste from the android developer 
> sitehttp://developer.android.com/resources/tutorials/views/hello-gridview...
> ),
> but its don't work I get to match error , i don't know what else to
> do...

-- 
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 am developing a bluetooth app.

2012-02-09 Thread Soyer
alright Thanks for the guidance mate. I will update u, thanks again.
cheers :)

On Feb 9, 8:54 pm, Kristopher Micinski  wrote:
> On Thu, Feb 9, 2012 at 11:44 AM, Soyer  wrote:
> > so it's an order issue, Could you please instruct me which part should
> > i change?, because honestly i have read loads of articles and i don't
> > think i am going anywhere which getting more n more frustrating...
>
> > That would be Very Appreciated.
>
> It's not an order issue.
>
> You're thinking that you call .startDiscovery() and then it starts
> discovering devices and tells you which there are.
>
> It doesn't work like that.
>
> Discovery can take a long time, tens of seconds into minutes.
>
> If your call to .startDiscovery() blocked until the discovery was finished,
> your program would ANR and crash
>
> Instead, when you call .startDiscovery() what happens is that you're asking
> the operating system "start looking for BT devices, when you finish looking
> for them, broadcast that you're done and I'll ask what you found, even
> though this will probably take a long time."
>
> So you need to register the BroadcastReceiver to handle the Bluetooth
> discovery finished action.
>
> Have you read the BluetoothChat example.  I feel like if you had then you
> wouldn't be asking this, go read that and it should make sense.  And if it
> doesn't then go read about what a BroadcastReceiver is in the first place.
>
> Basically: you're writing your code like it runs in a straight line, it
> doesn't, it runs asynchronously, so you have to structure your code
> differently.
>
> 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 am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
On Thu, Feb 9, 2012 at 11:44 AM, Soyer  wrote:

> so it's an order issue, Could you please instruct me which part should
> i change?, because honestly i have read loads of articles and i don't
> think i am going anywhere which getting more n more frustrating...
>
> That would be Very Appreciated.
>
>
It's not an order issue.

You're thinking that you call .startDiscovery() and then it starts
discovering devices and tells you which there are.

It doesn't work like that.

Discovery can take a long time, tens of seconds into minutes.

If your call to .startDiscovery() blocked until the discovery was finished,
your program would ANR and crash

Instead, when you call .startDiscovery() what happens is that you're asking
the operating system "start looking for BT devices, when you finish looking
for them, broadcast that you're done and I'll ask what you found, even
though this will probably take a long time."

So you need to register the BroadcastReceiver to handle the Bluetooth
discovery finished action.

Have you read the BluetoothChat example.  I feel like if you had then you
wouldn't be asking this, go read that and it should make sense.  And if it
doesn't then go read about what a BroadcastReceiver is in the first place.

Basically: you're writing your code like it runs in a straight line, it
doesn't, it runs asynchronously, so you have to structure your code
differently.

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

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
so it's an order issue, Could you please instruct me which part should
i change?, because honestly i have read loads of articles and i don't
think i am going anywhere which getting more n more frustrating...

That would be Very Appreciated.


On Feb 9, 8:21 pm, Kristopher Micinski  wrote:
> Oh, you're not using the BluetoothAdapter correctly... You basically call
> "startdiscovery" and then display stuff.  That's not how it works.  It's an
> asynchronous call.  You start discovery with .startDiscovery() and then you
> have to wait until it's finished.  To handle that, you wait for a broadcast
> action (ACTION_DISCOVERY_FINISHED) to be sent, you have to register a
> broadcastreciever to deal with that.
>
> You can read all about this in the BluetoothAdapter API documentation,
> that's where I suggest you start.  There's also a Bluetooth demo somewhere,
> not sure if it works for more recent devices, but I remember to have gotten
> it working on the Hero a long time ago (that being said, BT on the older
> HTCs was always somewhat flaky for me).
>
> kris
>
>
>
>
>
>
>
> On Thu, Feb 9, 2012 at 11:13 AM, Soyer  wrote:
> > Hello Kris, i tried it on a mobile phone (HTC Hero) and no detected
> > devices were displayed...it's showing the default bluetooth adapter,
> > and then "Start discovering", "Done with discovery" and at last:
> > "Devices paired:          " and nothing displayed, though my other
> > mobile phone is next to it.
>
> > On Feb 9, 7:41 pm, Kristopher Micinski  wrote:
> > > Did you try running this in a debugger to see what's going on?
>
> > > kris
>
> > > On Thu, Feb 9, 2012 at 9:58 AM, Soyer  wrote:
> > > > Sure, first bluetooth detection on Android emulator is not supported
> > > > on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth
> > > > features are supported by the Host OS and the emulator, but the thing
> > > > is that the app is not detecting any devices (My phone...)
>
> > > > This is my code:
> > > > package android.mgo.helloandroid;
>
> > > > import java.util.Set;
>
> > > > import android.app.Activity;
> > > > import android.content.Intent;
> > > > import android.os.Bundle;
> > > > import android.view.View;
> > > > import android.view.View.OnClickListener;
> > > > import android.widget.Button;
> > > > import android.widget.EditText;
> > > > import android.bluetooth.BluetoothAdapter;
> > > > import android.bluetooth.BluetoothDevice;
> > > > import android.content.Intent;
>
> > > > public class UIdrawingActivity extends Activity implements
> > > > OnClickListener {
> > > >    /** Called when the activity is first created. */
>
> > > >        Button startdetectingbtn;
> > > >        Button clearbtn;
> > > >    EditText roomnumbertext;
> > > >    EditText  bluetoothdetect;
> > > >    @Override
> > > >    public void onCreate(Bundle savedInstanceState) {
> > > >        super.onCreate(savedInstanceState);
> > > >        setContentView(R.layout.main);
> > > >        bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
>
> > > >      clearbtn = (Button)findViewById(R.id.clearbtn);
>
> > > >        View startdetectingbtn = findViewById(R.id.startdetectingbtn);
> > > >        startdetectingbtn.setOnClickListener(this);
>
> > > >         clearbtn.setOnClickListener(new OnClickListener() {
> > > >     //         clear the text boxes
> > > >     @Override
> > > >      public void onClick(View v) {
>
> > > >      bluetoothdetect.setText("");
>
> > > >      }
>
> > > >      });}
>
> > > >         @Override
> > > >                public void onClick(View v) {
>
> > > >                        switch (v.getId()) {
> > > >                case R.id.startdetectingbtn:
>
> > > >              EditText bluetoothtext =
> > > > (EditText)findViewById(R.id.detectedsignal);
>
> > > >                           // Getting the Bluetooth adapter
> > > >                 BluetoothAdapter adapter =
> > > > BluetoothAdapter.getDefaultAdapter();
> > > >                           bluetoothtext.append("\nAdapter: " +
> > adapter);
>
> > > >                 // Check for Bluetooth support in the first place
> > > >                 // Emulator doesn't support Bluetooth and will return
> > null
> > > >                 if(adapter==null) {
> > > >                   bluetoothtext.append("\nBluetooth NOT supported.
> > > > Aborting.");
> > > >                      return;
> > > >                                    }
> > > >                 else{
> > > >                 // Starting the device discovery
> > > >                         bluetoothtext.append("\nStarting
> > discovery...");
> > > >                           adapter.startDiscovery();
> > > >                           bluetoothtext.append("\nDone with
> > discovery...");
>
> > > >                 // Listing paired devices
> > > >                           bluetoothtext.append("\nDevices Paired:");
> > > >                           Set devices =
> > > > adapter.getBondedDevices();
> > > >                           for (BluetoothDevice device : de

Re: [android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
Oh, you're not using the BluetoothAdapter correctly... You basically call
"startdiscovery" and then display stuff.  That's not how it works.  It's an
asynchronous call.  You start discovery with .startDiscovery() and then you
have to wait until it's finished.  To handle that, you wait for a broadcast
action (ACTION_DISCOVERY_FINISHED) to be sent, you have to register a
broadcastreciever to deal with that.


You can read all about this in the BluetoothAdapter API documentation,
that's where I suggest you start.  There's also a Bluetooth demo somewhere,
not sure if it works for more recent devices, but I remember to have gotten
it working on the Hero a long time ago (that being said, BT on the older
HTCs was always somewhat flaky for me).


kris


On Thu, Feb 9, 2012 at 11:13 AM, Soyer  wrote:

> Hello Kris, i tried it on a mobile phone (HTC Hero) and no detected
> devices were displayed...it's showing the default bluetooth adapter,
> and then "Start discovering", "Done with discovery" and at last:
> "Devices paired:  " and nothing displayed, though my other
> mobile phone is next to it.
>
> On Feb 9, 7:41 pm, Kristopher Micinski  wrote:
> > Did you try running this in a debugger to see what's going on?
> >
> > kris
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Feb 9, 2012 at 9:58 AM, Soyer  wrote:
> > > Sure, first bluetooth detection on Android emulator is not supported
> > > on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth
> > > features are supported by the Host OS and the emulator, but the thing
> > > is that the app is not detecting any devices (My phone...)
> >
> > > This is my code:
> > > package android.mgo.helloandroid;
> >
> > > import java.util.Set;
> >
> > > import android.app.Activity;
> > > import android.content.Intent;
> > > import android.os.Bundle;
> > > import android.view.View;
> > > import android.view.View.OnClickListener;
> > > import android.widget.Button;
> > > import android.widget.EditText;
> > > import android.bluetooth.BluetoothAdapter;
> > > import android.bluetooth.BluetoothDevice;
> > > import android.content.Intent;
> >
> > > public class UIdrawingActivity extends Activity implements
> > > OnClickListener {
> > >/** Called when the activity is first created. */
> >
> > >Button startdetectingbtn;
> > >Button clearbtn;
> > >EditText roomnumbertext;
> > >EditText  bluetoothdetect;
> > >@Override
> > >public void onCreate(Bundle savedInstanceState) {
> > >super.onCreate(savedInstanceState);
> > >setContentView(R.layout.main);
> > >bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
> >
> > >  clearbtn = (Button)findViewById(R.id.clearbtn);
> >
> > >View startdetectingbtn = findViewById(R.id.startdetectingbtn);
> > >startdetectingbtn.setOnClickListener(this);
> >
> > > clearbtn.setOnClickListener(new OnClickListener() {
> > > // clear the text boxes
> > > @Override
> > >  public void onClick(View v) {
> >
> > >  bluetoothdetect.setText("");
> >
> > >  }
> >
> > >  });}
> >
> > > @Override
> > >public void onClick(View v) {
> >
> > >switch (v.getId()) {
> > >case R.id.startdetectingbtn:
> >
> > >  EditText bluetoothtext =
> > > (EditText)findViewById(R.id.detectedsignal);
> >
> > >   // Getting the Bluetooth adapter
> > > BluetoothAdapter adapter =
> > > BluetoothAdapter.getDefaultAdapter();
> > >   bluetoothtext.append("\nAdapter: " +
> adapter);
> >
> > > // Check for Bluetooth support in the first place
> > > // Emulator doesn't support Bluetooth and will return
> null
> > > if(adapter==null) {
> > >   bluetoothtext.append("\nBluetooth NOT supported.
> > > Aborting.");
> > >  return;
> > >}
> > > else{
> > > // Starting the device discovery
> > > bluetoothtext.append("\nStarting
> discovery...");
> > >   adapter.startDiscovery();
> > >   bluetoothtext.append("\nDone with
> discovery...");
> >
> > > // Listing paired devices
> > >   bluetoothtext.append("\nDevices Paired:");
> > >   Set devices =
> > > adapter.getBondedDevices();
> > >   for (BluetoothDevice device : devices)
> > >   {
> > >   bluetoothtext.append("\nFound
> device: "
> > > + device);
> >
> > > }
> >
> > > }
> > >}
> >
> > > }
> >
> > > }
> >
> > > and the following is Manifest.xml file:
> >
> > > 
> > > http://schemas.android.com/apk/res/android";
> > >package="android.mgo.helloa

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
Hello Kris, i tried it on a mobile phone (HTC Hero) and no detected
devices were displayed...it's showing the default bluetooth adapter,
and then "Start discovering", "Done with discovery" and at last:
"Devices paired:  " and nothing displayed, though my other
mobile phone is next to it.

On Feb 9, 7:41 pm, Kristopher Micinski  wrote:
> Did you try running this in a debugger to see what's going on?
>
> kris
>
>
>
>
>
>
>
> On Thu, Feb 9, 2012 at 9:58 AM, Soyer  wrote:
> > Sure, first bluetooth detection on Android emulator is not supported
> > on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth
> > features are supported by the Host OS and the emulator, but the thing
> > is that the app is not detecting any devices (My phone...)
>
> > This is my code:
> > package android.mgo.helloandroid;
>
> > import java.util.Set;
>
> > import android.app.Activity;
> > import android.content.Intent;
> > import android.os.Bundle;
> > import android.view.View;
> > import android.view.View.OnClickListener;
> > import android.widget.Button;
> > import android.widget.EditText;
> > import android.bluetooth.BluetoothAdapter;
> > import android.bluetooth.BluetoothDevice;
> > import android.content.Intent;
>
> > public class UIdrawingActivity extends Activity implements
> > OnClickListener {
> >    /** Called when the activity is first created. */
>
> >        Button startdetectingbtn;
> >        Button clearbtn;
> >    EditText roomnumbertext;
> >    EditText  bluetoothdetect;
> >    @Override
> >    public void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
> >        bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
>
> >      clearbtn = (Button)findViewById(R.id.clearbtn);
>
> >        View startdetectingbtn = findViewById(R.id.startdetectingbtn);
> >        startdetectingbtn.setOnClickListener(this);
>
> >         clearbtn.setOnClickListener(new OnClickListener() {
> >     //         clear the text boxes
> >     @Override
> >      public void onClick(View v) {
>
> >      bluetoothdetect.setText("");
>
> >      }
>
> >      });}
>
> >         @Override
> >                public void onClick(View v) {
>
> >                        switch (v.getId()) {
> >                case R.id.startdetectingbtn:
>
> >              EditText bluetoothtext =
> > (EditText)findViewById(R.id.detectedsignal);
>
> >                           // Getting the Bluetooth adapter
> >                 BluetoothAdapter adapter =
> > BluetoothAdapter.getDefaultAdapter();
> >                           bluetoothtext.append("\nAdapter: " + adapter);
>
> >                 // Check for Bluetooth support in the first place
> >                 // Emulator doesn't support Bluetooth and will return null
> >                 if(adapter==null) {
> >                   bluetoothtext.append("\nBluetooth NOT supported.
> > Aborting.");
> >                      return;
> >                                    }
> >                 else{
> >                 // Starting the device discovery
> >                         bluetoothtext.append("\nStarting discovery...");
> >                           adapter.startDiscovery();
> >                           bluetoothtext.append("\nDone with discovery...");
>
> >                 // Listing paired devices
> >                           bluetoothtext.append("\nDevices Paired:");
> >                           Set devices =
> > adapter.getBondedDevices();
> >                           for (BluetoothDevice device : devices)
> >                           {
> >                                   bluetoothtext.append("\nFound device: "
> > + device);
>
> >                         }
>
> >                         }
> >                        }
>
> >         }
>
> > }
>
> > and the following is Manifest.xml file:
>
> > 
> > http://schemas.android.com/apk/res/android";
> >    package="android.mgo.helloandroid"
> >    android:versionCode="1"
> >    android:versionName="1.0" >
>
> >    
>
> >     >        android:icon="@drawable/ic_launcher"
> >        android:label="@string/app_name" >
>
> >         >            android:label="@string/app_name"
> >            android:name=".UIdrawingActivity" >
> >            
> >                
> >                 > android:name="android.intent.category.LAUNCHER" />
> >            
> >        
>
> >    
> >  
> >             > android:name="android.permission.BLUETOOTH_ADMIN" />
> > 
>
> > On Feb 9, 6:29 pm, TreKing  wrote:
> > > On Thu, Feb 9, 2012 at 5:42 AM, Soyer  wrote:
> > > > the issue now is that i don't know why it is not listing any detected
> > > > devices.
>
> > > > Any Ideas?
>
> > > Elaborate on your problem. There is almost no information here for anyone
> > > to help you.
>
> > ---
> > --
> > > TreKing  - Chicago
> > > transit tracking app fo

Re: [android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Kristopher Micinski
Did you try running this in a debugger to see what's going on?

kris

On Thu, Feb 9, 2012 at 9:58 AM, Soyer  wrote:

> Sure, first bluetooth detection on Android emulator is not supported
> on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth
> features are supported by the Host OS and the emulator, but the thing
> is that the app is not detecting any devices (My phone...)
>
> This is my code:
> package android.mgo.helloandroid;
>
>
>
> import java.util.Set;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
> import android.widget.EditText;
> import android.bluetooth.BluetoothAdapter;
> import android.bluetooth.BluetoothDevice;
> import android.content.Intent;
>
>
>
>
>
> public class UIdrawingActivity extends Activity implements
> OnClickListener {
>/** Called when the activity is first created. */
>
>Button startdetectingbtn;
>Button clearbtn;
>EditText roomnumbertext;
>EditText  bluetoothdetect;
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
>
>
>  clearbtn = (Button)findViewById(R.id.clearbtn);
>
>
>
>View startdetectingbtn = findViewById(R.id.startdetectingbtn);
>startdetectingbtn.setOnClickListener(this);
>
>
> clearbtn.setOnClickListener(new OnClickListener() {
> // clear the text boxes
> @Override
>  public void onClick(View v) {
>
>  bluetoothdetect.setText("");
>
>  }
>
>
>  });}
>
> @Override
>public void onClick(View v) {
>
>switch (v.getId()) {
>case R.id.startdetectingbtn:
>
>
>  EditText bluetoothtext =
> (EditText)findViewById(R.id.detectedsignal);
>
>
>   // Getting the Bluetooth adapter
> BluetoothAdapter adapter =
> BluetoothAdapter.getDefaultAdapter();
>   bluetoothtext.append("\nAdapter: " + adapter);
>
> // Check for Bluetooth support in the first place
> // Emulator doesn't support Bluetooth and will return null
> if(adapter==null) {
>   bluetoothtext.append("\nBluetooth NOT supported.
> Aborting.");
>  return;
>}
> else{
> // Starting the device discovery
> bluetoothtext.append("\nStarting discovery...");
>   adapter.startDiscovery();
>   bluetoothtext.append("\nDone with discovery...");
>
>
> // Listing paired devices
>   bluetoothtext.append("\nDevices Paired:");
>   Set devices =
> adapter.getBondedDevices();
>   for (BluetoothDevice device : devices)
>   {
>   bluetoothtext.append("\nFound device: "
> + device);
>
>
> }
>
>
>
> }
>}
>
> }
>
> }
>
>
> and the following is Manifest.xml file:
>
> 
> http://schemas.android.com/apk/res/android";
>package="android.mgo.helloandroid"
>android:versionCode="1"
>android:versionName="1.0" >
>
>
>
>android:icon="@drawable/ic_launcher"
>android:label="@string/app_name" >
>
>android:label="@string/app_name"
>android:name=".UIdrawingActivity" >
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>
>
>
>  
> android:name="android.permission.BLUETOOTH_ADMIN" />
> 
>
>
>
> On Feb 9, 6:29 pm, TreKing  wrote:
> > On Thu, Feb 9, 2012 at 5:42 AM, Soyer  wrote:
> > > the issue now is that i don't know why it is not listing any detected
> > > devices.
> >
> > > Any Ideas?
> >
> > Elaborate on your problem. There is almost no information here for anyone
> > to help you.
> >
> >
> ---
> --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices
>
> --
> 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 t

[android-developers] Re: Hello everyone, i am developing a bluetooth app.

2012-02-09 Thread Soyer
Sure, first bluetooth detection on Android emulator is not supported
on Wind7 so i used VirtualBox to run it on Linux2.4, so the bluetooth
features are supported by the Host OS and the emulator, but the thing
is that the app is not detecting any devices (My phone...)

This is my code:
package android.mgo.helloandroid;



import java.util.Set;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;





public class UIdrawingActivity extends Activity implements
OnClickListener {
/** Called when the activity is first created. */

Button startdetectingbtn;
Button clearbtn;
EditText roomnumbertext;
EditText  bluetoothdetect;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);


  clearbtn = (Button)findViewById(R.id.clearbtn);



View startdetectingbtn = findViewById(R.id.startdetectingbtn);
startdetectingbtn.setOnClickListener(this);


 clearbtn.setOnClickListener(new OnClickListener() {
 // clear the text boxes
 @Override
  public void onClick(View v) {

  bluetoothdetect.setText("");

  }


  });}

 @Override
public void onClick(View v) {

switch (v.getId()) {
case R.id.startdetectingbtn:


  EditText bluetoothtext =
(EditText)findViewById(R.id.detectedsignal);


   // Getting the Bluetooth adapter
 BluetoothAdapter adapter =
BluetoothAdapter.getDefaultAdapter();
   bluetoothtext.append("\nAdapter: " + adapter);

 // Check for Bluetooth support in the first place
 // Emulator doesn't support Bluetooth and will return null
 if(adapter==null) {
   bluetoothtext.append("\nBluetooth NOT supported. Aborting.");
  return;
}
 else{
 // Starting the device discovery
 bluetoothtext.append("\nStarting discovery...");
   adapter.startDiscovery();
   bluetoothtext.append("\nDone with discovery...");


 // Listing paired devices
   bluetoothtext.append("\nDevices Paired:");
   Set devices = 
adapter.getBondedDevices();
   for (BluetoothDevice device : devices)
   {
   bluetoothtext.append("\nFound device: " + 
device);


 }



 }
}

 }

}


and the following is Manifest.xml file:


http://schemas.android.com/apk/res/android";
package="android.mgo.helloandroid"
android:versionCode="1"
android:versionName="1.0" >















  





On Feb 9, 6:29 pm, TreKing  wrote:
> On Thu, Feb 9, 2012 at 5:42 AM, Soyer  wrote:
> > the issue now is that i don't know why it is not listing any detected
> > devices.
>
> > Any Ideas?
>
> Elaborate on your problem. There is almost no information here for anyone
> to help you.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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 i am developing an App for android using bluetooth.

2012-02-09 Thread Mohamed Gougam
Problem solved temporary (Big project new issues appeared), thanks a lot
mate for the help.

On Thu, Feb 9, 2012 at 1:48 PM, Mohamed Gougam  wrote:

> Thanks indeed for the help mate, but why when i press the button
> "Startdetecting" to list the detected bluetooth deveices, the message
> doesnt stay stable, it comes and it goes very fast.
>
>
>
> On Thu, Feb 9, 2012 at 1:03 PM, Raghav Sood <
> raghavs...@androidactivist.org> wrote:
>
>> Your permissions should be outside the  node of the manifest.
>>
>> Thanks
>>
>>
>> On Thu, Feb 9, 2012 at 2:25 PM, Mohamed Gougam wrote:
>>
>>> This is what is shown on the logcat:
>>>
>>> 02-08 13:17:23.112: D/AndroidRuntime(4389): Shutting down VM
>>> 02-08 13:17:23.112: W/dalvikvm(4389): threadid=1: thread exiting with
>>> uncaught exception (group=0xb570e298)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): FATAL EXCEPTION: main
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): java.lang.SecurityException:
>>> Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has
>>> android.permission.BLUETOOTH_ADMIN.
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.os.Parcel.readException(Parcel.java:1260)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.os.Parcel.readException(Parcel.java:1248)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:612)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:581)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.mgo.helloandroid.UIdrawingActivity.onClick(UIdrawingActivity.java:79)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.view.View.performClick(View.java:2408)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.view.View$PerformClick.run(View.java:8818)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.os.Handler.handleCallback(Handler.java:587)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.os.Handler.dispatchMessage(Handler.java:92)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.os.Looper.loop(Looper.java:123)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> android.app.ActivityThread.main(ActivityThread.java:4627)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> java.lang.reflect.Method.invokeNative(Native Method)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> java.lang.reflect.Method.invoke(Method.java:521)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
>>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>>> dalvik.system.NativeStart.main(Native Method)
>>>
>>>
>>>
>>> And this is Manifest.XML file:
>>>
>>> 
>>> http://schemas.android.com/apk/res/android";
>>> package="android.mgo.helloandroid"
>>> android:versionCode="1"
>>> android:versionName="1.0" >
>>>
>>> 
>>>
>>> >> android:icon="@drawable/ic_launcher"
>>> android:label="@string/app_name" >
>>>
>>> >>  android:label="@string/app_name"
>>> android:name=".UIdrawingActivity" >
>>> 
>>> 
>>> >> android:name="android.intent.category.LAUNCHER" />
>>> 
>>> 
>>>
>>>
>>>   
>>> >> android:name="android.permission.BLUETOOTH_ADMIN" />
>>> 
>>>
>>> 
>>> On Thu, Feb 9, 2012 at 2:19 AM, Wenshan  wrote:
>>>
 Could you please put the whole error message from logcat here?

 What you've provided is not sufficient.



 Cheers,
 Wenshan

  --
 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
>>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.androidactivist.org/ - Author
>> http://www.appaholics.in/ - Founder
>>
>>  --
>> 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+u

Re: [android-developers] Re: Hello i am developing an App for android using bluetooth.

2012-02-09 Thread Mohamed Gougam
Thanks indeed for the help mate, but why when i press the button
"Startdetecting" to list the detected bluetooth deveices, the message
doesnt stay stable, it comes and it goes very fast.



On Thu, Feb 9, 2012 at 1:03 PM, Raghav Sood
wrote:

> Your permissions should be outside the  node of the manifest.
>
> Thanks
>
>
> On Thu, Feb 9, 2012 at 2:25 PM, Mohamed Gougam wrote:
>
>> This is what is shown on the logcat:
>>
>> 02-08 13:17:23.112: D/AndroidRuntime(4389): Shutting down VM
>> 02-08 13:17:23.112: W/dalvikvm(4389): threadid=1: thread exiting with
>> uncaught exception (group=0xb570e298)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): FATAL EXCEPTION: main
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): java.lang.SecurityException:
>> Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has
>> android.permission.BLUETOOTH_ADMIN.
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.os.Parcel.readException(Parcel.java:1260)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.os.Parcel.readException(Parcel.java:1248)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:612)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:581)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.mgo.helloandroid.UIdrawingActivity.onClick(UIdrawingActivity.java:79)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.view.View.performClick(View.java:2408)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.view.View$PerformClick.run(View.java:8818)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.os.Handler.handleCallback(Handler.java:587)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.os.Handler.dispatchMessage(Handler.java:92)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.os.Looper.loop(Looper.java:123)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> android.app.ActivityThread.main(ActivityThread.java:4627)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> java.lang.reflect.Method.invokeNative(Native Method)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> java.lang.reflect.Method.invoke(Method.java:521)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
>> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
>> dalvik.system.NativeStart.main(Native Method)
>>
>>
>>
>> And this is Manifest.XML file:
>>
>> 
>> http://schemas.android.com/apk/res/android";
>> package="android.mgo.helloandroid"
>> android:versionCode="1"
>> android:versionName="1.0" >
>>
>> 
>>
>> > android:icon="@drawable/ic_launcher"
>> android:label="@string/app_name" >
>>
>> >  android:label="@string/app_name"
>> android:name=".UIdrawingActivity" >
>> 
>> 
>> > />
>> 
>> 
>>
>>
>>   
>> > android:name="android.permission.BLUETOOTH_ADMIN" />
>> 
>>
>> 
>> On Thu, Feb 9, 2012 at 2:19 AM, Wenshan  wrote:
>>
>>> Could you please put the whole error message from logcat here?
>>>
>>> What you've provided is not sufficient.
>>>
>>>
>>>
>>> Cheers,
>>> Wenshan
>>>
>>>  --
>>> 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
>>
>
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
>  --
> 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+uns

Re: [android-developers] Re: Hello i am developing an App for android using bluetooth.

2012-02-09 Thread Raghav Sood
Your permissions should be outside the  node of the manifest.

Thanks

On Thu, Feb 9, 2012 at 2:25 PM, Mohamed Gougam  wrote:

> This is what is shown on the logcat:
>
> 02-08 13:17:23.112: D/AndroidRuntime(4389): Shutting down VM
> 02-08 13:17:23.112: W/dalvikvm(4389): threadid=1: thread exiting with
> uncaught exception (group=0xb570e298)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): FATAL EXCEPTION: main
> 02-08 13:17:23.112: E/AndroidRuntime(4389): java.lang.SecurityException:
> Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has
> android.permission.BLUETOOTH_ADMIN.
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.os.Parcel.readException(Parcel.java:1260)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.os.Parcel.readException(Parcel.java:1248)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:612)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:581)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.mgo.helloandroid.UIdrawingActivity.onClick(UIdrawingActivity.java:79)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.view.View.performClick(View.java:2408)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.view.View$PerformClick.run(View.java:8818)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.os.Handler.handleCallback(Handler.java:587)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.os.Looper.loop(Looper.java:123)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> java.lang.reflect.Method.invoke(Method.java:521)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
> 02-08 13:17:23.112: E/AndroidRuntime(4389): at
> dalvik.system.NativeStart.main(Native Method)
>
>
>
> And this is Manifest.XML file:
>
> 
> http://schemas.android.com/apk/res/android";
> package="android.mgo.helloandroid"
> android:versionCode="1"
> android:versionName="1.0" >
>
> 
>
>  android:icon="@drawable/ic_launcher"
> android:label="@string/app_name" >
>
>  android:label="@string/app_name"
> android:name=".UIdrawingActivity" >
> 
> 
>  />
> 
> 
>
>
>   
>  android:name="android.permission.BLUETOOTH_ADMIN" />
> 
>
> 
> On Thu, Feb 9, 2012 at 2:19 AM, Wenshan  wrote:
>
>> Could you please put the whole error message from logcat here?
>>
>> What you've provided is not sufficient.
>>
>>
>>
>> Cheers,
>> Wenshan
>>
>>  --
>> 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
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
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 i am developing an App for android using bluetooth.

2012-02-09 Thread Mohamed Gougam
This is what is shown on the logcat:

02-08 13:17:23.112: D/AndroidRuntime(4389): Shutting down VM
02-08 13:17:23.112: W/dalvikvm(4389): threadid=1: thread exiting with
uncaught exception (group=0xb570e298)
02-08 13:17:23.112: E/AndroidRuntime(4389): FATAL EXCEPTION: main
02-08 13:17:23.112: E/AndroidRuntime(4389): java.lang.SecurityException:
Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has
android.permission.BLUETOOTH_ADMIN.
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.os.Parcel.readException(Parcel.java:1260)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.os.Parcel.readException(Parcel.java:1248)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:612)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:581)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.mgo.helloandroid.UIdrawingActivity.onClick(UIdrawingActivity.java:79)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.view.View.performClick(View.java:2408)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.view.View$PerformClick.run(View.java:8818)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.os.Handler.handleCallback(Handler.java:587)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.os.Handler.dispatchMessage(Handler.java:92)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.os.Looper.loop(Looper.java:123)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
java.lang.reflect.Method.invokeNative(Native Method)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
java.lang.reflect.Method.invoke(Method.java:521)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-08 13:17:23.112: E/AndroidRuntime(4389): at
dalvik.system.NativeStart.main(Native Method)



And this is Manifest.XML file:


http://schemas.android.com/apk/res/android";
package="android.mgo.helloandroid"
android:versionCode="1"
android:versionName="1.0" >













  




On Thu, Feb 9, 2012 at 2:19 AM, Wenshan  wrote:

> Could you please put the whole error message from logcat here?
>
> What you've provided is not sufficient.
>
>
>
> Cheers,
> Wenshan
>
>  --
> 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 i am developing an App for android using bluetooth.

2012-02-08 Thread Wenshan
Could you please put the whole error message from logcat here?

What you've provided is not sufficient.



Cheers,
Wenshan

-- 
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 i am developing an App for android using bluetooth.

2012-02-08 Thread Mohamed Gougam
it says "The application UIdrawing(process android.mgo.helloandroid) has
stopped unexpectedly. Please try again later."

On Thu, Feb 9, 2012 at 12:06 AM, Bipin Shashi  wrote:

> what is the error that you are getting??
>
> On Feb 8, 11:32 am, Soyer  wrote:
> > This is my Code, Please tell me if i am missing something...i am Stuck
> > with this for more then 2 weeks now, any help will be very
> > appreciated.
> > it's short please have a look on it.
> >
> > package android.mgo.helloandroid;
> >
> > import java.util.Set;
> >
> > import android.app.Activity;
> > import android.content.Intent;
> > import android.os.Bundle;
> > import android.view.View;
> > import android.view.View.OnClickListener;
> > import android.widget.Button;
> > import android.widget.EditText;
> > import android.bluetooth.BluetoothAdapter;
> > import android.bluetooth.BluetoothDevice;
> > import android.content.Intent;
> >
> > public class UIdrawingActivity extends Activity implements
> > OnClickListener {
> > /** Called when the activity is first created. */
> >
> > Button startdetectingbtn;
> > Button clearbtn;
> > EditText roomnumbertext;
> > EditText  bluetoothdetect;
> > @Override
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.main);
> > bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
> >
> > roomnumbertext =
> > (EditText)findViewById(R.id.roomnumbertextedit);
> >   clearbtn = (Button)findViewById(R.id.clearbtn);
> >
> > View startdetectingbtn = findViewById(R.id.startdetectingbtn);
> > startdetectingbtn.setOnClickListener(this);
> >
> >  clearbtn.setOnClickListener(new OnClickListener() {
> >  // clear the text boxes
> >  @Override
> >   public void onClick(View v) {
> > roomnumbertext.setText("");
> >   bluetoothdetect.setText("");
> >
> >   }
> >
> >   });}
> >
> >  @Override
> > public void onClick(View v) {
> >
> > switch (v.getId()) {
> > case R.id.startdetectingbtn:
> >
> >   EditText bluetoothtext =
> > (EditText)findViewById(R.id.detectedsignal);
> >
> >// Getting the Bluetooth adapter
> >  BluetoothAdapter adapter =
> > BluetoothAdapter.getDefaultAdapter();
> >bluetoothtext.append("\nAdapter: " + adapter);
> >
> >  // Check for Bluetooth support in the first place
> >  // Emulator doesn't support Bluetooth and will return
> null
> >  if(adapter==null) {
> >bluetoothtext.append("\nBluetooth NOT supported.
> Aborting.");
> >   return;
> > }
> >  else{
> >  // Starting the device discovery
> >  bluetoothtext.append("\nStarting discovery...");
> >adapter.startDiscovery();
> >bluetoothtext.append("\nDone with
> discovery...");
> >
> >  // Listing paired devices
> >bluetoothtext.append("\nDevices Paired:");
> >Set devices =
> adapter.getBondedDevices();
> >for (BluetoothDevice device : devices)
> >{
> >bluetoothtext.append("\nFound device:
> " + device);
> >
> >  }
> >
> >  Intent i = new Intent(this, UIdrawingActivity.class);
> >
> > startActivity(i);
> >
> >  }
> > }
> >
> >  }
> >
> >
> >
> >
> >
> >
> >
> > }
>
> --
> 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 i am developing an App for android using bluetooth.

2012-02-08 Thread Bipin Shashi
what is the error that you are getting??

On Feb 8, 11:32 am, Soyer  wrote:
> This is my Code, Please tell me if i am missing something...i am Stuck
> with this for more then 2 weeks now, any help will be very
> appreciated.
> it's short please have a look on it.
>
> package android.mgo.helloandroid;
>
> import java.util.Set;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
> import android.widget.EditText;
> import android.bluetooth.BluetoothAdapter;
> import android.bluetooth.BluetoothDevice;
> import android.content.Intent;
>
> public class UIdrawingActivity extends Activity implements
> OnClickListener {
>     /** Called when the activity is first created. */
>
>         Button startdetectingbtn;
>         Button clearbtn;
>     EditText roomnumbertext;
>     EditText  bluetoothdetect;
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>         bluetoothdetect = (EditText)findViewById(R.id.detectedsignal);
>
>         roomnumbertext =
> (EditText)findViewById(R.id.roomnumbertextedit);
>       clearbtn = (Button)findViewById(R.id.clearbtn);
>
>         View startdetectingbtn = findViewById(R.id.startdetectingbtn);
>         startdetectingbtn.setOnClickListener(this);
>
>          clearbtn.setOnClickListener(new OnClickListener() {
>      //         clear the text boxes
>      @Override
>       public void onClick(View v) {
>         roomnumbertext.setText("");
>       bluetoothdetect.setText("");
>
>       }
>
>       });}
>
>          @Override
>                 public void onClick(View v) {
>
>                         switch (v.getId()) {
>                 case R.id.startdetectingbtn:
>
>               EditText bluetoothtext =
> (EditText)findViewById(R.id.detectedsignal);
>
>                            // Getting the Bluetooth adapter
>                  BluetoothAdapter adapter =
> BluetoothAdapter.getDefaultAdapter();
>                            bluetoothtext.append("\nAdapter: " + adapter);
>
>                  // Check for Bluetooth support in the first place
>                  // Emulator doesn't support Bluetooth and will return null
>                  if(adapter==null) {
>                    bluetoothtext.append("\nBluetooth NOT supported. 
> Aborting.");
>                       return;
>                                     }
>                  else{
>                  // Starting the device discovery
>                          bluetoothtext.append("\nStarting discovery...");
>                            adapter.startDiscovery();
>                            bluetoothtext.append("\nDone with discovery...");
>
>                  // Listing paired devices
>                            bluetoothtext.append("\nDevices Paired:");
>                            Set devices = 
> adapter.getBondedDevices();
>                            for (BluetoothDevice device : devices)
>                            {
>                                    bluetoothtext.append("\nFound device: " + 
> device);
>
>                          }
>
>                  Intent i = new Intent(this, UIdrawingActivity.class);
>
>                 startActivity(i);
>
>                          }
>                         }
>
>          }
>
>
>
>
>
>
>
> }

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

2011-10-01 Thread Kristopher Micinski
On Sat, Oct 1, 2011 at 12:59 PM, Erel  wrote:
>> not a watered down version intended to
>> make it easier.
>
> Note that Basic4android is much more than a watered down version of
> the Android SDK. It is a RAD tool for building Android applications.
> Just as an example Basic4android supports many advanced features such
> as USB host, SMTP, POP3, home widgets, services, web services and many
> more.
>

True. However, RAD tools are intended to complement development of
real applications, not serve as a fallback because you don't know the
real development process.  I've got nothing against the use of these
tools for experienced developers, but the point stands:  if you're
learning Android development (or any kind of development) it would be
just plain wrong to recommend a tool other than the official SDK.
This is for multiple reasons: future employment possibilities, a much
larger userbase for the official tools (implies faster response to
questions a newcomer may have), and lots of available source.

So again, nothing against basic4android, but as the first thing you
learn I feel that you would be much better to sticking to the sdk,
possibly supplemented by these tools if they become useful later down
the road.

> The IDE is built from scratch for Android development and is therefore
> much simpler than Eclipse.

Perhaps simpler in terms of less overwhelming with respect to general
language features.  But again, I think this is probably because there
is a lot less to their language than java (where in eclipse you have
lots of popups for documentation, test cases, etc..., most of which
many people never use..)

Again, not bad, but not a clear reason why someone wouldn't want to
use eclipse, especially being a CS major you've probably experienced
something very similar before.

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


[android-developers] Re: hello

2011-10-01 Thread clark
As Kristopher said, you will be much better off sticking with Java and
the Android SDK.  BASIC is fine for those that don't do a lot of
programming but as a CS major you'll be doing quite a bit and you will
benefit more from using Java than BASIC.  I'm not knocking BASIC, I'm
just letting you know that you will be doing yourself a huge favor by
going the Java/Android SDK route.  It will pay off later on down the
road and you would be doing yourself a disservice by using
Basic4android.


And there you have my $0.02.

On Sep 29, 9:53 am, kuek9118  wrote:
> i am computer science student ...
> now i am going to do my final project is android application...
> hope i can get some help at here...
> any one can suggest some website for newbie(for me)?
> i searched a software that can use vb to do the android application
> which call "basic4android"
> is it good for new learning people?

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

2011-10-01 Thread Erel
> not a watered down version intended to
> make it easier.

Note that Basic4android is much more than a watered down version of
the Android SDK. It is a RAD tool for building Android applications.
Just as an example Basic4android supports many advanced features such
as USB host, SMTP, POP3, home widgets, services, web services and many
more.

The IDE is built from scratch for Android development and is therefore
much simpler than Eclipse.

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

2011-10-01 Thread Kristopher Micinski
On Sat, Oct 1, 2011 at 8:08 AM, Erel  wrote:
>
>> is it good for new learning people?
>
> Basic4android is much simpler than Eclipse / Java in almost all cases.
> Especially for programmers with less experience.
>

However it should be noted that this group is concerned explicitly
with the SDK, which is based on Java code.

If you want to learn how to program (for real) then you should learn
Java and the Android SDK.  If you are a computer science student, this
shouldn't be difficult, and is very typical of the workload expected
throughout an undergraduate course.

Using a basic variant for Android would have a number of drawbacks,
perhaps the biggest being: if you want to learn a skill that you can
use in a professional (or even hobbyist) manner, you're going to want
to use the actual framework, not a watered down version intended to
make it easier.

So go through the examples, and learn it for real, like I said, it
shouldn't be too difficult if you're a CS student already :-).

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


[android-developers] Re: hello

2011-10-01 Thread Erel

> is it good for new learning people?

Basic4android is much simpler than Eclipse / Java in almost all cases.
Especially for programmers with less experience.

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

2011-04-20 Thread Spiral123
"TBM"?
Is that Male or Fem?
One tip, I think
Is to follow this link:

https://market.android.com/details?id=com.poetry.android&feature=search_result


On Apr 16, 3:43 pm, "^TBM^"  wrote:
> Hey I'm new to this group you can just call me TBM. I am looking forward to
> learning as much as possible because I looking to develop an app to display
> my works of poetry. I find someone was doing the same on the android market
> and I thought it would be a great idea to do so. If anyone has any helpful
> tips to help me I would greatly appreciate it. Thanks and everyone have a
> good one!

-- 
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 Views GridView Tutorial - Android Packaging Problem

2011-02-03 Thread MarkH
I worked on this issue for hours on my second tutorial, strangely
enough I fixed it by changing Preferences: Android -> Build -> Build
Output to Verbose!




On Dec 12 2010, 11:34 am, Lucas Infante  wrote:
> I've got a similar error:
>
> Description
> Resource            Path        Location             Type
> Unparsed aapt error(s)! Check the console for output.
> HelloGridView                  Unknown   AndroidPackagingProblem
>
> There is no clue about the error, just this line im "Problems" menu of
> Eclipse...
>
> Can someone give any directions?
>
> Thanks in advance.

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

2010-12-13 Thread Gulfam
Hi Montya,

I think your application is crashing at some point, try to find out
the issue first. As mark has said use adb Logcat, DDMS to narrow down
the issue.

Gulfam

On Dec 11, 3:18 pm, montya  wrote:
> Hey guys i am following Hello Andriod book.
>
> All was fine till  60th page, When i try to implement in About of the
> Soduku application i get " The application Sudoku (process
> org.example.sudoku) has stopped unexpectedlty. Please try again"
>
> I have followed the procedure in the book.
>
> Can you all help please.
>
> Thank You

-- 
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 map view problem

2010-12-11 Thread doles
Nvm... this was due to the fact that I did not have my debug.keystore
registered with google maps API service...

On Dec 11, 8:10 pm, doles  wrote:
> Hello,
>
> I am trying to run the Hello, Mapview program from the anrdoid dev
> guide on an emulator. Here's the exception I keep getting. What could
> be wrong? I have ensured that my code is exactly as per the dev guide
> except my package name and such things. Thanks in Advance!
>
> 12-11 19:57:19.547: WARN/System.err(723): java.io.IOException: Server
> returned: 3
> 12-11 19:57:19.566: WARN/System.err(723): at
> android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.re 
> adResponseData(BaseTileRequest.java:
> 115)
> 12-11 19:57:19.566: WARN/System.err(723): at
> android_maps_conflict_avoidance.com.google.googlenav.map.MapService
> $MapTileRequest.readResponseData(MapService.java:1473)
> 12-11 19:57:19.576: WARN/System.err(723): at
> android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
> tDispatcher.processDataRequest(DataRequestDispatcher.java:
> 1117)
> 12-11 19:57:19.586: WARN/System.err(723): at
> android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
> tDispatcher.serviceRequests(DataRequestDispatcher.java:
> 994)
> 12-11 19:57:19.596: WARN/System.err(723): at
> android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
> tDispatcher
> $DispatcherServer.run(DataRequestDispatcher.java:1702)
> 12-11 19:57:19.606: WARN/System.err(723): at
> java.lang.Thread.run(Thread.java:1019)

-- 
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 World doesn't work

2010-11-23 Thread A. Elk
To expand on this:

The behavior the OP is seeing is the emulator starting up. During
startup, the text "Android" will blink. Even on a fast machine, it may
take several minutes for the emulator to load and start the program.
For this reason, you should leave the emulator running if possible
while you're working, or work with an actual device if you can.

If the application does not start after 10 minutes, then something is
wrong.

On Nov 22, 11:13 pm, Kumar Bibek  wrote:
> Wait for some time. Let it run. The first run of the emulator always takes
> longer that you would expect. :)
>
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
>
>
>
>
>
>
> On Mon, Nov 22, 2010 at 12:23 AM, Naveen  wrote:
> > Hey folks,
>
> > Couple of days back, I read some articles about Android and from that
> > moment I fell in love with Android development :) I explored
> > "Developing Android apps" for the past few days and done the
> > following,
>
> > * Installed the latest Android SDK i.e., 2.2 version. Also updated all
> > the installed packages using "SDK manager"
>
> > * Installed Eclipse IDE for Java EE developers
>
> > * Installed Android plugin for Eclipse
>
> > * Created AVD and selected the target platform as Android SDK 2.2
>
> > * Written a new HelloWorld program with the below code,
>
> > package com.example.helloandroid;
>
> > import android.app.Activity;
> > import android.os.Bundle;
>
> > public class HelloAndroid extends Activity {
> >    /** Called when the activity is first created. */
> >   �...@override
> >    public void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
> >    }
> > }
>
> > When I try to run the code "Hello World" is not printed in the
> > emulator. Just the text "Android" blinks in the middle of the device/
> > emulator.
>
> > The following is printed in the console when I ran the code
>
> > [2010-11-21 10:51:12 - HelloAndroid] --
> > [2010-11-21 10:51:12 - HelloAndroid] Android Launch!
> > [2010-11-21 10:51:12 - HelloAndroid] adb is running normally.
> > [2010-11-21 10:51:12 - HelloAndroid] Performing
> > com.geek.HelloAndroid.HelloAndroid activity launch
> > [2010-11-21 10:51:12 - HelloAndroid] Automatic Target Mode: launching
> > new emulator with compatible AVD 'HelloAndroid'
> > [2010-11-21 10:51:12 - HelloAndroid] Launching a new emulator with
> > Virtual Device 'HelloAndroid'
> > [2010-11-21 10:51:27 - HelloAndroid] New emulator found: emulator-5554
> > [2010-11-21 10:51:27 - HelloAndroid] Waiting for HOME
> > ('android.process.acore') to be launched...
>
> > Could you please let me know is there any issue with the code or the
> > procedure? It would be really helpful if you point some good basic
> > references for developing Android apps..
>
> > TIA.
>
> > Naveen Venkat
>
> > --
> > 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 > cr...@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~~! I have a some question that how to get airplane mode.

2010-10-21 Thread Kostya Vasilyev
That's privileged code. System settings can only be changed by applications
that are built into the firmware.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

22.10.2010 1:28 пользователь "Vladimir Ivanov" 
написал:

Settings.System.putInt(context.getContentResolver(),
Settings.System.AIRPLANE_MODE_ON,
1);
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
sendBroadcast(intent);

-- 
С уважением,
Владимир Иванов

-- 
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~~! I have a some question that how to get airplane mode.

2010-10-21 Thread Vladimir Ivanov
Settings.System.putInt(context.getContentResolver(),
Settings.System.AIRPLANE_MODE_ON,
1);
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
sendBroadcast(intent);

-- 
С уважением,
Владимир Иванов

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

2010-10-10 Thread Brion Emde
That sounds like your emulator has not completely started up. When you
start an emulator the very first time, it can take a very long time to
completely initialize.

On Oct 9, 1:39 pm, Lahoucine MOUDNI  wrote:
> Hello everybody
>
> Im a beginner in Android platform, i read docs about Android ,i installed
> Eclipse with ADT plugin and i installed all avalible targets.After that i
> added Virtual devices ,i wanted test all this with "Hello android" App ,the
> code have no errors and when i execute it the emulator appears but instead
> of having "hello android " on the screen of the emulator ,im having a black
> screen with a wrting "ANDROID_",and i really dont know what is wrong!
>
> Can anyone tell me what could be the problem ?
>
> Thanks

-- 
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 Android app not working?

2010-10-06 Thread cellurl
Try the sample code link below. Its called APIdemos.
All of them work. When I started Android a year back, I tried all of
them one at a time.
That way people (like me) can discuss specifics.
http://developer.android.com/resources/samples/get.html
-jim


On Sep 30, 7:13 pm, Joel  wrote:
> I followed the instructions on setting up the Android SDK by
> installing the java SDK first, then the Android SDK (including the
> various platforms), installed eclipse, set up the ADT for eclipse
> plugin, and typed in the code (I copy and pasted straight from the
> site too but still didn't work)
>
> What I get when I run the app is the screen just saying ANDROID_
>
> The emulator starts up fine and everything, but none of the code runs.
> I tried the xml and the hard code example but both resulted in the
> same thing.
>
> What am I doing wrong? Thanks!

-- 
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 World! java.lang.NullPointerException error

2010-07-27 Thread Richard Poppleton
Hi,

Did you find a resolution to the problem because I've got the same one
and I'd like to know how you resolved it.

Thanks in advance,

Richard

On Jun 28, 9:28 pm, c2billp  wrote:
> it has taken more than i expected to get the dev environment up and
> running - mostly a PATH issue which was solved 
> using:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> My emulator now works (and i can run it and get the default android
> screen) however when i try to run thehelloworldsample code i get
> thiserrormessage:
>
> An internalerroroccurred during: "Launching 
> HelloAndroid".java.lang.NullPointerException
>
> Any suggestions on where to start would be much appreciated.
>
> -bp

-- 
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 android app doesn't run properly

2010-04-28 Thread Bob Kerns
He probably just didn't wait for the Emulator to boot, but sat there
puzzled for a few seconds, then killed it, and so the same thing
happened the next time as well, etc. That happened to me the first
time.

On Apr 28, 7:44 am, TreKing  wrote:
> On Tue, Apr 27, 2010 at 12:39 PM, serj  wrote:
> > I was following the Hello World(Android) tutorial located in the
> > Dev Section of Android website
>
> OK.
>
> > and everything went smoothly
>
> OK
>
> > except when I ran the app as Android Application from Eclipse( for Java) a
> > window appeared with one side having a black screen and grey letters
> > spelling ANDROID_ and on the other a bunch of buttons.
>
> OK, that's the emulator.
>
> And the point of this post was ... ?
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> 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 
> athttp://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!

2010-04-14 Thread Nithin


Yes, please report this as spam and stop posting this unnecesary post
in this active group..


On Apr 15, 10:37 am, Kevin Duffey  wrote:
> Please report this as spam and block this persons ISP from ever posting.
>
> On Wed, Apr 14, 2010 at 10:26 PM, Eric Ladem  wrote:
> >  Hello!
> >  Dear friends,
> >      I have a friend .He sold a lot of things, very cheap prices. And he
> > also wholesale shoes, bags, clothes,Mobile phones, computers, sports brand..
> > Hope you can find some opportunities.
> >http://www.c2coffer.com/store_pocker1
> > msn:tomi...@gmail.com 
>
> > --
> > 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: hello-Jni Andriod ndk

2010-03-23 Thread Anandi
Can you send the complete logcat and the steps you followed to execute
the application?
Are you running NDK's hello-jni application? If yes then follow this
link:

http://developer.android.com/sdk/ndk/index.html

Anu

On Mar 23, 11:56 pm, rizwan  wrote:
> Hi ,
>
> I m trying to run the sample Hello-jni application but it's crashing
> on emulator ,the application hello nji has stopped unexpectedly . can
> you suggest what' wrong with it ? I am running on Android 2.1
>
> I/installd(   31): move /data/dalvik-cache/
> d...@a...@vmdl32924@classes.dex ->
>  /data/dalvik-cache/d...@a...@com.example.hellojni@classes.dex
> D/PackageManager(   53): New package installed in /data/app/
> com.example.hellojni
> .apk
> D/AndroidRuntime(  117): Shutting down VM
> D/dalvikvm(  117): DestroyJavaVM waiting for non-daemon threads to
> exit
> D/dalvikvm(  117): DestroyJavaVM shutting VM down
> D/dalvikvm(  117): HeapWorker thread shutting down
> E/AndroidRuntime(  117): ERROR: thread attach failed
> D/dalvikvm(  117): HeapWorker thread has shut down
> D/jdwp    (  117): JDWP shutting down net...
> I/jdwp    (  117): adbd disconnected
> D/dalvikvm(  117): VM cleaning up
> D/dalvikvm(  117): LinearAlloc 0x0 used 620804 of 5242880 (11%)
> D/dalvikvm(   53): GC freed 13131 objects / 715120 bytes in 1217ms
> W/dalvikvm(   99): threadid=3: spin on suspend #0 threadid=15
> (h=3315448)
> W/dalvikvm(   99): dumping state: process - 99
> I/dalvikvm(   99): "main" prio=5 tid=3 RUNNABLE
> I/dalvikvm(   99):   | group="main" sCount=0 dsCount=0 s=N
> obj=0x4001b268 self=0
> xbd00
> I/dalvikvm(   99):   | sysTid=99 nice=0 sched=0/0 cgrp=default
> handle=-134400138
> 4
> I/dalvikvm(   99):   at
> java.lang.AbstractStringBuilder.enlargeBuffer(AbstractSt
> ringBuilder.java:~97)
> I/dalvikvm(   99):   at
> java.lang.AbstractStringBuilder.append0(AbstractStringBu
> ilder.java:155)
> I/dalvikvm(   99):   at
> java.lang.StringBuilder.append(StringBuilder.java:216)
> I/dalvikvm(   99):   at
> android.content.ComponentName.flattenToShortString(Compo
> nentName.java:136)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SearchableSuggestionSource. t>(SearchableSuggestionSource.java:90)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SearchableSuggestionSource. t>(SearchableSuggestionSource.java:82)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SuggestionSources.addExternalSo
> urces(SuggestionSources.java:251)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SuggestionSources.updateSources
> (SuggestionSources.java:240)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SuggestionSources.load(Suggesti
> onSources.java:194)
> I/dalvikvm(   99):   at
> com.android.globalsearch.SuggestionProvider.onCreate(Sug
> gestionProvider.java:100)
> I/dalvikvm(   99):   at
> android.content.ContentProvider.attachInfo(ContentProvid
> er.java:710)
> I/dalvikvm(   99):   at
> android.app.ActivityThread.installProvider(ActivityThrea
> d.java:4267)
> I/dalvikvm(   99):   at
> android.app.ActivityThread.installContentProviders(Activ
> ityThread.java:4042)
> I/dalvikvm(   99):   at
> android.app.ActivityThread.handleBindApplication(Activit
> yThread.java:4001)
> I/dalvikvm(   99):   at android.app.ActivityThread.access
> $2900(ActivityThread.ja
> va:119)
> I/dalvikvm(   99):   at android.app.ActivityThread
> $H.handleMessage(ActivityThrea
> d.java:1901)
> I/dalvikvm(   99):   at
> android.os.Handler.dispatchMessage(Handler.java:99)
> I/dalvikvm(   99):   at android.os.Looper.loop(Looper.java:123)
> I/dalvikvm(   99):   at
> android.app.ActivityThread.main(ActivityThread.java:4363
> )
> I/dalvikvm(   99):   at java.lang.reflect.Method.invokeNative(Native
> Method)
> I/dalvikvm(   99):   at java.lang.reflect.Method.invoke(Method.java:
> 521)
> I/dalvikvm(   99):   at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.r
> un(ZygoteInit.java:860)
> I/dalvikvm(   99):   at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
> 618)
> I/dalvikvm(   99):   at dalvik.system.NativeStart.main(Native Method)
> I/dalvikvm(   99):
> I/dalvikvm(   99): "ApplicationsProviderUpdater" prio=5 tid=15
> RUNNABLE
> I/dalvikvm(   99):   | group="main" sCount=1 dsCount=0 s=N
> obj=0x43bb43f8 self=0
> x331838
> I/dalvikvm(   99):   | sysTid=134 nice=10 sched=0/0
> cgrp=bg_non_interactive hand
> le=3315448
> I/dalvikvm(   99):   at
> android.database.sqlite.SQLiteProgram.clearBindings(SQLi
> teProgram.java:~209)
> I/dalvikvm(   99):   at android.database.DatabaseUtils
> $InsertHelper.prepareForIn
> sert(DatabaseUtils.java:958)
> I/dalvikvm(   99):   at
> com.android.providers.applications.ApplicationsProvider.
> updateApplicationsList(ApplicationsProvider.java:449)
> I/dalvikvm(   99):   at
> com.android.providers.applications.ApplicationsProvider.
> access$300(ApplicationsProvider.java:56)
> I/dalvikvm(   99):   at
> com.android.providers.applications.ApplicationsProvider$
> UpdateHandler.handleMessage(ApplicationsProvider.java:171)
> I/dalvikvm(   99):

[android-developers] Re: Hello Andoid works then ... Not able to run android project

2010-02-22 Thread Zack
The adt and ddms plug-ins were missing from the eclipse Plug-in
directory.  No idea how that happened.

On Feb 22, 6:53 pm, Zack  wrote:
> Thanks for help.
>
> Built Hello Android app on Galileo - it ran fine.
> Next day - unable to run android apps.
> ADT and DDMS show installed.
> PATH is set to SDK.
>
> There is no option to create a new android project or run android apps
> now.  No idea what happened. I changed nothing I know of.
>
> So I tried reinstalling everything...No luck.
>
> Anyone know what to check to find out why I can't build or run android
> apps anymore?
> Shouldn't the Eclipse Installation Details tell me something?
>
> Thanks again,
>
> Zack.

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

2009-10-26 Thread alexdonnini

Problem solved. I needed to replace the Maps API key.

On Oct 25, 9:07 pm, alexdonnini  wrote:
> Hello,
>
> Until recently, the map view function in my application worked.
> Starting a few weeks ago, although the function still seems to be
> working, the map itself is not being displayed any longer.
>
> To verify whether there was a problem in my code, I implemented an
> activity using the code in "Hello, MapView". Although it runs, the map
> itself is not displayed.
>
> The DDMS log reports:
>
> 10-25 21:03:26.443: ERROR/MapActivity(7765): Couldn't get connection
> factory client
>
> I would appreciate it if someone could help me understand how to
> resolve this issue.
>
> Thanks.
>
> Alex Donnini
--~--~-~--~~~---~--~~
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-jni example: works on emulator, not on G1

2009-10-15 Thread Mark Murphy

Jeff Schiller wrote:
> Learning about the NDK and JNI today.  I was able to build, install
> and run the Quake demo that was ported to Android via the NDK 1.6.
> Worked great.
> 
> I then started looking at the hello-jni example.  This example works
> for me in the emulator, but does NOT work for me on the G1:

You might want to ask your question on the NDK group:

http://groups.google.com/group/android-ndk

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android_ from Apress Now Available!

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

2009-09-17 Thread Gulfam

Hi Suzanne

   Welcome to this group you can help others by your posts here.

gulfam

On Sep 17, 4:06 am, Don Tran  wrote:
> so tell us when will the motorola sholes be ready?
>
> On Sep 16, 1:07 pm, Mark Murphy  wrote:
>
> > suzanne.alexandra wrote:
> > > I'm Suzanne Alexandra, and I work with Android at Motorola. I'm a real
> > > human and will be posting here from time to time.
>
> > Hi, Suzanne! Welcome to the funhouse!
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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

2009-09-16 Thread Don Tran

so tell us when will the motorola sholes be ready?

On Sep 16, 1:07 pm, Mark Murphy  wrote:
> suzanne.alexandra wrote:
> > I'm Suzanne Alexandra, and I work with Android at Motorola. I'm a real
> > human and will be posting here from time to time.
>
> Hi, Suzanne! Welcome to the funhouse!
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >