[android-beginners] Re: Help me in Creating a AVD

2009-08-07 Thread Gibson

I think the easiest way is to use ADT. Do you know the ADT installed
in Eclipse. Using it is quite easy and you don't have to remember the
so long command parameters.

On Aug 6, 11:52 am, AndroidDev santhoshreddygang...@gmail.com wrote:
 Hi there...

 I am quiet new to the Android platform. I am unable to create an AVD
 ( Command not found error when i execute create AVD Command), I
 followed the steps shown in Developer Guide. I work on Os X 10.5.7.

 Please help me in this regard.

 Thanks A Bunch.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: showing error while adding editview in linearlayout.

2009-08-07 Thread Gibson

The error is because you defined a TextView inside a ListView. You
know ListView first is an AdapterView. You cannot add a view into
AdapterView because it is not supported. What you can do is to define
an Adapter(such as ArrayAdapter) then set the adapter into the
ListView. Hope this can help you.

On Aug 7, 12:57 pm, Shalin smehta...@yahoo.com wrote:
 Hello friend, when I am adding  editview in linearlayout I am getting
 an error like this. My XML file as under. I am trying to add editview
 above listview.
 Error is
 UnsupportedOperatioException: addView(View,LayoutParams) is not
 supported in adapterview.

 XMLfile:
 ListView android:id=@+id/android:list
                android:layout_width=fill_parent
               android:layout_height=100dp
               android:background=#ff android:layout_weight=3 
 TextView
                 android:id=@+id/str
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_weight=1
                 android:background=#ecff20
         /TextView

         TextView
                 android:id=@+id/count
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_weight=1
                 android:background=#2f116f
         /TextView

         LinearLayout  xmlns:android=http://schemas.android.com/apk/res/
 android
                 android:orientation=horizontal
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
         android:background=#cc
         android:textColor=#ff
         android:padding=3dp
         android:gravity=bottom
                 android:layout_weight=1
                 
             EditText
                 android:id=@+id/txt
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:background=@android:drawable/editbox_background
                 android:hint=Type to compose
                 android:minHeight=30dp
                 android:maxHeight=100dp
                 android:layout_weight=1
         /

             Button
                 android:id=@+id/btn
                 android:layout_width=120dp
                 android:layout_height=fill_parent
                 android:layout_weight=1
                 android:text=Send SMS
             /
         /LinearLayout

 /LinearLayout

 Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Help me in Creating a AVD

2009-08-07 Thread Victor Pantoja
Are you sure you added android SDK path do you PATH environment variable?

Optionally, you may want to add the location of the SDK's primary
toolsdirectory to your system PATH. The primary
tools/ directory is located at the root of the SDK folder. Adding tools to
your path lets you run Android Debug Bridge (adb) and the other command line
tools http://developer.android.com/guide/developing/tools/index.htmlwithout
needing to supply the full path to the tools directory.

 More information: http://developer.android.com/sdk/1.5_r3/installing.html

Victor

2009/8/7 Gibson zclgib...@gmail.com


 I think the easiest way is to use ADT. Do you know the ADT installed
 in Eclipse. Using it is quite easy and you don't have to remember the
 so long command parameters.

 On Aug 6, 11:52 am, AndroidDev santhoshreddygang...@gmail.com wrote:
  Hi there...
 
  I am quiet new to the Android platform. I am unable to create an AVD
  ( Command not found error when i execute create AVD Command), I
  followed the steps shown in Developer Guide. I work on Os X 10.5.7.
 
  Please help me in this regard.
 
  Thanks A Bunch.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Share Code

2009-08-07 Thread Mark Murphy

Mitch wrote:
 Is it reasonable/possible to directly share user written code?

Java/Dalvik bytecode? No.

Android Scripting Environment scripts? Probably -- haven't played with
it yet.

SIMPLE language scripts? Perhaps -- haven't played with it either.

Directly using a scripting engine like Beanshell? Yes, once you get a
Dalvik-friendly edition.

 Is it reasonable/possible to directly transmit an app directly from
 one device to another?

If by app you mean a full-fledged Android APK, no.

 What options exist for transmitting data and/or code?

Name an Internet protocol (HTTP, SMTP, FTP, XMPP, etc.), and given
sufficient effort, you can probably get it working.

The challenge is if you are trying to avoid an intermediary server.
Having device A upload to a server (e.g., HTTP) and device B download
from the same server is easy. It may not be possible for device A and
device B to directly talk to each other, particularly if they are not
both on the same WiFi subnet.

 If transmitting Java bytecode isn't reasonable, how does one go about
 directly transmitting data to another phone?

Ideally, you don't -- you use an intermediary server.

If I were you, I'd focus on a scripting language and some sort of
HTTP-based exchange via some rented Web host, at least for the prototype
of your app.

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

Android Development Wiki: http://wiki.andmob.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: showing error while adding editview in linearlayout.

2009-08-07 Thread Shalin

But here I can access TextView in my code. Its isn't giving any error
or exception, But when I am trying to add EdtiText above ListView than
it's giving error. My actual XML as under. Declaration of LinearLayout
is Missing at very first.

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

**I want EditText here***

ListView android:id=@+id/android:list
   android:layout_width=fill_parent
  android:layout_height=100dp
  android:background=#ff android:layout_weight=3

TextView
android:id=@+id/str
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1
android:background=#ecff20
/TextView
TextView
android:id=@+id/count
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1
android:background=#2f116f
/TextView
LinearLayout  xmlns:android=http://schemas.android.com/apk/
res/
android
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=#cc
android:textColor=#ff
android:padding=3dp
android:gravity=bottom
android:layout_weight=1

EditText
android:id=@+id/txt
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@android:drawable/
editbox_background
android:hint=Type to compose
android:minHeight=30dp
android:maxHeight=100dp
android:layout_weight=1
/
Button
android:id=@+id/btn
android:layout_width=120dp
android:layout_height=fill_parent
android:layout_weight=1
android:text=Send SMS
/
/LinearLayout
/LinearLayout

On Aug 7, 2:37 am, Gibson zclgib...@gmail.com wrote:
 The error is because you defined a TextView inside a ListView. You
 know ListView first is an AdapterView. You cannot add a view into
 AdapterView because it is not supported. What you can do is to define
 an Adapter(such as ArrayAdapter) then set the adapter into the
 ListView. Hope this can help you.

 On Aug 7, 12:57 pm, Shalin smehta...@yahoo.com wrote:



  Hello friend, when I am adding  editview in linearlayout I am getting
  an error like this. My XML file as under. I am trying to add editview
  above listview.
  Error is
  UnsupportedOperatioException: addView(View,LayoutParams) is not
  supported in adapterview.

  XMLfile:
  ListView android:id=@+id/android:list
                 android:layout_width=fill_parent
                android:layout_height=100dp
                android:background=#ff android:layout_weight=3 
  TextView
                  android:id=@+id/str
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_weight=1
                  android:background=#ecff20
          /TextView

          TextView
                  android:id=@+id/count
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_weight=1
                  android:background=#2f116f
          /TextView

          LinearLayout  xmlns:android=http://schemas.android.com/apk/res/
  android
                  android:orientation=horizontal
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
          android:background=#cc
          android:textColor=#ff
          android:padding=3dp
          android:gravity=bottom
                  android:layout_weight=1
                  
              EditText
                  android:id=@+id/txt
                  android:layout_width=fill_parent
                  android:layout_height=fill_parent
                  android:background=@android:drawable/editbox_background
                  android:hint=Type to compose
                  android:minHeight=30dp
                  android:maxHeight=100dp
                  android:layout_weight=1
          /

              Button
                  android:id=@+id/btn
                  android:layout_width=120dp
                  android:layout_height=fill_parent
                  android:layout_weight=1
                  android:text=Send SMS
              /
          /LinearLayout

  /LinearLayout

  Thanks in advance
--~--~-~--~~~---~--~~
You received 

[android-beginners] Re: showing error while adding editview in linearlayout.

