[android-developers] How to start the native Camera app in 1.0 SDK?

2008-10-02 Thread Amos

Hi,

The MediaStore.ACTION_IMAGE_CAPTURE constant, which was used to start
the native Camera application to capture an image, has been removed in
the 1.0 SDK.

Is there an alternative way to start the native Camera app to take a
picture and return it to my calling Activity?

Thanks,

Amos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept incoming call

2008-10-02 Thread legerb

Is this the same for outgoing calls? They also cannot be interecepted
in 1.0?
If so, what is the purpose of ACTION_NEW_OUTGOING_CALL?
this is from the documentation:
It is perfectly acceptable for multiple receivers to process the
outgoing call in turn: for example, a parental control application
might verify that the user is authorized to place the call at that
time, then a number-rewriting application might add an area code if
one was not specified.

For consistency, any receiver whose purpose is to prohibit phone calls
should have a priority of 0, to ensure it will see the final phone
number to be dialed. Any receiver whose purpose is to rewrite phone
numbers to be called should have a positive priority. Negative
priorities are reserved for the system for this broadcast; using them
may cause problems.

If i understand correctly, the outgoing call can be ended, and we can
also get the dialed number from the Intent's info.
Is this correct?

On Oct 1, 7:52 pm, hackbod [EMAIL PROTECTED] wrote:
 Sorry, intercepting incoming calls is not supported in 1.0.

 On Oct 1, 9:20 am, Trey  Ethridge [EMAIL PROTECTED] wrote:



  I'd like to expand the logic of when to send a call directly to
  voicemail.  I believe that there would need to be a hook somewhere to
  intercept the incoming call and determine whether or not to accept
  it.

  An example use case would be to prevent drunk dialing.  There could
  be a setting in Android that would allow the user to set the device to
  send all calls to voicemail if the the caller is not in the family
  contact list and it is between 11:00 PM and 7:00 AM.

  We have a checkbox to allow users to send all calls to voicemail from
  a given contact, so I don't see why this should be a problem.  Is this
  going to be possible?

  -- Trey

  On Sep 27, 4:27 pm, Eric B [EMAIL PROTECTED] wrote:

   One of the best apps I've every bought for my Treo 600/650 is an app
   that lets you assign specific ring tones (really mp3 files) to
   specific contacts or groups of contacts.  I especially like the
   ability to turn off the ringer and vibrator for calls with no caller
   id.

   I don't think this kind of app would be possible without being able 
   tointerceptacall.

   Thanks,
   Eric- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept incoming call

2008-10-02 Thread hackbod

On Oct 2, 12:17 am, legerb [EMAIL PROTECTED] wrote:
 Is this the same for outgoing calls? They also cannot be interecepted
 in 1.0?

No, you can intercept outgoing calls, as you quoted from the
documentation.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Receiving SMS Messages in 1.0?

2008-10-02 Thread Cristina

Hi Justin,

Related to the problem of sending binary sms to port, I have changed
that parameter to null, and I send the data message using a port from
5554 emulator to 5556. This seems to work looking to the log
files.

The problem is that I am not able to receive the SMS data message in
the 5556 phone. So  there must be something I am doing wrong.

In order to receive the SMS to port messege in 5556 I have created
a BroadcastReceiver listening to the
android.provider.Telephony.SMS_RECEIVED action.
I did not know how to declare the port that this receiver is listening
to...so I figured out that maybe it was declared using the port option
in the manifest..

   receiver android:name=.ServerMessagesReceiver
   intent-filter
action android:name=android.provider.Telephony.SMS_RECEIVED /
data android:port=16001/data
  /intent-filter
   /receiver

Is this the right way to declare the port that this SMS receiver is
listening to? I suppose the problem is there

Thanks in advance for the help

Cristina


On Oct 2, 2:32 am, Justin (Google Employee) [EMAIL PROTECTED] wrote:
 Cristina,

 Set the second parameter to null. The scAddress relates to the address
 of the server on the cellular network that will handle the message, it
 is not the address of the sender.

 Cheers,
 Justin
 Android Team @ Google

 On Sep 24, 5:55 am, Cristina [EMAIL PROTECTED] wrote:



  I have just done a text to send a messege to aportusing this

  SmsManager smsManager = SmsManager.getDefault();
  shortport= 16001;
  smsManager.sendDataMessage(5556,5554,port, Hola.getBytes(),
  null, null);

  I use two emulators, one is launched at 5554 and the other at 5556 and
  I try to send the binarysmsfrom 5554 to 5556.
  In the 5556 phone I have launch an application with a
  BroadcastReceiver in order to receiveSMSMessages (but I do not know
  how to specify theport)

  The application does not failed. But the 5556 phone does not receive
  anything.
  Instead, in the console I receive the following messege every time I
  do a try
  [2008-09-24 14:05:06 - ddms]ADB rejected shell command (ls -l /):

  Strange but it seems that the adb is receiving the request...

  Does anybody has an example on how to send/receive binarySMSto an
  applicationportusing  sendDataMessage?

  On 24 sep, 14:20, De San Nicolas Jean Philippe [EMAIL PROTECTED]
  wrote:

   Hello, I've tried your code but it failed! my application failed. Have you
   tried and succeed?

   2008/9/24 Cristina [EMAIL PROTECTED]

Hi,

I do not know if it is the right way, but I have found a way to get
the message.
Here I include my code to get the SmsMessages. I hope it helps you

public class ServerMessagesReceiver extends BroadcastReceiver {

   static final String ACTION =
android.provider.Telephony.SMS_RECEIVED;

   public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(ACTION)) {
                StringBuilder buf = new StringBuilder();
                Bundle bundle = intent.getExtras();
                if (bundle != null) {
                        Object[] pdusObj = (Object[]) 
bundle.get(pdus);
                        SmsMessage[] messages = new
SmsMessage[pdusObj.length];
                        for (int i = 0; ipdusObj.length; i++) {
                                messages[i] = SmsMessage.createFromPdu
((byte[]) pdusObj[i]);
                        }


...

By the way, Does somebody know how to receive anSMSthat has been
sent using
an applicationportusing the methos.sendDataMessage?

On 24 sep, 08:15, Reto Meier [EMAIL PROTECTED] wrote:
 Is it still possible to listen for incomingSMSmessages in the latest
 1.0 SDK release?

 The SMS_RECEIVED_ACTION string used to listen for incomingSMS
 messages seems to have gone missing. It used to be available from the
 android.provider.Telephony.Smspackage, which also seems to have
 disappeared, so getMessagesFromIntent has gone too.

 Previously, you could create a Broadcast Receiver to listen forSMS
 messages using this code:

   String incoming_SMS =
 android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION;

   public void onReceive(Context _context, Intent _intent) {

     if (_intent.getAction().equals(incoming_SMS)) {
       SmsManagersms= SmsManager.getDefault();
       SmsMessage[] messages =
Sms.Intents.getMessagesFromIntent(_intent);
     }

 Is there still a way to do this?

 Thanks
 Reto- Ocultar texto de la cita -

   - Mostrar texto de la cita -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Modifying data before passing it to a list

2008-10-02 Thread Rohit Mordani

Hi,
I have an app that reads Contacts and displays them in a list. I
want to modify some of the data before passing it to the list. Is that
possible? Here is my applications OnCreate() method

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

mCursor = getContentResolver().query(People.CONTENT_URI,
null, null, null, null);
startManagingCursor(mCursor);

ListAdapter adapter = new SimpleCursorAdapter(
this, // Context.
R.layout.localizer_row,
mCursor,
new String[] {People.NAME, People.NUMBER},
new int[] {R.id.text1, R.id.text2});

setListAdapter(adapter);
}

For instance I want to change the Phone number of each of the contacts
(e.g. prefix it with country code). Is that possible? If so, how?

I also want to add another column to the cursor. This column will have
data from another source (Eg. Contact Category, Photo etc.). Is that
possible? If so how?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread mammen

What is the purpose of this? Is it multiple applications?

On Oct 2, 1:05 am, DulcetTone [EMAIL PROTECTED] wrote:
 I have a tree of folders containing the source for a working Android
 activity I hope to split into a Service and two Activities.

 How do I accomplish this?  Can I simply add an AndroidManifest.xml to
 each of 3 separate Java packages?

 Thanks in advance.

 tone

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to query for my current location?

2008-10-02 Thread danielbr

In SDK 1.0 the LocationManager is always reporting the gps provider
as disabled:

LocationManager lm = this.getSystemService(Context.LOCATION_SERVICE);
boolean gpsEnabled =
lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
// gpsEnabled == false

According to the Javadocs this value implies that the user has the
disabled the provider in the Settings menu of the handset.  I tried
accessing the Setting menu in the Android emulator (Home  Menu 
Settings) but immediately get a pop up window that says Unsupported
action.

How are you guys enabling the GPS provider to get locations?

Daniel.

On Sep 29, 12:55 pm, zl25drexel [EMAIL PROTECTED] wrote:
 for those who are looking for solutions for this same question, here's
 what I have, seems to work well with

   For telnet: telnet localhost 5554

geo fix lat lon

       this.locationManager= (LocationManager)
 getSystemService(Context.LOCATION_SERVICE);
       Location myLocation =locationManager.getLastKnownLocation(gps);
       if(myLocation == null){
           Log.e(mylocation, failed to determine my location);
       }else{
           Log.i(mylocation, myLocation.toString());
       }

 On Sep 29, 12:28 pm, zl25drexel [EMAIL PROTECTED] wrote:

  Guillaume,

  I understand that i need to mock the the current location in the
  emulator, but my question is what api calls do i make to get the lat/
  lon that i put in DDMS. I cannot find any documentations related to
  that in android's documentation.

  On Sep 28, 4:53 am, Guillaume Perrot [EMAIL PROTECTED] wrote:

   And you have to manually simulate your location using telnet or DDMS
   controls in Eclipse (the latter only works if your OS is in english
   locale).
   For telnet: telnet localhost 5554

geo fix 2 40

   On 28 sep, 04:05, Mark Murphy [EMAIL PROTECTED] wrote:

   zl25drexelwrote:
 Hi, sorry i am sure this had been asked before, how do i find out my
 current lat/lon using the location API?

You can't, per se.

You can call getLastKnownLocation() to return, well, the last known
location, but that may be null (if there have been no locations recorded
for the requested location provider) or stale (if the location provider
has been out of service for a while).

Or, call requestLocationUpdates() and take action when you get new
position fixes from the location provider.

--
Mark Murphy (a Commons Guy)http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to query for my current location?

2008-10-02 Thread danielbr

In SDK 1.0 the LocationManager is always reporting the gps provider
as disabled:

LocationManager lm = this.getSystemService(Context.LOCATION_SERVICE);
boolean gpsEnabled =
lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
// gpsEnabled == false

According to the Javadocs this value implies that the user has the
disabled the provider in the Settings menu of the handset.  I tried
accessing the Setting menu in the Android emulator (Home  Menu 
Settings) but immediately get a pop up window that says Unsupported
action.

How are you guys enabling the GPS provider to get locations?

Daniel.

On Sep 29, 12:55 pm, zl25drexel [EMAIL PROTECTED] wrote:
 for those who are looking for solutions for this same question, here's
 what I have, seems to work well with

   For telnet: telnet localhost 5554

geo fix lat lon

       this.locationManager= (LocationManager)
 getSystemService(Context.LOCATION_SERVICE);
       Location myLocation =locationManager.getLastKnownLocation(gps);
       if(myLocation == null){
           Log.e(mylocation, failed to determine my location);
       }else{
           Log.i(mylocation, myLocation.toString());
       }

 On Sep 29, 12:28 pm, zl25drexel [EMAIL PROTECTED] wrote:

  Guillaume,

  I understand that i need to mock the the current location in the
  emulator, but my question is what api calls do i make to get the lat/
  lon that i put in DDMS. I cannot find any documentations related to
  that in android's documentation.

  On Sep 28, 4:53 am, Guillaume Perrot [EMAIL PROTECTED] wrote:

   And you have to manually simulate your location using telnet or DDMS
   controls in Eclipse (the latter only works if your OS is in english
   locale).
   For telnet: telnet localhost 5554

geo fix 2 40

   On 28 sep, 04:05, Mark Murphy [EMAIL PROTECTED] wrote:

   zl25drexelwrote:
 Hi, sorry i am sure this had been asked before, how do i find out my
 current lat/lon using the location API?

You can't, per se.

You can call getLastKnownLocation() to return, well, the last known
location, but that may be null (if there have been no locations recorded
for the requested location provider) or stale (if the location provider
has been out of service for a while).

Or, call requestLocationUpdates() and take action when you get new
position fixes from the location provider.

--
Mark Murphy (a Commons Guy)http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Algorithm writen in C

2008-10-02 Thread [EMAIL PROTECTED]

Hello buddies!!
I'm involved in a biometric project. I need to write an app for
Android that must use an algorithm writen in C language. This C code
is very complex and for this reason translating this code into java is
not an option. The idea is to develop the main application in java
code and this would call to the algorithm somehow, so the algorithm
could return a value for the main app. I know there are some libs
writen in C/C++ and I'm wondering if I could do so for my project,
write my own lib and call it from the main app. But I don't know if it
is possible, how to do it, how to compile my C code for Android and so
on.
To help the algorithm is writen in C and is compiled for Linux.
Could anyone lead me through the darkness?
Thanks mates.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani

Hi,
 I am accessing Contacts data and passing that into a list. I want
to modify the data that I get from the database and then pass it to
the list view. Is there a way to do that ? This is what my OnCreate()
looks like.


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mCursor = getContentResolver().query(People.CONTENT_URI,
null, null, null, null);
startManagingCursor(mCursor);
ListAdapter adapter = new SimpleCursorAdapter(this,
R.layout.two_item_row, mCursor,
 
new String[] {People.NAME, People.NUMBER},
 
new int[] {R.id.text1, R.id.text2});

setListAdapter(adapter);
}


Do I need to create m own CursorAdapter (maybe inherit from
SimpleCursorAdapter??) If so then what methods do I need to override?

I also want to add a column that has data from some other source. Is
there  a way to do that?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] HELP!! the code will not compile and I can't find anybody with the same issue

