[android-beginners] how to put button in list activity?

2010-01-21 Thread umar
hi,

can any one guide me how can i put


Text  Button

in list activity???


any help would be appriciated.
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how to put button in list activity?

2010-01-21 Thread Antti Karhu
HI.

Just like with other views, put it in the layout xml:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent

Button android:id=@+id/selection android:layout_width=fill_parent
android:layout_height=wrap_content android:text=a button /

ListView android:id=@android:id/list
android:layout_width=fill_parent
android:layout_height=fill_parent
android:drawSelectorOnTop=false /

/LinearLayout

-- Antti

On Thu, Jan 21, 2010 at 11:38 AM, umar mr_muskura...@yahoo.com wrote:

 hi,

 can any one guide me how can i put


 Text  Button

 in list activity???


 any help would be appriciated.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: how to put button in list activity?

2010-01-21 Thread umar
actually i am new to android..

on button click i want to go to text detail

and button should be dispalyed beside that text.. could you please
explain it??

do you have any example of that

On Jan 21, 2:49 pm, Antti Karhu antti.iisa...@gmail.com wrote:
 HI.

 Just like with other views, put it in the layout xml:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
     android:orientation=vertical android:layout_width=fill_parent
     android:layout_height=fill_parent

     Button android:id=@+id/selection android:layout_width=fill_parent
         android:layout_height=wrap_content android:text=a button /

     ListView android:id=@android:id/list
 android:layout_width=fill_parent
         android:layout_height=fill_parent
 android:drawSelectorOnTop=false /

 /LinearLayout

 -- Antti



 On Thu, Jan 21, 2010 at 11:38 AM, umar mr_muskura...@yahoo.com wrote:
  hi,

  can any one guide me how can i put

  Text  Button

  in list activity???

  any help would be appriciated.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr­...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en- Hide quoted text -

 - Show quoted text -
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: problems with emulator

2010-01-21 Thread jj
Finally, I found the problem, and I am posting it here, in case it can
be of any help to anyone...

The emulator seems to crash when the operative system is NOT
english...

was anyone aware of this?

I had my windows xp sp3 in spanish, and no matter how many times I
installed and reinstalled JDK... I even tried many of the available
android sdk's, from the old ones to the most recent ones... The
emulator (run both from the console and from eclipse) always
crashes...

Then I installed microsoft virtual pc, and an english windows xp, with
only the latest JDK and the android SDK, and it worked straight
away...


It would be good if someone from the android team can check this out


Thanks

On Jan 19, 8:40 pm, jj juanjosegilmen...@hotmail.com wrote:
 Hi

 I am trying to run it from console, and the error that I get is just a
 window telling
 emulator.exe has detected a problem and must close, with two buttons
 to decide whether to inform microsoft about this problem
 sorry, I dont know how to insert a screenshot here...

 On Jan 19, 6:15 pm, honey malhotra aryan.m...@gmail.com wrote:

  Hi,

  I think thr is some problem at the time of configuration.

  If you are trying to run the emulator from eclipse then try to check the
  logcat when the emulator crashes. It will give you some more details.

  If you are starting from console in that case can you tell me the exact
  error which you on getting on console when it crashes.

  -Regards
  Aryan

  On Tue, Jan 19, 2010 at 10:06 AM, jj juanjosegilmen...@hotmail.com wrote:
   Thanks for your reply, but unfortunately, I did try most of the sdk's:
   Release 1.6 r1
   Release 1.5 r3
   Release 1.1 r1
   Release 1.0 r2
   with the same frustrating result
   That's actually the reason why I try the old one, thinking that there
   may be some incompatibility with the new ones...

   On Jan 19, 5:14 pm, Indicator Veritatis mej1...@yahoo.com wrote:
1..0_r1 is really old. At this point, I would not use anything older
than 1.5_r3, and that only if you had a strong reason to avoid 2.0.
Remember that you can always target an early API level, so it is very
rare that you would actually need to use the old SDK.

On Jan 19, 3:47 am, jj juanjosegilmen...@hotmail.com wrote:

 Hi
 I recently moved from linux (where I was developing for android using
 eclipse) to windows

 I just downloaded the sdk (android-sdk- windows-1 .0_r1.zip), and the
 emulator does not start...
 I dont even see it. Just a screen telling that has been an error, and
 the posibility to inform microsoft! about it

 Also, I installed JDK (Java SE Development Kit 6u18), but it keeps
 crashing

 anyone has any idea about what I am missing?

 Thanks

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
i...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How to change emulator's default wallpaper?

2010-01-21 Thread Sourabh Pandit
Hi,
m new to android. Please tell me how to change the default wallpaper
in android emulator.
I don't want to use SD card.

Following thing I have tried:
1) Tweak with .apk file. I have pulled .apk file and added new
wallpaper images and tried to install. But couldn't install as i got
Certification error.
2) Tried to Compile the launcher code in eclipse, but got compilation
errors.

please help..
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How can I deploy Android app to google App engine cloud ?

2010-01-21 Thread QterMgnus
I have made small android application I want to deploy it to Google
App engine in my personal cloud ?
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Cell information like on old phones?

2010-01-21 Thread Kiripolszky Károly
Hi all!

My old SE phone was able to show additional cell information like city/
district name, train stations, events, etc. depending on the currently
used GSM station. As my operator supports this, I'd really love to
have the same information on my G1, but I can't seem to find support
for the same feature in Android, only for getting the name of the
network operator. Would someone please tell me how to retrieve this
kind of additional cell info? Thanks for any replies in advance!
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] how can I launch my own activity from Home screen?

2010-01-21 Thread satish bhoyar
hi all,
I m trying to launch my own activity from Home Screen. I gave the button for
the same to do it . I then build the code  wen i click the button i get
error saying the application is not installed on the phone..

please help.

thanks
sat
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] UPnP

2010-01-21 Thread Abhi
Hi,

Need help understanding how to build a UPnP stack in Android? Anyone?

Abhi
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how can I launch my own activity from Home screen?

2010-01-21 Thread Justin Anderson
You have got to be a little more specific...

* I m trying to launch my own activity from Home Screen*
Ok, install your app as normal and create a shortcut as you would any other
app...

* I gave the button for the same to do it*
What?

* I then build the code  wen i click the button i get error saying the
application is not installed on the phone..*
So put your app on the phone...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Jan 21, 2010 at 6:19 AM, satish bhoyar getsatonl...@gmail.comwrote:

 hi all,
 I m trying to launch my own activity from Home Screen. I gave the button
 for the same to do it . I then build the code  wen i click the button i get
 error saying the application is not installed on the phone..

 please help.

 thanks
 sat
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: how can I launch my own activity from Home screen?

2010-01-21 Thread KitzyKitt
Are you trying to run it through the Emulator? Or did you get it to
work on the emulator and now you are trying to get it to work on your
phone?

This extra information will be helpful in solving your issue.

Sincerly,
-Kitzy

On Jan 21, 6:19 am, satish bhoyar getsatonl...@gmail.com wrote:
 hi all,
 I m trying to launch my own activity from Home Screen. I gave the button for
 the same to do it . I then build the code  wen i click the button i get
 error saying the application is not installed on the phone..

 please help.

 thanks
 sat
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how can I launch my own activity from Home screen?

2010-01-21 Thread Sean Hodges
On Thu, Jan 21, 2010 at 1:19 PM, satish bhoyar getsatonl...@gmail.com wrote:
 hi all,
 I m trying to launch my own activity from Home Screen. I gave the button for
 the same to do it . I then build the code  wen i click the button i get
 error saying the application is not installed on the phone..


You get this error when you have not signed your APK and attempt to
launch it from the Home screen on a phone. I assume you are trying to
launch on a physical phone rather than the emulator?

Have a read of this article:
http://developer.android.com/intl/fr/guide/publishing/app-signing.html
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how can I launch my own activity from Home screen?

2010-01-21 Thread satish bhoyar
yes  I am editing the android code. I put the button in the launcher.xml
 then build the android code , then flash the phone
I want to launch my activity on the click event of the button.

but the problem is coming..

thanks,
satish



On Thu, Jan 21, 2010 at 9:17 PM, Sean Hodges seanhodge...@googlemail.comwrote:

 On Thu, Jan 21, 2010 at 1:19 PM, satish bhoyar getsatonl...@gmail.com
 wrote:
  hi all,
  I m trying to launch my own activity from Home Screen. I gave the button
 for
  the same to do it . I then build the code  wen i click the button i get
  error saying the application is not installed on the phone..
 

 You get this error when you have not signed your APK and attempt to
 launch it from the Home screen on a phone. I assume you are trying to
 launch on a physical phone rather than the emulator?

 Have a read of this article:
 http://developer.android.com/intl/fr/guide/publishing/app-signing.html

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Phone temperature

2010-01-21 Thread Steeler
I just finally got an ADP1 (used for ~175!) and I'm really happily
surprised at the performance of my app... it was running pretty badly
in the emulator, but apparently the emulator's just really slow.

One thing though... running my app (a 2D game that draws a fair amount
of sprites and has background music) makes the phone get pretty darn
warm. Is that normal?
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how can I launch my own activity from Home screen?

2010-01-21 Thread Justin Anderson
This is not an appropriate question for this group... You would get better
help from the android developers group.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Jan 21, 2010 at 10:26 AM, satish bhoyar getsatonl...@gmail.comwrote:

 yes  I am editing the android code. I put the button in the
 launcher.xml  then build the android code , then flash the phone
 I want to launch my activity on the click event of the button.

 but the problem is coming..

 thanks,
 satish



 On Thu, Jan 21, 2010 at 9:17 PM, Sean Hodges 
 seanhodge...@googlemail.comwrote:

 On Thu, Jan 21, 2010 at 1:19 PM, satish bhoyar getsatonl...@gmail.com
 wrote:
  hi all,
  I m trying to launch my own activity from Home Screen. I gave the button
 for
  the same to do it . I then build the code  wen i click the button i get
  error saying the application is not installed on the phone..
 

 You get this error when you have not signed your APK and attempt to
 launch it from the Home screen on a phone. I assume you are trying to
 launch on a physical phone rather than the emulator?

 Have a read of this article:
 http://developer.android.com/intl/fr/guide/publishing/app-signing.html

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] حقيقه مش خيال إكس ب لاب توب مجانى مقدم من شركة EZLapTop

2010-01-21 Thread alagmy
حقيقه مش خيال إكسب لاب توب مجانى  مقدم من شركة EZLapTop