2009-08-07 Thread Shalin

Here, I am closing that ListView too.But still I am getting problem.In
xml file I am writing EditText above ListView, that's showing EditText
but when I am trying to setting or getting value in that EditText it's
giving nullpointer exception

On Aug 7, 3:44 am, Shalin smehta...@yahoo.com wrote:
 But here I can access TextView in my code. Its isn't giving any error
 or exception, But when I am trying to add EdtiText above ListView than
 it's giving error. My actual XML as under. Declaration of LinearLayout
 is Missing at very first.

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

 **I want EditText here***

 ListView android:id=@+id/android:list
                android:layout_width=fill_parent
               android:layout_height=100dp
               android:background=#ff android:layout_weight=3

 TextView
                 android:id=@+id/str
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_weight=1
                 android:background=#ecff20
         /TextView
         TextView
                 android:id=@+id/count
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_weight=1
                 android:background=#2f116f
         /TextView
         LinearLayout  xmlns:android=http://schemas.android.com/apk/
 res/
 android
                 android:orientation=horizontal
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
         android:background=#cc
         android:textColor=#ff
         android:padding=3dp
         android:gravity=bottom
                 android:layout_weight=1
                 
             EditText
                 android:id=@+id/txt
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:background=@android:drawable/
 editbox_background
                 android:hint=Type to compose
                 android:minHeight=30dp
                 android:maxHeight=100dp
                 android:layout_weight=1
         /
             Button
                 android:id=@+id/btn
                 android:layout_width=120dp
                 android:layout_height=fill_parent
                 android:layout_weight=1
                 android:text=Send SMS
             /
         /LinearLayout
 /LinearLayout

 On Aug 7, 2:37 am, Gibson zclgib...@gmail.com wrote:



  The error is because you defined a TextView inside a ListView. You
  know ListView first is an AdapterView. You cannot add a view into
  AdapterView because it is not supported. What you can do is to define
  an Adapter(such as ArrayAdapter) then set the adapter into the
  ListView. Hope this can help you.

  On Aug 7, 12:57 pm, Shalin smehta...@yahoo.com wrote:

   Hello friend, when I am adding  editview in linearlayout I am getting
   an error like this. My XML file as under. I am trying to add editview
   above listview.
   Error is
   UnsupportedOperatioException: addView(View,LayoutParams) is not
   supported in adapterview.

   XMLfile:
   ListView android:id=@+id/android:list
                  android:layout_width=fill_parent
                 android:layout_height=100dp
                 android:background=#ff android:layout_weight=3 
   TextView
                   android:id=@+id/str
                   android:layout_width=fill_parent
                   android:layout_height=wrap_content
                   android:layout_weight=1
                   android:background=#ecff20
           /TextView

           TextView
                   android:id=@+id/count
                   android:layout_width=fill_parent
                   android:layout_height=wrap_content
                   android:layout_weight=1
                   android:background=#2f116f
           /TextView

           LinearLayout  xmlns:android=http://schemas.android.com/apk/res/
   android
                   android:orientation=horizontal
                   android:layout_width=fill_parent
                   android:layout_height=wrap_content
           android:background=#cc
           android:textColor=#ff
           android:padding=3dp
           android:gravity=bottom
                   android:layout_weight=1
                   
               EditText
                   android:id=@+id/txt
                   android:layout_width=fill_parent
                   android:layout_height=fill_parent
                   android:background=@android:drawable/editbox_background
                   android:hint=Type to compose
                   android:minHeight=30dp
                   android:maxHeight=100dp
                   

[android-beginners] Re: showing error while adding editview in linearlayout.

2009-08-07 Thread Shalin

Problem resolved. Thanks for replying.

On Aug 7, 3:58 am, Shalin smehta...@yahoo.com wrote:
 Here, I am closing that ListView too.But still I am getting problem.In
 xml file I am writing EditText above ListView, that's showing EditText
 but when I am trying to setting or getting value in that EditText it's
 giving nullpointer exception

 On Aug 7, 3:44 am, Shalin smehta...@yahoo.com wrote:



  But here I can access TextView in my code. Its isn't giving any error
  or exception, But when I am trying to add EdtiText above ListView than
  it's giving error. My actual XML as under. Declaration of LinearLayout
  is Missing at very first.

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

  **I want EditText here***

  ListView android:id=@+id/android:list
                 android:layout_width=fill_parent
                android:layout_height=100dp
                android:background=#ff android:layout_weight=3

  TextView
                  android:id=@+id/str
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_weight=1
                  android:background=#ecff20
          /TextView
          TextView
                  android:id=@+id/count
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_weight=1
                  android:background=#2f116f
          /TextView
          LinearLayout  xmlns:android=http://schemas.android.com/apk/
  res/
  android
                  android:orientation=horizontal
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
          android:background=#cc
          android:textColor=#ff
          android:padding=3dp
          android:gravity=bottom
                  android:layout_weight=1
                  
              EditText
                  android:id=@+id/txt
                  android:layout_width=fill_parent
                  android:layout_height=fill_parent
                  android:background=@android:drawable/
  editbox_background
                  android:hint=Type to compose
                  android:minHeight=30dp
                  android:maxHeight=100dp
                  android:layout_weight=1
          /
              Button
                  android:id=@+id/btn
                  android:layout_width=120dp
                  android:layout_height=fill_parent
                  android:layout_weight=1
                  android:text=Send SMS
              /
          /LinearLayout
  /LinearLayout

  On Aug 7, 2:37 am, Gibson zclgib...@gmail.com wrote:

   The error is because you defined a TextView inside a ListView. You
   know ListView first is an AdapterView. You cannot add a view into
   AdapterView because it is not supported. What you can do is to define
   an Adapter(such as ArrayAdapter) then set the adapter into the
   ListView. Hope this can help you.

   On Aug 7, 12:57 pm, Shalin smehta...@yahoo.com wrote:

Hello friend, when I am adding  editview in linearlayout I am getting
an error like this. My XML file as under. I am trying to add editview
above listview.
Error is
UnsupportedOperatioException: addView(View,LayoutParams) is not
supported in adapterview.

XMLfile:
ListView android:id=@+id/android:list
               android:layout_width=fill_parent
              android:layout_height=100dp
              android:background=#ff android:layout_weight=3 
TextView
                android:id=@+id/str
                android:layout_width=fill_parent
                android:layout_height=wrap_content
                android:layout_weight=1
                android:background=#ecff20
        /TextView

        TextView
                android:id=@+id/count
                android:layout_width=fill_parent
                android:layout_height=wrap_content
                android:layout_weight=1
                android:background=#2f116f
        /TextView

        LinearLayout  
xmlns:android=http://schemas.android.com/apk/res/
android
                android:orientation=horizontal
                android:layout_width=fill_parent
                android:layout_height=wrap_content
        android:background=#cc
        android:textColor=#ff
        android:padding=3dp
        android:gravity=bottom
                android:layout_weight=1
                
            EditText
                android:id=@+id/txt
                android:layout_width=fill_parent
                android:layout_height=fill_parent
                

[android-beginners] Re: Encoding for G1 using ffmpeg

2009-08-07 Thread Justin Grammens

WOW. Thanks Mark for the links and explanation. Was wondering why the
same movie that I have on the SD card plays fine, but when I put it on
a website and accessed over http:// I get This video can not be
played.
I'm sorry Android Devs, but this is very disappointing. Playing a
video via http:// should be brain dead simple, and alas with Android,
as compared to other platforms, it is not. Sounds like any video I (or
my clients) create, needs to have -hint associated with it and must be
run through MP4Box or some other program to it can be played when
served over http?
Bummer, as other platforms (iPhone) just play these video right out of
the box. What gives on Android? that the iPhone SDK is able to do, or
is there some other work around that I'm missing?