2008-10-02 Thread Jeff

I have attached screen shots but eclipse keeps saying that


Description ResourcePathLocationType
The project was not built since its build path is incomplete. Cannot
find the class file for java.lang.Object. Fix the build path then try
building this project   HelloAndroidUnknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files   HelloAndroid.java   HelloAndroid/
src/com/android/hello   line 1  Java Problem
any help please im or email me

[EMAIL PROTECTED]
tensec3kgt19 on msn


http://i34.tinypic.com/v5ijxx.jpg

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] purpose of the assets folder

2008-10-02 Thread sarwees

I just created my first Android project using Eclipse and it generated
a folder called assets. What is the purpose of this folder?


sarwees

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BroadCastReceiver with PhoneStateListener

2008-10-02 Thread e

could u plz forward me complete code..

On Oct 2, 12:32 pm, hackbod [EMAIL PROTECTED] wrote:
 This is really broken.  Please read the documentation on broadcast
 receivers:

 http://code.google.com/android/reference/android/content/BroadcastRec...

 Also, please DO NOT then go and use a Service to leave your
 application running forever.  Your application is simply not that
 important.  We allow applications to run in the background, but
 applications that take advantage of this must be responsible and not
 sit there consuming resources for eternity.

 Generally if you want to do background things, you should use the
 alarm manager to schedule your application to be launched at some
 longish interval (hopefully 10 minutes or more) for it to do its work
 and then stop itself.

 On Sep 26, 6:01 pm, chouman82 [EMAIL PROTECTED] wrote:

  I am trying to register the PhoneStateListener right when the phone
  boots up so I have 2 classes.  One is StartAtStartUp which extends
 BroadcastReceiverthat listens for the COMPLETE_BOOT_UP and then this
  will then register the CallStateListener which extends
  PhoneStateListener.  It doesn't seem to work out all that well.

  I am not seeing any logging statements that I have put in
  CallStateListener.  Any help would be greatly appreciated!!!

  Here is my code:

  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.telephony.PhoneStateListener;
  import android.telephony.TelephonyManager;
  import android.util.Log;

  import com.lumitrend.netlogger.Logger;

  public class StartServicesAtStartUp extendsBroadcastReceiver
  {
  public void onReceive(Context context, Intent intent)
  {
  Log.d(DEBUG,
  );
  //Intent phoneStateListener = new Intent(context,
  CallStateListener.class);
  
  //phoneStateListener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  //context.startService(phoneStateListener);
  Log.d(DEBUG, context.getPackageName());
  Log.d(DEBUG, context.toString());
  TelephonyManager tManager =
  (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
  CallStateListener callStateListener = new 
  CallStateListener();
  tManager.listen(callStateListener,
  PhoneStateListener.LISTEN_CALL_STATE);
  }

  }

  ~~~

  import android.telephony.PhoneStateListener;
  import android.telephony.TelephonyManager;
  import android.util.Log;

  import com.lumitrend.netlogger.Logger;

  public class CallStateListener extends PhoneStateListener
  {
  public void onCallStateChanged(int state, String incomingNumber)
  {
  Log.d(DEBUG, addding this here);
  super.onCallStateChanged(state, incomingNumber);
  Log.d(DEBUG, TelephonyManager.CALL_STATE_OFFHOOK + 
  we are def in
  here:  + state);

  switch(state)
  {
  case TelephonyManager.CALL_STATE_IDLE:
  Log.d(DEBUG, 
  phhhone is idle);
  break;
  case TelephonyManager.CALL_STATE_OFFHOOK:
  Log.d(DEBUG, 
  phoon is off
  hook);
  break;
  case TelephonyManager.CALL_STATE_RINGING:
  Log.d(DEBUG,
  phoonnnee
  is ringing);
  break;
  default:
  Log.d(DEBUG, The 
  staate is  +
  state);

  }
  }

  }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BroadCastReceiver with PhoneStateListener

2008-10-02 Thread e

could u plz forward me complete code

On Oct 2, 11:58 am, legerb [EMAIL PROTECTED] wrote:
 Yep,
 I've seen the logging entry.
 I called the emulator through DDMS on eclipse.
 And here is my xml:

 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=android.StartServicesAtStartUp
   android:versionCode=1
   android:versionName=1.0.0
 application android:icon=@drawable/icon android:label=@string/
 app_name
 receiver android:name=.StartServicesAtStartUp
 intent-filter
 action
 android:name=android.intent.action.BOOT_COMPLETED /
 /intent-filter
 /receiver

 /application
 uses-permission
 android:name=android.permission.RECEIVE_BOOT_COMPLETED /
 /manifest

 On Sep 29, 11:37 am, chouman82 [EMAIL PROTECTED] wrote:

  you actually saw the logging statement when you make a call to the
  emulator through telnet?

  On Sep 28, 1:19 am, legerb [EMAIL PROTECTED] wrote:

   I changed the xml accordingly, and it worked :)

   On Sep 27, 2:53 am, Nayr [EMAIL PROTECTED] wrote:

Hi,

Did you describe the StartServicesAtStartUp in your
AndroidManifest.xml? for example,

receiver android:name=.transaction.MmsSystemEventReceiver
intent-filter
action
android:name=android.intent.action.BOOT_COMPLETED /
/intent-filter
/receiver

And you should request user-permission
android.permission.RECEIVE_BOOT_COMPLETED like
uses-permission
android:name=android.permission.RECEIVE_BOOT_COMPLETED /
in the AndroidManifest.xml.

Cheers,
Nayr