هل تريد الحصول على أحد هذين الكمبيوترين مجانا ؟

حقيقه مش خيال

ما عليك إلا جمع النقاط

195 نقطة للحصول على الكمبيوتر التالي
الاسم : Sony

المواصفات : 2.2Ghz انتل كور 2 ديوو مع 4GB ذاكرة الوصول العشوائي ،
ويندوز 7 64 بت

295 نقطة للحصول على الكمبيوتر التالي

الاسم : 15.4 MacBook Pro
المواصفات : إنتل كور 2 ديو المعالج مع ذاكرة 2GB. 295

طريقة جمع النقاط

بطريقتين :


الأولى بقراءة الرسائل : عندما تسجل الدخول في الموقع تضغط على الصندوق
الوارد ومن ثم تقرأ الرسائل ,( كل رسالة بنقطة ).


الثانية : بالريفرالز أي دعوة الأصدقاء ( كل صديق يسجل عن طريقك تحصل على
نقطة ) .


طريقة التسجيل

إضغط على هذا الرابط

http://ezlaptop.com//?r=225312

ثم sign up

وتابع خطوات التسجيل وأبد فى تجميع النقاط

لمزيد من التفاصيل

http://agd3as7ab.eb2a.com/vb/showthread.php?t=1162

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Centering ImageButtons within TableRow

2010-01-21 Thread MobDev
Hi,
I am trying to create a grid-like UI implementing ImageButtons.
For that purpose I have selected the TableLayout, implementing several
TableRows which in turn include a couple of ImageButtons.
I'd like the two TableRows to cover the whole Table's width (so the
width should be divided in two equal parts) and then the ImageButtons
should be centered within the TableRows...
Any tips/hints on how to achieve this ?
thanks in advance...
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] problems with emulator

2010-01-21 Thread Adrian Vintu
try android-sdk_r04-windows.zip
at http://developer.android.com/intl/zh-CN/sdk/index.html

and don't forget the ADT at
http://developer.android.com/intl/zh-CN/sdk/eclipse-adt.html

BR,
Adrian Vintu

On Tue, Jan 19, 2010 at 12:47 PM, jj juanjosegilmen...@hotmail.com wrote:

 Hi
 I recently moved from linux (where I was developing for android using
 eclipse) to windows

 I just downloaded the sdk (android-sdk- windows-1 .0_r1.zip), and the
 emulator does not start...
 I dont even see it. Just a screen telling that has been an error, and
 the posibility to inform microsoft! about it

 Also, I installed JDK (Java SE Development Kit 6u18), but it keeps
 crashing

 anyone has any idea about what I am missing?

 Thanks


 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Keys don't work with SurfaceView

2010-01-21 Thread Jason Arora
In addition to setFocusable, try calling setFocusableInTouchMode
(true).

Your onKey should look more like this:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {...}

@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {...}


On Jan 15, 10:21 am, guich guiha...@gmail.com wrote:
 Hi,

 I have this View:

 public class Launcher4A extends SurfaceView implements
 SurfaceHolder.Callback, OnKeyListener
 {
   public Launcher4A(Context context)
   {
      super(context);
      System.loadLibrary(tcvm);
      instance = this;
      surfHolder = getHolder();
      surfHolder.addCallback(this);
      setWillNotDraw(true);
      setFocusable(true);
      requestFocus();
      setOnKeyListener(this);
   }

   public boolean onKey(View v, int keyCode, KeyEvent event)
   {
      Log.i(TotalCross, onKeyDown +keyCode);
      return true;
   }

 }

 When i run the application in Emulator, the onKey is never called if
 the Launcher4A class was clicked inside. Actually, i was able to get
 the onKeyDown log once, when i clicked somewhere outside the view, but
 i'm unable to get it when the view has focus.

 Am I missing something?

 Best,

   guich
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: T-Mobile prepaid sidekick plan?

2010-01-21 Thread Skittles The Awesome
Im sorry my friend, im afraid this won't work...
i've researched it on the web ( i want a g1 with a sidekick plan
tooo )
and sadly it doesnt work :(
 I so totally wish tmobile or google would let it work...
cause it would totally revolutionize the prepaid mobile industry..

On Dec 23 2009, 8:24 am, Michael Dorin bsddo...@gmail.com wrote:
 Anybody ever try the t-mobile prepaid sidekick data/text message plan
 on an android phone other than
 a t-mobile sidekick?

 I tried to buy it last night, but the salesguy would not sell it..as
 he said it would not work on my
 google developers conference android.  Can that be true?

 Thanks,

 -Mike
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] problems with emulator

2010-01-21 Thread tech guy
U must install a android sdk for linux...

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

On Tue, Jan 19, 2010 at 5:17 PM, jj juanjosegilmen...@hotmail.com wrote:

 Hi
 I recently moved from linux (where I was developing for android using
 eclipse) to windows

 I just downloaded the sdk (android-sdk- windows-1 .0_r1.zip), and the
 emulator does not start...
 I dont even see it. Just a screen telling that has been an error, and
 the posibility to inform microsoft! about it

 Also, I installed JDK (Java SE Development Kit 6u18), but it keeps
 crashing

 anyone has any idea about what I am missing?

 Thanks


 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: setContentView fails when creating a new activity

2010-01-21 Thread RNekic
I find that exceptions triggered by setContentView are often simple
oversights in the layout file.  Often, it is caused by a missing
layout_width or layout_height on one of my view declarations in the
xml.