On Jul 30, 9:16 pm, Rob Campbell r...@rob-campbell.com wrote:
 I will look int what you said.  I just realized that its streaming that is
 causing the problem because I downloaded the file instead of playing it then
 played it and it worked so it seems that the file is configured correctly.

 On Jul 30, 2009 9:02 PM, Mark Murphy mmur...@commonsware.com wrote:

 Rob Campbell wrote:  I have tried:  ffmpeg -i Eminem\ -\ We\ Made\ You\

 \(Official\ Full\ Music\ 
 ...https://help.ubuntu.com/community/AndroidVideoEncodinghttp://android-unleashed.com/tag/convert-video-to-android-g1http://www.harelmalka.com/?p=120http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework

 For streaming, you need the moov atom before the mdat atom:

 http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...

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

 Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Payment for service

2009-08-07 Thread jbrohan

Hello
Could someone please point me to a discussion of payment for service
in the Android environment. The application is medical, where the user
sends a picture to the service (a real human nurse) and gets an
opinion in return. The nurse needs to get some money out of the deal.

The whole thing is a bit casual so people can sign up send a pic and
make a payment and that's it. Or it could go on for months as the
patient gets better. The amount per transaction is about $20.00.
There are various models available. For example a person could buy a
5-pack or they could have free service for some reason or other. Or
they could receive an email telling them that the opinion is
available and they need to fork over the $$$. I suppose we could just
make and email an invoice. Anyone have experience of the payment rate
for these invoices?

Obviously I'm looking for the simplest most universal payment method.
Is this available in Google Market?
Thanks
John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Payment for service

2009-08-07 Thread jbrohan

Hello
Could someone please point me to a discussion of payment for service
in the Android environment. The application is medical, where the user
sends a picture to the service (a real human nurse) and gets an
opinion in return. The nurse needs to get some money out of the deal.

The whole thing is a bit casual so people can sign up send a pic and
make a payment and that's it. Or it could go on for months as the
patient gets better. The amount per transaction is about $20.00.
There are various models available. For example a person could buy a
5-pack or they could have free service for some reason or other. Or
they could receive an email telling them that the opinion is
available and they need to fork over the $$$. I suppose we could just
make and email an invoice. Anyone have experience of the payment rate
for these invoices?

Obviously I'm looking for the simplest most universal payment method.
Is this available in Google Market?
Thanks
John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: api's to display an image file stored in local folder

2009-08-07 Thread Balwinder Kaur (T-Mobile)

Where are you trying to read the image from ?

1. If it is packaged with your apk, you can retrieve it by accessing
the Resources.
  Resources res = mContext.getResources();
  Drawable myImage = res.getDrawable(R.drawable.my_image);
It can also be done all in XML. There is more info here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html

2. If it is part of the MediaStore (which has access to images on the
device's internal and external storage devices like the SDCARD)
  MediaStore.Images.Media.getBitmap(...)

3. If you are trying to download it from a server, you would need to
use something like shown here..

http://getablogger.blogspot.com/2008/01/android-download-image-from-server-and.html

Where are you trying to display the image ?
You can check out using ImageView or using the draw methods to create
a Custom View.
http://developer.android.com/reference/android/widget/ImageView.html
http://developer.android.com/reference/android/view/View.html

Hope this helps,
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


ldo iameldoja...@gmail.com wrote:
 Hi all,

         i want to write an application which can display an image
 (jpeg,png...) . as a begginer i dont know which are the api's that can
 be used .could you give me your valuable suggestions .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Launching Settings

2009-08-07 Thread Balwinder Kaur (T-Mobile)

  Try this piece of code :

  ComponentName c = new ComponentName
  (com.android.settings,com.android.settings.SecuritySettings);

Intent i = new Intent(Settings.ACTION_SECURITY_SETTINGS);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.setComponent(c);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);

Cheers,
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 5, 3:46 pm, Teal teal.b...@gmail.com wrote:
 Hi all,

 I'd like to launch the Menu - Settings - Security  Location
 programmatically.  I monitored the DDMS and noticed that the Intents
 being launched are as follows:

   Intent { action=android.settings.SETTINGS flags=0x1020 comp=
 {com.android.settings/com.android.settings.Settings} }
   Intent { action=android.intent.action.MAIN comp=
 {com.android.settings/com.android.settings.SecuritySettings} }

 I tried to create an intent through
   new Intent(Context.this, com.android.settings.SecuritySettings)

 but there is no package called settings after com.android that is
 accessible.  So perhaps there's an action I can invoke to launch the
 Settings activity.  I browsed 
 throughhttp://developer.android.com/guide/appendix/g-app-intents.html
 andhttp://developer.android.com/reference/android/content/Intent.html,
 but couldn't find the appropriate action.

 Does anybody have any idea on how to launch the Settings activity?
 Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Launching Settings

2009-08-07 Thread Teal

Awesome!  Thanks Balwinder, your code works perfectly.

A little exploration: I tried to use Intent.ACTION_MAIN instead of
Settings.ACTION_SECURITY_SETTINGS for the action because that's what
the DDMS seemed to indicate.  But the difference is that it first
leads me to the Settings, and then to Security  Location.  But your
code directly leads me to Security  Location, which is what I want
for activity stack purposes.  Thanks again.

On Aug 7, 12:43 pm, Balwinder Kaur (T-Mobile) balwinder.k...@t-
mobile.com wrote:
   Try this piece of code :

   ComponentName c = new ComponentName
   (com.android.settings,com.android.settings.SecuritySettings);

         Intent i = new Intent(Settings.ACTION_SECURITY_SETTINGS);
         i.addCategory(Intent.CATEGORY_LAUNCHER);
         i.setComponent(c);
         i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         startActivity(i);

 Cheers,
 Balwinder Kaur
 Open Source Development Center
 ·T· · ·Mobile· stick together

 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 5, 3:46 pm, Teal teal.b...@gmail.com wrote:



  Hi all,

  I'd like to launch the Menu - Settings - Security  Location
  programmatically.  I monitored the DDMS and noticed that the Intents
  being launched are as follows:

    Intent { action=android.settings.SETTINGS flags=0x1020 comp=
  {com.android.settings/com.android.settings.Settings} }
    Intent { action=android.intent.action.MAIN comp=
  {com.android.settings/com.android.settings.SecuritySettings} }

  I tried to create an intent through
    new Intent(Context.this, com.android.settings.SecuritySettings)

  but there is no package called settings after com.android that is
  accessible.  So perhaps there's an action I can invoke to launch the
  Settings activity.  I browsed 
  throughhttp://developer.android.com/guide/appendix/g-app-intents.html
  andhttp://developer.android.com/reference/android/content/Intent.html,
  but couldn't find the appropriate action.

  Does anybody have any idea on how to launch the Settings activity?
  Thanks.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 use dmtracedump?

2009-08-07 Thread wook

Traceview is working fine, but still I have trouble of running
dmtracedump.
Has anyone successfully generated a graphical call diagram?

this is the command I typed into my machine:
 dmtracedump -ho -g outputfilename tracefilename
actually I tried several combinations of the options, but it always
output the same error message
ERROR: unable to read 216321 bytes from trace file

I am using MS Vista 32bit, Android SDK 1.5r3, JDK5, and installed the
GraphViz package.

please enlighten me if anybody has made it

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Emulator memory

2009-08-07 Thread Steeler

Does the emulator accurately mimic the speed and memory of the average
Android phone?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 manually change GSM operator (carrier)

2009-08-07 Thread Andrzej Dobrucki

Does anyone know if there's a way to manually switch from one carrier
to another in code?

I could get actual operator data with serviceState.getOperatorAlphaLong
(); etc, but wasn't able to find a solution to actually switch from
one to another.

Thanks for help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: .apk file failed to uploan on emulator

2009-08-07 Thread Guido García Bernardo

Same problem here.  Any help could be highly appreciated.

BR,
guido.

On 25 jul, 14:47, Stetze stefan.ta...@gmail.com wrote:
 Did you find a solution for that problem?
 I'm facing the same problem since a long time...

 On Jun 8, 10:45 pm, chinna Durai chinnadur...@gmail.com wrote:

  Hi,
  I tried to run the JetBoy sample example from SDK. When i try to run it on
  emulator, it gives me following error

  [2009-06-08 22:25:50 - JetBoy] Uploading JetBoy.apk onto device
  'emulator-5554'

  [2009-06-08 22:26:08 - JetBoy] Failed to upload JetBoy.apk on
  'emulator-5554': timeout

  [2009-06-08 22:26:08 - JetBoy] Launch canceled!

  Can anyone tell me what would be the issue.

  I am using Android 1.5 platform.  and

  uses-sdk android:minSdkVersion=*3* /

  Thanks in advance.

  --
  Thanks and Regards
  Chinnadurai M

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Defaulting to numeric keyboard on EditText without forcing numeric input.

2009-08-07 Thread Marvel

android:number=integer produces ERROR: no resource identifier found
for attribute 'number'...

On Aug 6, 4:26 pm, Mike Olson mish.ol...@gmail.com wrote:
 I have an EditText that I don't want to force to be a number, but
 chances are it almost always will start with a number (The field is
 Quantity, and I'd like to to be free text, so I can write 1 oz, 2
 boxes, etc).

 Is there a way to have the on-screen keyboard default to the numeric
 keyboard, but still allow me to enter letters if I press the ABC
 button?  If I say add android:number=integer it won't allow non-
 numeric inputs.

 Thanks,
 Mike

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Already set up G1 (unlocked) with Gmail account now I want to set it up to use my Google Apps custom domain acct

2009-08-07 Thread Andres Monroy-Hernandez

A few questions:

1. I aready set up my G1 with my @gmail.com account but now I want to
set it up with my @mydomain.com account that is hosted in Google Apps.

2. How can I set up so that it uses my Google Apps email account
(custom domain) for email and my gmail for  Google Calendar/Google
Voice?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 use obexd sendfiles method?

2009-08-07 Thread lm

#include dbus/dbus-glib.h
#include stdio.h
#include stdlib.h
#include sms_features.h

static void lose (const char *fmt, ...) G_GNUC_NORETURN G_GNUC_PRINTF
(1, 2);
static void lose_gerror (const char *prefix, GError *error)
G_GNUC_NORETURN;

static void release_val(gpointer data)
{
GValue *val = (GValue *)data;
g_value_unset(val);
g_free(val);
}

GType sms_get_features_type(void)
{
return dbus_g_type_get_map(GHashTable, G_TYPE_STRING,
G_TYPE_VALUE);
}

GHashTable *sms_create_features(const char * alphabet, int csm_num,
int csm_seq)
{
GHashTable *hash;
GValue *val;

hash = g_hash_table_new_full  (g_str_hash, NULL, NULL, release_val);

val = g_new0(GValue, 1);
g_value_init (val, G_TYPE_STRING);
g_value_set_string (val, alphabet);
g_hash_table_insert(hash, alphabet, val);

val = g_new0(GValue, 1);
g_value_init (val, G_TYPE_INT);
g_value_set_int (val, csm_num);
g_hash_table_insert(hash, csm_num, val);

val = g_new0(GValue, 1);
g_value_init (val, G_TYPE_INT);
g_value_set_int (val, csm_seq);
g_hash_table_insert(hash, csm_seq, val);

return hash;
}



static void
lose (const char *str, ...)
{
  va_list args;

  va_start (args, str);

  vfprintf (stderr, str, args);
  fputc ('\n', stderr);

  va_end (args);

  exit (1);
}

static void
lose_gerror (const char *prefix, GError *error)
{
  lose (%s: %s, prefix, error-message);
}

static void
print_hash_value (gpointer key, gpointer val, gpointer data)
{
  printf (%s - %s\n, (char *) key, (char *) val);
}

int
main (int argc, char **argv)
{
  DBusGConnection *bus;
  DBusGProxy *remote_object;
  DBusGProxy *remote_object_introspectable;
  GError *error = NULL;
  char *introspect_data;
  guint i;
  gint sum;

  g_type_init ();

  {
GLogLevelFlags fatal_mask;

fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
g_log_set_always_fatal (fatal_mask);
  }

  bus = dbus_g_bus_get (/*DBUS_BUS_SYSTEM*/DBUS_BUS_SESSION, error);
  if (!bus)
lose_gerror (Couldn't connect to session bus, error);

  remote_object = dbus_g_proxy_new_for_name (bus,
 org.openobex.client,
 /,
 org.openobex.Client);


  GHashTable *features;

  features = sms_create_features (Destination, 3, 6);


  if (!dbus_g_proxy_call (remote_object, SendFiles, error,
  sms_get_features_type(), features, G_TYPE_STRV, argv,
DBUS_TYPE_G_OBJECT_PATH, /, G_TYPE_INVALID,
  G_TYPE_INVALID))
lose_gerror (Failed to call Add, error);
  printf(sum is %d\n, sum);


  g_free (introspect_data);

  g_object_unref (G_OBJECT (remote_object_introspectable));
  g_object_unref (G_OBJECT (remote_object));

  exit(0);
}
when I run it:
[...@localhost src]$ ./example-client 00:13:E0:06:01:C1 /home/lm/
download/hello-dbus3-0.1/src/example-client.c
Failed to call Add:

The error value is NULL,but the dbus_g_proxy_call() return 0. I don't
know how to deal this problem. Is there someone know this? thanks.

the sendfiles method define in obexd like this:
{ SendFiles, a{sv}aso, , send_files,
G_DBUS_METHOD_FLAG_ASYNC },

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 hardware

2009-08-07 Thread mvdb

Hi everyone,

Hope this post does not show up as duplicate but my previous post is
not appearing. Anyway I am thinking of getting a HTC Hero for android
development. I would like to debug applications from Eclipse on the
device. I cannot
find anything to indicate this would be a problem but I just wanted to
check...

Any feedback much appreciated

cheers

Martijn

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] ImageButton is shriking it's size automatically when virtual keyboard is launched

2009-08-07 Thread Tushar

Hi,

I have this strange problem.  I'm placing  Autocomplete text box and
ImageButton in the center of screen.  Whenever user starts entering
text virtual keyboard is launched. At that time my ImageButton shrinks
to half. I tried to set minimum height attribute but no success.  Any
idea what should I need to do to solve this issue ?

Below is sample xml text from layout of screen.

ImageButton android:clickable=true
android:focusable=true
android:id=@+id/myImageButton
android:layout_gravity=center_horizontal
android:layout_width=wrap_content
android:layout_alignParentRight=true

android:src=@android:drawable/ic_search_category_default
 android:layout_marginBottom=10dip
 android:layout_marginTop=10dip
 android:layout_marginRight=10dip
 android:layout_marginLeft=0dip
 android:layout_alignBottom=@+id/my_box_layout
 android:layout_height=wrap_content android:minHeight=30px
/




Tushar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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]