On Sep 27, 9:01 am, chouman82 [EMAIL PROTECTED] wrote:

 I am trying to register the PhoneStateListener right when the phone
 boots up so I have 2 classes.  One is StartAtStartUp which extends
 BroadcastReceiver that listens for the COMPLETE_BOOT_UP and then this
 will then register the CallStateListener which extends
 PhoneStateListener.  It doesn't seem to work out all that well.

 I am not seeing any logging statements that I have put in
 CallStateListener.  Any help would be greatly appreciated!!!

 Here is my code:

 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.telephony.PhoneStateListener;
 import android.telephony.TelephonyManager;
 import android.util.Log;

 import com.lumitrend.netlogger.Logger;

 public class StartServicesAtStartUp extends BroadcastReceiver
 {
 public void onReceive(Context context, Intent intent)
 {
 Log.d(DEBUG,
 )
  ;
 //Intent phoneStateListener = new Intent(context,
 CallStateListener.class);
 
 //phoneStateListener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 //context.startService(phoneStateListener);
 Log.d(DEBUG, context.getPackageName());
 Log.d(DEBUG, context.toString());
 TelephonyManager tManager =
 (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
 CallStateListener callStateListener = new 
 CallStateListener();
 tManager.listen(callStateListener,
 PhoneStateListener.LISTEN_CALL_STATE);
 }

 }

 ~~~

 import android.telephony.PhoneStateListener;
 import android.telephony.TelephonyManager;
 import android.util.Log;

 import com.lumitrend.netlogger.Logger;

 public class CallStateListener extends PhoneStateListener
 {
 public void onCallStateChanged(int state, String 
 incomingNumber)
 {
 Log.d(DEBUG, addding this here);
 super.onCallStateChanged(state, incomingNumber);
 Log.d(DEBUG, TelephonyManager.CALL_STATE_OFFHOOK + 
 we are def in
 here:  + state);

 switch(state)
 {
 case TelephonyManager.CALL_STATE_IDLE:
 Log.d(DEBUG, 
 phhhone is idle);
 break;
 case TelephonyManager.CALL_STATE_OFFHOOK:
 Log.d(DEBUG, 
 phoon is off
 hook);
 break;
 case TelephonyManager.CALL_STATE_RINGING:
 Log.d(DEBUG,
 phoonnnee
 is ringing);
  

[android-developers] Re: Bash, C, or Korn Shell?

2008-10-02 Thread Ludwig
If you are after a development tool, running adb shell
from the tools directory will give you a shell with a limited amount of
functionality. Android applications do not have (for obvious security
reasons) shell access.

Ludwig

2008/10/2 Bill Zimmerly [EMAIL PROTECTED]


 Is there a Bash, C, or Korn Shell applet providing shell access to the
 underlying Linux system? (It seems to me that this would be a very
 useful tool for developers.)

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Connect to an online SQL database

2008-10-02 Thread Ludwig
IMHO, the conceptually correct way to do this is with a ContentProvider,
which exposes a database-like interface and can behind the scenes access any
datasource you wish (yes, it can go across the net). 'Just' marshal your
requests into a web request and parse the response into something like a
MatrixCursor that you return (for queries).
(I am for my own stuff are accessing a REST interface to a MySQL DB, which
gives me an XML file back, which I parse with SAX and fill into a
MatrixCursor. Works fine - as long as the server is reasonably responsive
and the result sets are not too large).

I would think that this is also a future-proof way of doing it as companies
such as Oracle or Sun (MySQL) will almost certainly provide ContentProviders
that can be configured to access their DBs sometime in the future.

Ludwig

2008/10/1 Mast3rpyr0 [EMAIL PROTECTED]


 hmm that kinda sucks, maybe a PHP script run from the phoen on the
 webserver to get the appropriate data. but how could i do that behind
 the scenes?

 On Oct 1, 5:40 pm, Billsen [EMAIL PROTECTED] wrote:
  I think you may try to access database in your phone directly. If that
  is the case, it is hard to do since there are no database drivers for
  Oracle, MySql, MS SQL server in android. If you really want to push
  data from your phone to database, you can develop application in your
  web server to access database and send data from the phone to your
  application.
 
  Regards,
  Senshan
 
  On Oct 1, 4:21 pm, Mast3rpyr0 [EMAIL PROTECTED] wrote:
 
   is this possible? i need to send data from my phone to a sql server on
   my website instead of in an onboard SQLlite DB.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Sending DTMF

2008-10-02 Thread legerb

Is it possible to make a call and then send DTMF sequence in android
sdk 1.0?
I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
find an option of sending DTMF...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] PreferenceActivity Refresh Problem

2008-10-02 Thread Amos

I have a PreferenceActivity inflated from xml. One of the preferences
launches an intent which opens an activity that clears all the
preferences and resets them to the default values.
My problem is that when this restore defaults activity returns, the
previous preference values still appear on the screen. If I exit the
preference activity and then reopen it, the updated preference values
appear.
This seems like a refresh issue. Is there a way I can tell the
PreferenceActivity to refresh its values? (I made sure I am comitting
all my preference changes)

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-02 Thread Charlie Collins

It's just #038;, or amp;

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML

The  and the ; delimit the entity.

But Chris, your XML in your source example there can't have an
ampersand there like that.  You need to be using the escape/encoding.
If everything in the chain supports UTF-8 you can use amp;, if not,
use the numerical entity version, #038;.

Again, this is a different topic than the differences in the parsing,
but every XML processor I have ever seen will blow up on a non-escaped
ampersand.

Characters (or code points in Unicode terminology) outside the simple
ASCII range 32-127 (#x20; to #x7F;) must either be encoded as multi-
byte UTF-8 sequences or using numerical entities. In environments that
do not natively support UTF-8 it is often easier to use numerical
entities

For example, the XML I am using is coming from Google Base - it is
UTF-8, but you STILL have to use the encoding to escape the special
chars:

?xml version='1.0' encoding='UTF-8'?
feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://
a9.com/-/spec/opensearchrss/1.0/'
xmlns:gm='http://base.google.com/ns-metadata/1.0' xmlns:g='http://
base.google.com/ns/1.0'
xmlns:batch='http://schemas.google.com/gdata/batch'
idhttp://www.google.com/base/feeds/snippets
/id
updated2008-09-29T18:18:13.843Z/updated
title type='text'Items matching query: ([review
type:restaurant][location:Atlanta, GA]) [item type == reviews]
/title
link rel='alternate' type='text/html' href='http://base.google.com' /

link rel='http://schemas.google.com/g/2005#feed' type='application/
atom+xml'
href='http://www.google.com/base/feeds/snippets' /
link rel='http://schemas.google.com/g/2005#batch' type='application/
atom+xml'
href='http://www.google.com/base/feeds/snippets/batch' /
link rel='self' type='application/atom+xml'
href='http://www.google.com/base/feeds/snippets/-/reviews?start-
index=1amp;max-results=8amp;bq=%5Breview+type%3Arestaurant%5D
%5Blocation%3AAtlanta%2C+GA%5D' /
link rel='next' type='application/atom+xml'
href='http://www.google.com/base/feeds/snippets/-/reviews?start-
index=9amp;max-results=8amp;bq=%5Breview+type%3Arestaurant%5D
%5Blocation%3AAtlanta%2C+GA%5D' /
author
nameGoogle Inc./name
email[EMAIL PROTECTED]/email
/author
generator version='1.0' uri='http://base.google.com'GoogleBase/
generator
openSearch:totalResults199/openSearch:totalResults
openSearch:startIndex1/openSearch:startIndex
openSearch:itemsPerPage8/openSearch:itemsPerPage
entry
. . . . .


On Oct 1, 7:18 pm, Brad Gies [EMAIL PROTECTED] wrote:
 Charlie,

 Yes, I think we are saying ALMOST the same thing. But, I don't think #038;
 is the Escaped Ampersand. I think it's just the Ampersand, and that's why
 it's causing the problem.

 As I say, I'm not a Unicode expert, but I think the proper sequence for an
 escaped ampersand would be : #038; #038; I think that's how an escaped
 ampersand would look in UTF-8. The ampersand escaping the ampersand :). Or,
 of course the amp;

 Sorry, I can't try it right now, but I'm interested to know if it works.
 When I have time, I'll build an app to check it.

 Sincerely,

 Brad Gies

 -
 Brad Gies
 27415 Greenfield Rd, # 2,
 Southfield, MI, USA
 48076www.bgies.com www.truckerphone.comwww.EDI-Easy.com www.pricebunny.com
 -

 Moderation in everything, including abstinence

 -Original Message-
 From: android-developers@googlegroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Chris Cicc
 Sent: Tuesday, September 30, 2008 10:10 AM
 To: Android Developers
 Subject: [android-developers] Re: SAXParser reports diffeernt qName on SDK
 0.9 from SDK 1.0

 Hey Brad,
 Just to be sure I tested it out and manually typed in amp; into the
 source for the web service. I didn't expect this to work, because even
 manually typing it in still leads to each character being encoded.

 In the quote you provided it says they MUST be escaped using either
 numeric character references UTF-8 (and all unicode) encoding
 does just that :) The '' is number 38.

 On the other hand, I also tested the bracket characters  and . Both
 cause the same issue as the  character. Other brackets such as [ and
 { and ( do not cause issue.

 So clearly this does have something to do with the SAXParser in
 Android handling the special XML characters. I have never used
 SAXParser outside of Android so I cannot say whether or not it is any
 different. But I can confirm that this did not happen in 0.9 and I am
 99% confident it should not be happening at all.

 Thanks,
 Chris
--~--~-~--~~~---~--~~

[android-developers] Re: Intercept incoming call

2008-10-02 Thread Rimma Sukhovsky
You should call abortBroadcast() in your BroadCastReceiver, after catching
the *ACTION_NEW_OUTGOING_CALL intent.*

On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote:


 could u help me out ...how do manag with abortBroadcast()??

 On Oct 2, 12:50 pm, legerb [EMAIL PROTECTED] wrote:
  Thank a lot for your response :)
 
  I managed to do that with abortBroadcast().
 
  On Oct 2, 10:28 am, hackbod [EMAIL PROTECTED] wrote:
 
   On Oct 2, 12:17 am, legerb [EMAIL PROTECTED] wrote:
 
Is this the same for outgoing calls? They also cannot be interecepted
in 1.0?
 
   No, you can intercept outgoing calls, as you quoted from the
   documentation.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] I need a favor please from someone who has Real HTC Device (new androind GPhone)....

2008-10-02 Thread Yorgen Valune
Hi,
I'm willing to know whether the Monkey application is working on a real Device?
i mean I've tried it on the Emulator and it's worked well but since i don't 
have the Real HTC i can't test it
can someone please help me and test it for me?
here is the link
http://code.google.com/android/reference/monkey.html
you just have to connect your Real HTC Device to the PC (data cable) and run 
it from the Command Line, for example adb shell monkey 10 
this command suppose to send 10 randoms events to your Real Device
can you please help me out here?


  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Registering and Handling of ContentObserver for Contacts database - handlers first invokation ???

2008-10-02 Thread Yalcin

Hi,
I want to check new entries, that made to contacts database. As
example the notes column entry in people table.
I register a ContentObserver and implement the handler, which is
invoked on onChange method of ContactsChangeObserver.

hier is a code snipped:

+++
ContentObserver myObserver = new ContactsChangeObserver();
ContentResolver resolver = getContentResolver();

resolver.registerContentObserver(Contacts.People.CONTENT_URI,
notifyForDescendents, myObserver);
+++

two cases on method   .registerContentObserver(.., true/
false, ..);
1) notifyForDescendents=true
   observer handler is invoked 3 times
   first time column notes value is null
   second and third time is set to proper edited value.

2) notifyForDescendents=false
   observer handler invoked 1 time and column notes has value null.


It seems, the database row in first invoke of handler are not
completely written / committed.
What is the solution to get the proper value in first invoke of
handler?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Getting long/lat from locale

2008-10-02 Thread Christian Wiesbauer
Hi,
 
is it possible to get the longitude and latitude coordinates only if you
know the country? Is there any function which gives me the values if I pass
the current locale?
 
Thanks,
Christian Wiesbauer

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept incoming call

2008-10-02 Thread e

how to get *ACTION_NEW_OUTGOING_CALL intent.*???

On Oct 2, 4:26 pm, Rimma Sukhovsky [EMAIL PROTECTED] wrote:
 You should call abortBroadcast() in your BroadCastReceiver, after catching
 the *ACTION_NEW_OUTGOING_CALL intent.*

 On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote:

  could u help me out ...how do manag with abortBroadcast()??

  On Oct 2, 12:50 pm, legerb [EMAIL PROTECTED] wrote:
   Thank a lot for your response :)

   I managed to do that with abortBroadcast().

   On Oct 2, 10:28 am, hackbod [EMAIL PROTECTED] wrote:

On Oct 2, 12:17 am, legerb [EMAIL PROTECTED] wrote:

 Is this the same for outgoing calls? They also cannot be interecepted
 in 1.0?

No, you can intercept outgoing calls, as you quoted from the
documentation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to make an application icon its name invisible in menu list.

2008-10-02 Thread Ashutosh


Do any one knows how to make an application icon  its label invisible
in menu list ?
Please suggest.

Thanks
Ashutosh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread Mark Murphy

DulcetTone wrote:
 I have a tree of folders containing the source for a working Android
 activity I hope to split into a Service and two Activities.
 
 How do I accomplish this?  Can I simply add an AndroidManifest.xml to
 each of 3 separate Java packages?

The AndroidManifest.xml file is per application, not per component 
(where component would be activities, services, etc.).

If you are splitting your working Android activity into three separate 
applications, each with their own project tree, their own Ant script, 
their own APK, etc., then you will need three AndroidManifest.xml files.

If, however, you are simply having several components in a single 
application, you only need one AndroidManifest.xml file. If you put 
those components in separate namespaces, you will just need to spell out 
those namespaces when referencing the classes in AndroidManifest.xml.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to load html file from sdcard to WebVeiw

2008-10-02 Thread Mark Murphy

Billsen wrote:
 Is it possible to load html file into WebView? If yes, how?

Search this Google Group, or [android-beginners], for recent posts 
discussing WebView's loadDataWithBaseUrl() method.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Intercept incoming call

2008-10-02 Thread e

how to do catch  *ACTION_NEW_OUTGOING_CALL intent.* ?

On Oct 2, 4:26 pm, Rimma Sukhovsky [EMAIL PROTECTED] wrote:
 You should call abortBroadcast() in your BroadCastReceiver, after catching
 the *ACTION_NEW_OUTGOING_CALL intent.*

 On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote:

  could u help me out ...how do manag with abortBroadcast()??

  On Oct 2, 12:50 pm, legerb [EMAIL PROTECTED] wrote:
   Thank a lot for your response :)

   I managed to do that with abortBroadcast().

   On Oct 2, 10:28 am, hackbod [EMAIL PROTECTED] wrote:

On Oct 2, 12:17 am, legerb [EMAIL PROTECTED] wrote:

 Is this the same for outgoing calls? They also cannot be interecepted
 in 1.0?

No, you can intercept outgoing calls, as you quoted from the
documentation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I want to know a button's width before it is drawn on the screen! possible?

2008-10-02 Thread erkenbrandroid

Oh yes you're totally right! I just read the documentation for it! :-)

Thanks again!
Erken