On Jan 19, 9:37 am, Walt Armour waltarm...@gmail.com wrote:
 That looks like the content of the stack from the eclipse debug
 perspective.  What's the actual exception/error?  If you resume the run
 (perhaps more than once) the complete stack with error will eventually get
 dumped to the log.  You can then view it in the logcat window (a tab in the
 right pane of the debug perspective).

 On Mon, Jan 18, 2010 at 20:05, oregonduckman oregonduck...@gmail.comwrote:



  My code is calling setContentView(R.layout.someLayoutID); from an
  activities' onCreate method. The activity is launched with the
  following:

                         Intent myIntent = new Intent(this, myClass.class);
                         try
                         {
                                 this.startActivity(myIntent);
                         }
                         catch(ActivityNotFoundException e)
                         {
                                 e.toString();
                         }

  The activity is declared in the manifest file as                activity
  android:name=.myClass/activity
  The call to setContentView results in the following: (also, is it
  possible to setup Eclipse to find the source that the VM is referring
  to (instead of just getting the source not found error??

  DalvikVM[localhost:8656]
         Thread [3 main] (Suspended (exception RuntimeException))

   ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
  Intent) line: 2481

   ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord,
  Intent) line: 2497
                 ActivityThread.access$2200(ActivityThread, ActivityThread
  $ActivityRecord, Intent) line: 119
                 ActivityThread$H.handleMessage(Message) line: 1848
                 ActivityThread$H(Handler).dispatchMessage(Message) line: 99
                 Looper.loop() line: 123
                 ActivityThread.main(String[]) line: 4338
                 Method.invokeNative(Object, Object[], Class, Class[], Class,
  int,
  boolean) line: not available [native method] [local variables
  unavailable]
                 Method.invoke(Object, Object...) line: 521
                 ZygoteInit$MethodAndArgsCaller.run() line: 860
                 ZygoteInit.main(String[]) line: 618
                 NativeStart.main(String[]) line: not available [native
  method]
         Thread [13 Binder Thread #2] (Running)
         Thread [11 Binder Thread #1] (Running)
         Thread [15 Binder Thread #3] (Running)

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr 
  i...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Keys don't work with SurfaceView

2010-01-21 Thread Jason Arora
That's strange, I posted a reply but my message did not appear. Sorry
if I end up double-posting.

Try adding setFocusableInTouchMode(true) in addition to setFocusable
(true).

Also, your onKey callback looks incomplete, it should look more like
this:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {...}

@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {...}


On Jan 15, 10:21 am, guich guiha...@gmail.com wrote:
 Hi,

 I have this View:

 public class Launcher4A extends SurfaceView implements
 SurfaceHolder.Callback, OnKeyListener
 {
   public Launcher4A(Context context)
   {
      super(context);
      System.loadLibrary(tcvm);
      instance = this;
      surfHolder = getHolder();
      surfHolder.addCallback(this);
      setWillNotDraw(true);
      setFocusable(true);
      requestFocus();
      setOnKeyListener(this);
   }

   public boolean onKey(View v, int keyCode, KeyEvent event)
   {
      Log.i(TotalCross, onKeyDown +keyCode);
      return true;
   }

 }

 When i run the application in Emulator, the onKey is never called if
 the Launcher4A class was clicked inside. Actually, i was able to get
 the onKeyDown log once, when i clicked somewhere outside the view, but
 i'm unable to get it when the view has focus.

 Am I missing something?

 Best,

   guich
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] repo sync problem

2010-01-21 Thread chucks
hi
i just new to android and was trying to build android for ADP1.
i was following the instruction given in http://source.android.com/download
,  but i get stuck while getting the files. when i do repo sync , this
is what i get

ra...@ubuntu:~/mydroid$ repo sync
Fetching projects:   4% (7/164)  remote: Counting objects: 19261,
done.
remote: Compressing objects: 100% (6154/6154), done.
remote: Total 19261 (delta 9947), reused 19075 (delta 9827)
Receiving objects: 100% (19261/19261), 22.72 MiB | 92 KiB/s, done.
Resolving deltas: 100% (9947/9947), done.
From git://android.git.kernel.org/platform/development
 * [new branch]  android-2.0_r1_snapshot - korg/
android-2.0_r1_snapshot
 * [new branch]  android-sdk-2.0_r1_snapshot - korg/android-
sdk-2.0_r1_snapshot
 * [new branch]  android-sdk-tools_r3_snapshot - korg/android-sdk-
tools_r3_snapshot
 * [new branch]  cdma-import - korg/cdma-import
 * [new branch]  cupcake- korg/cupcake
 * [new branch]  cupcake-release - korg/cupcake-release
 * [new branch]  donut  - korg/donut
 * [new branch]  donut-plus-aosp - korg/donut-plus-aosp
 * [new branch]  donut-release - korg/donut-release
 * [new branch]  eclair - korg/eclair
 * [new branch]  master - korg/master
 * [new branch]  release-1.0 - korg/release-1.0
 * [new tag] android-1.5r3 - android-1.5r3
 * [new tag] android-1.5r4 - android-1.5r4
 * [new tag] android-1.6_r2 - android-1.6_r2
From git://android.git.kernel.org/platform/development
 * [new tag] android-1.0 - android-1.0
 * [new tag] android-1.5 - android-1.5
 * [new tag] android-1.5r2 - android-1.5r2
 * [new tag] android-1.6_r1 - android-1.6_r1
 * [new tag] android-1.6_r1.1 - android-1.6_r1.1
 * [new tag] android-1.6_r1.2 - android-1.6_r1.2
 * [new tag] android-1.6_r1.3 - android-1.6_r1.3
 * [new tag] android-1.6_r1.4 - android-1.6_r1.4
 * [new tag] android-sdk-1.5-pre - android-sdk-1.5-pre
 * [new tag] android-sdk-1.5_r1 - android-sdk-1.5_r1
 * [new tag] android-sdk-1.5_r3 - android-sdk-1.5_r3
 * [new tag] android-sdk-1.6-docs_r1 - android-sdk-1.6-
docs_r1
 * [new tag] android-sdk-1.6_r1 - android-sdk-1.6_r1
 * [new tag] android-sdk-tools_r2 - android-sdk-tools_r2
Fetching projects:   5% (9/164)
Initializing project platform/external/aes ...
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 41 (delta 15), reused 41 (delta 15)
Unpacking objects: 100% (41/41), done.
From git://android.git.kernel.org/platform/external/aes
 * [new branch]  cdma-import - korg/cdma-import
 * [new branch]  cupcake- korg/cupcake
 * [new branch]  cupcake-release - korg/cupcake-release
 * [new branch]  donut  - korg/donut
 * [new branch]  donut-plus-aosp - korg/donut-plus-aosp
 * [new branch]  donut-release - korg/donut-release
 * [new branch]  eclair - korg/eclair
 * [new branch]  master - korg/master
 * [new branch]  release-1.0 - korg/release-1.0
 * [new tag] android-1.0 - android-1.0
 * [new tag] android-1.5 - android-1.5
 * [new tag] android-1.5r2 - android-1.5r2
 * [new tag] android-1.5r3 - android-1.5r3
 * [new tag] android-1.5r4 - android-1.5r4
 * [new tag] android-1.6_r1 - android-1.6_r1
 * [new tag] android-1.6_r1.1 - android-1.6_r1.1
 * [new tag] android-1.6_r1.2 - android-1.6_r1.2
 * [new tag] android-1.6_r1.3 - android-1.6_r1.3
 * [new tag] android-1.6_r1.4 - android-1.6_r1.4
 * [new tag] android-1.6_r2 - android-1.6_r2
 * [new tag] android-sdk-1.5-pre - android-sdk-1.5-pre
 * [new tag] android-sdk-1.5_r1 - android-sdk-1.5_r1
 * [new tag] android-sdk-1.5_r3 - android-sdk-1.5_r3
 * [new tag] android-sdk-1.6-docs_r1 - android-sdk-1.6-
docs_r1
 * [new tag] android-sdk-1.6_r1 - android-sdk-1.6_r1
 * [new tag] android-sdk-tools_r2 - android-sdk-tools_r2
Fetching projects:   6% (10/164)
Initializing project platform/external/apache-http ...
remote: Counting objects: 512, done.
remote: Compressing objects: 100% (217/217), done.
remote: Total 512 (delta 283), reused 512 (delta 283)
Receiving objects: 100% (512/512), 521.43 KiB | 64 KiB/s, done.
Resolving deltas: 100% (283/283), done.
From git://android.git.kernel.org/platform/external/apache-http
 * [new branch]  cdma-import - korg/cdma-import
 * [new branch]  cupcake- korg/cupcake
 * [new branch]  cupcake-release - korg/cupcake-release
 * [new branch]  donut  - korg/donut
 * [new branch]  donut-plus-aosp - korg/donut-plus-aosp
 * [new branch]  donut-release - korg/donut-release
 * [new branch]  eclair - korg/eclair
 * [new branch]  master - korg/master
 * [new branch]  release-1.0 - korg/release-1.0
 * [new tag] android-1.0 - android-1.0
 * 

[android-beginners] Re: setContentView fails when creating a new activity

2010-01-21 Thread RNekic
I find that exceptions triggered by setContentView are usually caused
by something simple in the layout file; often a missing layout_width
or layout_height on one of my View declarations.




On Jan 19, 9:37 am, Walt Armour waltarm...@gmail.com wrote:
 That looks like the content of the stack from the eclipse debug
 perspective.  What's the actual exception/error?  If you resume the run
 (perhaps more than once) the complete stack with error will eventually get
 dumped to the log.  You can then view it in the logcat window (a tab in the
 right pane of the debug perspective).

 On Mon, Jan 18, 2010 at 20:05, oregonduckman oregonduck...@gmail.comwrote:



  My code is calling setContentView(R.layout.someLayoutID); from an
  activities' onCreate method. The activity is launched with the
  following:

                         Intent myIntent = new Intent(this, myClass.class);
                         try
                         {
                                 this.startActivity(myIntent);
                         }
                         catch(ActivityNotFoundException e)
                         {
                                 e.toString();
                         }

  The activity is declared in the manifest file as                activity
  android:name=.myClass/activity
  The call to setContentView results in the following: (also, is it
  possible to setup Eclipse to find the source that the VM is referring
  to (instead of just getting the source not found error??

  DalvikVM[localhost:8656]
         Thread [3 main] (Suspended (exception RuntimeException))

   ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
  Intent) line: 2481

   ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord,
  Intent) line: 2497
                 ActivityThread.access$2200(ActivityThread, ActivityThread
  $ActivityRecord, Intent) line: 119
                 ActivityThread$H.handleMessage(Message) line: 1848
                 ActivityThread$H(Handler).dispatchMessage(Message) line: 99
                 Looper.loop() line: 123
                 ActivityThread.main(String[]) line: 4338
                 Method.invokeNative(Object, Object[], Class, Class[], Class,
  int,
  boolean) line: not available [native method] [local variables
  unavailable]
                 Method.invoke(Object, Object...) line: 521
                 ZygoteInit$MethodAndArgsCaller.run() line: 860
                 ZygoteInit.main(String[]) line: 618
                 NativeStart.main(String[]) line: not available [native
  method]
         Thread [13 Binder Thread #2] (Running)
         Thread [11 Binder Thread #1] (Running)
         Thread [15 Binder Thread #3] (Running)

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr 
  i...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] java.awt.font error when opening Android Layout editor

2010-01-21 Thread Shyam
Hi All, I have just started learning Android application programming.
When I try to edit project/res/main.xml using android layout editor I
get the error Could not initialize java.awt.font. Below is the
config.

OS: Linux X64 Ubuntu Lucid Lynx with ia32 libraries
Eclipse: 3.5.1
Android ADT Plugin 0.9.5
Android SDK 2.1
Sun Java JDK 1.6.0.16
Sun Java JRE 1.6.0.16
also has the OpenJDK and OpenJRE but changed this setting to use Sun
Java in Window-Preferences-Java-Installed JREs.

I am able to open this file using normal xml editor but not with
default layout editor.

Please help.

Thanks
Shyam
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: java.lang.IllgealArgumentException:OnCreateDialog did not create a dialog for id ..

2010-01-21 Thread Chester
I have the exact the problem.  I simply cut and post the tutorial from
the Android Developer site.

Here is my main.xml and java code.

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=vertical

TextView android:id=@+id/dateDisplay
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=/

Button android:id=@+id/pickDate
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Change the date/

/LinearLayout



import android.app.Activity;
import android.app.DatePickerDialog;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Button;
import android.widget.DatePicker;
import android.view.View;

import java.util.Calendar;


public class HelloDatePicker extends Activity
{
private TextView mDateDisplay;
private Button mPickDate;

private int mYear;
private int mMonth;
private int mDay;

static final int DATE_DIALOG_ID = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// capture our View elements
mDateDisplay = (TextView) findViewById(R.id.dateDisplay);
mPickDate = (Button) findViewById(R.id.pickDate);

// add a click listener to the button
mPickDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(DATE_DIALOG_ID);
}
});

// get the current date
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);

// display the current date
updateDisplay();
}


// updates the date we display in the TextView
private void updateDisplay() {
mDateDisplay.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append(-)
.append(mDay).append(-)
.append(mYear).append( ));
}
// the callback received when the user sets the date in the
dialog
private DatePickerDialog.OnDateSetListener mDateSetListener =
new DatePickerDialog.OnDateSetListener() {

public void onDateSet(DatePicker view, int year,
  int monthOfYear, int dayOfMonth)
{
mYear = year;
mMonth = monthOfYear;
mDay = dayOfMonth;
updateDisplay();
}
};
}


Here is the log from catlog:


/ActivityManager(   52): Starting activity: Intent
{ act=android.intent.action.MAIN cat=
[android.intent.category.LAUNCHER] flg=0x1020
cmp=com.chesterxgchen.example1/.HelloDatePicker }
I/ActivityManager(   52): Start proc com.chesterxgchen.example1 for
activity com.chesterxgchen.example1/.HelloDatePicker: pid=259
uid=10024 gids={1015}
I/ActivityManager(   52): Displayed activity
com.chesterxgchen.example1/.HelloDatePicker: 1047 ms (total 1047 ms)
D/dalvikvm(  100): GC freed 112 objects / 4896 bytes in 110ms
I/dalvikvm(  259): threadid=7: reacting to signal 3
E/dalvikvm(  259): Unable to open stack trace file '/data/anr/
traces.txt': Permission denied
D/AndroidRuntime(  259): Shutting down VM
W/dalvikvm(  259): threadid=3: thread exiting with uncaught exception
(group=0x4001b188)
E/AndroidRuntime(  259): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  259): java.lang.IllegalArgumentException:
Activity#onCreateDialog did not create a dialog for id 0
E/AndroidRuntime(  259):at android.app.Activity.createDialog
(Activity.java:871)
E/AndroidRuntime(  259):at android.app.Activity.showDialog
(Activity.java:2483)
E/AndroidRuntime(  259):at com.chesterxgchen.example1.HelloDatePicker
$1.onClick(HelloDatePicker.java:37)
E/AndroidRuntime(  259):at android.view.View.performClick(View.java:
2364)
E/AndroidRuntime(  259):at android.view.View.onTouchEvent(View.java:
4179)
E/AndroidRuntime(  259):at android.widget.TextView.onTouchEvent
(TextView.java:6540)
E/AndroidRuntime(  259):at android.view.View.dispatchTouchEvent
(View.java:3709)
E/AndroidRuntime(  259):at android.view.ViewGroup.dispatchTouchEvent
(ViewGroup.java:884)
E/AndroidRuntime(  259):at android.view.ViewGroup.dispatchTouchEvent
(ViewGroup.java:884)
E/AndroidRuntime(  259):at android.view.ViewGroup.dispatchTouchEvent
(ViewGroup.java:884)
E/AndroidRuntime(  259):at android.view.ViewGroup.dispatchTouchEvent
(ViewGroup.java:884)
E/AndroidRuntime(  259):at
com.android.internal.policy.impl.PhoneWindow