2009-08-07 Thread seema sharma
hello everyone

I am android beginner.I am looking for notification example in android.
can u plz send to me

Seema Sharma

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Accelerometer and dpad

2009-08-07 Thread Steeler

I want to include accelerometer support in my app, but the
documentation seemed pretty spotty. How many axes of rotation does the
accelerometer support, and how do you differentiate between the axes?

Also, do *any* current Android phones actually have a dpad? The
emulator's not as useful as it could be if it doesn't have any
emulation of the accelerometer (if it does, please let me know) and
has a dpad instead of the real-life trackball.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Sample Code

2009-08-07 Thread Nathan

I am just getting started with Android development and I would like to
go over the sample code that it says is included with the sdk.
However, it appears not to be included in the version I downloaded
(android-sdk-windows-1.5r3).  There isn't a folder at all for sample
code.

Any one know where I can get a copy of the sample code to start
studying it?

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] debugging using device on development running Virtual PC 2007

2009-08-07 Thread Idriss

I am using Virtual PC 2007 to develop under Android using Eclipse
under Windows XP. I am able to debug using the emulator but have not
had any luck to ddms to recognize the device. I was able to intall the
USB driver under the PC, mount the drive, and then share the drive
under virtual PC.

has anyone been successful at testing using a device under Virtual PC.
Thanks
idriss

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 share data between the program that launches the thread and the thread itself?