On Oct 1, 5:24 pm, Romain Guy [EMAIL PROTECTED] wrote:
 onWindowFocusedChange works but its pure chance. As I said, you should
 use the ViewTreeObserver, that's what it's meant for.



 On Wed, Oct 1, 2008 at 2:32 AM, erkenbrandroid [EMAIL PROTECTED] wrote:

  Did it! Thanks Romain! :)

  For other people having the same trouble, the trick is to use the
  onWindowFocusChanged(boolean hasWindowFocus) class like in this
  example :

  public void onWindowFocusChanged(boolean hasWindowFocus) {

  int maxButton; // I save the biggest button width in this variable

  Button testButton = (Button)findViewById(R.id.test); // button 1
  Button testButton2 = (Button)findViewById(R.id.test2); // button 2
  Button testButton3 = (Button)findViewById(R.id.test3); // button 3

  maxButton=testButton.getWidth(); // I put button 1's width into
  maxButton
  if(testButton2.getWidth()  maxButton) { // If button 2's width is
  bigger
  maxButton = testButton2.getWidth(); // maxButton gets button 2's width
  testButton3.setText(Button 2 is bigger than button 1!);
  }

  else
  testButton3.setText(Button 1 is bigger than button 2!);

  }

  On Sep 27, 12:12 am, Romain Guy [EMAIL PROTECTED] wrote:
  Hi,

  You can use a ViewTreeObserver. Look at the documentation of the
  android.view.View class for more information.

  On Sep 26, 2008 10:42 AM, erkenbrandroid [EMAIL PROTECTED] wrote:

  Hello everyone!

  I need a bit of help for an app I am trying to develop.

  I've got a main screen with a couple of buttons on it.

  What I would like to do is get the width of those buttons before they
  are actually drawn on the screen. Their width is variable, as theyr
  are defined as wrap_content in my main.xml

  I tried to get the buttons' width in the methods onCreate() and
  onStart() but all I get is a 0 measure, obviously because their width
  can't be measured yet.

  Do you know a way to do that?

  this is an example of the code at the moment :

  public void onCreate(Bundle savedInstanceState) {

  int maxButton; // I save the biggest button width in this variable

  Button testButton = (Button)findViewById(R.id.test); // button 1
  Button testButton2 = (Button)findViewById(R.id.test2); // button 2
  Button testButton3 = (Button)findViewById(R.id.test3); // button 3

  maxButton=testButton.getWidth(); // I put button 1's width into
  maxButton
  if(testButton2.getWidth()  maxButton) { // If button 2's width is
  bigger
  maxButton = testButton2.getWidth(); // maxButton gets button 2's width
  testButton3.setText(Button 2 is bigger than button 1!);}

  else
  testButton3.setText(Button 1 is bigger than button 2!);

  }

  Thanks a lot,
  Erken

 --
 Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: HELP!! the code will not compile and I can't find anybody with the same issue

2008-10-02 Thread Shraddha

Something very basic seems wrong.
Check the path set for Android SDK... (Windows -- preferences --
Android SDK ) this should point to ur SDK.
If that is correct and you are still facing the problem, please check
if you are creating an Android project (new -- project - Android)..
If u select Java or any other type of project, then u will see this
type of screen.


On Oct 2, 5:34 am, Jeff [EMAIL PROTECTED] wrote:
 I have attached screen shots but eclipse keeps saying that

 Description     Resource        Path    Location        Type
 The project was not built since its build path is incomplete. Cannot
 find the class file for java.lang.Object. Fix the build path then try
 building this project   HelloAndroid            Unknown Java Problem
 The type java.lang.Object cannot be resolved. It is indirectly
 referenced from required .class files   HelloAndroid.java       HelloAndroid/
 src/com/android/hello   line 1  Java Problem
 any help please im or email me

 [EMAIL PROTECTED]
 tensec3kgt19 on msn

 http://i34.tinypic.com/v5ijxx.jpg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: setText() of TextView does not update instantly

2008-10-02 Thread Mark Hansen

Is it running in a thread?  I know you can't have visual updates if
it's inside or one?

On Oct 2, 5:13 am, Urakagi [EMAIL PROTECTED] wrote:
 Hi, I have a TextView displaying current time in a ListActivity, which
 will play music.
 I use a class to update the TextView, but while the MediaPlayer is
 running, setText() will only change inside value but not rendering it
 to the screen.
 I found same problems asked here about a year ago, but not answered.
 Is this still a bug for Android now?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to make an application icon its name invisible in menu list.

2008-10-02 Thread MrSnowflake

What menu list you mean? The launcher drawer? That's easy: just dont
include this intent-filter:
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter

On 2 okt, 14:29, Ashutosh [EMAIL PROTECTED] wrote:
 Do any one knows how to make an application icon  its label invisible
 in menu list ?
 Please suggest.

 Thanks
 Ashutosh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Algorithm writen in C

2008-10-02 Thread MrSnowflake

It's not officially supported to use C code from android.
But you could look around for JNI and android on the net.

On 2 okt, 11:49, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hello buddies!!
 I'm involved in a biometric project. I need to write an app for
 Android that must use an algorithm writen in C language. This C code
 is very complex and for this reason translating this code into java is
 not an option. The idea is to develop the main application in java
 code and this would call to the algorithm somehow, so the algorithm
 could return a value for the main app. I know there are some libs
 writen in C/C++ and I'm wondering if I could do so for my project,
 write my own lib and call it from the main app. But I don't know if it
 is possible, how to do it, how to compile my C code for Android and so
 on.
 To help the algorithm is writen in C and is compiled for Linux.
 Could anyone lead me through the darkness?
 Thanks mates.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Geocoder. getFromLocationName - no results [forwardGeocode(): no feature in GLocation]

2008-10-02 Thread Rafael Fernandes

hey guys,
any takers on this one?

cheers,

On Oct 1, 11:48 am, Rafael Fernandes [EMAIL PROTECTED] wrote:
 Hey guys,
 I'm trying to run this Geocoder map query here but no success at
 all... it always returns null...
 if I go to Emulator's Map app and search the same thing I got the
 desired results...

 I also noticed that I receive this message right after the method gets
 executed..
 10-01 09:35:51.095: ERROR/LocationMasfClient(51): forwardGeocode(): no
 feature in GLocation

 I've set these permissions:
     uses-permission android:name=android.permission.INTERNET/
     uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/
     uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION/

 here is a snap of the code:
     Geocoder g = new Geocoder(this);
             try {
                 ListAddress b = g.getFromLocationName(pizza, 94043
 Mountain View, USA, 10);
                 int j = b.size();
                 for (int i = 0; i  j; ++i) {
                     Address x = b.get(i);
                     Log.i(Global.LOG_TAG, Address found =  + x);
                }
             } catch (IOException e) {
                 e.printStackTrace();
             }

 Am I missing something here? a hidden permission perhaps?

 Cheers,
 Rafael Fernandes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it possible to embed links into a textview?

2008-10-02 Thread David

Right. So would I use, say h1.../h1 for very large text?

On Oct 1, 4:09 pm, april [EMAIL PROTECTED] wrote:
 yes, When you create the textview in XML. You need to set a flag:
 android:autoLink=all.

 You can use b ,,,/b, just like html page.

 On Oct 1, 2:56 pm, David [EMAIL PROTECTED] wrote:

  This is a similar problem to my other one. I want the links to be
  database rows, not to other pages.

  Also I know how to do italics and bold in textviews, how do I do
  things like larger text? Can a textview do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Emulator and the Tilt Sensors

2008-10-02 Thread Randolpho

Thank you, I will give that a try

On Oct 2, 8:23 am, MrSnowflake [EMAIL PROTECTED] wrote:
 There is a sensor 
 simulator:http://code.google.com/p/openintents/wiki/SensorSimulator

 But you have to edit your code to accept input from the emulator. The
 new code is on the same page.

 On 1 okt, 21:01, Randolpho [EMAIL PROTECTED] wrote:

  I've been searching, but I can't find any mention of them: is there
  any way to emulate the tilt sensors in the Android Emulator?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: specs for YCbCr_422_SP pixel format

2008-10-02 Thread Nikkelitous

The second question you asked is relatively easy.  There are two
because one of them will return raw data ignoring the format
(Uncompressed data direct from the camera).  The other actually
follows the format settings.