[android-beginners] code stepping icons disabled

2010-01-21 Thread Juan
Hi, Stack.

I have just started with Android it runs on the Eclipse SDK. Eclipse
version: 3.5.1 and Android 2.0.1
I need to debug my code by stepping through it. However, the step in
and step over buttons are
disabled in the debug environment. How can I enable these buttons?
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: java.lang.IllgealArgumentException:OnCreateDialog did not create a dialog for id ..

2010-01-21 Thread Chester
Hi, sorry, I figured out the problem:  I forgot to copy this piece of
the code.


@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DATE_DIALOG_ID:
return new DatePickerDialog(this,
mDateSetListener,
mYear, mMonth, mDay);
}
return null;
}

For those still struggling: here is the complete
HelloDatePicker.java:


import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Button;
import android.widget.DatePicker;
import android.view.View;

import java.util.Calendar;


public class HelloDatePicker extends Activity
{
private TextView mDateDisplay;
private Button mPickDate;

private int mYear;
private int mMonth;
private int mDay;

static final int DATE_DIALOG_ID = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// capture our View elements
mDateDisplay = (TextView) findViewById(R.id.dateDisplay);
mPickDate = (Button) findViewById(R.id.pickDate);

// add a click listener to the button
mPickDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(DATE_DIALOG_ID);
}
});

// get the current date
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);

// display the current date
updateDisplay();
}

@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DATE_DIALOG_ID:
return new DatePickerDialog(this,
mDateSetListener,
mYear, mMonth, mDay);
}
return null;
}


// updates the date we display in the TextView
private void updateDisplay() {
mDateDisplay.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append(-)
.append(mDay).append(-)
.append(mYear).append( ));
}
// the callback received when the user sets the date in the
dialog
private DatePickerDialog.OnDateSetListener mDateSetListener =
new DatePickerDialog.OnDateSetListener() {

public void onDateSet(DatePicker view, int year,
  int monthOfYear, int dayOfMonth)
{
mYear = year;
mMonth = monthOfYear;
mDay = dayOfMonth;
updateDisplay();
}
};
}





On Nov 20 2009, 11:09 pm, Justin Anderson janderson@gmail.com
wrote:
 I'm pretty sure this isn't the cause of the problem, but I am curious why
 your XML file has your button set to not be clickable...  Seems odd since
 you are trying to click that buttong...
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Nov 3, 2009 at 7:29 PM, 大方 yangfang_1...@163.com wrote:
  Hello,guys!
  I encountered a problem while I run the application below.The UI can
  appear in the emulator screen normally,but while I click the button
  the bug appears.Below I attach the source and the logcat:

  the source code:

  HelloDatePicker.java

  package HelloDatePicker.pkg;
  import java.util.Calendar;
  import android.app.Activity;
  import android.app.DatePickerDialog;
  import android.app.Dialog;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.DatePicker;
  import android.widget.TextView;

  public class HelloDatePickerAct extends Activity {
     /** Called when the activity is first created. */
         private TextView mDateDisplay;
         private Button mPickDate;
         private int mYear;
         private int mMonth;
         private int mDay;
         static final int DATE_DIALOG_ID=0x;

    �...@override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         //capture our View elements
         mDateDisplay=(TextView)findViewById(R.id.DateDisplay);
         mPickDate=(Button)findViewById(R.id.PickDate);

         //get the current date
         final Calendar c=Calendar.getInstance();
         mYear=c.get(Calendar.YEAR);
         mMonth=c.get(Calendar.MONTH);
         mDay=c.get(Calendar.DAY_OF_MONTH);

         //display the current date
         updateDisplay();

         //add a click listener to the 

[android-beginners] repo sync problem

2010-01-21 Thread chucks
hi ,
i am a beginner to android development ..
i was trying to get the sources for the 1.6 release.. but the repo
sync operation keeps hanging
i am pasting the last part of the message i get on the terminal here

Fetching projects:  19% (32/164)
Initializing project platform/external/freetype ...
remote: Counting objects: 970, done.
remote: Compressing objects: 100% (414/414), done.
Receiving objects:  57% (558/970), 1.28 MiB | 26 KiB/s

it just hangs there...no error messages or aything of that sort..
has anyone faced a similar issue..i would appreciate if anyone could
help me out
Best Regards
Rahul
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Eclipse is building all projects

2010-01-21 Thread Rob Shepherd
Hi Android Beginners,

I have a strange problem.  When I generate android projects in Eclipse
and run them as Android Application the IDE first attempts to build
all my other projects (Which is a considerable number and
unnecessary).

I have many other types of Projects: groovy, maven, ant, plain java,
EE, web projects but this only happens with Android apps.

This happens on brand new projects - I.e. immediately after the new
android project wizard.
 ( this confirms there's no junk in the dependencies lit in the
project configuration panel)


I think it's to do with something called the launch delegate, but I
may be wrong.

Any thoughts or solutions are gratefully received.

With thanks

Rob
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Simple Android app for composing music

2010-01-21 Thread Jack
Hi, I am thinking of developing a simple Android application that lets
users compose music on Android phones.

I am new to the Android platform. I have some coding experience in
Java that involves being aware of basic OOPS and Java concepts and
developing some small Java applications(less than 1k lines of code). I
have set up Android on my Linux system and have been able to run a
hello World application.

I want to develop a simple Android app in a month wherein users can
compose music. What I want to do is this- A  touch on the screen
should produce/emit a sound/tone. Touching different parts of the
screen should produce/emit sounds of different pitch levels/
frequencies. Once this is done I want to improve the UI and add some
basic features of playback, clearing currently selected tones on the
screen.

How do I start doing this? Also, given my limited experience with
java, how should I divide the tasks so that I can finish this in a
month?
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Unable to start download in Browser

2010-01-21 Thread mariush
I want to download widget from page widgets.opera.com,
i enter to this site:
http://widgets.opera.com/general/getopera/3529/1.6/
and i am trying to download widget by pressing Get Files Button.
But instead of downloading files, the site is only reloading...
Any ideas why this is happening?
Regards
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] OutOfMemory Error (Animation)

2010-01-21 Thread Matthew Patience
I am making a simple rpg game that uses animation to move characters
around. In one scene I am working on there is 4 things that happen:

1)The character walks on screen
2)A gun shot is heard when the user clicks on screen the first time
and a bullet hole appears in a window.
3) The user is given two options, shoot back or get in car. The shoot
back button does what you think it does and the character pulls out a
gun and another gunshot is heard.
4) If get in car is pressed the character walks to the car, gets in
and drives away.

The problem is the program force closes if you click the shoot back
button and then click get in car. The problem that I see from
debugging is OutOfMemory error. The game runs perfectly on the Nexus
One but any other phone with an inferior processor force closes. Could
anyone point out a way to save memory on this? Do I have to purposely
finish() the previous activities or is there a problem with the code
below (note that the threads it calls just are for timing the gunshot
sounds to line up with the animation).

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.scene1);

mSoundManager = new SoundManager();
mSoundManager.initSounds(getBaseContext());
mSoundManager.addSound(3, R.raw.gun_silencer);
mSoundManager.addSound(5, R.raw.glass_break);

character_img = (ImageView) findViewById(R.id.character_img);
character_img.setBackgroundResource(R.anim.scene1_anim);
scene1_anim = (AnimationDrawable) character_img.getBackground
();
scene1_anim.setOneShot(true);

Scene1Thread = new Scene1Thread();
Scene1Thread2 = new Scene1Thread2();

scene1_bg_img = (RelativeLayout) findViewById
(R.id.scene1_bg_img);
btn_shoot_back = (Button) findViewById(R.id.btn_shoot_back);
btn_getin_car = (Button) findViewById(R.id.btn_getin_car);

btn_shoot_back.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
btn_shoot_back.setVisibility(Button.INVISIBLE);
btn_shoot_back.setClickable(false);
character_img.setBackgroundResource
(R.anim.scene1_shoot_back);
scene1_shoot_back = (AnimationDrawable)
character_img.getBackground();
scene1_shoot_back.setOneShot(true);
scene1_shoot_back.start();
Scene1Thread2.start();

}
});
btn_getin_car.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
btn_getin_car.setVisibility(Button.INVISIBLE);
btn_getin_car.setClickable(false);
if (btn_shoot_back.getVisibility() == Button.VISIBLE) {
btn_shoot_back.setVisibility(Button.INVISIBLE);
btn_shoot_back.setClickable(false);
}
character_img.setBackgroundResource
(R.anim.scene1_getin_car);
scene1_getin_car = (AnimationDrawable)
character_img.getBackground();
scene1_getin_car.setOneShot(true);
scene1_getin_car.start();

}
});

shot_vibrate = (Vibrator) getSystemService
(Context.VIBRATOR_SERVICE);


character_img.post(new Starter());

btn_gun_shot = (ImageButton) findViewById(R.id.btn_gun_shot);
btn_gun_shot.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
scene1_bg_img.setBackgroundResource
(R.drawable.scene1_bg_shot);
Scene1Thread.start();
shot_vibrate.vibrate(250);
btn_gun_shot.setClickable(false);
btn_shoot_back.setVisibility(Button.VISIBLE);
btn_getin_car.setVisibility(Button.VISIBLE);
}

});

}
class Starter implements Runnable {

public void run() {
scene1_anim.start();

}

}


Please and Thank you.
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] communication between android phone and pc using 3G network

2010-01-21 Thread Na Gu
Dear all,

I am trying to use an android phone to send a file to my laptop, the
program works well under wifi network, but it does not work if i use
3G network...How to solve this problem?

my socket is very simple:
server side:adr1 = new ServerSocket(3108);
Socket server = adr1.accept();
client side:Socket client;
client = new Socket(10.217.137.110,
3400);

I tried to use a socket with remote ip, remote port, local ip and
local port, this method does not work for both wifi and 3G network