2009-08-07 Thread Android Beginner

Sorry... must be a very easy question... otherwise I would't be a real
Android Beginner... :-)

How to share the variable pippo between the program that launches the
thread and the thread itself?

@Override
public void onCreate() {
super.onCreate();
int pippo = 5;
new Timer().scheduleAtFixedRate(new TimerTask() {
public void run() {pippo;
};};},0,1000);

This is the result of the compiler...

Cannot refer to a non-final variable pippo inside an inner class
defined in a different method.

Many thanks in advance.
Regards

Android Beginner

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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]

2009-08-07 Thread jyoti gupta
I need notification example in android
plz send to me

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] ADC2

2009-08-07 Thread jaaaelpumuki

Hi guys!

I'm not sure about how to participe in the contest. So the only thing
i need it's to publich my app in the market? or do i have to do a
special thing? is there a web site to upload adc2 apps?

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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]

2009-08-07 Thread seema sharma
hello I need a notification example in android
plz send to me

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Thread Problem, invalidate() not recalled

2009-08-07 Thread shal
I think you are not using the handler for the updating of the GUI
which is
causing problem.

Take a look at this tutorial that explains the basics of GUI/View
updates.

http://www.anddev.org/the_pizza_timer_-_threading-drawing_on_canvas-t126.html

Hope it helps...










On Jul 28, 5:23 am, Manjul manjulsa...@gmail.com wrote:
 Hi, all i am making a arc whose size keep on changing as value is
 changed in thread, but problem is, i am not able to run thread, no
 error nothing.
 here is my code

 package com.Arcs;

 import android.app.Activity;
 import android.content.Context;
 import android.graphics.Canvas;
 import android.graphics.Color;
 import android.graphics.Paint;
 import android.graphics.RectF;
 import android.os.Bundle;
 import android.view.KeyEvent;
 import android.view.View;

 public class ArcTest extends Activity
 {
         SampleView sv;

         public void onCreate(Bundle savedInstanceState)
         {
         super.onCreate(savedInstanceState);
         sv=new SampleView(this);
         setContentView(sv);
     }

         class SampleView extends View implements Runnable
         {
                 Paint paint;
                 RectF oval;
                 float f,j=360;
                 boolean running=true;

                 SampleView(Context arc)
                 {
                         super(arc);
                         paint=new Paint();
                         paint.setColor(0x88FF);
                         Thread t=new Thread(this);
                         t.start();
                         t.setPriority(10);
                 }

                 protected void onDraw(Canvas canvas)
                 {
                         System.out.println(in ondraw);
                         canvas.drawColor(Color.WHITE);
                         oval=new RectF(10,10,280,250);
                         canvas.drawArc(oval, f, j, true, paint);
                         canvas.drawText(+j, 30, 300, paint);
 //                      f++;
 //                      if(f360)
 //                              f=0;
 //                      j--;
 //                      if(j0)
 //                              j=360;
 //                      invalidate();

                 }

                 public void run()
                 {
                         try{
                                 while(running)
                                 {
                                         j--;
                                         if(j0)
                                                 j=360;
                                        invalidate();
                                         Thread.sleep(150);
                                         System.out.println(in thread);
                                 }
                         }catch(Exception e){e.printStackTrace();}
                 }

         }



 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Cant run HelloAndriod

2009-08-07 Thread Pugnap00

So ive set up eclipse, with android SKD, and im trying to get the test
HelloAndroid to run. My AVD is setup correctly, i did it through the
command prompt. Whenever i go to run my app i get this error.

ERROR: Application does not specify a
android.test.InstrumentationTestRunner instrumentation or does not
declare uses-library android.test.runner

Ive configured the build path. Ive never used eclipse before so i get
lost in this IDE pretty quik :P

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Developer hardware

2009-08-07 Thread mvdb

Hi everyone,

I would like to get a HTC Hero for Android development. I could not
find anything
to indicate this would be a bad idea, i.e. I think I should be able to
debug applications
from Eclipse? I just wanted to make sure before I go ahead and buy
one

Any answers much appreciated

Martijn

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Switching operators

2009-08-07 Thread Andrzej Dobrucki

Hello all,

This is my first post in this forum so I'd like to send warm his to
everyone here.

My question is : is it possible to write a piece of code that switches
from one GSM cellular operator to other with or without user's
permission.

Thanks in advance!

Andrzej

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Sample Code missing

2009-08-07 Thread Nathan

The folder that should contain the sample code for the Android SDK
does not exist for me.  I've downloaded the SDK two times and neither
one contained it.

Any idea where I might find the folder and the corresponding sample
code so I can start figuring out how to program?

Thanks,

Nathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] MapView hangs up unable to connect and polluated logs with thousands of stack traces: Connection pool shut down

2009-08-07 Thread Zied Hamdi

Hi Google maps team,

Just in case nobody reported the error:

Best Regards,
Zied Hamdi

The Next Street Android Application
http://nextstreet.eu

08-07 19:50:30.538: WARN/System.err(12975):
java.lang.IllegalStateException: Connection pool shut down.
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking
(ConnPoolByRoute.java:284)
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry
(ConnPoolByRoute.java:238)
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
$1.getConnection(ThreadSafeClientConnManager.java:175)
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:325)
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:555)
08-07 19:50:30.568: WARN/System.err(12975): at
org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:487)
08-07 19:50:30.578: WARN/System.err(12975): at
com.google.common.io.android.AndroidHttpClient.execute(Unknown Source)
08-07 19:50:30.578: WARN/System.err(12975): at
com.google.common.io.android.GoogleHttpClient.executeWithoutRewriting
(Unknown Source)
08-07 19:50:30.578: WARN/System.err(12975): at
com.google.common.io.android.GoogleHttpClient.execute(Unknown Source)
08-07 19:50:30.578: WARN/System.err(12975): at
com.google.common.io.android.GoogleHttpClient.execute(Unknown Source)
08-07 19:50:30.588: WARN/System.err(12975): at
com.google.common.io.android.AndroidHttpConnectionFactory
$AndroidGoogleHttpConnection.getResponse(Unknown Source)
08-07 19:50:30.588: WARN/System.err(12975): at
com.google.common.io.android.AndroidHttpConnectionFactory
$AndroidGoogleHttpConnection.openDataInputStream(Unknown Source)
08-07 19:50:30.598: WARN/System.err(12975): at
com.google.common.DataRequestDispatcher.serviceRequests(Unknown
Source)
08-07 19:50:30.598: WARN/System.err(12975): at
com.google.common.DataRequestDispatcher$DispatcherServer.run(Unknown
Source)
08-07 19:50:30.598: WARN/System.err(12975): at java.lang.Thread.run
(Thread.java:1058)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Sample Code missing

2009-08-07 Thread Mark Murphy

Nathan wrote:
 The folder that should contain the sample code for the Android SDK
 does not exist for me.  I've downloaded the SDK two times and neither
 one contained it.

Bear in mind that starting with Android 1.5, the sample code is on a
per-platform basis. So, if you want the 1.5 code, the samples are in:

$SDK_ROOT/platforms/android-1.5/samples/

where $SDK_ROOT is whatever directory you installed the SDK to.

Unless they changed the 1.5r3 SDK since I downloaded it, the ZIP file
definitely contains the samples.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: debugging using device on development running Virtual PC 2007

2009-08-07 Thread Roman

I am using VMWare player on my Windows Vista environment and don't
have any problems with any hardware interface. Also recognizing a
connected phone on USB works fine.