The first question, however, is more difficult. The only specs I've
been able to find on the 422 is that it's essentially 4 bytes of data
with 2 pixels in it (equating to 6 rgb bytes.  To decompress the
data use the following algorithms.

U  = yuv[0]
Y1 = yuv[1]
V  = yuv[2]
Y2 = yuv[3]

Then use equation to convert YUV to RGB is (remember to apply it to
both Y1 and Y2):

R = Y + 1.140V
G = y - (0.395 * U) - (0.581 * V)
B = Y + (2.032 * U)

That, as far as I know, should get you a perfectly usable RGB picture
out of it.

Some notes about the emulator:

It seems when you take a picture, it returns a picture that actually
has many versions of the picture within it.  Not sure why this
happens, probably due to the video of the capture being lower res
than the preview pane, thereby making the preview larger than the
rendered video and the system seems to map it over.  Not sure on this,
but it *SHOULD* be all better when we run it on hardware.
Unfortunately, no way to be sure on this until Oct 22.

Now, I may be wrong on any of this, unfortunately I haven't completely
tested it.

On Oct 2, 8:59 am, walterc [EMAIL PROTECTED] wrote:
 where is the specs for YCbCr_422_SP pixel format?  i can get the
 preview data and, after some guessing and googling, can display the
 image.  but the image displayed doesnt match the preview display.  i
 am sure my effort to decode the data is at fault but how can i correct
 it?

 please give us the spec for the documented pixel formats or your
 effort to come up with the api doesnt do you (google) and us any good!

 btw, please tell me why there are 2 PictureCallback arguments in
 Camera.takePicture(Camera.ShutterCallback shutter,
 Camera.PictureCallback raw, Camera.PictureCallback jpeg) when only one
 picture format will be returned (implied by
 Camera.Parameters.setPictureFormat)?

 regards,

 walter chang
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Algorithm writen in C

2008-10-02 Thread David Given

[EMAIL PROTECTED] wrote:
 The idea is to develop the main application in java
 code and this would call to the algorithm somehow, so the algorithm
 could return a value for the main app. I know there are some libs
 writen in C/C++ and I'm wondering if I could do so for my project,
 write my own lib and call it from the main app.

Currently the only way of writing stuff in C on Android is to embed it
in the phone image itself. You can't do it from applications.

However, if you don't need the code to be fast, you might be interested
in this:

http://wiki.brianweb.net/NestedVM/NestedVM

It's a system for running C on Java by compiling the C into MIPS machine
code and then converting the machine code into Java bytecode (which
would then get converted into Dalvik bytecode). The result will be
slower than rewriting the app in Java, but that may be sufficient for
your purposes.

-- 
David Given
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: save image in Database

2008-10-02 Thread Jake Maui
Try smaller files.   I've been able to read/write to my sdcard but have run
into a 250 K limit.
The emulator gives me an EOF -1 for bigger files for some reason.


On Thu, Oct 2, 2008 at 10:28 AM, Nemat [EMAIL PROTECTED] wrote:


 ok.I have tried to save image in a file.But I couldnt do
 that.I have to do it for SDK-1.0.
 So plz give me any link to work on file connection.

 On Oct 2, 6:41 am, Andrew Stadler [EMAIL PROTECTED] wrote:
  Are you sure that you really want to do this?
 
  It might make more sense tosaveeachimageas a file.  If necessary,
  you could use adatabaseto storeimagemetadata (depending on the
  needs of your application).
 
  On Tue, Sep 30, 2008 at 7:02 AM, Nemat [EMAIL PROTECTED] wrote:
 
   Hi Frnds.
 
   I have tosaveanimageindatabase.How can it be possible in
   SDK-1.0??
 
   Thanks in Advance
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ImageButton caching images when using Uri

2008-10-02 Thread Joe Erickson

Sorry to talk t myself on this thread, but in case anyone else runs
into this problem in 1.0R1, the current workaround is to set the
ImageURI to null and then back to the URI after saving the image.

http://code.google.com/p/android/issues/detail?id=925


On Oct 1, 1:02 pm, Joe Erickson [EMAIL PROTECTED] wrote:
 Found the link to the bug tracker.  So, nevermind.  It was on the
 front page. :)

 On Oct 1, 12:16 pm, Joe Erickson [EMAIL PROTECTED] wrote:

  No one else has seen anything like this?  Is there a way to enter this
  as a bug against the Android codebase?  I haven't actually seen the
  open source part of this yet (I'd actually try and fix it if it was
  out there already).

  On Sep 29, 11:09 am, Joe Erickson [EMAIL PROTECTED] wrote:

   I'm seeing some caching problems when using anImageButtonwith a Uri
   and I'm not sure if there's a flag that needs set somewhere or not.

   I'm using the button to add an icon to an item in one of my
   applications, exactly like it's being used for the Contact application
   (which I don't think the source is available for).  I'm using the CROP
   trick seen in this 
   application:http://code.google.com/p/apps-for-android/source/browse/trunk/Photost...

   Specifically, I'm calling the image picker and then the crop like so:

   protected OnClickListener cmdIconListener = new OnClickListener() {
       // @Override
           public void onClick(View arg0) {
               Intent i = new
   Intent(android.intent.action.GET_CONTENT);
               i.setType(image/*);
               startActivityForResult(i, AddTea.ADD_ICON);
           }

   };

   protected void onActivityResult(int requestCode, int resultCode,
   Intent data){
       // See which child activity is calling us back.
       switch (requestCode) {
       case AddTea.ADD_ICON:
           // This is the standard resultCode that is sent back if the
           // activity crashed or didn't doesn't supply an explicit
   result.
           if (resultCode != RESULT_CANCELED){
                Intent i = new Intent(com.android.camera.action.CROP);
                i.setClassName(com.android.camera,
   com.android.camera.CropImage);
                i.setData(data.getData());
                Log.d(TAG, path:  + data.getData().getPath());
                i.putExtra(noFaceDetection, true);
                i.putExtra(outputX, iconWidth);
                i.putExtra(outputY, iconHeight);
                i.putExtra(aspectX, iconWidth);
                i.putExtra(aspectY, iconHeight);
                i.putExtra(scale, true);

                if(iconUri == null){
                    ContentValues values = new ContentValues();

   values.put(android.provider.MediaStore.Images.Media.TITLE, name + 
   Icon);

   values.put(android.provider.MediaStore.Images.Media.BUCKET_ID,
   STeaP_Tea_Timer_Icons);

   values.put(android.provider.MediaStore.Images.Media.BUCKET_DISPLAY_NAME,
   STeaP Tea Timer Icons);
                    iconUri =
   getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
   values).toString();
                 }
                 i.putExtra(output, Uri.parse(iconUri));
                 startActivityForResult(i, CROP_ICON);
           }
           break;
       case AddTea.CROP_ICON:
           if (resultCode != RESULT_CANCELED){
           Log.d(TAG, Data String:  + iconUri);
           showIconButton(iconUri);
       }
       default:
           break;
       }

   }

   protected void showIconButton(String iconUri){
       if(iconUri != null){
          ImageButtoniconField = (ImageButton)
   findViewById(R.id.iconButton);
           Log.d(TAG, iconUri:  + iconUri);
           iconField.setImageURI(Uri.parse(iconUri));
           iconField.invalidate();
       }

   }

   So if the item doesn't have an icon, set one in the ContentProvider
   and save the iconUri.  If it does, just overwrite it with the new
   cropped image.

   This works fine if the item never had an icon.  It shows in 
   theImageButtonwhen the Activity returns.  However, if the item already
   had an icon, my Activity still shows the old icon, even though it was
   overwritten.  It seems that if theImageButtongets the same Uri back,
   even if I wrote a new image to it, it doesn't redraw, even if I tell
   it to invalidate().  If I relaunch my Activity, the new image shows up
   just like I expected.  Funny enough, the Pictures application doesn't
   see any images I created until I restart the emulator, which also
   doesn't seem ideal!

   So, is there anyway to handle this caching of the Uri?  I seems like
   the ContentProvider should be doing this when I write a new image to
   it, but it doesn't seem to be.  Also, before anyone suggests, I tried
   deleteing the entry in the ContentProvider and making a new one and
   that seems to partially work.  It partilly works because, if the Uri
   we get back it new, the view does refresh with this new Uri.  However,
   if the icon was the 

[android-developers] Re: save image in Database

2008-10-02 Thread Joe Erickson

I handled this by saving the image to the ContentProvider
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI and then
saving the created URI to the database along with my item.  An example
of how to do this can be found here:
http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/ViewPhotoActivity.java


On Oct 2, 11:59 am, Jake Maui [EMAIL PROTECTED] wrote:
 Try smaller files.   I've been able to read/write to my sdcard but have run
 into a 250 K limit.
 The emulator gives me an EOF -1 for bigger files for some reason.

 On Thu, Oct 2, 2008 at 10:28 AM, Nemat [EMAIL PROTECTED] wrote:

  ok.I have tried to save image in a file.But I couldnt do
  that.I have to do it for SDK-1.0.
  So plz give me any link to work on file connection.

  On Oct 2, 6:41 am, Andrew Stadler [EMAIL PROTECTED] wrote:
   Are you sure that you really want to do this?

   It might make more sense tosaveeachimageas a file.  If necessary,
   you could use adatabaseto storeimagemetadata (depending on the
   needs of your application).

   On Tue, Sep 30, 2008 at 7:02 AM, Nemat [EMAIL PROTECTED] wrote:

Hi Frnds.

I have tosaveanimageindatabase.How can it be possible in
SDK-1.0??

Thanks in Advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to use findViewById(int id) out of onCreate() ?

2008-10-02 Thread MrSnowflake

Indeed seems to no problem at all.
On the other hand, doing all findId's in the oncreate and put them in
fields of the activity you're working with, would speed up the app.

On Oct 1, 11:51 pm, Joey Yandle [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



  I'd like to use the findViewById(int id) method outside of the
  onCreate(bundle) to act on some buttons. How can I do that?

 What's stopping you from calling it outside of onCreate() in the same
 way you call it inside onCreate()?

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org

 iD8DBQFI4/D8Nig/07RbnEsRAib9AKDG4Q9XAuAdAdFHFhvT1/m3DozcEwCeNzCG
 m9MPhKMjfc4810O8hne/qxE=
 =ppaK
 -END PGP SIGNATURE-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: purpose of the assets folder

2008-10-02 Thread hackbod

The asset directory is just an unstructured hierarchy of files,
allowing you to put anything you want there and later retrieve as raw
byte streams.

On Oct 1, 9:17 pm, sarwees [EMAIL PROTECTED] wrote:
 I just created my first Android project using Eclipse and it generated
 a folder called assets. What is the purpose of this folder?

 sarwees
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bug with Ellipsize in ListView?

2008-10-02 Thread Mark Hansen

I've went back and verified the text in the ListView is indeed clean.

I'm at a loss as to where the empty block is coming from, any other
ideas?  Perhaps submit as a bug?

On Sep 25, 8:40 am, Mark Hansen [EMAIL PROTECTED] wrote:
 Hrmm.. well what's weird is the API is truncating the string and
 adding the ..., I'm just not sure where the extra character is
 coming from.. I'll take a look again, but the text is pretty clean as
 it's coming from an XML source.

 On Sep 25, 12:58 am, Romain Guy [EMAIL PROTECTED] wrote:

  You should check the ascii values of your strings. It looks like a
  wrong line return (maybe a \r\n?)

  On Wed, Sep 24, 2008 at 10:32 AM, Mark Hansen [EMAIL PROTECTED] wrote:

   I was implementing a view this morning with Ellipsize and noticed some
   characters appearing after the ...

  http://dl.getdropbox.com/u/26335/ellipsize.png

   Notice the middle two lines have a box like it has an
   unrenderablecharacter.

   Is this a bug, or am I doing something strange?

  --
  Romain Guywww.curious-creature.org


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OTA Implementation in SDK?

2008-10-02 Thread shashi

Hi ,
Where can i find the OTA Over the Air Implementation for Andriod.
which SDK has OTA support ?
Thanking you Advanced .


On Aug 19, 7:11 am, Dan Morrill [EMAIL PROTECTED] wrote:
 Today we're only releasing this SDK.  We'll have more information on topics
 like this in the near future.

 We'll also be recording that information in the Roadmap, as details are
 announced.

 - Dan

 On Mon, Aug 18, 2008 at 1:30 PM, Shane Isbell [EMAIL PROTECTED]wrote:

  Over the Air Delivery and installations of apks.

  On Mon, Aug 18, 2008 at 1:27 PM, Dan Morrill [EMAIL PROTECTED] wrote:

  What do you mean by OTA in this context?

  - Dan

  On Mon, Aug 18, 2008 at 1:21 PM, Shane Isbell [EMAIL PROTECTED]wrote:

  Is there an OTA implementation with the latest SDK? I couldn't find it in
  the docs. In the upcoming 1.0?

  Shane

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Internet proxy setting in R1.0

2008-10-02 Thread kimmin

Hi Megha.Joshi

I have tried but failed. Is there any tip or other way ?



On Sep 24, 6:42 am, Megha Joshi [EMAIL PROTECTED] wrote:
  To use proxy connection, you must launch the emulator with -http-proxy
 flag.
  Usage:
      http://code.google.com/android/reference/emulator.html#startup-options

 2008/9/23 Glen Wang [EMAIL PROTECTED]

  Does anyone know how to set the proxy in R1.0.  Thanks!
  Glen



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Contacts DataBase

2008-10-02 Thread Alexandru Mos

I have 2 questions. Do you know why I can't update the contact phone
numbers and how can I read an IM (Instant message) account in the new
version of sdk (v 1.0) ?

-- 
Ing. Alexandru Mos


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Application

2008-10-02 Thread barrie

Is there any way to make our own android application unremovable or
undeleted?

That means only read only by phone holder.

Thanks

Barrie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PreferenceActivity Refresh Problem

2008-10-02 Thread Ludwig
I have an ugly solution to this.There should be somewhere to force it to
reload the preferences and refresh the screen, but just like you I do not
know how to do it. (Suggestions?)

However, what you can do is to finish the current preferences activity and
to restart it in a new activity, like so:

protected void resetPreferences(){
prefs = getSharedPreferences(..., Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
... // do all the resetting
editor.commit();
finish();
ComponentName comp = new ComponentName(this.getPackageName(),
getClass().getName());
startActivity(new Intent().setComponent(comp));
}

This at least works if you are on the main screen of the activity.

Yes, it is a hack.

Ludwig
2008/10/2 Amos [EMAIL PROTECTED]


 I have a PreferenceActivity inflated from xml. One of the preferences
 launches an intent which opens an activity that clears all the
 preferences and resets them to the default values.

 My problem is that when this restore defaults activity returns, and
 I navigate to another preference screen with, say, a checkbox
 preference, the previous preference values still appear on the screen.
 If I exit the preference activity and then reopen it, the updated
 preference values appear.

 This seems like a refresh issue. Is there a way I can tell the
 PreferenceActivity to refresh its values? (I made sure I am comitting
 all my preference changes)

 Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread David Given

DulcetTone wrote:
 That is the point, basically.

Eclipse doesn't work like that, really. But you can go to
Project-Properties-Project References to set up dependencies between
projects, so they'll get built as a set. That allows you to put your
common code in a separate project which your other projects refer to.
does that do what you want?

-- 
David Given
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Obfuscation in eclipse for Android?

2008-10-02 Thread UBZack

Hi Peli, blindfold:

I know it's been a while, but after having put the whole obfuscation
task on the back burner, I decided to come back to it yesterday, and I
just now, with tips from both of you, I have completed setting up an
Ant build script, using ProGuard, that obfuscates my class names very
nicely, and I'd like to thank you both very much for your helpful
comments!

For those still seeking help, I'll just paste the part of my Ant build
script that calls ProGuard, which was partly inspired by the ant build
found here:  
http://code.google.com/p/zxing/source/browse/trunk/android-m3/build.xml?r=321

target name=optimize depends=compile
jar basedir=${outdir-classes} destfile=temp.jar/
java jar=${WTK-home}/proguard.jar fork=true 
failonerror=true
jvmarg value=-Dmaximum.inlined.code.length=32/
arg value=-injars temp.jar/
arg value=-outjars optimized.jar/
arg value=-libraryjars ${android-jar}/
arg value=-dontpreverify/
arg value=-dontoptimize/
arg value=-dontusemixedcaseclassnames/
arg value=-repackageclasses ''/
arg value=-allowaccessmodification/
arg value=-keep public class 
zackcorp.android.FirstView/
arg value=-keep public class 
zackcorp.android.SyncingView/
arg value=-keep public class 
zackcorp.android.ListView/
arg value=-optimizationpasses 1/
arg value=-verbose/
/java
delete file=temp.jar/
delete dir=${outdir-classes}/
mkdir dir=${outdir-classes}/
unzip src=optimized.jar dest=${outdir-classes}/
delete file=optimized.jar/
/target

This target goes after the compile target, and before the dex target.
I think I was finding that -dontpreverify really didn't make much
difference in the end, but -dontoptimize was needed, and -
dontusemixedcaseclassnames is DEFINITELY a must for building on
Windows, if you have a lot of java files (good call, blindfold!)
Also, as peli pointed out, I put all my AndroidManifest listed classes
- FirstView, SyncingView, and ListView - in -keep calls, to be
excluded from obfuscation and this is what made it work.

So I hope this helps other people out, it's not an easy road to
travel!
-UBZack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: T-Mobile will be restricting voice over internet protocol (VoIP) applications.

2008-10-02 Thread 3,14

Sure I can give the links:
http://voipguides.blogspot.com/2008/09/sip-voip-on-tmobile-google-phone-g1.html
http://gigaom.com/2008/09/23/voip-skype-3g-roaming-g1-aka-the-google-phone/
http://blog.wired.com/gadgets/2008/09/g1-android-phon.html

More over, our company trying to develope SIP client for G1. At the
moment it's imposible to make a good VOIP client for G1 based on the
shared SDK because of multiple problems with recording/playing sound.
Raised issues are not fixed even in 1.0 release. You can take a look
at them your self. For example this one:
http://code.google.com/p/android/issues/detail?id=739q=MediaPlayercolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary
or this one
http://code.google.com/p/android/issues/detail?id=88q=MediaPlayercolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary.

I didn't find any VOIP client for android (except gTalk) which can
normaly work on the G1. All of them has problem starting from 0.9 beta
SDK.

On 2 окт, 21:45, DulcetTone [EMAIL PROTECTED] wrote:
 Do any of these posts cite any authoritative sources for this, or is
 it mere speculation?
 Repetition of a rumor doesn't make it true, of course.

 On Oct 2, 10:01 am, 3,14 [EMAIL PROTECTED] wrote:

  There are many post on the Internet that VOIP apps will be restricted
  on the G1. Is it true? It really looks so :(. For now multiple API
  drawback makes the VOIP development for android impossible.  Will this
  issues be fixed in the next android SDK releases?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: UnsupportedClassVersionError with 0.9 and Eclipse layout editor

2008-10-02 Thread blake

Note that this same issue is being tracked in another thread:

http://groups.google.com/group/android-developers/browse_thread/thread/aa4227c79e2bd171/8fda9f2bea0c9d8e?lnk=gstq=bad+version+number#8fda9f2bea0c9d8e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: purpose of the assets folder

2008-10-02 Thread Satya Komatineni

Thanks for the reply.

Then how does /res/raw directory differ from /assets sub
directory? Both seem to host raw files.

Satya

On Thu, Oct 2, 2008 at 1:15 PM, hackbod [EMAIL PROTECTED] wrote:

 The asset directory is just an unstructured hierarchy of files,
 allowing you to put anything you want there and later retrieve as raw
 byte streams.

 On Oct 1, 9:17 pm, sarwees [EMAIL PROTECTED] wrote:
 I just created my first Android project using Eclipse and it generated
 a folder called assets. What is the purpose of this folder?

 sarwees
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-02 Thread Chris Cicc

Hey Charlie and Brad,
Good news! I now have the ampersand being parsed correctly. However
the change needed wasn't what we expected. Every time I changed the
raw text in the database from the '' character to the escaped 'amp;'
or '#038;' it didn't work, it would still break at that first
ampersand.

After doing some more research, I came across this:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX3.html

In that document, it says:

Note: To be strictly accurate, the character handler should scan the
buffer for ampersand characters ();and left-angle bracket characters
() and replace them with the strings amp; or lt;, as appropriate.
You'll find out more about that kind of processing when we discuss
entity references in Displaying Special Characters and CDATA. 

I was working on implementing that, when I read further about CDATA
sections. I decided to try this, by implementing the
XmlDocument.CreateCDataSection method instead of the
XmlDocument.CreateTextNode method I'm currently using in my .Net web
service. Without having to modify my SAXParser code at all it worked
with the new CDATA section!

So what did I learn:
1. The SAXParser does indeed break like this by design.
2. Android beta's apparently did not implement a properly spec'ed
SAXParser.
3. The SAXParser may be lightweight, but it comes at the cost of
parsing robustness. For instance, the built in .Net parser does not
have this issue. It simply reads the node, then everything after the
node until it reaches an end node. It's smart enough to detect full
nodes on their own, without simply assuming anything after '' is a
new node like SAX does.

Going forward, I'm going to keep using CDATA sections, and look to
replace the parser if needed in the future.

As a developer, I'm really disappointed a Google rep didn't chime in
on this conversation. I'm used to having everything posted at
forums.asp.net read by Microsoft devs. But I appreciate all the help
of fellow community members like yourselves!

-chris

On Oct 2, 7:24 am, Charlie Collins [EMAIL PROTECTED] wrote:
 It's just #038;, or amp;

 http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_re...

 The  and the ; delimit the entity.

 But Chris, your XML in your source example there can't have an
 ampersand there like that.  You need to be using the escape/encoding.
 If everything in the chain supports UTF-8 you can use amp;, if not,
 use the numerical entity version, #038;.

 Again, this is a different topic than the differences in the parsing,
 but every XML processor I have ever seen will blow up on a non-escaped
 ampersand.

 Characters (or code points in Unicode terminology) outside the simple
 ASCII range 32-127 (#x20; to #x7F;) must either be encoded as multi-
 byte UTF-8 sequences or using numerical entities. In environments that
 do not natively support UTF-8 it is often easier to use numerical
 entities

 For example, the XML I am using is coming from Google Base - it is
 UTF-8, but you STILL have to use the encoding to escape the special
 chars:

 ?xml version='1.0' encoding='UTF-8'?
 feed xmlns='http://www.w3.org/2005/Atom'xmlns:openSearch='http://
 a9.com/-/spec/opensearchrss/1.0/'
         xmlns:gm='http://base.google.com/ns-metadata/1.0'xmlns:g='http://
 base.google.com/ns/1.0'
         xmlns:batch='http://schemas.google.com/gdata/batch'
         idhttp://www.google.com/base/feeds/snippets
         /id
         updated2008-09-29T18:18:13.843Z/updated
         title type='text'Items matching query: ([review
                 type:restaurant][location:Atlanta, GA]) [item type == 
 reviews]
         /title
         link rel='alternate' type='text/html' href='http://base.google.com'/

         link rel='http://schemas.google.com/g/2005#feed'type='application/
 atom+xml'
                 href='http://www.google.com/base/feeds/snippets'/
         link rel='http://schemas.google.com/g/2005#batch'type='application/
 atom+xml'
                 href='http://www.google.com/base/feeds/snippets/batch'/
         link rel='self' type='application/atom+xml'
                 
 href='http://www.google.com/base/feeds/snippets/-/reviews?start-
 index=1amp;max-results=8amp;bq=%5Breview+type%3Arestaurant%5D
 %5Blocation%3AAtlanta%2C+GA%5D' /
         link rel='next' type='application/atom+xml'
                 
 href='http://www.google.com/base/feeds/snippets/-/reviews?start-
 index=9amp;max-results=8amp;bq=%5Breview+type%3Arestaurant%5D
 %5Blocation%3AAtlanta%2C+GA%5D' /
         author
                 nameGoogle Inc./name
                 email[EMAIL PROTECTED]/email
         /author
         generator version='1.0' uri='http://base.google.com'GoogleBase/
 generator
         openSearch:totalResults199/openSearch:totalResults
         openSearch:startIndex1/openSearch:startIndex
         openSearch:itemsPerPage8/openSearch:itemsPerPage
         entry
 . . . . .

 On Oct 1, 7:18 pm, Brad Gies [EMAIL PROTECTED] wrote:

  Charlie,

  Yes, I think we are saying ALMOST the same thing. 

[android-developers] Re: best performing xml parser for android?

2008-10-02 Thread zl25drexel

the android SDK also has a pull parser implementation, since it's
already build-in, i would probably go for that one because i prefer to
add as little 3rd party jars as possible. I would be interested in the
performance comparison between the android parser vs. woodstox tho.

On Sep 29, 8:15 pm, Shane Isbell [EMAIL PROTECTED] wrote:
 This is one is pretty fast, don't know if it will run on Android.

 http://woodstox.codehaus.org/
 Shane

 On Mon, Sep 29, 2008 at 5:12 PM, zl25drexel [EMAIL PROTECTED] wrote:

  Hi

  I am just wondering what is the best performing xml parser (speed
  wise) for android (or for java in general). Does anyone know?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: UnsupportedClassVersionError with 0.9 and Eclipse layout editor

2008-10-02 Thread Charlie Collins

In my case, when I updated to 1.0 this issue disappeared. I am still
not exactly sure why it was occurring, but I no longer experience the
problem with Droid 1.0 and Eclipse 3.4.

On Oct 2, 2:55 pm, blake [EMAIL PROTECTED] wrote:
 Note that this same issue is being tracked in another thread:

 http://groups.google.com/group/android-developers/browse_thread/threa...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How do I use View(Context context,AttributeSet attrs) constructor??

2008-10-02 Thread kingkung

I'm trying to convert an Xml string into a view by parsing out the
attributes into a set, and keep getting the following exception...

java.lang.ClassCastException: android.util.XmlPullAttributes

is called whenever I attempt to call Xml.asAttributeSet(XmlPullParser
parser).

Code below:

   XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
   factory.setNamespaceAware(true);
   XmlPullParser xpp = factory.newPullParser();
   Log.d(ABC,**);
   xpp.setInput(new StringReader(XML_STRING));
   int eventType = xpp.getEventType();
   while (eventType!=XmlPullParser.END_DOCUMENT)
eventType = xpp.next();
   try
   {
View v = new View(this,Xml.asAttributeSet(xpp));
setContentView(v);
}
   catch (Exception e)
{
Log.d(ERROR,EXCEPTION:+e);
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Download image from server

2008-10-02 Thread Nemat

I have applied the way given in link.I think the problem is in
displaying the image??
Do u know the reason behind this JPEG error???

On Oct 1, 7:07 pm, Mark Hansen [EMAIL PROTECTED] wrote:
 I followed this short tutorial a while back for downloading an image
 via http, maybe it can point you in the right direction...

 http://www.anddev.org/gallery_with_remote_images-t769.html

 On Oct 1, 6:51 am, Nemat [EMAIL PROTECTED] wrote:

  Hi,

  I have to download an image from server.But I got an error D/skia
  ( 197): xxx jpeg error 53 Not a JPEG file: starts with 0x%02x
  0x%02x

  I have to perform two continues Http connection.First is used to get
  server response and second to get image from the server.First task is
  performed correctly but while downloading image I got the given
  eror.So the problem in getting image from server.

  My code is:
  Code:

  public ImageView getView(String myImageURL) {
         Log.i(TAG,downloadFile00+myImageURL);
          ImageView i = new ImageView(this);

          try {
                  /* Open a new URL and get the InputStream to load data
  from it. */
                  URL aURL = new URL(myImageURL);
                  URLConnection conn = aURL.openConnection();

  Log.i(TAG,downloadFile111+myImageURL);
                  conn.connect();
                  InputStream is = conn.getInputStream();

  Log.i(TAG,downloadFile22+is.read());
                  /* Buffered is always good for a performance plus. */
                  BufferedInputStream bis = new BufferedInputStream(is);

  Log.i(TAG,downloadFile=+bis.read());
                  /* Decode url-data to a bitmap. */
                 // Bitmap bm = BitmapFactory.decodeStream(bis);
                  Bitmap bm = BitmapFactory.decodeStream(is);
                 //
  Log.i(TAG,downloadFile444+bm.getHeight());
                 // bis.close();
                  is.close();
                  /* Apply the Bitmap to the ImageView that will be
  returned. */
                  i.setImageBitmap(bm);
                  Log.i(TAG,downloadFile5);
             } catch (IOException e) {
                Log.i(TAG,downloadFile);
                  Log.e(DEBUGTAG, Remtoe Image Exception, e);
             }

          /* Image should be scaled as width/height are set. */
         // i.setScaleType(ImageView.ScaleType.FIT_CENTER);
          /* Set the Width/Height of the ImageView. */

          return i;
      }

  This code works fine when I performed this task alone in another
  project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bash, C, or Korn Shell?

2008-10-02 Thread Bill Zimmerly

Thanks David ... I'll check it out.
- Bill

On Oct 2, 3:33 pm, David Welton [EMAIL PROTECTED] wrote:
 If you want a shell from the GUI, you might be able to hack at Hecl to
 turn it into what you want:

 http://www.hecl.org(check it out from subversion though).

 --
 David N. Welton

 http://www.welton.it/davidw/

 http://www.dedasys.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani

What do I need to override in that ListAdapter? If you know how to do
this can  you please elaborate?

Thanks
Rohit


On Oct 2, 6:20 am, MrSnowflake [EMAIL PROTECTED] wrote:
 Implement your own ListAdapter.

 On 2 okt, 01:06, Rohit Mordani [EMAIL PROTECTED] wrote:

  Hi,
       I am accessing Contacts data and passing that into a list. I want
  to modify the data that I get from the database and then pass it to
  the list view. Is there a way to do that ? This is what my OnCreate()
  looks like.

  public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          mCursor = getContentResolver().query(People.CONTENT_URI,
                                  null, null, null, null);
          startManagingCursor(mCursor);
          ListAdapter adapter = new SimpleCursorAdapter(this,
  R.layout.two_item_row, mCursor,

  new String[] {People.NAME, People.NUMBER},

  new int[] {R.id.text1, R.id.text2});

          setListAdapter(adapter);
      }

  Do I need to create m own CursorAdapter (maybe inherit from
  SimpleCursorAdapter??) If so then what methods do I need to override?

  I also want to add a column that has data from some other source. Is
  there  a way to do that?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I modify data from the database before sending it to a list?

2008-10-02 Thread Jeff Hamilton

If you subclass from ResourceCursorAdapter you should only have to
implement bindView(), where you copy the data from the Cursor to the
views in the list item. See
http://code.google.com/android/reference/android/widget/CursorAdapter.html#bindView(android.view.View,%20android.content.Context,%20android.database.Cursor).

-Jeff

On Thu, Oct 2, 2008 at 2:16 PM, Rohit Mordani [EMAIL PROTECTED] wrote:

 What do I need to override in that ListAdapter? If you know how to do
 this can  you please elaborate?

 Thanks
 Rohit


 On Oct 2, 6:20 am, MrSnowflake [EMAIL PROTECTED] wrote:
 Implement your own ListAdapter.

 On 2 okt, 01:06, Rohit Mordani [EMAIL PROTECTED] wrote:

  Hi,
   I am accessing Contacts data and passing that into a list. I want
  to modify the data that I get from the database and then pass it to
  the list view. Is there a way to do that ? This is what my OnCreate()
  looks like.

  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  mCursor = getContentResolver().query(People.CONTENT_URI,
  null, null, null, null);
  startManagingCursor(mCursor);
  ListAdapter adapter = new SimpleCursorAdapter(this,
  R.layout.two_item_row, mCursor,

  new String[] {People.NAME, People.NUMBER},

  new int[] {R.id.text1, R.id.text2});

  setListAdapter(adapter);
  }

  Do I need to create m own CursorAdapter (maybe inherit from
  SimpleCursorAdapter??) If so then what methods do I need to override?

  I also want to add a column that has data from some other source. Is
  there  a way to do that?


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BitmapFactory decodeFile