Thanks a lot!
gn
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: setContentView fails when creating a new activity

2010-01-21 Thread Robert Nekic
The opening RelativeLayout tag is closed in the middle of your
attributes declarations.  The exception is probably coming from the
lack of the layout_width and layout_height attributes since they fall
outside your tag at the moment.


RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/MyRelativeLayout Move the 
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent    to here.



On Jan 19, 4:36 pm, oregonduckman oregonduck...@gmail.com wrote:
 It appears that the order attribute declaration matters for layout
 declarations, for example the following causes an exception to be
 thrown that says that the layout_width should be in line 2 of the XML
 but if the id attribute is placed at the bottom of the list of
 attributes the exception goes away.

 Does anyone know if the order of attribute declarations appears in the
 Android docs anywhere?

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:id=@+id/MyRelativeLayout
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         ListView android:id=@+id/MyListView
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:scrollbars=vertical
                 android:smoothScrollbar=true
                 android:visibility=visible
                 android:layout_alignParentTop=true
         /ListView
 /RelativeLayout

 On Jan 19, 6:37 am, Walt Armour waltarm...@gmail.com wrote:



  That looks like the content of the stack from the eclipse debug
  perspective.  What's the actual exception/error?  If you resume the run
  (perhaps more than once) the complete stack with error will eventually get
  dumped to the log.  You can then view it in the logcat window (a tab in the
  right pane of the debug perspective).

  On Mon, Jan 18, 2010 at 20:05, oregonduckman oregonduck...@gmail.comwrote:

   My code is calling setContentView(R.layout.someLayoutID); from an
   activities' onCreate method. The activity is launched with the
   following:

                          Intent myIntent = new Intent(this, myClass.class);
                          try
                          {
                                  this.startActivity(myIntent);
                          }
                          catch(ActivityNotFoundException e)
                          {
                                  e.toString();
                          }

   The activity is declared in the manifest file as                activity
   android:name=.myClass/activity
   The call to setContentView results in the following: (also, is it
   possible to setup Eclipse to find the source that the VM is referring
   to (instead of just getting the source not found error??

   DalvikVM[localhost:8656]
          Thread [3 main] (Suspended (exception RuntimeException))

    ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
   Intent) line: 2481

    ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord,
   Intent) line: 2497
                  ActivityThread.access$2200(ActivityThread, ActivityThread
   $ActivityRecord, Intent) line: 119
                  ActivityThread$H.handleMessage(Message) line: 1848
                  ActivityThread$H(Handler).dispatchMessage(Message) line: 99
                  Looper.loop() line: 123
                  ActivityThread.main(String[]) line: 4338
                  Method.invokeNative(Object, Object[], Class, Class[], 
   Class,
   int,
   boolean) line: not available [native method] [local variables
   unavailable]
                  Method.invoke(Object, Object...) line: 521
                  ZygoteInit$MethodAndArgsCaller.run() line: 860
                  ZygoteInit.main(String[]) line: 618
                  NativeStart.main(String[]) line: not available [native
   method]
          Thread [13 Binder Thread #2] (Running)
          Thread [11 Binder Thread #1] (Running)
          Thread [15 Binder Thread #3] (Running)

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
i...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, 

Re: [android-beginners] Windows or Mac as an Android development platform?

2010-01-21 Thread Horváth Antal
Linux :)

2010/1/20 oregonduckman oregonduck...@gmail.com

 Would be interested in people's opinion on which platform provides a
 better host environment for Android development.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Non Market Apps Install

2010-01-21 Thread Mark S
 I have developed some test apps, and have installed them via SD card,
allowed unknown sources, and installed the app with no problems.

We are developing for a company, and will not want to put our apps in
the app store, as the code is proprietary.
My question is this. Is there a way to have the applications install
on devices without having to allow unknown sources?  Can we mark get
market approval for our apps, but deliver them to selected clients and
not have them appear in the marketplace?

Thanks.
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Android Dev Phone upgrade to 2.0 (or 2.1)

2010-01-21 Thread mikshel
Hey Guys,

I have an Android Dev Phone (from HTC) with 1.5 Platform installed. I
am trying to find out whether it is possible to upgrade to 2.0 or 2.1
(my interest is in Bluetooth Protocols which are only available from
2.0 onwards).

Based on the information provided on the HTC site (http://
developer.htc.com/adp.html ) upgrade to 1.6 is easybut no other
information exists.

Does anyone have a clue?

Mike.
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: My app is missing in HTC tattoo market

2010-01-21 Thread Jason Arora
Couple of things you can try:
turn Copy-Protection OFF
remove the requires camera permission in the Manifest (if possible)

Those two conditions have been known to cause problems. Try searching
the Android groups for more information.

On Jan 18, 3:58 am, andersg anders.gjett...@gmail.com wrote:
 HI,

 Yes it shows on my HTC Magic and also on HTC hero. So seems like
 Tattoo is the only problem.
 The name of the app is Kontanter

 On Jan 18, 11:40 am, Sean Hodges seanhodge...@googlemail.com wrote:

  Does it show on the market for other phones? What is the name of the
  app? I'll take a look with my G1.

  On Mon, Jan 18, 2010 at 10:11 AM, andersg anders.gjett...@gmail.com wrote:
   Hi, I have postet an app in market, which doesn't show up in HTC
   tattoo.
   In the manifest I have the following:

    uses-sdk android:minSdkVersion=3 android:targetSdkVersion=5 /
          supports-screens android:largeScreens=true
   android:normalScreens=true android:smallScreens=true
   android:anyDensity=true /

   but still it doesn't show. Does anyone have an idea about what could
   be wrong

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Hello World / Emulator Problem

2010-01-21 Thread HiGeoff
hmm..  I waited and waited and I finally got the avd boot up but no
'Hello, Android showing up.  Or have I missed it as it shows the text
and disappears straight away??

On Jan 19, 2:21 pm, Conny mcon...@gmail.com wrote:
 People I have noticed that the emulator runs super fast on a fedora
 machine. On a Vista machine its HORRID. I guess it will be as fast on
 any linux distro.

 2 cents worth..

 Siddharth

 On Jan 19, 4:22 am, Indicator Veritatis mej1...@yahoo.com wrote: Until 
 when? How long should the user continue to wait before he can
  conclude that something really has gone wrong? Remember: he said the
  message waiting for Home android.process.acore was STILL displaying
  on the screen. Can we count on this message to be accurate?

  Sure, I know that the emulator takes a LONG time, even on a fast
  machine. But sometimes the launch really does fail, and the user needs
  a way to tell.

  My own experience has been: 1) it takes a very long time, and paints
  the word 'Android' on the screen in two different fonts 2) sometimes,
  but not all the time, I have to unlock the menu 3) sometimes, but not
  all the time, execution passes directly to the application, sometimes
  I have to launch it myself.

  I don't remember what was displaying in the console window in all
  these cases: that is why I ask which messages we can really count on
  in that window.

  It seems pretty random which I get in 2 and 3. But computers are
  deterministic finite state machines! They are not supposed to do
  things like this!

  On Jan 13, 6:17 pm, CT yeu...@gmail.com wrote:

   continue waiting !

   On Jan 7, 4:22 pm, Jonathan jonathan.gord...@gmail.com wrote:

Hey all, so I just completed the hello world tutorial but it won't
seem to run. I waited for a long time at the Android screen with the
blinking underscore, then finally I moved onto a screen with a fancy
font Android and its kinda flashing silver. The console in eclipse
still says waiting for Home anroid.process.acore... How long does it
usually take to load?? Am I doing something wrong?? Thanks
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Android Dev Phone upgrade to 2.0 (or 2.1)

2010-01-21 Thread Tom Opgenorth
Apparently there are some issues still with 2.0 on the Dream that HTC
is trying to work out, so nothing official from HTC yet.  That said, I
think if you look on xda-developers, you will find some home-brew
images.  I did come across a link on twitter yesterday that hinted at
a February time fram for Android 2.0 on the Dream.

If you search the android-developer list, you should be able to find
some information on this too.

HT

On Tue, Jan 19, 2010 at 20:37, mikshel miks...@hotmail.com wrote:
 Hey Guys,

 I have an Android Dev Phone (from HTC) with 1.5 Platform installed. I
 am trying to find out whether it is possible to upgrade to 2.0 or 2.1
 (my interest is in Bluetooth Protocols which are only available from
 2.0 onwards).

 Based on the information provided on the HTC site (http://
 developer.htc.com/adp.html ) upgrade to 1.6 is easybut no other
 information exists.

 Does anyone have a clue?

 Mike.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en





-- 
http://www.opgenorth.net
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] passing arbitrary data types to a sub activity

2010-01-21 Thread oregonduckman
Looking for a way to pass an arbitrary data type to a sub-activity.
Seems like Intents are missing something like intent.putExtra(String
name, Object object) or bundle.putObject(String name,Object object)
where object can be any type (such as ListMyClass). L

I looked at all the type that can be pass via a Bundle or Intent and
did not see any method that supports arbitrary data types.
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Windows or Mac as an Android development platform?

2010-01-21 Thread schwiz
the answer is whatever you like the best!

On Jan 19, 6:38 pm, Horváth Antal k...@sch.bme.hu wrote:
 Linux :)

 2010/1/20 oregonduckman oregonduck...@gmail.com



  Would be interested in people's opinion on which platform provides a
  better host environment for Android development.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr 
  i...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Eclipse is building all projects

2010-01-21 Thread Xavier Ducrohet
In the Eclipse prefs, there's an option called Build (if required)
before launching.
It's located under Run/Debug  Launching.

If true, our custom delegate will indeed reply true, but it's
surprising that Eclipse doesn't only build the project being launched
(and dependencies).

Making the delegate return false is an option of course, but it seems
better to make sure that the project being launched gets a build
before actually launching.

On Mon, Jan 18, 2010 at 12:58 PM, Rob Shepherd rgsheph...@gmail.com wrote:
 Hi Android Beginners,

 I have a strange problem.  When I generate android projects in Eclipse
 and run them as Android Application the IDE first attempts to build
 all my other projects (Which is a considerable number and
 unnecessary).

 I have many other types of Projects: groovy, maven, ant, plain java,
 EE, web projects but this only happens with Android apps.

 This happens on brand new projects - I.e. immediately after the new
 android project wizard.
  ( this confirms there's no junk in the dependencies lit in the
 project configuration panel)


 I think it's to do with something called the launch delegate, but I
 may be wrong.

 Any thoughts or solutions are gratefully received.

 With thanks

 Rob

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en