You might want to give it a try if you don't have any progress with
Virtual PC 2007.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 7, 9:40 am, Idriss idrissben...@gmail.com wrote:
 I am using Virtual PC 2007 to develop under Android using Eclipse
 under Windows XP. I am able to debug using the emulator but have not
 had any luck to ddms to recognize the device. I was able to intall the
 USB driver under the PC, mount the drive, and then share the drive
 under virtual PC.

 has anyone been successful at testing using a device under Virtual PC.
 Thanks
 idriss
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] examples for Saurabh sinha, seema sharma, jyoti gupta

2009-08-07 Thread Julie

Saurabh Sinha - is that you?  You really need to stop spamming the channel (and 
the smart regulars!!) begging and demanding for someone to do YOUR work for you 
- no matter how many names you use and email accounts you can set up!

From: seema sharma seema.sharma...@gmail.com
To: android-beginners@googlegroups.com
Sent: Thursday, August 6, 2009 1:35:11 PM
Subject: [android-beginners]

hello I need a notification example in android
plz send to me
=
From: jyoti gupta guptajyot...@gmail.com
To: android-beginners@googlegroups.com
Sent: Thursday, August 6, 2009 1:14:21 PM
Subject: [android-beginners]

I need notification example in android
plz send to me
==
From: saurabh sinha saurso...@gmail.com
To: android-beginners@googlegroups.com; jack...@t-mobile.com; b.indraneel 
banglore b.indran...@gmail.com
Sent: Thursday, August 6, 2009 2:59:54 AM
Subject: [android-beginners]


hello

I am android beginner.
I need a notification example and
how to call servlet in android

send me these 2 example



  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Move an Image Using Finger Touch

2009-08-07 Thread Hamed3d

Hi there,

I am trying to move an image using finger touch.I tried to find a
tutorial or sample code for it but I couldn't find anything. Could
anyone please help me out here? Thanks in advanced...




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Sample Code missing

2009-08-07 Thread Nathan

Ah, thanks, I was overlooking the platform folder.

On Aug 7, 12:06 pm, Mark Murphy mmur...@commonsware.com wrote:
 Nathan wrote:
  The folder that should contain the sample code for the Android SDK
  does not exist for me.  I've downloaded the SDK two times and neither
  one contained it.

 Bear in mind that starting with Android 1.5, the sample code is on a
 per-platform basis. So, if you want the 1.5 code, the samples are in:

 $SDK_ROOT/platforms/android-1.5/samples/

 where $SDK_ROOT is whatever directory you installed the SDK to.

 Unless they changed the 1.5r3 SDK since I downloaded it, the ZIP file
 definitely contains the samples.

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

 Android Training in Germany, 18-22 January 2010:http://bignerdranch.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Sample Code

2009-08-07 Thread Xavier Ducrohet

Samples are under their respective platform versions.

Look into
SDK/platforms/target_platform/samples/

Xav

On Fri, Aug 7, 2009 at 9:51 AM, Nathannrb...@gmail.com wrote:

 I am just getting started with Android development and I would like to
 go over the sample code that it says is included with the sdk.
 However, it appears not to be included in the version I downloaded
 (android-sdk-windows-1.5r3).  There isn't a folder at all for sample
 code.

 Any one know where I can get a copy of the sample code to start
 studying it?

 Thanks

 




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: debugging using device on development running Virtual PC 2007

2009-08-07 Thread Idriss

Thanks. I will have to look into that. do yo happen to know if VMWare
offers a free product.
thanks

On Aug 7, 2:10 pm, Roman roman.baumgaert...@t-mobile.com wrote:
 I am using VMWare player on my Windows Vista environment and don't
 have any problems with any hardware interface. Also recognizing a
 connected phone on USB works fine.

 You might want to give it a try if you don't have any progress with
 Virtual PC 2007.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 7, 9:40 am, Idriss idrissben...@gmail.com wrote:



  I am using Virtual PC 2007 to develop under Android using Eclipse
  under Windows XP. I am able to debug using the emulator but have not
  had any luck to ddms to recognize the device. I was able to intall the
  USB driver under the PC, mount the drive, and then share the drive
  under virtual PC.

  has anyone been successful at testing using a device under Virtual PC.
  Thanks
  idriss- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Sharing Industry Stats: Android Reeling in iPhone?

2009-08-07 Thread Peter Farago
Hi everyone,

Flurry Analytics uses the data collected from now over 200 million montly
tracked user sessions to spot trends in the industry.  Sharing the latest
from our July Smartphone Industry Pulse, which we hope you'll find helpful.


http://blog.flurry.com/bid/24465/Smartphone-Industry-Pulse-July-2009

Topics we cover this month:

   1. No End in Sight for New iPhone Apps
   2. Google Android: We Have Lift Off
   3. You Trying to Swindle my Kindle?

Best regards,

Peter

-- 
Peter Farago
VP Marketing
www.flurry.com
Follow us:
http://blog.flurry.com
http://twitter.com/FlurryMobile

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Payment for service

2009-08-07 Thread Yusuf T. Mobile

No, it's not. Have you considered PayPal?




Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Aug 7, 8:36 am, jbrohan jbro...@gmail.com wrote:
 Hello
 Could someone please point me to a discussion of payment for service
 in the Android environment. The application is medical, where the user
 sends a picture to the service (a real human nurse) and gets an
 opinion in return. The nurse needs to get some money out of the deal.

 The whole thing is a bit casual so people can sign up send a pic and
 make a payment and that's it. Or it could go on for months as the
 patient gets better. The amount per transaction is about $20.00.
 There are various models available. For example a person could buy a
 5-pack or they could have free service for some reason or other. Or
 they could receive an email telling them that the opinion is
 available and they need to fork over the $$$. I suppose we could just
 make and email an invoice. Anyone have experience of the payment rate
 for these invoices?

 Obviously I'm looking for the simplest most universal payment method.
 Is this available in Google Market?
 Thanks
 John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Sample Code

2009-08-07 Thread Kent Loobey
On Friday 07 August 2009 09:51:01 Nathan wrote:
 I am just getting started with Android development and I would like to
 go over the sample code that it says is included with the sdk.
 However, it appears not to be included in the version I downloaded
 (android-sdk-windows-1.5r3).  There isn't a folder at all for sample
 code.

On Ubuntu I would look in the following sub-directory.

android-sdk-linux_x86-1.5_r3/platforms/android-1.5/samples

The samples would probably be some where else on a Mac.


 Any one know where I can get a copy of the sample code to start
 studying it?

 Thanks

 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Why XML to define layouts/components?

2009-08-07 Thread Yusuf T. Mobile

If your question is why even use XML to layout UI? the answer is
because some people like it better; they find it easier and cleaner;
other's prefer to do it in Java. As Teal said, you don't have to use
XML if you don't like. I at first found the XML layout method foreign,
and the plethora of approaches daunting. I would have benefitted from
a tutorial that first focused on only Java and then broadened to XML,
but I survived and now find XML UI layout to be useful, sometimes.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 6, 4:25 pm, Teal teal.b...@gmail.com wrote:
 You can construct the UI programatically without using XML.  Follow
 the Hello World tutorial (http://developer.android.com/guide/tutorials/
 hello-world.html), and note how the UI is constructed in Construct
 the UI section, and notice how it is alternatively implemented using
 XML in the Upgrade the UI to an XML Layout section.

 On Aug 6, 12:29 pm, Casper Bang casper.b...@gmail.com wrote:



  My original first post doesn't seem to get approved, so let me try
  again. :)

  I'm wondering whether other Android newbies than me find the empathy
  on XML layout troublesome? I realize we should strive to separate view
  from logic and that XML is hip and trendy, but is it really necessary
  for these relatively simple Android applications?

  XML layouts involves more files and what feels like a lot of
  magic (type unsafe) properties, and makes samples harder to follow/
  type. It also can't be especially efficient to use findViewById
  (whether BFS or DFS based) constantly?

  It sort of reminds me of the differences between JSF and Wicket, where
  the former was designed by people sitting in an ivory tower while the
  latter was designed for and by people at the ground, comfortable with
  Java. Which also leads me to wonder how come Android uses the old type-
  unsafe int enum pattern and also, why fluent-interfaces/method-
  chaining isn't used in greater extend?

  /Casper

  PS: You might want to fix the URL's to the group charter and FAQ as
  they currently go into 404.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: ADC2