2008-10-02 Thread Romain Guy

Just use BitmapFactory.Options and set the value inJustDecodeBounds to
true. This will ask BitmapFactory to only decode the size of the
image, not the image itself.

On Thu, Oct 2, 2008 at 3:41 PM, Gil [EMAIL PROTECTED] wrote:

 My app need to load a large image from the SD card. I would like to
 use the decodeFile from BitmapFactory to open the file. Before I call
 decodeFile I would like to learn the dimensions of the image. Is there
 a class that can help me extract image metadata (without decoding
 the entire file)?
 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Adding an IP address for a local host

2008-10-02 Thread abhijit.deb

How can we add an IP address for a hostname in the android
environment? Also, how can we import a security certificate into the
environment?

Thanks for your attention...
-Abhijit

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: When is R.string etc available?

2008-10-02 Thread plusminus

The second one is the way its meant to be. I don't know the exact
reason but its probably similar to the fact why there are no
Constructors for Activities, but the onCreate()/onDestroy()/onResume()
Lifecycle-Stuff.

Regards, plusminus
http://anddev.org
#  Worlds largest Android Development Community / Tutorials

On 2 Okt., 18:55, PAS [EMAIL PROTECTED] wrote:
 It seems like the R.string resource is not available as early as I
 would like. The following code looks fine in Eclipse, but sometimes
 when I run it, it will sometimes throw a NullPointerException on line
 2 (as I figured out from the log):

 1.  public class Foo extends Activity {
 2.      private Uri mLink =
 Uri.parse(getString(R.string.my_site_url));
 3.
 4.     [EMAIL PROTECTED]
 5.      public void onCreate(Bundle savedInstanceState) {
 6.          super.onCreate(savedInstanceState);
 7.
 8.          Intent i = new Intent(Intent.ACTION_VIEW, mLink);
 9.          startActivity(i);
 10.      }
 11.  }

 BUT, if I move the private member variable inside the onCreate method,
 it works every time:

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

         Uri link = Uri.parse(getString(R.string.my_site_url));
         Intent i = new Intent(Intent.ACTION_VIEW, link);
         startActivity(i);
     }

 Has anyone had an experience like this, or know why this may be
 happening?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Testers Needed - Community App Store