-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Eclipse is building all projects

2010-01-21 Thread Xavier Ducrohet
Actually the doc says this query is for whether there should be an
incremental build on the *workspace*. We should probably change it to
return false then.

Xav

On Thu, Jan 21, 2010 at 1:18 PM, Xavier Ducrohet x...@android.com wrote:
 In the Eclipse prefs, there's an option called Build (if required)
 before launching.
 It's located under Run/Debug  Launching.

 If true, our custom delegate will indeed reply true, but it's
 surprising that Eclipse doesn't only build the project being launched
 (and dependencies).

 Making the delegate return false is an option of course, but it seems
 better to make sure that the project being launched gets a build
 before actually launching.

 On Mon, Jan 18, 2010 at 12:58 PM, Rob Shepherd rgsheph...@gmail.com wrote:
 Hi Android Beginners,

 I have a strange problem.  When I generate android projects in Eclipse
 and run them as Android Application the IDE first attempts to build
 all my other projects (Which is a considerable number and
 unnecessary).

 I have many other types of Projects: groovy, maven, ant, plain java,
 EE, web projects but this only happens with Android apps.

 This happens on brand new projects - I.e. immediately after the new
 android project wizard.
  ( this confirms there's no junk in the dependencies lit in the
 project configuration panel)


 I think it's to do with something called the launch delegate, but I
 may be wrong.

 Any thoughts or solutions are gratefully received.

 With thanks

 Rob

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en





 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Non Market Apps Install

2010-01-21 Thread Kevin Duffey
From my understanding, if you have a link to the .apk, you can provide the
URL to any use with a device and they can download the .apk which will
automatically be installed. Try that... host the .apk somewhere, then try
using the browser on your device and go to that link and see if it installs.
I've not tried it, just remember reading something about this a week or so
ago here on this forum.


On Tue, Jan 19, 2010 at 9:43 AM, Mark S markalbertschnei...@gmail.comwrote:

  I have developed some test apps, and have installed them via SD card,
 allowed unknown sources, and installed the app with no problems.

 We are developing for a company, and will not want to put our apps in
 the app store, as the code is proprietary.
 My question is this. Is there a way to have the applications install
 on devices without having to allow unknown sources?  Can we mark get
 market approval for our apps, but deliver them to selected clients and
 not have them appear in the marketplace?

 Thanks.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Simple Android app for composing music

2010-01-21 Thread Kevin Duffey
Well firstly, let me stress that music apps generally require a little bit
more than basic java knowledge, and more so, basic android knowledge. Aside
from that, Android presently is difficult at best for real-time touch/play
sounds sort of apps. I've got a project started to make a MPC like app, but
have been reading that presently the ability to make low-latency music apps
is pretty much impossible for a few reasons. The main one being, the latency
between touch events and actually firing sounds quickly is a killer. Beyond
that, most apps that utilize any sort of say effects like delay, echo, and
play multiple sounds simultaneously are going to require the NDK for its
much faster performance. The problem is, let's say you load up 5 samples
into 5 buttons. The user presses one, you open the Android sound mechanism
and play that sound. Great..it works. There are lots of apps (Chuck Norris
comes to mind on Market) that offer buttons that you press and play some
sound bit. If you start pressing these buttons rapidly tho things start to
fall apart. But if you do use the NDK to mix the various audio sounds into
one mxied audio bytestream to play back, the problem there is the JNI
overhead of sending the various java loaded sound byte streams to mix thru
JNI to the NDK, then it mixes really fast, but the NDK doesn't have access
to the sound hardware.. so now that mixed byte stream has to come back thru
JNI to Java to be played. Hence, the double latency issue presently. This
also bites high framerate video games.. the same sort of issue with sending
bitmap images to the NDK layer to do fancy things or construct a frame,
requires (at least if I've read correctly) coming back thru JNI to put the
image on the screen. OpenGL is implemented (1.0 I think) for Java on
android, so you can get fairly decent graphics going.. and as I understand
it the Java implemention uses JNI calls to the OpenGL layer too.

There are a couple things coming hopefully soon to Android. The first bieng
OpenCL to allow better hardware access to sound streams. I don't know the
details of it yet, but I think it's the same API used on iPhone for low
latency audio playback. AS well, I think OpenGL 1.1 or something like it is
coming soon. The main thing is, both of these I think..again..not for sure..
give the NDK direct access to the audio and video buffers so that you can
use NDK code to mix audio and play it directly, as well as do video things
like redraw a frame, then blit it to the screen. I am not for sure on this..
hopefully someone can give a better idea of this.


On Tue, Jan 19, 2010 at 8:05 AM, Jack jackzo...@gmail.com wrote:

 Hi, I am thinking of developing a simple Android application that lets
 users compose music on Android phones.

 I am new to the Android platform. I have some coding experience in
 Java that involves being aware of basic OOPS and Java concepts and
 developing some small Java applications(less than 1k lines of code). I
 have set up Android on my Linux system and have been able to run a
 hello World application.

 I want to develop a simple Android app in a month wherein users can
 compose music. What I want to do is this- A  touch on the screen
 should produce/emit a sound/tone. Touching different parts of the
 screen should produce/emit sounds of different pitch levels/
 frequencies. Once this is done I want to improve the UI and add some
 basic features of playback, clearing currently selected tones on the
 screen.

 How do I start doing this? Also, given my limited experience with
 java, how should I divide the tasks so that I can finish this in a
 month?

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] IRC office hours answers posted

2010-01-21 Thread Megha Joshi
Hi everyone,

We have posted answers to the previous office hours sessions here:
http://moderator.appspot.com/#15/e=120951t=1286cf

A few still remain, they will be answered soon. For today's office hours
5pm-6pm 
PSThttp://android-developers.blogspot.com/2010/01/irc-offce-hours-update.html
 you
could post your questions at Stack Overflow with tags android, from-irc.

Thanks,
Megha

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] repo sync problem

2010-01-21 Thread Justin Anderson
This group is not for repo questions... You will get better results in the
repo group:
http://groups.google.com/group/repo-discuss

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Jan 18, 2010 at 11:07 PM, chucks ramasubramanian.ra...@gmail.comwrote:

 hi ,
 i am a beginner to android development ..
 i was trying to get the sources for the 1.6 release.. but the repo
 sync operation keeps hanging
 i am pasting the last part of the message i get on the terminal here

 Fetching projects:  19% (32/164)
 Initializing project platform/external/freetype ...
 remote: Counting objects: 970, done.
 remote: Compressing objects: 100% (414/414), done.
 Receiving objects:  57% (558/970), 1.28 MiB | 26 KiB/s

 it just hangs there...no error messages or aything of that sort..
 has anyone faced a similar issue..i would appreciate if anyone could
 help me out
 Best Regards
 Rahul

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] how to verify whether an application is lauched or not

2010-01-21 Thread Justin Anderson
Do you mean if it is currently considered by Android to be running?  If so
you can use the following classes:

ActivityManager.RunningAppProcessInfo
ActivityManager.RunningServiceInfo
ActivityManager.RunningTaskInfo
ActivityManager.RecentTaskInfo

Note that Android considers paused apps to be running.

Hope that helps,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Jan 19, 2010 at 9:36 PM, pradeep gan@gmail.com wrote:

 Hi All,

 I have a basic question regarding how to verify whether an application
 is lauched or not.

 I am running monkey to test stability of phone. I also want to verify
 through monkey or any other

 tool whether a particular screen like contacts, messages is lauched or
 not.

 How can I do that. Please suggest if you have any idea.


 Regards,
 Pradeep

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Hello World / Emulator Problem

2010-01-21 Thread Justin Anderson
What is showing up?  Is it the lock screen?  If so, just unlock it and it
should be there. It shouldn't go away until you press the back or home
button.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Jan 19, 2010 at 4:15 PM, HiGeoff hige...@gmail.com wrote:

 hmm..  I waited and waited and I finally got the avd boot up but no
 'Hello, Android showing up.  Or have I missed it as it shows the text
 and disappears straight away??

 On Jan 19, 2:21 pm, Conny mcon...@gmail.com wrote:
  People I have noticed that the emulator runs super fast on a fedora
  machine. On a Vista machine its HORRID. I guess it will be as fast on
  any linux distro.
 
  2 cents worth..
 
  Siddharth
 
  On Jan 19, 4:22 am, Indicator Veritatis mej1...@yahoo.com wrote:
 Until when? How long should the user continue to wait before he can
   conclude that something really has gone wrong? Remember: he said the
   message waiting for Home android.process.acore was STILL displaying
   on the screen. Can we count on this message to be accurate?
 
   Sure, I know that the emulator takes a LONG time, even on a fast
   machine. But sometimes the launch really does fail, and the user needs
   a way to tell.
 
   My own experience has been: 1) it takes a very long time, and paints
   the word 'Android' on the screen in two different fonts 2) sometimes,
   but not all the time, I have to unlock the menu 3) sometimes, but not
   all the time, execution passes directly to the application, sometimes
   I have to launch it myself.
 
   I don't remember what was displaying in the console window in all
   these cases: that is why I ask which messages we can really count on
   in that window.
 
   It seems pretty random which I get in 2 and 3. But computers are
   deterministic finite state machines! They are not supposed to do
   things like this!
 
   On Jan 13, 6:17 pm, CT yeu...@gmail.com wrote:
 
continue waiting !
 
On Jan 7, 4:22 pm, Jonathan jonathan.gord...@gmail.com wrote:
 
 Hey all, so I just completed the hello world tutorial but it won't
 seem to run. I waited for a long time at the Android screen with
 the
 blinking underscore, then finally I moved onto a screen with a
 fancy
 font Android and its kinda flashing silver. The console in eclipse
 still says waiting for Home anroid.process.acore... How long does
 it
 usually take to load?? Am I doing something wrong?? Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] passing arbitrary data types to a sub activity

2010-01-21 Thread Walt Armour
Look at Intent.putExtra(String, Parcelable).  You will need to make your
object implement Parcelable.


On Thu, Jan 21, 2010 at 12:45, oregonduckman oregonduck...@gmail.comwrote:

 Looking for a way to pass an arbitrary data type to a sub-activity.
 Seems like Intents are missing something like intent.putExtra(String
 name, Object object) or bundle.putObject(String name,Object object)
 where object can be any type (such as ListMyClass). L

 I looked at all the type that can be pass via a Bundle or Intent and
 did not see any method that supports arbitrary data types.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] How to make a Widget start an app?