2009-08-07 Thread Yusuf T. Mobile

I recommend you look at the rules here: http://code.google.com/android/adc/

And wait for Google to announce when contestants can submit their
entries, hopefully soon.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 7, 12:54 am, jaaaelpumuki jaaaelpum...@gmail.com wrote:
 Hi guys!

 I'm not sure about how to participe in the contest. So the only thing
 i need it's to publich my app in the market? or do i have to do a
 special thing? is there a web site to upload adc2 apps?

 Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Why XML to define layouts/components?

2009-08-07 Thread Casper Bang

Exactly my point, it seems like it would be easier to learn Android
that way. It wasn't until I found Mark Murphy's The Busy Coder's
Guide to Android Development that I starting feeling a bit more
comfortable with all the XML (lots of examples gradually introduced,
unlike the O'Reilly and Manning books I have).

Also, Roman Guy replied in another thread, that you can't do the same
with Java as you can with XML (although that seems odd, all other XML
view technologies I know of ultimately translates into a Java
component tree):
http://groups.google.com/group/android-beginners/browse_thread/thread/5f130bfbc51669aa

/Casper

On 7 Aug., 23:25, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote:
 If your question is why even use XML to layout UI? the answer is
 because some people like it better; they find it easier and cleaner;
 other's prefer to do it in Java. As Teal said, you don't have to use
 XML if you don't like. I at first found the XML layout method foreign,
 and the plethora of approaches daunting. I would have benefitted from
 a tutorial that first focused on only Java and then broadened to XML,
 but I survived and now find XML UI layout to be useful, sometimes.

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 6, 4:25 pm, Teal teal.b...@gmail.com wrote:

  You can construct the UI programatically without using XML.  Follow
  the Hello World tutorial (http://developer.android.com/guide/tutorials/
  hello-world.html), and note how the UI is constructed in Construct
  the UI section, and notice how it is alternatively implemented using
  XML in the Upgrade the UI to an XML Layout section.

  On Aug 6, 12:29 pm, Casper Bang casper.b...@gmail.com wrote:

   My original first post doesn't seem to get approved, so let me try
   again. :)

   I'm wondering whether other Android newbies than me find the empathy
   on XML layout troublesome? I realize we should strive to separate view
   from logic and that XML is hip and trendy, but is it really necessary
   for these relatively simple Android applications?

   XML layouts involves more files and what feels like a lot of
   magic (type unsafe) properties, and makes samples harder to follow/
   type. It also can't be especially efficient to use findViewById
   (whether BFS or DFS based) constantly?

   It sort of reminds me of the differences between JSF and Wicket, where
   the former was designed by people sitting in an ivory tower while the
   latter was designed for and by people at the ground, comfortable with
   Java. Which also leads me to wonder how come Android uses the old type-
   unsafe int enum pattern and also, why fluent-interfaces/method-
   chaining isn't used in greater extend?

   /Casper

   PS: You might want to fix the URL's to the group charter and FAQ as
   they currently go into 404.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Why XML to define layouts/components?

2009-08-07 Thread Romain Guy

 Also, Roman Guy replied in another thread, that you can't do the same
 with Java as you can with XML (although that seems odd, all other XML
 view technologies I know of ultimately translates into a Java
 component tree):
 http://groups.google.com/group/android-beginners/browse_thread/thread/5f130bfbc51669aa

You can do the same, but with XML the system will automatically select
the appropriate layout based on the device's configuration. You could
do it by hand if you really wanted but have fun with that. There is
really very little point in building the UI from Java code except
complicating the source code and making some things harder (like
supporting configurations.)


 /Casper

 On 7 Aug., 23:25, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote:
 If your question is why even use XML to layout UI? the answer is
 because some people like it better; they find it easier and cleaner;
 other's prefer to do it in Java. As Teal said, you don't have to use
 XML if you don't like. I at first found the XML layout method foreign,
 and the plethora of approaches daunting. I would have benefitted from
 a tutorial that first focused on only Java and then broadened to XML,
 but I survived and now find XML UI layout to be useful, sometimes.

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 6, 4:25 pm, Teal teal.b...@gmail.com wrote:

  You can construct the UI programatically without using XML.  Follow
  the Hello World tutorial (http://developer.android.com/guide/tutorials/
  hello-world.html), and note how the UI is constructed in Construct
  the UI section, and notice how it is alternatively implemented using
  XML in the Upgrade the UI to an XML Layout section.

  On Aug 6, 12:29 pm, Casper Bang casper.b...@gmail.com wrote:

   My original first post doesn't seem to get approved, so let me try
   again. :)

   I'm wondering whether other Android newbies than me find the empathy
   on XML layout troublesome? I realize we should strive to separate view
   from logic and that XML is hip and trendy, but is it really necessary
   for these relatively simple Android applications?

   XML layouts involves more files and what feels like a lot of
   magic (type unsafe) properties, and makes samples harder to follow/
   type. It also can't be especially efficient to use findViewById
   (whether BFS or DFS based) constantly?

   It sort of reminds me of the differences between JSF and Wicket, where
   the former was designed by people sitting in an ivory tower while the
   latter was designed for and by people at the ground, comfortable with
   Java. Which also leads me to wonder how come Android uses the old type-
   unsafe int enum pattern and also, why fluent-interfaces/method-
   chaining isn't used in greater extend?

   /Casper

   PS: You might want to fix the URL's to the group charter and FAQ as
   they currently go into 404.
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Why XML to define layouts/components?

2009-08-07 Thread Mark Murphy

Casper Bang wrote:
 It wasn't until I found Mark Murphy's The Busy Coder's
 Guide to Android Development that I starting feeling a bit more
 comfortable with all the XML

That is due to the subliminal angle brackets are your friends I have
in the watermark on the pages.

;-)

 Also, Roman Guy replied in another thread, that you can't do the same
 with Java as you can with XML (although that seems odd, all other XML
 view technologies I know of ultimately translates into a Java
 component tree):
 http://groups.google.com/group/android-beginners/browse_thread/thread/5f130bfbc51669aa

His second post was a bit confusing to me, but I think he was trying to
echo the point he tried to emphasize in his first post.

When you get to the Resources chapter in the aforementioned book,
there's a section at the end that covers resource sets. Those allow you
to have different resources loaded based on different criteria, from
user language to screen resolution to the existence of a QWERTY
keyboard, and beyond. While it is technically possible to do all of that
in Java, you'll drown in a sea of if(), switch(), and ternary operators.

Similarly, while it is technically possible to use containers like
RelativeLayout fully in Java, it is *much* more verbose than setting
them up in XML.

Finally, one key reason why any development platform uses XML for
anything is to help support the creation of tools to manipulate it.
Admittedly, that hasn't happened much with Android, outside of the main
SDK tools and stuff like MOTODEV's extensions on the same. But it is
much easier to build tools to generate and modify XML-based UIs than it
is to build tools to generate and modify Java-based UIs, IMHO.

Those sorts of arguments may not matter much to you, which is why the
Java-based approach is available and valid. I use it sometimes myself,
though not terribly often. Choose the approach that you like.

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

Android App Developer Books: http://commonsware.com/books.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Debugger doesn't work

2009-08-07 Thread Steeler

I have Eclipse Ganymede and the Android ADT plugin. I'm able to test
code in the emulator, and everything's working fine... except that
when using breakpoints, the debugger will stop working all of a
sudden. Sometimes I can step through a few lines, sometimes it'll do
it right away. When it happens, sometimes it will ask me to give it a
new path to find the source code; other times it'll give me an error
page that has the name of some file or activity (not always the same,
even when debugging one project) and say Source not found and The
JAR of this class file belongs to container 'Android 1.5' which does
not allow modifications to source attachments on its entries. Then
underneath that it has a lot of code.