2008-10-02 Thread plusminus

... and why should we be using your store rather than the Android
Market ?

On 2 Okt., 20:39, plusminus [EMAIL PROTECTED] wrote:
 Will you provide a auto-updating feature for apps?

 On 2 Okt., 15:27, Al Sutton [EMAIL PROTECTED] wrote:

  I've put together a quick first pass at an application store/directory
  which could be useful if T-Mobile and/or Google have problems setting
  up their respective app markets or introduce some restrictions which
  hinder application listings.

  I'd be grateful if anyone who has some spare time could give it a test
  by listing their apps  releases and feeding back any comments or
  suggestions (it's a work in progress, so please make comments a bit
  more constructive than than you need to add a voting system, you
  need to add an app purchasing system, and you suck at web
  design :)).

  For those that are interested the site is up athttp://andappstore.com/

  Thanks,

  Al.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: IDE Netbeans

2008-10-02 Thread Charlie Collins

I don't think there is an official NB 6.5 and Droid 1.0 module, yet.
There is of course Undroid - http://undroid.nolimit.cz/, but I have no
idea how up to date or useful it is (I don't personally use NB).

You could probably use activityCreator and import your Ant builds
though -
http://code.google.com/android/reference/othertools.html#activitycreator.

I believe the official line is probably if you aren't using Eclipse,
that is what the activityCreator stuff is for (but the official tools
are Eclipse based, good or bad).


On Oct 2, 1:58 pm, Roberto Aguirre [EMAIL PROTECTED] wrote:
 How can i develop an app using Netbeans 6.5??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Testers Needed - Community App Store

2008-10-02 Thread Shane Isbell
On Thu, Oct 2, 2008 at 5:40 PM, plusminus [EMAIL PROTECTED] wrote:


 ... and why should we be using your store rather than the Android
 Market ?

 On 2 Okt., 20:39, plusminus [EMAIL PROTECTED] wrote:
  Will you provide a auto-updating feature for apps?

I can't comment on the andappstore, but SlideME will be delivering
auto-updates in our client. Basically the provider just needs to update the
version and the client will pick it up from our atom feed, thus notifying
the user. You will also be able to update the catalog info for the same
version and it will go out to the clients on the next catalog update.

Shane

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: call WebService

2008-10-02 Thread Charlie Collins

If you search this forum you find a lot of info on this topic. It
depends what you mean by webservice, but if you mean SOAP over
HTTP,  the typical path is to use kSOAP on Android. Anddev.org has
some good samples, including a kSOAP one:
http://www.anddev.org/webservice_soap_with_complex_data_type_and_ksoap_client-t2195.html.

Though, I would also still argue that you should not use SOAP on a
small embedded platform device like a mobile phone. I know, I know,
relax - people do it all the time, and many people disagree - I
realize that.  But still the stuff that makes SOAP useful,
transactions, types, orchestration, etc, are all overkill in my
opinion on an embedded device. You can avoid all that overhead (and
even the envelope), and STILL use your existing SOAP service, by
making a SOAP proxy using something that takes more of a plain HTTP
and XML appoach (POX), or even REST, and have that proxy make the
required SOAP calls. Put all the SOAP horsepower on the server, if you
have to use SOAP, and make the Android client ultra simple via some
kind of a proxy.



On Oct 2, 12:15 pm, Yash Patel [EMAIL PROTECTED] wrote:
 Hi Guys,

 Can anyone please let me know how how do we call webserivce from Android
 App.
 If you can provide sample code, i would really appreciate.

 thanks for you help.

 Yash Patel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Socket HttpURLConnection don't work?

2008-10-02 Thread Jason Proctor

thanks for the response.

i'd previously checked the samples included with the SDK for network 
code and found none. but then it occurred to me to check the manifest 
anyway for correct permissions syntax.

sure enough, i had the uses-permissions inside application when 
it should have been inside manifest.

ideally the DTD etc would have caught this, but at least i have the 
solution. now on to the next problem... :-]

thanks again,
j



If you are seeing java.net.SocketException : unknown error when
trying to use the network in Android it is probably the permissions.
I know you have read this thread and you say you have the permission
there, but I would triple check it and make sure it's correct.

I was getting this error message in a bunch of apps that were written
pre 0.9/1.0 and as soon as I added the permission to them they started
working again (the networking that is, I also had to make the other
non network related API changes of course - but that stuff is
unrelated to this message/issue).