2010-01-21 Thread Justin Anderson
Follow this tutorial:
http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

This tutorial has the Widget start a service.  What I then did is have the
service start an app.  I'm not sure that widget's can directly launch an
application.

Hope that helps,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Jan 10, 2010 at 7:02 AM, Lyndon
lyndon.smith.mob...@googlemail.comwrote:

 I am trying to do something that MUST be very simple but for the life
 of me I cannot find the answer.

 I have a very simple Widget taken from the book Hello, Android!

 All it does is display the date and time. It works fine.

 I want to make it respond to a 'click' and start the browser (or any
 app for that matter).

 I have spent absolutely ages researching how to do this and I can find
 no examples on the web.

 Can any one point me in the right direction, please.

 Regards

 Lyndon

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Block camera capture on Android

2010-01-21 Thread Justin Anderson
a) I'm not sure but might be possible
b) Not sure, but less likely
c) Definitely not

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Jan 7, 2010 at 2:48 AM, hannkwang hannkw...@gmail.com wrote:

 Hi All,

 Is it possible to write an application to prevent the Android handset
 from storing the capture picture? My thoughts are
 a. Hook onto native camera apps and monitor for camera capture (or
 events). Once there is a capture event, my application will be able to
 detect and maybe remove the capture picture
 b. Continously monitor camera capture picture storage. Are there any
 known i/o api l can use to do this?
 c. Prevent all writes to the OS. Possible?

 Thanks for all the feedback in advance!

 Cheers,

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: passing arbitrary data types to a sub activity

2010-01-21 Thread oregonduckman
Yes I saw that and the use of Parcelable seems like overkill just to
pass an arbitrary data type in an Intent. Wonder if anyone knows why
the Android Framework does not support putExtra on an arbitrary data
type that can be cast into something like an Object?

On Jan 21, 3:27 pm, Walt Armour waltarm...@gmail.com wrote:
 Look at Intent.putExtra(String, Parcelable).  You will need to make your
 object implement Parcelable.

 On Thu, Jan 21, 2010 at 12:45, oregonduckman oregonduck...@gmail.comwrote:



  Looking for a way to pass an arbitrary data type to a sub-activity.
  Seems like Intents are missing something like intent.putExtra(String
  name, Object object) or bundle.putObject(String name,Object object)
  where object can be any type (such as ListMyClass). L

  I looked at all the type that can be pass via a Bundle or Intent and
  did not see any method that supports arbitrary data types.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr 
  i...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


RE: [android-beginners] very urgent - : Text on GLSurfaceView

2010-01-21 Thread Karthick.Ramachandran1
Hi All,
   I has unsubscribed from thios group. But still i am getting mails. Dont know 
why? Can anyone tell me whats the peocedure to stop this mail chains???
 
   regards
Karthick
 
 



From: android-beginners@googlegroups.com on behalf of satish bhoyar
Sent: Thu 01/21/10 1:19 AM
To: Android Beginners
Subject: [android-beginners] very urgent - : Text on GLSurfaceView


Hi all,

I want help regarding GLSurfaceView. I want to show my text which is 
dynamically updating on some drawing. I cant use Texturing technique as it will 
be costly to repaint again. Is there any way to implement this. 

any information or example will be helpfull ...

Thanks,
Satish


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Windows or Mac as an Android development platform?

2010-01-21 Thread Tom Opgenorth
I know it's not a choice you listed, but I'm using Ubuntu  and prefer
that to Windows.  For an IDE I'm trying out IntelliJ 9 and I'm liking
that much better than Eclipse.

However, I'd say that whatever you like the best and cause you the
least friction as you develop.

On Tue, Jan 19, 2010 at 17:31, oregonduckman oregonduck...@gmail.com wrote:
 Would be interested in people's opinion on which platform provides a
 better host environment for Android development.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en





-- 
http://www.opgenorth.net

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] unsubscribe

2010-01-21 Thread Karthick.Ramachandran1
HI team,
Please unsubscribe me from your group. This is the fourth time i am mailing 
and i dont know why the hell i am not getting removed from your mails. Please 
take proper actions and unsubscribe me at the earliest
 
   regards
Karthick
 
 

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] unsubscribe

2010-01-21 Thread Justin Anderson
Um did you send mail to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
?

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Jan 21, 2010 at 9:05 PM, karthick.ramachandr...@cognizant.comwrote:

  HI team,
 Please unsubscribe me from your group. This is the fourth time i am
 mailing and i dont know why the hell i am not getting removed from your
 mails. Please take proper actions and unsubscribe me at the earliest

 *
regards Karthick

 *

 This e-mail and any files transmitted with it are for the sole use of the 
 intended recipient(s) and may contain confidential and privileged information.
 If you are not the intended recipient, please contact the sender by reply 
 e-mail and destroy all copies of the original message.
 Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
 or copying of this email or any action taken in reliance on this e-mail is 
 strictly prohibited and may be unlawful.

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Join Thailand Forums Thailand Message Boards Living, Work and Play in Thailand ...X.