What the heck is going on?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Why XML to define layouts/components?

2009-08-07 Thread Casper Bang

Thanks guys, I now understand the empathy on XML a little better. :)

/Casper

On 8 Aug., 00:12, Mark Murphy mmur...@commonsware.com wrote:
 Casper Bang wrote:
  It wasn't until I found Mark Murphy's The Busy Coder's
  Guide to Android Development that I starting feeling a bit more
  comfortable with all the XML

 That is due to the subliminal angle brackets are your friends I have
 in the watermark on the pages.

 ;-)

  Also, Roman Guy replied in another thread, that you can't do the same
  with Java as you can with XML (although that seems odd, all other XML
  view technologies I know of ultimately translates into a Java
  component tree):
 http://groups.google.com/group/android-beginners/browse_thread/thread...

 His second post was a bit confusing to me, but I think he was trying to
 echo the point he tried to emphasize in his first post.

 When you get to the Resources chapter in the aforementioned book,
 there's a section at the end that covers resource sets. Those allow you
 to have different resources loaded based on different criteria, from
 user language to screen resolution to the existence of a QWERTY
 keyboard, and beyond. While it is technically possible to do all of that
 in Java, you'll drown in a sea of if(), switch(), and ternary operators.

 Similarly, while it is technically possible to use containers like
 RelativeLayout fully in Java, it is *much* more verbose than setting
 them up in XML.

 Finally, one key reason why any development platform uses XML for
 anything is to help support the creation of tools to manipulate it.
 Admittedly, that hasn't happened much with Android, outside of the main
 SDK tools and stuff like MOTODEV's extensions on the same. But it is
 much easier to build tools to generate and modify XML-based UIs than it
 is to build tools to generate and modify Java-based UIs, IMHO.

 Those sorts of arguments may not matter much to you, which is why the
 Java-based approach is available and valid. I use it sometimes myself,
 though not terribly often. Choose the approach that you like.

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

 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 use dmtracedump?

2009-08-07 Thread fadden

On Aug 7, 1:21 am, wook wook.s...@gmail.com wrote:
 actually I tried several combinations of the options, but it always
 output the same error message
 ERROR: unable to read 216321 bytes from trace file

Sounds like your .trace file is truncated or broken somehow.  Do you
see errors if you simply dmtracedump -h tracefilename  /dev/
null ?

Also: do you have dot?  If not, you'll just get:

% dmtracedump -h foo.trace  /dev/null
sh: dot: not found

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: debugging using device on development running Virtual PC 2007

2009-08-07 Thread Roman

VMWare player is for free.  Also check out the VirtualBox from sun
which is also available for the Windows environment and is also for
free.

Let me know if you have problems with the setup.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 7, 1:43 pm, Idriss idrissben...@gmail.com wrote:
 Thanks. I will have to look into that. do yo happen to know if VMWare
 offers a free product.
 thanks

 On Aug 7, 2:10 pm, Roman roman.baumgaert...@t-mobile.com wrote:

  I am using VMWare player on my Windows Vista environment and don't
  have any problems with any hardware interface. Also recognizing a
  connected phone on USB works fine.

  You might want to give it a try if you don't have any progress with
  Virtual PC 2007.

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Aug 7, 9:40 am, Idriss idrissben...@gmail.com wrote:

   I am using Virtual PC 2007 to develop under Android using Eclipse
   under Windows XP. I am able to debug using the emulator but have not
   had any luck to ddms to recognize the device. I was able to intall the
   USB driver under the PC, mount the drive, and then share the drive
   under virtual PC.

   has anyone been successful at testing using a device under Virtual PC.
   Thanks
   idriss- Hide quoted text -

  - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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]

2009-08-07 Thread saurabh sinha

this is notification test class and test1 another activity
while running notification I get status msg when I click to start
another activity
activity is not started plz check it your system and tell me where I
am going wrong


import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import java.util.Timer;
import java.util.TimerTask;

public class test extends Activity {
private static final int NOTIFY_ME_ID=1337;
private Timer timer=new Timer();
private int count=0;

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

Button btn=(Button)findViewById(R.id.notify);

btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
TimerTask task=new TimerTask() {
public void run() {
notifyMe();
}
};

timer.schedule(task, 5000);
}
});

btn=(Button)findViewById(R.id.cancel);

btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
NotificationManager mgr=

(NotificationManager)getSystemService(NOTIFICATION_SERVICE);

mgr.cancel(NOTIFY_ME_ID);
}
});
}

private void notifyMe() {
final NotificationManager mgr=

(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
Notification note=new Notification(R.drawable.icon, Status 
message!,


System.currentTimeMillis());
PendingIntent i=PendingIntent.getActivity(this, 0,

new Intent(this,test1.class),


0);

note.setLatestEventInfo(this, Notification Title,

This is the notification message, i);
note.number=++count;

mgr.notify(NOTIFY_ME_ID, note);
}
}



this is test1 class
import android.app.Activity;
import android.os.Bundle;
import android.widget.*;


public class test1  extends Activity
{
public void onCreate(Bundle d)
{
super.onCreate(d);
TextView dd=new TextView(this);
dd.setText(hello world);
setContentView(dd);
}

}


application android:icon=@drawable/icon android:label=welcome
activity android:name=.test
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
   activity android:name=.test1
  android:label=welcome/

/application

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Move an Image Using Finger Touch

2009-08-07 Thread Jack Ha

You can take a look at this tutorial.

http://www.anddev.org/viewtopic.php?p=11603

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 7, 11:24 am, Hamed3d hamed.sa...@gmail.com wrote:
 Hi there,

 I am trying to move an image using finger touch.I tried to find a
 tutorial or sample code for it but I couldn't find anything. Could
 anyone please help me out here? Thanks in advanced...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Question Regarding the Background Menu

2009-08-07 Thread Hamed3d

Hi there,

I have a GUI question and hope someone can help me out.

I am trying to make a GUI where I have 3 buttons ( start, about,
exit). What I need is to have a background behind these buttons. For
instance Xgalaga game for android. When you start the game there are 3
buttons and behind them is a background.

in my layout I have a main.xml that has ( LinearLayout, and 3
buttons). I tried to add (@drawable/mybackgorundimage) to background
section of LinearLayout (). Well it works but the image is stretched
out and I know this is not a right way.

Some Extra Questions that came to my mind also:

How many ways are possible to this?

What if the background is an animation?

What is the most efficient way to do this?


I would appreciate if someone provide me with a sample code.


Thanks,




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Move an Image Using Finger Touch

2009-08-07 Thread Hamed3d


Thank you so much. That's exactly what I want



On Aug 7, 8:50 pm, Jack Ha jack...@t-mobile.com wrote:
 You can take a look at this tutorial.

    http://www.anddev.org/viewtopic.php?p=11603

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.

 On Aug 7, 11:24 am, Hamed3d hamed.sa...@gmail.com wrote:

  Hi there,

  I am trying to move an image using finger touch.I tried to find a
  tutorial or sample code for it but I couldn't find anything. Could
  anyone please help me out here? Thanks in advanced...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: [android-beginners]

2009-08-07 Thread Naveen Krishna Ch
2009/8/7 seema sharma seema.sharma...@gmail.com

 hello everyone

 I am android beginner.I am looking for notification example in android.
 can u plz send to me

Go through the ApiDemos in the SDK..
There is sample code for it


 Seema Sharma

 



-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: [android-beginners]

2009-08-07 Thread Naveen Krishna Ch
2009/8/7 seema sharma seema.sharma...@gmail.com

 I need a service example in android
 plz send to me

ApiDemos in the SDK has a service example for
Local service and Remote service..
Basically we need to have an AIDL file for each (Service and client)
And thier skeletons(Which are interfaces) should be defined by you..


 



-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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
-~--~~~~--~~--~--~---