I was confounded by this error message for a while too, checking over
my code that I knew worked from before, debugging, etc - really vague,
unhelpful, that should be improved, but the network DOES work as
expected once you have the proper permission.

On Oct 2, 5:57 pm, juvation [EMAIL PROTECTED] wrote:
  doesn't work for me! :-(

  i still get the same error with the uses-permission tag there.

  can i get any detail on this error? java's error messages are usually
  informative, but not this one...

  thanks in advance for any help with this.
  j

  On Aug 20, 1:33 am, brad [EMAIL PROTECTED] wrote:

   I see.
   It works now.
   Thanks a lot : )

   Brad


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: purpose of the assets folder

2008-10-02 Thread hackbod

The stuff under /res/raw are resources, so they are looked up by
resource IDs, can be references from other resources, can be localized
etc all of the same ways you do with other resources.

The stuff under assets is just a raw hierarchy of files and
directories, with no other capabilities.

On Oct 2, 12:24 pm, Satya Komatineni [EMAIL PROTECTED]
wrote:
 Thanks for the reply.

 Then how does /res/raw directory differ from /assets sub
 directory? Both seem to host raw files.

 Satya

 On Thu, Oct 2, 2008 at 1:15 PM, hackbod [EMAIL PROTECTED] wrote:

  The asset directory is just an unstructured hierarchy of files,
  allowing you to put anything you want there and later retrieve as raw
  byte streams.

  On Oct 1, 9:17 pm, sarwees [EMAIL PROTECTED] wrote:
  I just created my first Android project using Eclipse and it generated
  a folder called assets. What is the purpose of this folder?

  sarwees
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Lifecycle

2008-10-02 Thread hackbod

Um...  you should fix your program. :)

You can't really rely on onDestroy() for this.  For example, if the
user presses home to get out of your app, the activity will not be
destroyed.  And if the user flips the lid while your activity is
running, the current instance will be destroyed and a new one created.

Honestly, this isn't a good thing to do.

On Oct 2, 2:20 am, elvisw [EMAIL PROTECTED] wrote:
 to release some resource violently...
 that resource has no API for me to release it smoothly..
 it will keep working, cost cpu time unless i exit the process...
 so...

 Thanks

 On Oct 2, 3:35 pm, hackbod [EMAIL PROTECTED] wrote:

  You can use the Process class to kill yourself.  But doing that pretty
  nasty, and almost certainly won't work all that well.

  Why would you want to do such a thing?

  On Oct 1, 8:37 pm, elvisw [EMAIL PROTECTED] wrote:

   Hi everyone,

       Normally, when onDestroy() been called, the process is still there
   and waiting the system to kill it.

       Is it possible to kill the process in onDestroy() when every time
   it is called??
       Is there API to exit the process by the activity itself??

   Best Regards,
   Elvis.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application

2008-10-02 Thread hackbod

Nope.  That is not a nice thing to do to the user. :)

On Oct 2, 10:50 am, barrie [EMAIL PROTECTED] wrote:
 Is there any way to make our own android application unremovable or
 undeleted?

 That means only read only by phone holder.

 Thanks

 Barrie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OpenGL ES documentation/tutorial suggestions

2008-10-02 Thread Nikkelitous

The documentation for OpenGL ES inside of Android is obviously lacking
-- it's completely void of any text.  Now, this is apparently not that
big of a deal as it's essentially a clone of J2ME's OpenGL ES,
however, I've never used that and am wondering what's a good way to
get started in learning it?  I've seen the Android-GL tutorials and
read all the Android-specific information I can find.  But I feel I'd
benefit most from a thorough documentation of the functions so that I
can get an idea of how to do it.  I've tried finding outside
documentation but it all seems a tad lacking.

What would you suggest in documentation/books/tutorials in learning
the OpenGL ES used by Android?  I'm not afraid of technical
information, but I would like a general tutorial on basic
infrastructure and design in addition.

Finally, are there any questions or information that you think would
be useful in learning OpenGL even if it's not directly related.  I'm
interested in all of it, from planning the design to optimizing.

Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: call WebService

2008-10-02 Thread Cezar Augustus Signori

Well,

you can use the following code (and later put JSON libs to handle the
response)

String res=;
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(http://10.1.1.3:8080/AllertWS/
AllertWSService);
try {
post.setHeader(Content-Type, text/xml);
post.setEntity(new StringEntity(xmlDeEntrada));

HttpResponse httpResponse = client.execute(post);
if(httpResponse.getStatusLine().getStatusCode()!=404)
{
res=
EntityUtils.toString(httpResponse.getEntity());
tv.setText(res);
}else
tv.setText(404 :();
} catch (Exception e) {
tv.setText(Erro: +e.getLocalizedMessage());
} finally {
post.abort();
post=null;
}

Cheers,
Cezar Signori

On Oct 2, 9:51 pm, Charlie Collins [EMAIL PROTECTED] wrote:
 If you search this forum you find a lot of info on this topic. It
 depends what you mean by webservice, but if you mean SOAP over
 HTTP,  the typical path is to use kSOAP on Android. Anddev.org has
 some good samples, including a kSOAP 
 one:http://www.anddev.org/webservice_soap_with_complex_data_type_and_ksoa

 Though, I would also still argue that you should not use SOAP on a
 small embedded platform device like a mobile phone. I know, I know,
 relax - people do it all the time, and many people disagree - I
 realize that.  But still the stuff that makes SOAP useful,
 transactions, types, orchestration, etc, are all overkill in my
 opinion on an embedded device. You can avoid all that overhead (and
 even the envelope), and STILL use your existing SOAP service, by
 making a SOAP proxy using something that takes more of a plain HTTP
 and XML appoach (POX), or even REST, and have that proxy make the
 required SOAP calls. Put all the SOAP horsepower on the server, if you
 have to use SOAP, and make the Android client ultra simple via some
 kind of a proxy.

 On Oct 2, 12:15 pm, Yash Patel [EMAIL PROTECTED] wrote:

  Hi Guys,

  Can anyone please let me know how how do we call webserivce from Android
  App.
  If you can provide sample code, i would really appreciate.

  thanks for you help.

  Yash Patel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Rotating an image using Drawable

2008-10-02 Thread Jason Proctor

i don't know whether this is what you're looking for, but Lunar 
Lander has an example of drawing a rotated Drawable.

hth


create image using the bitmap
then use the Matrix and its preScle func..
and paasing this as a parameter u can create another bitmap..
like createBitmap(image,0,0,imahewidth,height,matrix,false)

based on the prescale value it will give the transformed image



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: specs for YCbCr_422_SP pixel format

2008-10-02 Thread walterc



On Oct 2, 11:49 pm, Nikkelitous [EMAIL PROTECTED] wrote:
 The second question you asked is relatively easy.  There are two
 because one of them will return raw data ignoring the format
 (Uncompressed data direct from the camera).  The other actually
 follows the format settings.

that's what i thought but the raw callback returned null, with or
without setting picture format to YCbCr_422_SP.

 The first question, however, is more difficult. The only specs I've
 been able to find on the 422 is that it's essentially 4 bytes of data
 with 2 pixels in it (equating to 6 rgb bytes.  To decompress the
 data use the following algorithms.

 U  = yuv[0]
 Y1 = yuv[1]
 V  = yuv[2]
 Y2 = yuv[3]


yes, this is what i used to decode the raw data.

 Then use equation to convert YUV to RGB is (remember to apply it to
 both Y1 and Y2):

 R = Y + 1.140V
 G = y - (0.395 * U) - (0.581 * V)
 B = Y + (2.032 * U)

 That, as far as I know, should get you a perfectly usable RGB picture
 out of it.

 Some notes about the emulator:

 It seems when you take a picture, it returns a picture that actually
 has many versions of the picture within it.  Not sure why this
 happens, probably due to the video of the capture being lower res
 than the preview pane, thereby making the preview larger than the
 rendered video and the system seems to map it over.  Not sure on this,
 but it *SHOULD* be all better when we run it on hardware.
 Unfortunately, no way to be sure on this until Oct 22.


this is what i got as well.  well, let's hope the real thing can take
picture properly.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How many threads can be created or how to avoid thread leak

2008-10-02 Thread Jo

HI,

I am developing a chat application. Everytime a user clicks a button a
thread needs to handle it as text message needs to be sent over
network. so, I am creating a new thread each time when the user clicks
on button.  I wish only 1 thread handles all the messages to be sent.
But, resume/suspend/stop are all deprecated.

is there a way to do it.

currently, I am doing it like the following.

code
View.OnClickListener showChat = new View.OnClickListener() {
@Override
public void onClick(View v) {

t_send = new Thread() {
public void run() {
recv = false;
m_mychat = doExpensiveSend();

mHandler2.post(mUpdateResults2);
}
};
t_send.start();

}
};
/code
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Synchronization issue:plz help

2008-10-02 Thread Sudha

Hi all
I am facing one issue with Listactivity and progressDialogue.

I have a class extending ListActivity.
and in  onListItemClick()
when I am clicking one item
it should display the dialogue box and then do teh calculation and
tehn dismiss teh dialogye
I have writen the code like

progressDialogue.show (...)
postInvalidate()
calculation
progressDialogue.dismiss();
postInvalidate()

but the dilaogue is getting displayed but not going from teh screen
after the calculation.
how to resolve this sync issue ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: onCreateOptionsMenu not called

2008-10-02 Thread Jason Parekh
Are you overriding either onCreatePanelView or onCreatePanelMenu?

If so, try commenting that out and seeing the behavior.

jason

On Fri, Sep 26, 2008 at 12:33 PM, Teo [EMAIL PROTECTED] wrote:

 I just tried with the same project on another computer where i installed
 SDK 1.0 clean, same behavior...


 On Thu, Sep 25, 2008 at 8:30 PM, Teo [EMAIL PROTECTED] wrote:

 I've replaced some PNG images i used for the menu, that's the closest
 thing i did; but there shouldn't be any influence from that either..


 On Thu, Sep 25, 2008 at 8:19 PM, Teo [EMAIL PROTECTED] wrote:

 Nope, nothing happens on prepare either. This is too strange, i remember
 the other day i tried the menu and it worked in the latest SDK. Today with
 no change in code, nothing, not even a call. I should say the menu works in
 other apps, so the problem seems to be only with mine.


 On Thu, Sep 25, 2008 at 7:57 PM, Mark Murphy [EMAIL PROTECTED]wrote:


  Thanks for pointing that out, it was an oversight. But it still didn't
  solve the problem.onCreateOptionsMenu isn't even called :/

 I was in a bit of a rush with the last reply and figured it would be
 worth
 a shot.

 Is onPrepareOptionsMenu() being called? That should be called on every
 menu button press; onCreateOptionsMenu() will only get called on the
 first
 menu button press.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.2 Published!







 --
 Teo (a.k.a. Teodor Filimon, Teominator)
 Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
 GMT +2 (or PDT +10)




 --
 Teo (a.k.a. Teodor Filimon, Teominator)
 Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
 GMT +2 (or PDT +10)




 --
 Teo (a.k.a. Teodor Filimon, Teominator)
 Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
 GMT +2 (or PDT +10)

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL ES documentation/tutorial suggestions

2008-10-02 Thread Steve Oldmeadow

I would recommend the book Mobile 3D Graphics with OpenGL ES and M3G
by Karri Pulli and others.  You may not be interested in the M3G stuff
but the book is worth it for the introductory 3D and OpenGL ES
coverage.  This book was also recommended by the developer of the
Oolong 3D engine for the iPhone which is based on OpenGL ES.

You should also check out the AndroidGlobalTime and SpriteText
examples under the Apps For Android project.  These are full of useful
code.

Once the devices are released I expect there will be more information
forthcoming such as which bits of OpenGL ES 1.1 are supported as well
as recommendations for best performance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---