2010-01-21 Thread �`�.~ Boom BooOm~.���


Join Thailand Forums
Thailand Message Boards Living, Work and Play in Thailand 
http://www.poetak.blogspot.com


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] unsubscribe

2010-01-21 Thread Kevin Duffey
Amazes me how many people join forums and don't read the email when they
join or the posts.. which all have an email address you email to unsubscribe
from.

On Thu, Jan 21, 2010 at 8:48 PM, Justin Anderson janderson@gmail.comwrote:

 Um did you send mail to 
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 ?

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --



 On Thu, Jan 21, 2010 at 9:05 PM, karthick.ramachandr...@cognizant.comwrote:

  HI team,
 Please unsubscribe me from your group. This is the fourth time i am
 mailing and i dont know why the hell i am not getting removed from your
 mails. Please take proper actions and unsubscribe me at the earliest

 *
regards Karthick

 *

 This e-mail and any files transmitted with it are for the sole use of the 
 intended recipient(s) and may contain confidential and privileged 
 information.
 If you are not the intended recipient, please contact the sender by reply 
 e-mail and destroy all copies of the original message.
 Any unauthorized review, use, disclosure, dissemination, forwarding, 
 printing or copying of this email or any action taken in reliance on this 
 e-mail is strictly prohibited and may be unlawful.

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: TableLayout possibly flawed in API Level 5, AVD 2.0

2010-01-21 Thread Conny
Still could not get it working.

To simplify the debugging, I have written some test code (downloaded
it from a forum actually:)). I wonder why even this does not work.
public class TestTableLayout extends Activity {

int PROVINCE_Alberta = 0;
int PROVINCE_BC = 1;
int PROVINCE_Manitoba = 2;
int PROVINCE_NewBrunswick = 3;
int PROVINCE_Newfoundland = 4;
int PROVINCE_Northwest = 5;
int PROVINCE_NovaScotia = 6;
int PROVINCE_Nunavut = 7;
int PROVINCE_Ontario = 8;
int PROVINCE_PEI = 9;
int PROVINCE_Quebec = 10;
int PROVINCE_Saskatchewan = 11;
int PROVINCE_Yukon = 12;
int numProvinces = 13;

String[] provinces = new String[numProvinces];


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

provinces[PROVINCE_Alberta] = Alberta;
provinces[PROVINCE_BC] = British Columbia;
provinces[PROVINCE_Manitoba] = Manitoba;
provinces[PROVINCE_NewBrunswick] = New Brunswick;
provinces[PROVINCE_Newfoundland] = Newfoundland and
Labrador;
provinces[PROVINCE_Northwest] = Northwest Territories;
provinces[PROVINCE_NovaScotia] = Nova Scotia;
provinces[PROVINCE_Nunavut] = Nunavut;
provinces[PROVINCE_Ontario] = Ontario;
provinces[PROVINCE_PEI] = Prince Edward Island;
provinces[PROVINCE_Quebec] = Quebec;
provinces[PROVINCE_Saskatchewan] = Saskatchewan;
provinces[PROVINCE_Yukon] =  Yukon;

 // Get the TableLayout
TableLayout tl = (TableLayout) findViewById(R.id.maintable);

// Go through each item in the array
for (int current = 0; current  numProvinces; current++)
{
// Create a TableRow and give it an ID
TableRow tr = new TableRow(this);
tr.setId(100+current);
tr.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

// Create a TextView to house the name of the province
TextView labelTV = new TextView(this);
labelTV.setId(200+current);
labelTV.setText(provinces[current]);
labelTV.setTextColor(Color.BLACK);
labelTV.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
tr.addView(labelTV);

// Create a TextView to house the value of the after-tax
income
TextView valueTV = new TextView(this);
valueTV.setId(current);
valueTV.setText($0);
valueTV.setTextColor(Color.BLACK);
valueTV.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
tr.addView(valueTV);

// Add the TableRow to the TableLayout
tl.addView(tr, new TableLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
}
tl.invalidate();

}
}

?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:stretchColumns=0,1
android:id=@+id/maintable 
/TableLayout


Please help
Siddharth


On Jan 20, 10:51 pm, Conny mcon...@gmail.com wrote:
 Walt,

 Thanks a lot for your responses. Very useful.

 Trying out what you suggested. One interesting find, hierarchyViewer
 reports getHeight and getWeight = 0 for the view objects in the row. I
 also identified a classcastexception, my worst exception so far (gives
 no hint where the problem originates)

 Had not used (ViewGroup.LayoutParams) new LinearLayout.LayoutParams
 for the LinearLayout
 instead used LayoutParams

 Will report back.

 Regards
 Siddharth

 On Jan 19, 7:45 pm, Walt Armour waltarm...@gmail.com wrote:

  Well, if hierarchyviewer says it's there, then it's there.

  When I have problems like this I usually end up finding that a WRAP_CONTENT
  or FILL_PARENT wasn't behaving like I thought it should.

  The only suggestions I have would be:
  - Try reordering the addViews at the bottom so that you add everything to
  the linear layout first then to the row.  Total shot in the dark.
  - Further troubleshooting: give elements a unique background color (just to
  be able to visually ID them) and then start working through the
  WRAP_CONTENTs to see if perhaps one should be FILL_PARENT.

  On Mon, Jan 18, 2010 at 21:18, Conny mcon...@gmail.com wrote:
   Thanks, loaded the tool for the first time. Yup, I checked its there.

   Any log files I can 

Re: [android-beginners] Block camera capture on Android

2010-01-21 Thread Kevin Duffey
Interesting idea.. I am guessing you're looking at a way to make android
devices kid friendly so that they can play games, run apps, but can't take
snapshots/videos of kids in school and such. I'd love to see an app like
that.. especially one that can be set up for times.. like disable it during
school hours, but then allow it on weekends.

On Thu, Jan 21, 2010 at 4:02 PM, Justin Anderson janderson@gmail.comwrote:

 a) I'm not sure but might be possible
 b) Not sure, but less likely
 c) Definitely not

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Thu, Jan 7, 2010 at 2:48 AM, hannkwang hannkw...@gmail.com wrote:

 Hi All,

 Is it possible to write an application to prevent the Android handset
 from storing the capture picture? My thoughts are
 a. Hook onto native camera apps and monitor for camera capture (or
 events). Once there is a capture event, my application will be able to
 detect and maybe remove the capture picture
 b. Continously monitor camera capture picture storage. Are there any
 known i/o api l can use to do this?
 c. Prevent all writes to the OS. Possible?

 Thanks for all the feedback in advance!

 Cheers,

 --

 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: TableLayout will not draw new row addition

2010-01-21 Thread Conny
Below is a test code. I am wondering why this isn't working on AVD2.0,
API Level 5.

Please advice.

?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:stretchColumns=0,1
android:id=@+id/maintable 
/TableLayout

public class TestTableLayout extends Activity {

int PROVINCE_Alberta = 0;
int PROVINCE_BC = 1;
int PROVINCE_Manitoba = 2;
int PROVINCE_NewBrunswick = 3;
int PROVINCE_Newfoundland = 4;
int PROVINCE_Northwest = 5;
int PROVINCE_NovaScotia = 6;
int PROVINCE_Nunavut = 7;
int PROVINCE_Ontario = 8;
int PROVINCE_PEI = 9;
int PROVINCE_Quebec = 10;
int PROVINCE_Saskatchewan = 11;
int PROVINCE_Yukon = 12;
int numProvinces = 13;

String[] provinces = new String[numProvinces];


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

provinces[PROVINCE_Alberta] = Alberta;
provinces[PROVINCE_BC] = British Columbia;
provinces[PROVINCE_Manitoba] = Manitoba;
provinces[PROVINCE_NewBrunswick] = New Brunswick;
provinces[PROVINCE_Newfoundland] = Newfoundland and
Labrador;
provinces[PROVINCE_Northwest] = Northwest Territories;
provinces[PROVINCE_NovaScotia] = Nova Scotia;
provinces[PROVINCE_Nunavut] = Nunavut;
provinces[PROVINCE_Ontario] = Ontario;
provinces[PROVINCE_PEI] = Prince Edward Island;
provinces[PROVINCE_Quebec] = Quebec;
provinces[PROVINCE_Saskatchewan] = Saskatchewan;
provinces[PROVINCE_Yukon] =  Yukon;

 // Get the TableLayout
TableLayout tl = (TableLayout) findViewById(R.id.maintable);

// Go through each item in the array
for (int current = 0; current  numProvinces; current++)
{
// Create a TableRow and give it an ID
TableRow tr = new TableRow(this);
tr.setId(100+current);
tr.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

// Create a TextView to house the name of the province
TextView labelTV = new TextView(this);
labelTV.setId(200+current);
labelTV.setText(provinces[current]);
labelTV.setTextColor(Color.BLACK);
labelTV.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
tr.addView(labelTV);

// Create a TextView to house the value of the after-tax
income
TextView valueTV = new TextView(this);
valueTV.setId(current);
valueTV.setText($0);
valueTV.setTextColor(Color.BLACK);
valueTV.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
tr.addView(valueTV);

// Add the TableRow to the TableLayout
tl.addView(tr, new TableLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
}
tl.invalidate();

}
}

On Jan 19, 7:45 pm, Walt Armour waltarm...@gmail.com wrote:
 Well, if hierarchyviewer says it's there, then it's there.

 When I have problems like this I usually end up finding that a WRAP_CONTENT
 or FILL_PARENT wasn't behaving like I thought it should.

 The only suggestions I have would be:
 - Try reordering the addViews at the bottom so that you add everything to
 the linear layout first then to the row.  Total shot in the dark.
 - Further troubleshooting: give elements a unique background color (just to
 be able to visually ID them) and then start working through the
 WRAP_CONTENTs to see if perhaps one should be FILL_PARENT.On Mon, Jan 18, 
 2010 at 21:18, Conny mcon...@gmail.com wrote:
  Thanks, loaded the tool for the first time. Yup, I checked its there.

  Any log files I can send paste ? I am not able to attach png files.

  Siddharth

  On Jan 18, 12:13 am, Walt Armour waltarm...@gmail.com wrote:
   I can't say for sure just looking at the code.  However, you may want to
  run
   the hierarchy viewer tool (part of the SDK in the tools directory) and
  see
   if you can tell where your new row lands in the view hierarchy.

   On Sun, Jan 17, 2010 at 00:54, MCON Dev mcon...@gmail.com wrote:
I have  TableLayout defined in the main.xml. Simple, 1 header row and 1
data row.
TableLayout android:id=@+id/*reportsTable*
                    android:layout_width=fill_parent

[android-beginners] Re: problems with emulator

2010-01-21 Thread Indicator Veritatis
I am glad you solved the problem. Now as for which team should check
it out: this sounds like an emulator issues, not an Android issue. So
someone (you?) should file the bug with the people who write the
emulator.

On Jan 21, 2:55 am, jj juanjosegilmen...@hotmail.com wrote:
 Finally, I found the problem, and I am posting it here, in case it can
 be of any help to anyone...

 The emulator seems to crash when the operative system is NOT
 english...

 was anyone aware of this?

 I had my windows xp sp3 in spanish, and no matter how many times I
 installed and reinstalled JDK... I even tried many of the available
 android sdk's, from the old ones to the most recent ones... The
 emulator (run both from the console and from eclipse) always
 crashes...

 Then I installed microsoft virtual pc, and an english windows xp, with
 only the latest JDK and the android SDK, and it worked straight
 away...

 It would be good if someone from the android team can check this out

 Thanks

 On Jan 19, 8:40 pm, jj juanjosegilmen...@hotmail.com wrote: Hi

  I am trying to run it from console, and the error that I get is just a
  window telling
  emulator.exe has detected a problem and must close, with two buttons
  to decide whether to inform microsoft about this problem
  sorry, I dont know how to insert a screenshot here...

  On Jan 19, 6:15 pm, honey malhotra aryan.m...@gmail.com wrote:

   Hi,

   I think thr is some problem at the time of configuration.

   If you are trying to run the emulator from eclipse then try to check the
   logcat when the emulator crashes. It will give you some more details.

   If you are starting from console in that case can you tell me the exact
   error which you on getting on console when it crashes.

   -Regards
   Aryan

   On Tue, Jan 19, 2010 at 10:06 AM, jj juanjosegilmen...@hotmail.com 
   wrote:
Thanks for your reply, but unfortunately, I did try most of the sdk's:
Release 1.6 r1
Release 1.5 r3
Release 1.1 r1
Release 1.0 r2
with the same frustrating result
That's actually the reason why I try the old one, thinking that there
may be some incompatibility with the new ones...

On Jan 19, 5:14 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 1..0_r1 is really old. At this point, I would not use anything older
 than 1.5_r3, and that only if you had a strong reason to avoid 2.0.
 Remember that you can always target an early API level, so it is very
 rare that you would actually need to use the old SDK.

 On Jan 19, 3:47 am, jj juanjosegilmen...@hotmail.com wrote:

  Hi
  I recently moved from linux (where I was developing for android 
  using
  eclipse) to windows

  I just downloaded the sdk (android-sdk- windows-1 .0_r1.zip), and 
  the
  emulator does not start...
  I dont even see it. Just a screen telling that has been an error, 
  and
  the posibility to inform microsoft! about it

  Also, I installed JDK (Java SE Development Kit 6u18), but it keeps
  crashing

  anyone has any idea about what I am missing?

  Thanks

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
   http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
 i...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: how to put button in list activity?

2010-01-21 Thread Indicator Veritatis
The examples you ask for are in the tutorial at, for example:
http://developer.android.com/resources/tutorials/views/index.html

These examples in this tutorial are a great way to familiarize
yourself with views and how to modify the XML file to get what you
want out of the views.

On Jan 21, 1:56 am, umar mr_muskura...@yahoo.com wrote:
 actually i am new to android..

 on button click i want to go to text detail

 and button should be dispalyed beside that text.. could you please
 explain it??

 do you have any example of that

 On Jan 21, 2:49 pm, Antti Karhu antti.iisa...@gmail.com wrote: HI.

  Just like with other views, put it in the layout xml:

  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
      android:orientation=vertical android:layout_width=fill_parent
      android:layout_height=fill_parent

      Button android:id=@+id/selection android:layout_width=fill_parent
          android:layout_height=wrap_content android:text=a button /

      ListView android:id=@android:id/list
  android:layout_width=fill_parent
          android:layout_height=fill_parent
  android:drawSelectorOnTop=false /

  /LinearLayout

  -- Antti

  On Thu, Jan 21, 2010 at 11:38 AM, umar mr_muskura...@yahoo.com wrote:
   hi,

   can any one guide me how can i put

   Text  Button

   in list activity???

   any help would be appriciated.

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
­...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en-Hide quoted text -

  - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Generating .java file from .aidl file

2010-01-21 Thread rocky84 rocky84
hi,

i am developing an android application with Eclipse/ADT.
i want to generate .java files from the existing .aidl file for my
application.


i got some below hints from internet, but i could not see the below option
in* Android Tools*-

   1. In the Package Explorer view, right-click on the project.
   2. Choose *Android Tools*  *Create Aidl preprocess file for Parcelable
   classes*.


can anybody tell me the procedure to generate java files.

/rocky

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: passing arbitrary data types to a sub activity

2010-01-21 Thread Mark Murphy

 Yes I saw that and the use of Parcelable seems like overkill just to
 pass an arbitrary data type in an Intent. Wonder if anyone knows why
 the Android Framework does not support putExtra on an arbitrary data
 type that can be cast into something like an Object?

Because Intents are converted into raw memory buffers (think byte arrays)
for passing across process boundaries. You cannot do that safely with an
ordinary Object. You must implement some sort of serialization to do that,
and Android elected to create the Parcelable system for that role.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en