[android-developers] Re: Play Video Files in Android

2008-12-04 Thread Girish

Dear Jatin ,

if you just want to play a video on android emulator these are the
steps

go to this location
/development/samples/ApiDemos/src/com/example/android/apis/media/
Edit MediaPlayerDemo_Video.java

path = /sdcard/Yourfilename; //add your file
name here

Save and quit

run make command .

This will buiild out/target/product/generic/data/app/ApiDemos.apk

Now do adb install out/target/product/generic/data/app/ApiDemos.apk

Now place the videofile (Yourfilename) in /sdcard like this
adb push Yourfilename  /sdcard

Go to apidemos -media- mediaplayer - play video from local file

This should start playing the video which u place in the /sdcard.

Please let me know if you have any other question

Regards
Girish

On Dec 4, 1:56 am, Dave Sparks [EMAIL PROTECTED] wrote:
 If you want a video player app for your G1, there are several
 available for free in the Market.

 If you are looking for sample code, check out the SDK sample code.
 There are also several workable snippets posted in various messages on
 this list.

 On Dec 3, 9:19 pm, Jatin [EMAIL PROTECTED] wrote:

  Hello,

  Please let me know how to play the Video Files in the Media Palyer of
  the Android.
  I have push the .mp4 file inside the SD Card.

  Jatin


--~--~-~--~~~---~--~~
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: Memory leak in BitmapFactory/Gallery?

2008-12-04 Thread Romain Guy

The heap works pretty much like in a regular VM. As your app needs
more memory the heap grows accordingly (but doesn't shrink.) For
instance, if you are using 1 MB out of your 2 MB of allocated heap and
need to load 2 more MB, the heap will grow to more than 3 MB, and you
will use 3 MB out of the heap. But when the heap reaches a total
allocated size of 16 MB and your app needs more memory, you get an
OutOfMemoryError.

On Wed, Dec 3, 2008 at 11:30 PM, EboMike [EMAIL PROTECTED] wrote:

 Thanks, Romain. I'm grabbing them from a server, but you're right, if
 anything, I should convert and re-save them in a smaller format before
 caching them locally. Well, I just tried to get it running quickly :)

 One laaast thing - You mentioned that an app has a 16MB heap. How is
 that split up? A Runtime.getRuntime().freeMemory() right on startup in
 the app above gives me about 800KB or so (although the app is later
 able to allocate 1MB to decode an image). I'm not very familiar with
 Dalvik's memory management, how is the whole thing set up?

 -Mike


 On Dec 3, 11:26 pm, Romain Guy [EMAIL PROTECTED] wrote:
 Well you could start by not loading such huge images in a Gallery.
 Even if the recycler was working correctly it is a LOT of data to read
 and to decode. It's also a lot of wasted memory (and it also slows
 drawing down since the bitmaps are drawn rescaled.) You should use
 BitmapFactory.Options or Bitmap.createScaledBitmap to load your image
 pre-scaled to a much more reasonable size.



 On Wed, Dec 3, 2008 at 11:23 PM, EboMike [EMAIL PROTECTED] wrote:

  Thanks a lot for the very quick replies. One last thing: Do you happen
  to have any remote idea about when the next SDK release is scheduled?
  My app is currently running out of memory a lot :)

  On Dec 3, 11:13 pm, Romain Guy [EMAIL PROTECTED] wrote:
  A memory leak is actually totally expected in that case. Gallery, like
  ListView, GridView, etc. uses a recycling heap. Every time a view is
  unused, it is moved to the recycler. Unfortunately, if it's never
  taken out of the recycler...

  On Wed, Dec 3, 2008 at 11:07 PM, EboMike [EMAIL PROTECTED] wrote:

   Thanks a lot, Romain! Question though - even if the gallery is not
   converting the views, why doesn't it release references to them as you
   move away?

   Say, I move from view 0 to view 1, with view 0 being completely off-
   screen, the gallery should remove its reference to view 0 since it is
   no longer needed, and thus allow the gc to free up any memory it
   holds. In fact, when I go back to view 0, I can see that a new view is
   created. So what happened to the old view 0? Even with view conversion
   not working, there shouldn't be memory leaks.

   -Mike

   On Dec 3, 11:04 pm, Romain Guy [EMAIL PROTECTED] wrote:
   I just checked and the bug is simply that Gallery does not convert the
   views. I'll try to fix it as soon as possible.

   On Wed, Dec 3, 2008 at 10:45 PM, EboMike [EMAIL PROTECTED] wrote:

I've already asked this in a href=http://groups.google.com/group/
android-developers/msg/9cdbf47be2505810?hl=enThis thread/a: Here
is a pretty simple Gallery setup. It seems to leak with every image
that's loaded (see the original thread for details).

I'm tempted to file it as a bug, but I want to mention it here first
to make sure I'm not just making a simple mistake in my usage of the
Gallery. Also (as mentioned in another thread), convertView is always
null -- the Gallery never seems to recycle any views. Why?

To make this run, you will need to put a JPG file into the data 
folder
(see code).

package ebomike.memorytest;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;

public class MemoryTest extends Activity {

   Gallery g;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {

   String filePath;

   // NOTE: Make this point to a JPEG file.
   filePath = getFilesDir().getPath();
   filePath += /TEST_IMAGE.jpg;

   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);

   g = (Gallery) findViewById(R.id.Gallery01);
   g.setAdapter(new FullImageAdapter(this, filePath));
   }

   class FullImageAdapter extends BaseAdapter
   {
   Context context;
   String path;

   FullImageAdapter(Context c, String path)
   {
   context = c;
   this.path = path;
   }

   

Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-04 Thread whitemice

Hi Nick

I can see there is a use case for this. If we were to do this, it would be 
through a scary sounding bluetooth permission. This application can connect 
to untrusted Bluetooth devics. We'll have to think about this a little.
I would do it this way:
(1) Application permission: This application can connect to any
untrusted Bluetooth device without asking your permission.

(2) To get this to work the user must manually activate Bluetooth, and
then select an extra check box for Bluetooth Ad Hoc communication
(seeing another scary warning) in the Bluetooth settings.
The user is then shown a list of currently installed applications that
make use of this feature, having to activate (or disable) this feature
for each individual application.

It would be the responsibility of application developer to detect when
this feature is disabled, and then guide the user towards the
Bluetooth settings panel.

(3) Make the Android market a website, and make it searchable by
permission.
This would allow the community to find and strike down applications
that misuse this capability.

I think this would be enough hoops for the user to jump through while
keeping the user in control, and making it more secure than existing
Symbian Bluetooth implementations.


The first step is to get any Bluetooth API out. Let me work on that first :)
I’ve used enough bad Bluetooth stacks to know not to ask you to
hurry ;-)
…But you can put me down as a vested interest if you require some
outside validation in this area.

Thanks for listening
Mark


--~--~-~--~~~---~--~~
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] Network access problem on ubuntu

2008-12-04 Thread taosinker

Hi all:
Now I build the android code on ubuntu, in the build I can launch the
emulator on unbuntu. I met a problem, I cannot connect the website in
the emulator. But under the same network env, the android emulator on
windows xp can connect the website.
I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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: Notification details Activity never receives Intent used to fire it

2008-12-04 Thread Matthias

I'm pretty sure I used FLAG_CANCEL_CURRENT to no avail... passing
different request codes each time was the only way to create a new
intent. I spent a whole day on this combining flags to no avail, until
I tried the workaround by Guillaume.

On 25 Nov., 19:24, Dianne Hackborn [EMAIL PROTECTED] wrote:
 It may or may not be the right thing to do.  If you are not going to use the
 old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the
 existing one so it can be replaced with your new one.

 On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot [EMAIL PROTECTED]



  wrote:
  Yes using request codes is the right thing to do, this is just a
  documentation bug in the end.

  2008/11/25 alex [EMAIL PROTECTED]

  Ok, so I ran into this exact issue too. I need to send different data
  via the extras of the intent, but the old intent with the old extras
  keeps getting delivered unless I pass unique values into the
  mysterious requestCode parameter.

  So this begs the question: is using the requestCode in this way
  kosher?  Is there a better way?

  BTW, I'm using PendingIntents for alarms and notifications.

  On Nov 21, 2:47 pm, Guillaume Perrot [EMAIL PROTECTED] wrote:
   Thanks for your answer, it eventually solves the mystery \o/
   I quoted it in the Issue 863.
 http://code.google.com/p/android/issues/detail?id=863

   On 21 nov, 23:38, Dianne Hackborn [EMAIL PROTECTED] wrote:

Ah you are right, the request code is also part of its identity.

For the nitty gritty details, this file defines a PendingIntent
  maintained
by the system and the full key used to match them:

   http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;.
  ..

On Fri, Nov 21, 2008 at 3:07 AM, Matthias [EMAIL PROTECTED]
  wrote:

 And to further clear up my intentions:

 I have a model class called Event. It represents user activity in
  my
 system (such as rating items or writing messages). These events are
 delivered to the user through NotificationManager. For every such
 event, the NM calls Event.toNotification() and delivers the
 notification.

 Furthermore, I have an activity called EventDetailsActivity. This is
 triggered whenever the user taps on the notification to read the
  event
 info in full length. This implies primarily two things:

 1. I must be able to pass an Event model object to
 EventDetailsActivity whenever the user taps the corresponding
 notification
 2. I must be able to reuse EventDetailsActivity even it is already
 displaying another event (e.g. update it via onNewIntent())

 Thus, in Event.toNotification(), I do this:

    public final Notification toNotification(Context context) {
        Intent intent = new Intent(context,
 EventDetailsActivity.class);
        intent.putExtra(event, this);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                | Intent.FLAG_ACTIVITY_SINGLE_TOP);
        configureIntent(intent); // template method for subclasses

        PendingIntent contentIntent = PendingIntent.getActivity
 (context,
                requestCode++, intent, 0);

        Notification notification = new Notification
 (getNotificationIcon(),
                getTickerText(), getDate().getTime());
        notification.setLatestEventInfo(context, getTitle(), getText
 (),
                contentIntent);

        return notification;
    }

 Hope that clears up my intentions.

 On 21 Nov., 11:14, Matthias [EMAIL PROTECTED] wrote:
  Well, when /do/ PendingIntents match? All I can say is that
  calling
  PendingActivity.getActivity() created a new PendingIntent each
  time I
  called it (I checked the OID in the debugger), and in this new
  object,
  I always store a new Intent object.

  As Guillaume suggested, I solved the problem by calling
  getActivity()
  like this:

  private static int requestCode;
  ...
  pi = PendingIntent.getActivity(context, requestCode++, intent, 0)

  and now everything works as expected. As for the intent itself, I
  instantiated it using FLAG_ACTIVITY_NEW_TASK and
  FLAG_ACTIVITY_SINGLE_TOP.

  On 20 Nov., 22:55, Dianne Hackborn [EMAIL PROTECTED] wrote:

   I am really not clear on exactly what you are doing or
  expecting, but
 one
   thing to watch out for -- when you get a PendingIntent, if there
  is
 already
   a PendingIntent matching the Intent you have been given (NOT
  including
 the
   extras), then you get that PendingIntent, NOT a new one.  So if
  you
 want to
   change the extras you will either need to cancel the existing
  one, or
 modify
   something in the action, type, data, or category so that it
  doesn't
 match
   the existing one.

   This is covered (not very well) in the last paragraph of the
 PendingIntent
   documentation:

 

RE: Fw: [android-developers] Re: Android and bluetooth

2008-12-04 Thread Marcio Alexandroni

Hi,

Another common use for Bluetooth from applications is connecting to mobile
printers through SPP, I use it very much on SFA and other applications that
require printing. G1 (and forthcomings) are very likely to be used by
corporate applications in this kind of automation.

In other operating systems like PalmOS and Windows Mobile, pairing a printer
is nothing more than adding it to the trusted devices list and entering the
PIN. Of course it can be done manually of via BT API. After that, just
acquire a handle to the virtual serial port and send/receive data.

Marcio Alexandroni
www.cialogica.com
w  Tel. 55 11 3717-2345
   Cel. 55 11 9989-8316
[EMAIL PROTECTED] 
 marcioalexandroni

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of whitemice
Sent: Thursday, December 04, 2008 06:55
To: Android Developers
Subject: Re: Fw: [android-developers] Re: Android and bluetooth


Hi Nick

I can see there is a use case for this. If we were to do this, it would be
through a scary sounding bluetooth permission. This application can connect
to untrusted Bluetooth devics. We'll have to think about this a little.
I would do it this way:
(1) Application permission: This application can connect to any
untrusted Bluetooth device without asking your permission.

(2) To get this to work the user must manually activate Bluetooth, and
then select an extra check box for Bluetooth Ad Hoc communication
(seeing another scary warning) in the Bluetooth settings.
The user is then shown a list of currently installed applications that
make use of this feature, having to activate (or disable) this feature
for each individual application.

It would be the responsibility of application developer to detect when
this feature is disabled, and then guide the user towards the
Bluetooth settings panel.

(3) Make the Android market a website, and make it searchable by
permission.
This would allow the community to find and strike down applications
that misuse this capability.

I think this would be enough hoops for the user to jump through while
keeping the user in control, and making it more secure than existing
Symbian Bluetooth implementations.


The first step is to get any Bluetooth API out. Let me work on that first
:)
I’ve used enough bad Bluetooth stacks to know not to ask you to
hurry ;-)
…But you can put me down as a vested interest if you require some
outside validation in this area.

Thanks for listening
Mark





--~--~-~--~~~---~--~~
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 replicate GUI of Android settings menu

2008-12-04 Thread ChisterNordvik

Hi!

I want to make my settings menu look like the one in Android where
they have a heading and a multiline text below the heading for each
listitem. Anyone got the source code for that GUI? :-)
--~--~-~--~~~---~--~~
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: Web Service and Authentication

2008-12-04 Thread Charlie Collins

Well, the question involved kSOAP, which is indeed what most people
use to build a SOAP client on Android (and it's also used on other
mobile platforms). The question was vague, yes, but I believe he is
trying to make a SOAP over HTTP client on Android.

On Dec 3, 1:24 pm, Michael [EMAIL PROTECTED] wrote:
 This is a bit off-topic on an Android development group, as there's no
 Android content.
--~--~-~--~~~---~--~~
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 replicate GUI of Android settings menu

2008-12-04 Thread Mark Murphy

ChisterNordvik wrote:
 I want to make my settings menu look like the one in Android where
 they have a heading and a multiline text below the heading for each
 listitem. Anyone got the source code for that GUI? :-)

I'm assuming you are referring to the preferences screen.

If you literally want the source code for that, it's somewhere over in 
http://source.android.com ... ;-)

However, if you more generally want to know how to create ListViews 
where the rows are not simple strings, but rather any View you choose to 
create, you want to subclass your desired Adapter class and implement 
getView() to return the Views you want.

I have a series of disastrously-formatted blog posts on this topic over 
on AndroidGuys:

http://androidguys.com/?s=fancy+listviewsx=12y=7

The first six were written for the older M5 SDK, though the technique 
still holds up, and the most recent post covers some of the differences 
between the M5 SDK and the newer SDKs in this area.

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

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



[android-developers] zipped android source code

2008-12-04 Thread sal

Hi All,

Is there any location on Web where i can get a zipped version of
android source code (though not fully , just a application part ).

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

2008-12-04 Thread AndroidGeek


Or just select any one of them No Email  or Unsubscribe from Edit
my membership screen.
;)
--~--~-~--~~~---~--~~
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 get a transparent background for icons/shortcuts?

2008-12-04 Thread AndroidGeek

I think Adobe Photoshop will help... as you are graphic designer you
can create a icons
Also I have experienced that many a times the bit depth causes problem
try different icons with different bit depth.
Hope it helps.
--~--~-~--~~~---~--~~
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] Does anyone need an Android Developer Job??

2008-12-04 Thread Andrew Freundt

I have been tasked with hiring six to eight Android Application
Developers in Richmond, VA. These are permanent (salaried) positions.
How do I find qualified people? Do you have any recommendations on
where to look? If so, I can be e-mailed at
[EMAIL PROTECTED]
or called at 1-800-452-7391. I would be happy to discuss the details
with anyone who may be interested. Thanks in advance for your time
and
help!

Regards,


Andrew Freundt


--~--~-~--~~~---~--~~
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] BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian

Hi guys !

I'm looking for a way to build a picture from an array of bytes

here is the way I use to store my picture (read from a ZIP file) into
a byte[] :


Java source code:
--
 final ZipInputStream zis = new ZipInputStream(new FileInputStream
(file));


  ZipEntry ze;
  byte buf[];
 // on all the files from the zip.
 while (null != (ze = zis.getNextEntry())) {

   buf = new byte[(int)ze.getSize()];

   int off = 0; // start writing
   int len = buf.length;// number of byte to write
   int read = 0;// number of read elements

   while ( (len0)  (read = zis.read(buf, off, len))0 )
{
off += read;
len -= read;
   }
//then I store buf for each file I wanna keep in
memory
}
--


This code works very well for a text file, I can read and display
it...

I get my picture back using :
Java source code:
--
Bitmap bitmap = BitmapFactory.decodeByteArray(buf,0,buf.length);
--

but the resulting picture is altered. It looks like it miss some
pixels and the picture is leaning.
(if it miss 50 pixels on each lines, then the second line is 100
pixels moved, then 150 etcaetera... so the picture is leaning and the
last horizontal line of pixels is uncomplete (it finish with black))
Am I clear ?

Do you know the reason of this bug?

I also tried to get my picture back through an InputStrem:

JAVA source code:
--
InputStream is = new ByteArrayInputStream(buf);
Bitmap bitmap = BitmapFactory.decodeStream(is);
--

but I got the same result.


My array of bytes is correct, I can get my picture  back by writing it
in an existing file /data/tmp.jpg using :

Java source code:
--

 File tmp = new File(/data/tmp.jpg);
 if(tmp.exists()) {
  FileOutputStream toto= new FileOutputStream(tmp);
  toto.write(buf);
 }
--


so the problem come probably from the BitmapFactory.decode*()
methods...

can somebody help me ?

--~--~-~--~~~---~--~~
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] delete carriers table in TelephonyProvider

2008-12-04 Thread forrestxu

Hi,

Please help me to understand if I delete carriers table in
TelephonyProvider. What will be happened?

I use code below:

try
{
Uri mContacts = 
Uri.parse(content://telephony/carriers);
ctx.getContentResolver().delete(mContacts, null,null);
}
catch(Exception e)
{

}

the table is created using sql:

 db.execSQL(CREATE TABLE  + CARRIERS_TABLE +
(_id INTEGER PRIMARY KEY, +
name TEXT, +
numeric TEXT, +
mcc TEXT, +
mnc TEXT, +
apn TEXT, +
user TEXT, +
server TEXT, +
password TEXT, +
proxy TEXT, +
port TEXT, +
mmsproxy TEXT, +
mmsport TEXT, +
mmsc TEXT, +
type TEXT, +
current INTEGER););

I don't know the table is for what kind of service. My best guess is
for mms. If i delete this table, mms does not work. Am I right?

Thanks,
Forrest
--~--~-~--~~~---~--~~
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-12-04 Thread Cristina

Hi Joe,

Firt of all, thanks for the code.
However I have tested your code with the emulator and does not work
for me. So there must be something I am doing wrong. Have you checked
that with the emulator or with the G1? I am doing my tests in the
emulator because I still don't hava a phone yet.
Can you provide the code you use to send de binary SMS and to receive
it in the broadcast receiver?

Thanks
Cristina

On Dec 4, 11:22 am, joe.scheidegger [EMAIL PROTECTED]
wrote:
 Hi all

 i have found the way how you can receive a binary sms addressed to an
 application port!
 You must create a BroadcastReceiver and then you must put the
 following in the manifest file:

 receiver android:name=.YourBroadcastReceiver
     intent-filter
         action
 android:name=android.intent.action.DATA_SMS_RECEIVED /
         data  android:scheme=sms/
         data android:host=localhost/
         data android:port=your port/
     /intent-filter
 /receiver

 and then you must add the following permission:
 uses-permission android:name=android.permission.RECEIVE_SMS/uses-
 permission

 have fun!
 cheers
 joe
--~--~-~--~~~---~--~~
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 replicate GUI of Android settings menu

2008-12-04 Thread Guillaume Perrot

Just use a PreferenceActivity and your settings will look the same as
the G1.
You can describe settings in XML with special tags, you can look at
APIDemos.

On Dec 4, 1:20 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 ChisterNordvik wrote:
  I want to make my settings menu look like the one in Android where
  they have a heading and a multiline text below the heading for each
  listitem. Anyone got the source code for that GUI? :-)

 I'm assuming you are referring to the preferences screen.

 If you literally want the source code for that, it's somewhere over 
 inhttp://source.android.com... ;-)

 However, if you more generally want to know how to create ListViews
 where the rows are not simple strings, but rather any View you choose to
 create, you want to subclass your desired Adapter class and implement
 getView() to return the Views you want.

 I have a series of disastrously-formatted blog posts on this topic over
 on AndroidGuys:

 http://androidguys.com/?s=fancy+listviewsx=12y=7

 The first six were written for the older M5 SDK, though the technique
 still holds up, and the most recent post covers some of the differences
 between the M5 SDK and the newer SDKs in this area.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Webkit WebView soft error

2008-12-04 Thread Fred Grott(shareme)

I have a weird error in webkit webview and its soft error.

In my html view two image items appear reverse order horizontially


The only thing I can reason is to take off the align=left off every
image item except the first one although no other image item is in
reverse order.

I have only tested in emulator thus far


Anybody else run into the same quirk?
--~--~-~--~~~---~--~~
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: Bitmap.getPixels()

2008-12-04 Thread Robert Green

Did you mean partially transparent green or fully transparent?

On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote:
 I painted a transparent green curve on top of a background bitmap.
 When I use Bitmap.getPixels() to get the result into byte array, I
 always get a black curve.  The curve position is correct but color
 isn't.  Is there anything I need to do before calling Bitmap.getPixels
 ()?

 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: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian


ps : my picture file is a .jpg file, encode with the flex jpg encoder.
--~--~-~--~~~---~--~~
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: Web Service and Authentication

2008-12-04 Thread Michael


There have been a lot of posts about dealing with self-signed SSL
certificates in the past, do a search through the archives.

What it comes down to is that you're going to have to make your own
key store for your app, rather than using the system one (which cannot
verify your certificate).  Probably you should warn the user about the
cert being self-signed, and ask them if they want to accept it.

- michael
--~--~-~--~~~---~--~~
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.decode*() = bug ?

2008-12-04 Thread Guian

the probleme was:  I tried to use this picture as an OpenGL texture
but, its width was 1023 with is not a power of 2...

it works with the same picture, reSize to 1024.
--~--~-~--~~~---~--~~
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: Distorted Images taken from Camera

2008-12-04 Thread Mark K

  I have my own camera app, works just fine on the G1, post the code
maybe?
Mark

On Dec 3, 1:42 pm, ryan84c [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to develop an Android app that will allow users to take
 pictures. I've tried just about every sample out there, but one
 problem I keep having is all my image are being distorted. Has anyone
 ever had this problem? This only happens when I take a picture using
 my source code. The camera works fine when I run the camera app and
 take pictures with it. But any code of mine produces bad images.

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



[android-developers] Re: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian

in the OpenGL android API  =

Whether or not bitmap can have non power of two dimensions depends on
the current OpenGL context.

I load my OpenGL context using :

mEglContext = mEgl.eglCreateContext(mEglDisplay,
mEglConfig,EGL10.EGL_NO_CONTEXT, null);


do you know what do I have to use i order to load non power of two
dimensions bitmap?
--~--~-~--~~~---~--~~
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: Need help using hat to track down memory usage

2008-12-04 Thread Peter Jeffe

Swhen we can we expect to have a memory profiler for Android?
I consider it a basic requirement for a mobile development environment
to allow memory profiling.  Can you explain why you broke the hprof
format if you weren't going to release a tool that understands your
format?  How about just releasing a converter so we can use Memory
Analyzer or any other tool of our choice?

-- Peter


On Nov 6, 6:24 pm, fadden [EMAIL PROTECTED] wrote:
 The output isn't compatible.  Unfortunately we were not able to
 include the modified hat tool in the 1.0 source release.
--~--~-~--~~~---~--~~
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.decode*() = bug ?

2008-12-04 Thread Guian

I should create a new topic for this new question.
--~--~-~--~~~---~--~~
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 context = how to load non power of two dimension bitmap?

2008-12-04 Thread Guian

in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
( http://code.google.com/android/reference/android/opengl/GLUtils.html
)
 we can read=

Whether or not bitmap can have non power of two dimensions depends
on
the current OpenGL context.

I load my OpenGL context using :
mEglContext = mEgl.eglCreateContext(mEglDisplay,
mEglConfig,EGL10.EGL_NO_CONTEXT, null);

do you know what do I have to do in order to load non power of two
dimensions bitmap?
--~--~-~--~~~---~--~~
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] Is Bitmap.compress thread safe?

2008-12-04 Thread webmonkey

Because the Bitmap.compress(Bitmap.CompressFormat format, int quality,
OutputStream stream) function can sometimes take a long time I am
calling it in a separate thread with low priority. During this time I
am drawing the same bitmap in the UI thread using Canvas.drawBitmap
(Bitmap bitmap, float left, float top, Paint paint) at 30fps.

Although the bitmap is mutable I am not writing to the bitmap during
this period. It works fine but I want to make sure that it is safe to
do this.

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: Newbe question - Application folders, how to?

2008-12-04 Thread Anders Rundgren

Thanx!
But I wanted to create a folder in the application drawer (or what it
should be called) that also should not look like a folder but as an
app which would if pressed open the folder with the real apps.  Isn't
that what most mult-app installs need?

On Nov 29, 11:59 am, Romain Guy [EMAIL PROTECTED] wrote:
 Long press an empty space on Home (or click Menu  Add) then choose
 Shortcut  Folder. You can drop applications in the newly created
 folder.

 On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren

 [EMAIL PROTECTED] wrote:

  In other operating systems you can typically define a folder and when
  clicked it opens a view with applications.

  I may be blind, but I don't see any of this using the emulator and SDK
  1.0.

  Is the ApiDemos the only GUI-way you can create a suite of associated
  applications?

 --
 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: zipped android source code

2008-12-04 Thread lucky4me

Maybe via GitWeb web interface, download snapshots, e.g.
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=HEAD;sf=tgz

On Dec 4, 5:26 pm, sal [EMAIL PROTECTED] wrote:
 Hi All,

 Is there any location on Web where i can get a zipped version of
 android source code (though not fully , just a application part ).

 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] ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt

The online docs for ContentProvider/SQLiteDatabase.delete() do not
document the third parameter String[] whereArgs.

I assume that the idea is that the second parameter (the where clause)
could contain replaceable parameters in the form of question marks (?)
and the Strings contained in the whereArgs array would replace the
question marks in the where clause.

Could someone verify/debunk this assumption?
--~--~-~--~~~---~--~~
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: Cannot delete rows from sqlite database

2008-12-04 Thread Jack C. Holt

See
http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

On Nov 17, 3:28 pm, techvd [EMAIL PROTECTED] wrote:
 Hi,

 I'm having a strange issue deleting rows from a sqlite database.
 Here's the code snippet:

         mDb.beginTransaction();
         int nRows = mDb.delete(mytable, KEY_ITEM + = + rowId,
 null);
         mDb.endTransaction();
         return nRows  0;

 The database is opened for write. The code above executes perfectly;
 it even returns the number of rows deleted. However, the rows are
 still in the table (even after I exit the app restart, etc.). Am I
 missing anything here. The rest of the code is boilerplate and I can
 read the data from the tables fine.

 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] Android Crash Files

2008-12-04 Thread Protocol-X

Anyone know where to find the files produced anytime android crashes?
is ther e a place on the device. does android log its own crash logs
for system crashes not 3rd part apps?
--~--~-~--~~~---~--~~
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: Eclipse Error while adding ddms

2008-12-04 Thread Xavier Ducrohet

On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi ,

 That error gone, i separately executed all the scripts...
 Now few more errors are like

 assert cannot be resolved   client.java
 ddmlib/src/com/android/ddmlib

Can you make sure you are setup with compiler compliance level 5.0? I
looks like you're building in 1.4 or lower...

 Button cannot be resolved to a type AllocationPanel.java
 ddmuilib/src/com/android/ddmuilib

This would mean you don't have SWT in the dependencies. Is this in the
ddms plugin project or in the ddmuilib project?

 Can only iterate over an array or an instance of java.lang.iterable
 AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

This is probably a compiler level issue too.

Xav

--~--~-~--~~~---~--~~
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: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt

Does this fall under the Note About API Documentation sticky post?
i.e., since it isn't documented, don't use it?

On Dec 4, 9:52 am, Jack C. Holt [EMAIL PROTECTED] wrote:
 The online docs for ContentProvider/SQLiteDatabase.delete() do not
 document the third parameter String[] whereArgs.

 I assume that the idea is that the second parameter (the where clause)
 could contain replaceable parameters in the form of question marks (?)
 and the Strings contained in the whereArgs array would replace the
 question marks in the where clause.

 Could someone verify/debunk this assumption?
--~--~-~--~~~---~--~~
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] Change Tab Widget icon for currently active tab

2008-12-04 Thread mscwd01

This is not so much a problem, more a question about how to achieve
something...

I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
exact copy but in grayscale.

What I want to do is have the coloured version of the icon displayed
when the tab is active i.e. being viewed. Otherwise I want the other
inactive tabs to show the grayscale version of their icon - and change
to the coloured version if they are clicked.

So I want a tab to show a coloured icon if active and a grayscale icon
if inactive...

Any ideas how to achieve this anyone?

I have played around with the TabHost onTabChangeListener but havent
been able to find a solution.

Ideally I need something like:

tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {

   public void onTabChanged(String arg0) {
int selectedTab = tabs.getCurrentTab();

// Update newly selected tab to display
colorful icon
// Update previously selected tab to
display greyscale icon
   }
  });

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] sending email

2008-12-04 Thread dilu

Hi
i want to develop an aplication which can send email .so can any one
provide me sample code or any link that is useful.I got one site
davanum srinivas blog,but tht code is too old and full code is not
available right now,they have removed it from site.So provide me some
link.

Thankss
dilu
--~--~-~--~~~---~--~~
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 best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy

I installed the Android SDK and Eclipse and built some simple apps
using the new Andriod Project wizard.  Now I would like to build/debug
some of the nice apps included with the SDK (samples\ApiDemos\src\com
\example\android\apis\app) .  For example, there's a
PreferencesFromCode.java sample I would like to build.  I started
going down the road of creating a new app and copying the sample code
and resource files into it but that's just not fun (and I assume since
Eclipse is the recommended platform that there's got to be a slick way
to do this).  Thanks.

What's the best method to import and build these SDK sample apps?
--~--~-~--~~~---~--~~
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 see logs on PC.from connected G1 device

2008-12-04 Thread achhabra1...@gmail.com

Hi,

 I want to see logs from my application,. Using logcat .

I am able to do adb Logcat *.*  on emulator and view logs.

But there is some problem in viewing logs from device. My
Device is attached with PC on USB.

and I am using adb devices command and

I am getting List Of devices attached” but there is no
listing available.


It seems there is a problem with device connection with pc;
Please let me know if I need to do something else .. to properly
attach my device with pc. So that i can get logs from my application.


Thanks
Amit





--~--~-~--~~~---~--~~
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 best build Android SDK samples in Eclipse?

2008-12-04 Thread Xavier Ducrohet

Hello,

just use the new project wizard, and select create project from
existing source.
You can then point the wizard to the ApiDemos folder.

Xav

On Thu, Dec 4, 2008 at 11:26 AM, Freddy [EMAIL PROTECTED] wrote:

 I installed the Android SDK and Eclipse and built some simple apps
 using the new Andriod Project wizard.  Now I would like to build/debug
 some of the nice apps included with the SDK (samples\ApiDemos\src\com
 \example\android\apis\app) .  For example, there's a
 PreferencesFromCode.java sample I would like to build.  I started
 going down the road of creating a new app and copying the sample code
 and resource files into it but that's just not fun (and I assume since
 Eclipse is the recommended platform that there's got to be a slick way
 to do this).  Thanks.

 What's the best method to import and build these SDK sample apps?
 


--~--~-~--~~~---~--~~
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] Convert AMR-NB/WB to wav

2008-12-04 Thread ste

Are there any available java converters similar to SoX that can
convert the audio recorded by a microphone to another format, like
wav?

--~--~-~--~~~---~--~~
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: adb devices showing device offline

2008-12-04 Thread bloodycorner

The drivers installed automatically by Vista are not the ones you
need.

You need to enable usb debugging on your G1, then point it to the
drivers when it prompts you for them

More details below:
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/



On Nov 2, 12:59 am, stephen.chambers [EMAIL PROTECTED]
wrote:
 I'm also rather new to this, but I can't seem to get the actual G1
 device to show up when running adb devices on Vista. I don't know if
 this is the same problem or not. I rebooted my PC as well as the
 device. ADB is running because adb devices shows the emulator when
 it is running. All I have to do is connect through the USB, right?
 Vista recognized the device and thinks it downloaded the driver
 correctly. When I use File Explorer, I can look around on the device
 itself (although I expected a lot more than just three directories).
 Anyone seen this kind of thing before? Everything had been going
 swimmingly up until this point.

 Stephen

 On Oct 31, 2:17 pm, Rob Franz [EMAIL PROTECTED] wrote:

  RichardI ran into multiple instances of the device as well.  Rebooting fixes
  it.  It sounds like adb is not properly removing the entry when the device
  is disconnected - I had the phone plugged in via USB and unplugged several
  times before reconnecting.

  This was under XP too.

  Rob

  On Fri, Oct 31, 2008 at 1:48 PM, jarkman [EMAIL PROTECTED] wrote:

   Al - I am running on XP, and seeing ADB behaving rather erratically
   with my G1.

   It will sometimes show it online, as it should, sometimes show it
   offline, and sometimes show multiple (2-10) instances of it, all
   offline. Killing and restarting the server seems to render it
   temporarily sensible, but only temporarily. It rarely works for long
   enough to start a debug session from Eclipse, and often hangs Eclipse
   if I look at the Devices tab.

   I have no idea how to fix it, but it seems to me there is probably
   something adrift in the G1 device driver. I'll let you know if I find
   any more.

   Richard
--~--~-~--~~~---~--~~
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 best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy

Great thanks.  I was trying to add each project individually.  I
didn't realize the ApiDemos were all in a single project starting at
the samples\ApiDemos folder.

Thanks for the tip!  Works great now.

On Dec 4, 11:51 am, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 Hello,

 just use the new project wizard, and select create project from
 existing source.
 You can then point the wizard to the ApiDemos folder.

 Xav



 On Thu, Dec 4, 2008 at 11:26 AM, Freddy [EMAIL PROTECTED] wrote:

  I installed the Android SDK and Eclipse and built some simple apps
  using the new Andriod Project wizard.  Now I would like to build/debug
  some of the nice apps included with the SDK (samples\ApiDemos\src\com
  \example\android\apis\app) .  For example, there's a
  PreferencesFromCode.java sample I would like to build.  I started
  going down the road of creating a new app and copying the sample code
  and resource files into it but that's just not fun (and I assume since
  Eclipse is the recommended platform that there's got to be a slick way
  to do this).  Thanks.

  What's the best method to import and build these SDK sample apps?- 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: Send message

2008-12-04 Thread andrex

I solved, Just look the class notification, and notificionManager, if
somebody has a quesuion about how, just ask
--~--~-~--~~~---~--~~
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: sending email

2008-12-04 Thread Bill Napier

Searching this forum for the term send email gave me this mail:

http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gstq=sending+email#c1d0be41174b4999

Which has some example code that you could use.

On Thu, Dec 4, 2008 at 10:51 AM, dilu [EMAIL PROTECTED] wrote:

 Hi
 i want to develop an aplication which can send email .so can any one
 provide me sample code or any link that is useful.I got one site
 davanum srinivas blog,but tht code is too old and full code is not
 available right now,they have removed it from site.So provide me some
 link.

 Thankss
 dilu
 


--~--~-~--~~~---~--~~
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 get ICCID ?

2008-12-04 Thread mianor

Hi,

I'm looking for a way to retrieve the ICCID from the SIM card to
authenticate a user.
When googling it, it appears there was a class
android.telephony.TelephonyProperties with the property PROPERTY_ICCID
in a Android beta version.
Google removed this class from the current release. Do you know if
there's another alternative to retrieve this information?

Thanks
Romain

--~--~-~--~~~---~--~~
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] Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread suneelkumar d
Hi ,
Can you please clear my understanding as mentioned below..

The interface between RIL.java and RIL daemon
as i understand from the documentation that it is  a JNI interface.

Is there any good documentation for Telephony and SIM interface with RIL
layer?

Thanks
SuneelD

--~--~-~--~~~---~--~~
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] Conference call

2008-12-04 Thread Rockingteam

Hi All,

Android based phone allows us to make conference call by merging
calls. Is it possible to initiate 2 or more calls and merge them
through an application, ie., by code? If so then how to proceed?

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: Network access problem on ubuntu

2008-12-04 Thread Brian

Probably you forgot to configure APNs.
Go to Settings - Wireless controls - Mobile networks - Access Point
Names
Press Menu to configure a new APN.

On 12月4日, 下午5時01分, taosinker [EMAIL PROTECTED] wrote:
 Hi all:
 Now I build the android code on ubuntu, in the build I can launch the
 emulator on unbuntu. I met a problem, I cannot connect the website in
 the emulator. But under the same network env, the android emulator on
 windows xp can connect the website.
 I don't know the reason. Who can help me?

--~--~-~--~~~---~--~~
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] Storing pictures in internal storage.

2008-12-04 Thread Brian

Hi all,

The default behavior seems to store the pictures captured by camera
into the external storage (the SD card). Besides, the Camera
application won't even work if there is no SD card inserted. Why?
Is there any possibility for users to store the captured pictures in
the internal storage?
Probably a prompt for storage location before saving would help users
know and decide where the captured picture is.

Thanks for anyone help on this.

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



AW: [android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread visionera gmbh
hi,

you have to use setTransactionSuccessful() as in

int nRows = 0;
mDb.beginTransaction();
try {
  nRows = mDb.delete(mytable, KEY_ITEM + = + rowId,null);
  mDb.setTransactionSuccessful(); // implies commit at endTransaction
} catch( SQLException anyDbError }
  // error logging ...
} finally {
  mDb.endTransaction();
}
return nRows  0;


worx for me
marcus




Von: Jack C. Holt [EMAIL PROTECTED]
An: Android Developers android-developers@googlegroups.com
Gesendet: Donnerstag, den 4. Dezember 2008, 19:03:19 Uhr
Betreff: [android-developers] Re: Cannot delete rows from sqlite database


See
http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

On Nov 17, 3:28 pm, techvd [EMAIL PROTECTED] wrote:
 Hi,

 I'm having a strange issue deleting rows from a sqlite database.
 Here's the code snippet:

 mDb.beginTransaction();
 int nRows = mDb..delete(mytable, KEY_ITEM + = + rowId,
 null);
 mDb.endTransaction();
 return nRows  0;

 The database is opened for write. The code above executes perfectly;
 it even returns the number of rows deleted. However, the rows are
 still in the table (even after I exit the app restart, etc.). Am I
 missing anything here. The rest of the code is boilerplate and I can
 read the data from the tables fine.

 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] Problem Launching Emulator after integrating codec

2008-12-04 Thread Yogi

Hi All,

I have facing problem in launching emulator from the source code.
I have also set the environment variable ANDROID_PRODUCT_OUT.
I am getting the following error message,

~/bin# out/host/linux-x86/bin/emulator
Cannot locate system directory, which contains 'system.img' and other
system files.  Please specify one by using '-system directory' or by
defining the environment variable ANDROID_PRODUCT_OUT.

After that i tried with the following command :

~/bin# out/host/linux-x86/bin/emulator -system out/target/product/
generic
Cannot find file: out/target/product/generic/kernel-qemu
Please specify a valid -kernel file

I am still getting the error message.
I have integrated my codec library onto android.Is this causing the
problem?
Do i need to allocate memory in emulator?
Please help me out.

Thanks in advance,
Yogesh

--~--~-~--~~~---~--~~
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] intent-filter for addContact and editContact ?

2008-12-04 Thread jaspher

hello

I'm looking for a intent-filter which can start my BroadcastReciver
when somebody adds a new contact or edit a contact. Unfortunately I
couldn't finde something like that. Does it exist?
If not how can I get a Notification when somebody added a new contact
or something like that?
thanks in advance

jaspher

--~--~-~--~~~---~--~~
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] regarding Googlenav and xmpp packages

2008-12-04 Thread Pratyush Chandra Malneedi a.k.a Vikky

Hai -- where can i find the classes related to googlenav and xmpp ? I
did google every where but i couldnt see them -- are they from the old
sdk

can some one please help me

I have seen some applications online using these classes in the import
statements

import com.google.googlenav
import com.google.xmpp.*;


Thanks
pratyush

--~--~-~--~~~---~--~~
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] Screen on/off Intents Can't Be Declared in AndroidManifest?

2008-12-04 Thread Carter

I'm trying to detect when the phone's screen turns on and off with the
SCREEN_ON and SCREEN_OFF Intents.  A BroadcastReceiver declared in the
AndroidManifest doesn't work with these screen on/off Intents, but
instantiating a BroadcastReceiver programatically at runtime does
work.

As far as troubleshooting goes: my AndroidManifest BroadcastReceiver
is properly receiving other Intents, such as for phone boot.  There is
no helpful information in LogCat.  And this isn't a permissions issue,
since it works when declared programatically.

There are no explanations in the JavaDocs (e.g. its not like the
battery changed Intent which cannot be declared in the Manifest),
although when searching through the Android source I discovered that
none of the Android OS services declare interest this particular
Intent in XML either.

So any ideas why I can't declare SCREEN_ON and SCREEN_OFF in the
AndroidManifest?

--~--~-~--~~~---~--~~
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] Tetris Game Clone - Ready to download - Any comment is welcomed

2008-12-04 Thread g1port.com



Hi guys,

Here is probably the first read-to-download Tetris clone for Android
G1.

Any comment, bug, advice is highly welcomed.

Thank you in advance.

APK:
http://www.g1port.com/application_bin/tetris_g1Port_demo_sgn.apk

(sorry it is a demo version for now)

Web Site:
http://www.g1port.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] Debugging applications with Google MAP api on an actual device

2008-12-04 Thread BobW

When I run my map application in the debugger, I can see the map on
the emulator (I have a MAP key for my debugger from Google), but I
can't see it from my actual device.
I can get a release key from Google, and sign a apk with my
certificate, but I am not sure how to install it on the device or how
to debug the application on the actual device.

Any advice would be appreciated.

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] How to explicitly establish connection to the underlying GPRS or WiFi?

2008-12-04 Thread Qualyxx

In Window Mobile or Brew, the application has to make a
ConnMgrEstablishConnection call to connect to the underlying data
network. I don't see such API exists in Android.

The question is:  when is the the network connection with the
underlying data network established? when the first Socket connect
call is made? when the browser makes a URL request? And when does it
decide to close the network connection and is there an API to
accomplish that?

The android.net.ConnectivityManager seems to provide network status
but no explicit calls to open and end the data connection to the
network.

Any hints would be appreciated.

Thanks,

Yang

--~--~-~--~~~---~--~~
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] kSOAP2 with SDK1.0

2008-12-04 Thread Smith, Miles J (DOH)
I'm having a helluva time trying to get ksoap2 working with Android.

All the samples I see (including the modified .jar with
AndroidHttpTransport in it) fail because of the relocation of
org/apache/commons/httpclient/SimplehttpconnectionManager.

Can someone provide me with a tutorial, sample, anything that will show
me how to at least get the library working correctly?

It seems like a major oversight for Google to not include some way of
parsing WS correctly!

--~--~-~--~~~---~--~~
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: Play Video Files in Android

2008-12-04 Thread brian

Do this:

MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
mp.prepare();
mp.start();

Brian

--~--~-~--~~~---~--~~
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] Alert on menu select

2008-12-04 Thread bo
Hi all,

I'm trying to display pop-up alert when user clicks on menu option that has
not been implemented yet (this is try it app so please do not tell me that
I should hide or disable the opt). The dialog gets built fine but on
dlg.show() I get the following exception
android.view.WindowManager$BadTokenException: Unable to add window -- token
null is not for an application

Here's calling code from Activity#onOptionsItemSelected

case R.id.report_menu_3days:
ReportUtils.alert(getBaseContext(),
R.string.err_not_implemented);
return super.onOptionsItemSelected(item);

And here's ReportUtils#alert method

public static void alert(Context context, int messageId) {
Builder bldr = new
AlertDialog.Builder(context).setTitle(messageId).setCancelable(true);
OnClickListener listnr = new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
};
bldr.setPositiveButton(OK, listnr);
bldr.show();
}

I suspect that I'm getting this since by the time bldr#show() is called I'm
still within a menu UI but how do I do it otherwise?

Bob

--~--~-~--~~~---~--~~
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] Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

Hi all,

I'm using a helper thread to post data back to a web site. What I
notice is that I'm
getting an Application Not Responding back in the main thread even
though it's
not doing anything other than interrupting the helper thread to wake
up. If the
amount of data in the post is small (~ couple hundred bytes), I don't
have a
problem, but when it gets moderately large (~ 10kb) it reliably stalls
the main
UI thread and gets (appropriately) an ANR. Even weirder is that if I
time from
when I start the post to when it receives the entire reply (ie, using
Date().getTime())
in the helper thread, it shows that it's only taking about .5 seconds
to complete,
even though it  takes ~10 seconds to become responsive again.

This *only* seems to be the case writing the post data. If I do a post
of a small
amount of data with a large amount of data coming back from a web
site, the
app remains responsive and unlike the above problem, the timing
numbers in
the thread agree with how long it actually took.

FWIW, I'm using HttpURLConnection to create and read/write the data,
and
I'm aware that I need to use Handler to affect the UI from the helper
thread.
Also: this is on the G1 hardware. I've also fiddled with priorities,
etc, to
no avail, so I'm pretty stumped as to why the helper thread is
interacting
with the UI thread.

Mike

--~--~-~--~~~---~--~~
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: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru

Space on internal storage is very very tight, and users are guaranteed
to have an SD card with their G1.

JBQ

On Thu, Dec 4, 2008 at 12:41 AM, Brian [EMAIL PROTECTED] wrote:

 Hi all,

 The default behavior seems to store the pictures captured by camera
 into the external storage (the SD card). Besides, the Camera
 application won't even work if there is no SD card inserted. Why?
 Is there any possibility for users to store the captured pictures in
 the internal storage?
 Probably a prompt for storage location before saving would help users
 know and decide where the captured picture is.

 Thanks for anyone help on this.

 


--~--~-~--~~~---~--~~
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: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

On Thu, Dec 4, 2008 at 2:25 PM, Justin (Google Employee) [EMAIL PROTECTED] 
wrote:

 My guess is that you're calling Thread.run() from the UI thread. This
 will execute the thread in the UI thread. You need to call Thread.start
 () for it to execute in its own thread.

No, I'm definitely calling .start (), and it's definitely running as a
background
thread otherwise doing the same thing with a little post data and lots
of post response wouldn't work either. That's why I don't understand this
because it seems to correlate with the writing of http post data and nothing
else. Which doesn't make any sense to me.

Mike

 Let me know if this isn't the issue.

 Cheers,
 Justin
 Android Team @ Google

 On Dec 4, 1:33 pm, enervatron [EMAIL PROTECTED] wrote:
 Hi all,

 I'm using a helper thread to post data back to a web site. What I
 notice is that I'm
 getting an Application Not Responding back in the main thread even
 though it's
 not doing anything other than interrupting the helper thread to wake
 up. If the
 amount of data in the post is small (~ couple hundred bytes), I don't
 have a
 problem, but when it gets moderately large (~ 10kb) it reliably stalls
 the main
 UI thread and gets (appropriately) an ANR. Even weirder is that if I
 time from
 when I start the post to when it receives the entire reply (ie, using
 Date().getTime())
 in the helper thread, it shows that it's only taking about .5 seconds
 to complete,
 even though it  takes ~10 seconds to become responsive again.

 This *only* seems to be the case writing the post data. If I do a post
 of a small
 amount of data with a large amount of data coming back from a web
 site, the
 app remains responsive and unlike the above problem, the timing
 numbers in
 the thread agree with how long it actually took.

 FWIW, I'm using HttpURLConnection to create and read/write the data,
 and
 I'm aware that I need to use Handler to affect the UI from the helper
 thread.
 Also: this is on the G1 hardware. I've also fiddled with priorities,
 etc, to
 no avail, so I'm pretty stumped as to why the helper thread is
 interacting
 with the UI thread.

 Mike
 


--~--~-~--~~~---~--~~
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: Largish HTTP Post vs. ANR

2008-12-04 Thread Mark Murphy

enervatron wrote:
 FWIW, I'm using HttpURLConnection to create and read/write the data,

Have you tried switching to the HTTPComponents API in Android? It's 
possible the problem is limited to the implementation of 
HttpURLConnection, and your problem will go away by using another HTTP API.

-- 
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: Bitmap.getPixels()

2008-12-04 Thread jman

It's 50% transparent, i.e. alpha channel is 0x80, paint color is
0x8000ff00


On Dec 4, 8:52 am, Robert Green [EMAIL PROTECTED] wrote:
 Did you mean partially transparent green or fully transparent?

 On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote:

  I painted a transparent green curve on top of a background bitmap.
  When I use Bitmap.getPixels() to get the result into byte array, I
  always get a black curve.  The curve position is correct but color
  isn't.  Is there anything I need to do before calling Bitmap.getPixels
  ()?

  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: invoking com.android.internal.*

2008-12-04 Thread dreamerBoy

Yes, I know about this URL and have downloaded much of the source
code.  The delicate problem is how to build in access to the internal
classes that I need and have them be invoked correctly by Android.
Question is, how to do this without in effect rolling your own version
of Android i.e., doing a full build ... after all, (this probably
includes Linux), there are 8 million lines of code in Android.  This
would likely turn into a project unto itself.

I have an old android.jar from version 0.9 with the internal classes
available.  When I try to use that, the Eclipse aapt environment
immediately figures out what I'm trying to do, fails my attempt, and
gives me a snarky message saying that I'm going to have problems
trying to do this.

Monsieur Queru - any comment?

Thanks

dreamer

On Dec 3, 10:10 am, Ash [EMAIL PROTECTED] wrote:
 Use GIT to checkout the source code and add the internals paths you
 need to your application.

 //android.git.kernel.org/platform/frameworks/base/telephony is what
 you are looking for, I think.
--~--~-~--~~~---~--~~
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: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru

You're right, I actually meant users are guaranteed to have received
an SD card with their G1.

Soldering the SD card in the G1 sounds like an elegant way to solve
the issue about the lack of internal storage :)

JBQ

On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy [EMAIL PROTECTED] wrote:

 Jean-Baptiste Queru wrote:
 Space on internal storage is very very tight, and users are guaranteed
 to have an SD card with their G1.

 To be fair, users are guaranteed that they *can have* an SD card in
 their G1. That is not the same as saying there is always an SD card
 installed in the G1, as SD cards are removable and can be misplaced,
 used in other equipment, eaten by gerbils, etc.

 I'm not quibbling with the decision vis a vis the operation of the
 Camera app, but I also don't want developers thinking the SD card is
 soldered into the G1 or something.

 --
 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: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier

I would start looking here:

http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,
boolean, android.database.ContentObserver)

with ContentObserver.registerContentObserver which sounds like it
should do what you want.  I haven't used the function yet, so you may
have to mess with it.  Please report back you results so others can
know the answer too.  Thanks!

Bill

On Thu, Dec 4, 2008 at 6:11 AM, jaspher [EMAIL PROTECTED] wrote:

 hello

 I'm looking for a intent-filter which can start my BroadcastReciver
 when somebody adds a new contact or edit a contact. Unfortunately I
 couldn't finde something like that. Does it exist?
 If not how can I get a Notification when somebody added a new contact
 or something like that?
 thanks in advance

 jaspher

 


--~--~-~--~~~---~--~~
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: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Mark Murphy

Jack C. Holt wrote:
 The online docs for ContentProvider/SQLiteDatabase.delete() do not
 document the third parameter String[] whereArgs.
 
 I assume that the idea is that the second parameter (the where clause)
 could contain replaceable parameters in the form of question marks (?)
 and the Strings contained in the whereArgs array would replace the
 question marks in the where clause.
 
 Could someone verify/debunk this assumption?

I can verify this assumption for SQLiteDatabase.

Technically speaking, I think it is up to the implementations of 
ContentProvider what they do with those parameters, but I suspect most 
will also treat them as a WHERE clause and ? parameters.

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

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



[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier

I would start looking here:

http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,
boolean, android.database.ContentObserver)

with ContentObserver.registerContentObserver which sounds like it
should do what you want.  I haven't used the function yet, so you may
have to mess with it.  Please report back you results so others can
know the answer too.  Thanks!

Bill

On Thu, Dec 4, 2008 at 6:11 AM, jaspher [EMAIL PROTECTED] wrote:

 hello

 I'm looking for a intent-filter which can start my BroadcastReciver
 when somebody adds a new contact or edit a contact. Unfortunately I
 couldn't finde something like that. Does it exist?
 If not how can I get a Notification when somebody added a new contact
 or something like that?
 thanks in advance

 jaspher

 


--~--~-~--~~~---~--~~
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: intent-filter for addContact and editContact ?

2008-12-04 Thread Dianne Hackborn
Yes, this is the way to monitor for content provider changes.  Note that
this is deliberately not done as a broadcast, you can only receive these
while you are running by explicitly registering for them, because we didn't
want to get in the situation of launching 1 or more apps every time some
piece of data in a content provider changes.

On Thu, Dec 4, 2008 at 3:08 PM, Bill Napier [EMAIL PROTECTED] wrote:


 I would start looking here:


 http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Urihttp://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver%28android.net.Uri
 ,
 boolean, android.database.ContentObserver)

 with ContentObserver.registerContentObserver which sounds like it
 should do what you want.  I haven't used the function yet, so you may
 have to mess with it.  Please report back you results so others can
 know the answer too.  Thanks!

 Bill

 On Thu, Dec 4, 2008 at 6:11 AM, jaspher [EMAIL PROTECTED] wrote:
 
  hello
 
  I'm looking for a intent-filter which can start my BroadcastReciver
  when somebody adds a new contact or edit a contact. Unfortunately I
  couldn't finde something like that. Does it exist?
  If not how can I get a Notification when somebody added a new contact
  or something like that?
  thanks in advance
 
  jaspher
 
  
 

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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 Bitmap.compress thread safe?

2008-12-04 Thread Dianne Hackborn
Should be fine.

On Thu, Dec 4, 2008 at 9:00 AM, webmonkey [EMAIL PROTECTED] wrote:


 Because the Bitmap.compress(Bitmap.CompressFormat format, int quality,
 OutputStream stream) function can sometimes take a long time I am
 calling it in a separate thread with low priority. During this time I
 am drawing the same bitmap in the UI thread using Canvas.drawBitmap
 (Bitmap bitmap, float left, float top, Paint paint) at 30fps.

 Although the bitmap is mutable I am not writing to the bitmap during
 this period. It works fine but I want to make sure that it is safe to
 do this.

 Thanks
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Foreign Language support/Adding new system fonts

2008-12-04 Thread Dianne Hackborn
Sorry, at this point applications can't add new system fonts, they can only
use custom fonts in their own app.

We don't even have a font picker, which I think would be the thing to do
before allowing new fonts to be added. :)

On Wed, Dec 3, 2008 at 4:19 PM, Eric [EMAIL PROTECTED] wrote:


 Can new system fonts be added to Android? Can applications refer to
 them?

 Several threads have addressed this, but I can't find a complete
 answer.

 The only method I have found to change system fonts is with adb
 push. If I use adb to install a new font can an app use it? Or does
 Android only allow the Droid fonts it is shipped with?

 Is there a user friendly way to install a system font? (no adb, no
 hacking disk images). Can an app install a system font?

 I'm writing an app that needs foreign language support which is not
 currently part of Android. I'm especially interested in Koine (New
 Testament) Greek. Modern Greek is kind of supported, but Koine has a
 lot more diacritical marks (for example: Εν ἀρχῆ ἦν ὁ λόγος will not
 display correctly in Android). I can include a font with my
 application. However this limits it's use to only my app. Adding a
 good unicode font can add several 100k to my app, which makes it many
 times bigger than entire rest of the app. This is a waste, especially
 if more than one app wants to use the font. (Is there a way to share
 fonts across apps without using a system font?) In the case of trying
 to use an Android phone in a foreign language a system-wide font is an
 absolute necessity.


 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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 Context

2008-12-04 Thread Dianne Hackborn
Nope, there is no current context.  You need to explicitly supply the
context.

On Wed, Dec 3, 2008 at 4:02 PM, Cezar Augustus Signori 
[EMAIL PROTECTED] wrote:


 Hi!

 It would be pretty good to obtain the application context from a
 static method, without the use of an Activity object.

 I mean, there is a lot of frameworks that do it and its really very
 useful..

 Something like Context.getCurrentInstance() would help a lot..

 Someone know anything about that on Android?

 Thanks!
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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 launch browser activity?

2008-12-04 Thread junker37

I have been unable to find out how to launch the browser activity in
1.0_r1.

I've found a couple of posts giving examples of how to do it, but they
seem out of date as some of the functions are no longer available.

Here is what I have:
Intent intent = new Intent();
ComponentName comp = new ComponentName
(com.google.android.browser,
com.google.android.browser.BrowserActivity);
intent.setComponent(comp);
intent.setAction(android.intent.action.VIEW);
intent.addCategory(android.intent.category.BROWSABLE);
Uri uri = Uri.parse(url);
intent.setData(uri);
try
{
startActivity(intent);
}
catch (Exception e)
{
e.printStackTrace();
}

But I get an ActivityNotFound exception.
--~--~-~--~~~---~--~~
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] Easy way to identify a missed call? (Broadcast)

2008-12-04 Thread code_android_festival_way

Hello!

At the moment I want to write a small application that gives me LED
notifications when I missed a call. (the system only provides me with
notifications when I get a SMS, email or voicemail messages)

Is there a broadcast that gets sent directly after the system missed a
call? This would make it very easy to write that app. In addition it
would be interesting if there is an easy way to get to know if the
user has confirmed that missed call to stop the notification? (perhaps
another broadcast gets sent?)

I know the call log (http://code.google.com/android/reference/android/
provider/CallLog.Calls.html) but to implement it over broadcasts would
be much easier. So are there broadcasts from the system available
covering these situations?

I'm looking forward reading your answer.

Regards!
--~--~-~--~~~---~--~~
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 launch browser activity?

2008-12-04 Thread Mark Murphy

junker37 wrote:
 I have been unable to find out how to launch the browser activity in
 1.0_r1.

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://...;)));

should do it, I think.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

Yes, I've already coded that up and it behaves identical to
HttpURLConnection. So that's
not the root cause of this.

I just tested this on 3g vs. my home wireless and it too behaves
identically, so it's not the
kind of net connectivity that's causing this either.

Mike

On Thu, Dec 4, 2008 at 4:21 PM, Mark Murphy [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
 So I switch over to using DefaultHttpClient and friends and it...
 behaves the same way.
 (I assume that's what you meant by HTTPComponents aka the apache stuff?)

 Yes, the stuff in org.apache.http.*. Documentation can be found at
 http://hc.apache.org, and example code for HttpClient can be found at:

 http://hc.apache.org/httpcomponents-client/examples.html

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 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: audio recording issues

2008-12-04 Thread MichaelEGR

On Dec 2, 5:22 am, Dorn Hetzel [EMAIL PROTECTED] wrote:
 Maybe we need to start another mailing list for unrequited android
 realtimeaudio:)

I'm all for focused discussion on this topic as it crosses between
native concerns and public APIs via the SDK. In my longer original
post I mentioned that it would be appropriate to evaluate how to not
only getting something workable on the G1, but keep in mind that
Android can/will be used in the future conceivably beyond smart phones
in devices/hardware that may support expanded audio I/O options. I
favor PortAudio (www.portaudio.com) for the task as it can provide a
workable real time audio API for desktop Java and Android audio
development/porting to other hardware configurations. It is also low
level enough to say even implement javax.sound on top of it for those
interested in that particular API. More discussion is welcome
especially in understanding unspecified work being done for the next
SDK release.

Best,
--Mike
--~--~-~--~~~---~--~~
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: Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread Brian

JNI is the general interface between any Java code and native C
library.
My understanding is that RIL.java communicate with RIL daemon via unix
socket.
You can check development/pdk/docs/telephony.html for more details.
Regards,

On 12月4日, 下午5時42分, suneelkumar d [EMAIL PROTECTED] wrote:
 Hi ,
 Can you please clear my understanding as mentioned below..

 The interface between RIL.java and RIL daemon
 as i understand from the documentation that it is  a JNI interface.

 Is there any good documentation for Telephony and SIM interface with RIL
 layer?

 Thanks
 SuneelD
--~--~-~--~~~---~--~~
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: Storing pictures in internal storage.

2008-12-04 Thread Brian

Jean-Baptiste Queru [EMAIL PROTECTED] wrote:
 Soldering the SD card in the G1 sounds like an elegant way to solve
 the issue about the lack of internal storage :)

Might be right. But, consider a situation that T-Mobile may want to
provide some value added software pre-installed in the phone. An extra
internal storage in the phone should be a good idea to do that. From
this point, there is no reason to prevent users from using the extra
internal storage to store pictures or record voice. How do you think?

Mark Murphy [EMAIL PROTECTED] wrote:
  I'm not quibbling with the decision vis a vis the operation of the
  Camera app, but I also don't want developers thinking the SD card is
  soldered into the G1 or something.

Yes, this is exactly right to my point. At least, we might have a
configuration in the settings page for users to decide where the files
go.

Regards,
--~--~-~--~~~---~--~~
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: Problem Launching Emulator after integrating codec

2008-12-04 Thread Dianne Hackborn
This kind of discussion should go on one of the android open source platform
groups, thanks!

On Thu, Dec 4, 2008 at 12:40 AM, Yogi [EMAIL PROTECTED] wrote:


 Hi All,

 I have facing problem in launching emulator from the source code.
 I have also set the environment variable ANDROID_PRODUCT_OUT.
 I am getting the following error message,

 ~/bin# out/host/linux-x86/bin/emulator
 Cannot locate system directory, which contains 'system.img' and other
 system files.  Please specify one by using '-system directory' or by
 defining the environment variable ANDROID_PRODUCT_OUT.

 After that i tried with the following command :

 ~/bin# out/host/linux-x86/bin/emulator -system out/target/product/
 generic
 Cannot find file: out/target/product/generic/kernel-qemu
 Please specify a valid -kernel file

 I am still getting the error message.
 I have integrated my codec library onto android.Is this causing the
 problem?
 Do i need to allocate memory in emulator?
 Please help me out.

 Thanks in advance,
 Yogesh

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Network access problem on ubuntu

2008-12-04 Thread taosinker

Brian:
Thanks for your response.

After I double check the issue, I found more strange things.

If I lunch the emulator in file browser, the web browser in android
can access the outside website.
If I lunch the emulator in console by ./emulator command, the web
browser in android cannot access the outside website.

Regards


On 12月4日, 下午5时15分, Brian [EMAIL PROTECTED] wrote:
 Probably you forgot to configure APNs.
 Go to Settings - Wireless controls - Mobile networks - Access Point
 Names
 Press Menu to configure a new APN.

 On 12月4日, 下午5時01分,taosinker[EMAIL PROTECTED] wrote:

  Hi all:
  Now I build the android code on ubuntu, in the build I can launch the
  emulator on unbuntu. I met a problem, I cannot connect the website in
  the emulator. But under the same network env, the android emulator on
  windows xp can connect the website.
  I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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: Change Tab Widget icon for currently active tab

2008-12-04 Thread Dianne Hackborn
Make your tab drawable a selector drawable that picks other drawables based
on its state, like the standard tab drawable:

?xml version=1.0 encoding=utf-8?
!-- Copyright (C) 2008 The Android Open Source Project

 Licensed under the Apache License, Version 2.0 (the License);
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--

selector xmlns:android=http://schemas.android.com/apk/res/android;
!-- Non focused states --
item android:state_focused=false android:state_selected=false
android:state_pressed=false
android:drawable=@drawable/tab_unselected /
item android:state_focused=false android:state_selected=true
android:state_pressed=false
android:drawable=@drawable/tab_selected /

!-- Focused states --
item android:state_focused=true android:state_selected=false
android:state_pressed=false android:drawable=@drawable/tab_focus
/
item android:state_focused=true android:state_selected=true
android:state_pressed=false android:drawable=@drawable/tab_focus
/

!-- Pressed --
item android:state_pressed=true android:drawable=@drawable/tab_press /
/selector


On Thu, Dec 4, 2008 at 2:45 PM, mscwd01 [EMAIL PROTECTED] wrote:


 Anyone? I've spent most of today on this problem and its starting to
 get old ;)

 On Dec 4, 6:43 pm, mscwd01 [EMAIL PROTECTED] wrote:
  This is not so much a problem, more a question about how to achieve
  something...
 
  I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
  exact copy but in grayscale.
 
  What I want to do is have the coloured version of the icon displayed
  when the tab is active i.e. being viewed. Otherwise I want the other
  inactive tabs to show the grayscale version of their icon - and change
  to the coloured version if they are clicked.
 
  So I want a tab to show a coloured icon if active and a grayscale icon
  if inactive...
 
  Any ideas how to achieve this anyone?
 
  I have played around with the TabHost onTabChangeListener but havent
  been able to find a solution.
 
  Ideally I need something like:
 
  tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
 
 public void onTabChanged(String arg0) {
  int selectedTab = tabs.getCurrentTab();
 
  // Update newly selected tab to display
  colorful icon
  // Update previously selected tab to
  display greyscale icon
 }
});
 
  Thanks
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Storing pictures in internal storage.

2008-12-04 Thread Dianne Hackborn
The platform has pretty much defined that any android phone will have an
sdcard filesystem available to applications, though it may be temporarily
removed.  IMHO, if a person gets an android phone with a removable SD card,
and removes that card...  well they get what they asked for. :)

On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy [EMAIL PROTECTED] wrote:


 Jean-Baptiste Queru wrote:
  Space on internal storage is very very tight, and users are guaranteed
  to have an SD card with their G1.

 To be fair, users are guaranteed that they *can have* an SD card in
 their G1. That is not the same as saying there is always an SD card
 installed in the G1, as SD cards are removable and can be misplaced,
 used in other equipment, eaten by gerbils, etc.

 I'm not quibbling with the decision vis a vis the operation of the
 Camera app, but I also don't want developers thinking the SD card is
 soldered into the G1 or something.

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

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

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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 context = how to load non power of two dimension bitmap?

2008-12-04 Thread Dianne Hackborn
I believe the G1 hardware does not support non-power-of-2 textures.

On Thu, Dec 4, 2008 at 8:48 AM, Guian [EMAIL PROTECTED] wrote:


 in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
 ( http://code.google.com/android/reference/android/opengl/GLUtils.html
 )
  we can read=

 Whether or not bitmap can have non power of two dimensions depends
 on
 the current OpenGL context.

 I load my OpenGL context using :
 mEglContext = mEgl.eglCreateContext(mEglDisplay,
 mEglConfig,EGL10.EGL_NO_CONTEXT, null);

 do you know what do I have to do in order to load non power of two
 dimensions bitmap?
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android
http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable)http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds%28android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable%29

Add the image like this. in the appropriate position...Probable u want it at
the right,so use


textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null,
null);



On Fri, Dec 5, 2008 at 5:48 AM, androidian [EMAIL PROTECTED] wrote:


 In the documentation for SimpleExpanderListAdapter (http://
 code.google.com/android/reference/android/widget/
 SimpleExpandableListAdapter.htmlhttp://code.google.com/android/reference/android/widget/SimpleExpandableListAdapter.html)
 it says that the views which
 ultimately end up defining the display of the individual group and
 child rows, must be TextViews.

 I think I'm reading this right but I need some clarification...does
 this mean that there's no way to put an image into these group and
 child rows?  e.g. let's say I want my own icon to sit to the right of
 the text in a row...can I do that in any way?

 If not, could I do it by subclassing BaseExpandableListAdapter?  Any
 tips?

 cheers,
 Ian
 


--~--~-~--~~~---~--~~
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: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android
Sorry..

textView.

 setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null);



On Fri, Dec 5, 2008 at 10:00 AM, for android [EMAIL PROTECTED] wrote:


 http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable)http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds%28android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable%29

 Add the image like this. in the appropriate position...Probable u want it
 at the right,so use


 textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null,
 null);




 On Fri, Dec 5, 2008 at 5:48 AM, androidian [EMAIL PROTECTED] wrote:


 In the documentation for SimpleExpanderListAdapter (http://
 code.google.com/android/reference/android/widget/
 SimpleExpandableListAdapter.htmlhttp://code.google.com/android/reference/android/widget/SimpleExpandableListAdapter.html)
 it says that the views which
 ultimately end up defining the display of the individual group and
 child rows, must be TextViews.

 I think I'm reading this right but I need some clarification...does
 this mean that there's no way to put an image into these group and
 child rows?  e.g. let's say I want my own icon to sit to the right of
 the text in a row...can I do that in any way?

 If not, could I do it by subclassing BaseExpandableListAdapter?  Any
 tips?

 cheers,
 Ian
 



--~--~-~--~~~---~--~~
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: audio recording issues

2008-12-04 Thread Dave Sparks

The reason this isn't in 1.0 is because we didn't want to ship a half-
baked API. We have a solution coming soon in the form of a flexible
base layer that supports push and pull models. For example, we have
built an InputStream object on top of it that we will offer as sample
code.

In the future, this development will be taking place in the open
source repo so we can have a real-time dialog about the code as it is
developed. In the meantime, we are working hard to get the code that
has been in development since we forked the 1.0 branch moved into the
open source repo as soon as possible.

On Dec 4, 6:40 pm, MichaelEGR [EMAIL PROTECTED] wrote:
 On Dec 2, 5:22 am, Dorn Hetzel [EMAIL PROTECTED] wrote:

  Maybe we need to start another mailing list for unrequited android
  realtimeaudio:)

 I'm all for focused discussion on this topic as it crosses between
 native concerns and public APIs via the SDK. In my longer original
 post I mentioned that it would be appropriate to evaluate how to not
 only getting something workable on the G1, but keep in mind that
 Android can/will be used in the future conceivably beyond smart phones
 in devices/hardware that may support expanded audio I/O options. I
 favor PortAudio (www.portaudio.com) for the task as it can provide a
 workable real time audio API for desktop Java and Android audio
 development/porting to other hardware configurations. It is also low
 level enough to say even implement javax.sound on top of it for those
 interested in that particular API. More discussion is welcome
 especially in understanding unspecified work being done for the next
 SDK release.

 Best,
 --Mike
--~--~-~--~~~---~--~~
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: sending email

2008-12-04 Thread dileep singh
Thanks Bill Napier

On Fri, Dec 5, 2008 at 3:53 AM, Bill Napier [EMAIL PROTECTED] wrote:


 Searching this forum for the term send email gave me this mail:


 http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gstq=sending+email#c1d0be41174b4999

 Which has some example code that you could use.

 On Thu, Dec 4, 2008 at 10:51 AM, dilu [EMAIL PROTECTED] wrote:
 
  Hi
  i want to develop an aplication which can send email .so can any one
  provide me sample code or any link that is useful.I got one site
  davanum srinivas blog,but tht code is too old and full code is not
  available right now,they have removed it from site.So provide me some
  link.
 
  Thankss
  dilu
  
 

 


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

2008-12-04 Thread lior

Hi folks,
My friend and I are about to launch are first app on the Market. We
are don’t have an incorporated company formed (yet) and we would like
to protect us with an EULA. Can someone share an EULA format that
would work for us.

Any other advice on the topic of EULA will be great.

Thanks in advance,
Lior
--~--~-~--~~~---~--~~
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 context = how to load non power of two dimension bitmap?

2008-12-04 Thread Robert Green

Pretty much the rule with 3D stuff is that you always use power-of-2
size textures.  Many times the texture won't be filled all the way
with usable stuff (lots of black area) but that doesn't matter because
you only really care about the areas within the UV maps anyway.

On Dec 4, 8:39 pm, Dianne Hackborn [EMAIL PROTECTED] wrote:
 I believe the G1 hardware does not support non-power-of-2 textures.



 On Thu, Dec 4, 2008 at 8:48 AM, Guian [EMAIL PROTECTED] wrote:

  in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
  (http://code.google.com/android/reference/android/opengl/GLUtils.html
  )
   we can read=

  Whether or not bitmap can have non power of two dimensions depends
  on
  the current OpenGL context.

  I load my OpenGL context using :
  mEglContext = mEgl.eglCreateContext(mEglDisplay,
  mEglConfig,EGL10.EGL_NO_CONTEXT, null);

  do you know what do I have to do in order to load non power of two
  dimensions bitmap?

 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: EULA

2008-12-04 Thread lior

Thanks, I actually meant an agreement example as most examples out
them deal with companies (not single developers)


On Dec 4, 9:54 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 Text File Html File pdf File pdf is the best by html. But not all
 devices can have a pdf reader. So I would go with HTML For the end
 user license agreement!

 On 12/04/2008, lior [EMAIL PROTECTED] wrote:



  Hi folks,
  My friend and I are about to launch are first app on the Market. We
  are don't have an incorporated company formed (yet) and we would like
  to protect us with an EULA. Can someone share an EULA format that
  would work for us.

  Any other advice on the topic of EULA will be great.

  Thanks in advance,
  Lior

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
--~--~-~--~~~---~--~~
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: Strange behavior with AlarmManager.RTC_WAKEUP and PowerManager.WakeLock

2008-12-04 Thread Jon Colverson

On Nov 29, 12:15 pm, Noam  Wolf [EMAIL PROTECTED] wrote:
 I have a BroadcastReceiver which acquires a lock onReceive.  I use an
 alarm manager with AlarmManager.RTC_WAKEUP set to broadcast my
 intent.  I have found that when the phone is locked (and asleep) it
 will not wake up sometimes, and when it does many times it will have a
 delay (up to 30 seconds from when the alarm manager was supposed to go
 off).

I'd been having some weird issues with AlarmManager seemingly not
firing my alarms when the device is asleep. I'm using the alarm to
start a service and I was acquiring my wake lock in onStart(). I tried
acquiring the lock in onCreate() instead, and that seems to have
solved the problem. I know that doesn't help you with your
BroadcastReceiver, but perhaps you can rework your app to use a
Service instead?

--
Jon

--~--~-~--~~~---~--~~
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: invoking com.android.internal.*

2008-12-04 Thread Dianne Hackborn
If you want to use private APIs, you need to get the platform source and
build it.  You are only allowed to use private APIs if you are writing code
that is built-in to the android system, so we really don't -want- to make it
easy to do this unless you are doing it for the appropriate reason of
working on the platform/system itself.

On Thu, Dec 4, 2008 at 2:58 PM, dreamerBoy [EMAIL PROTECTED] wrote:


 Yes, I know about this URL and have downloaded much of the source
 code.  The delicate problem is how to build in access to the internal
 classes that I need and have them be invoked correctly by Android.
 Question is, how to do this without in effect rolling your own version
 of Android i.e., doing a full build ... after all, (this probably
 includes Linux), there are 8 million lines of code in Android.  This
 would likely turn into a project unto itself.

 I have an old android.jar from version 0.9 with the internal classes
 available.  When I try to use that, the Eclipse aapt environment
 immediately figures out what I'm trying to do, fails my attempt, and
 gives me a snarky message saying that I'm going to have problems
 trying to do this.

 Monsieur Queru - any comment?

 Thanks

 dreamer

 On Dec 3, 10:10 am, Ash [EMAIL PROTECTED] wrote:
  Use GIT to checkout the source code and add the internals paths you
  need to your application.
 
  //android.git.kernel.org/platform/frameworks/base/telephony is what
  you are looking for, I think.
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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] Does SensorManager work on emulator of SDK1.0?

2008-12-04 Thread Gameboy

Seems I can not let SensorManager work on SDK1.0 emulator, just copy
some code from samples:

mSensorManager = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);

mSensorManager.registerListener(mGraphView,
SensorManager.SENSOR_ACCELEROMETER |
SensorManager.SENSOR_MAGNETIC_FIELD |
SensorManager.SENSOR_ORIENTATION,
SensorManager.SENSOR_DELAY_FASTEST);

SensorListener is not trigged in its callbacks:
public void onSensorChanged(int sensor, float[] values)
public void onAccuracyChanged(int sensor, int accuracy)

Not sure it's emulator limitation or need other simulator tool to
active sensor change?

--~--~-~--~~~---~--~~
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: Newbe question - Application folders, how to?

2008-12-04 Thread Dianne Hackborn
If you mean you want to put such a thing in the sliding drawer that you pull
up from the bottom, that is a flat list of apps.  But you can just write an
activity that goes in there, and when your activity is launched show a
folder of whatever sub-activities you want.

On Thu, Dec 4, 2008 at 9:06 AM, Anders Rundgren
[EMAIL PROTECTED]wrote:


 Thanx!
 But I wanted to create a folder in the application drawer (or what it
 should be called) that also should not look like a folder but as an
 app which would if pressed open the folder with the real apps.  Isn't
 that what most mult-app installs need?

 On Nov 29, 11:59 am, Romain Guy [EMAIL PROTECTED] wrote:
  Long press an empty space on Home (or click Menu  Add) then choose
  Shortcut  Folder. You can drop applications in the newly created
  folder.
 
  On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren
 
  [EMAIL PROTECTED] wrote:
 
   In other operating systems you can typically define a folder and when
   clicked it opens a view with applications.
 
   I may be blind, but I don't see any of this using the emulator and SDK
   1.0.
 
   Is the ApiDemos the only GUI-way you can create a suite of associated
   applications?
 
  --
  Romain Guywww.curious-creature.org
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Eclipse Error while adding ddms

2008-12-04 Thread Anonymous Anonymous
Hi Xav,

Thank you,

Now am clear with few of the errors(compiler compliance).
I have synced to latest source, and for ddms i have  added  3
projects(ddmlib,dddmuilib and app) by new project-new java project- browse
to development/tools/ddms

now remained with Button/clipboard/color/composite/combo  cannot be
resolved !!

How can i add SWT in the dependencies? and this is a ddmuilib project
(/development/tools/ddms/lib..)

can you help me to resolve the above?

regards
steve
On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi ,
 
  That error gone, i separately executed all the scripts...
  Now few more errors are like
 
  assert cannot be resolved   client.java
  ddmlib/src/com/android/ddmlib

 Can you make sure you are setup with compiler compliance level 5.0? I
 looks like you're building in 1.4 or lower...

  Button cannot be resolved to a type AllocationPanel.java
  ddmuilib/src/com/android/ddmuilib

 This would mean you don't have SWT in the dependencies. Is this in the
 ddms plugin project or in the ddmuilib project?

  Can only iterate over an array or an instance of java.lang.iterable
  AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

 This is probably a compiler level issue too.

 Xav

 


--~--~-~--~~~---~--~~
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: Eclipse Error while adding ddms

2008-12-04 Thread Ralf

Make sure to run
development/tools/eclipse/script/create_ddms_symlink.sh and then only
import the ddms-plugin project (from
dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
need the ddmlib and ddmuilib projects in Eclipse for ADT because they
are symlinked under the plugin/ddmsdirectory.

R/

On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi Xav,

 Thank you,

 Now am clear with few of the errors(compiler compliance).
 I have synced to latest source, and for ddms i have  added  3
 projects(ddmlib,dddmuilib and app) by new project-new java project- browse
 to development/tools/ddms

 now remained with Button/clipboard/color/composite/combo  cannot be
 resolved !!

 How can i add SWT in the dependencies? and this is a ddmuilib project
 (/development/tools/ddms/lib..)

 can you help me to resolve the above?

 regards
 steve
 On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi ,
 
  That error gone, i separately executed all the scripts...
  Now few more errors are like
 
  assert cannot be resolved   client.java
  ddmlib/src/com/android/ddmlib

 Can you make sure you are setup with compiler compliance level 5.0? I
 looks like you're building in 1.4 or lower...

  Button cannot be resolved to a type AllocationPanel.java
  ddmuilib/src/com/android/ddmuilib

 This would mean you don't have SWT in the dependencies. Is this in the
 ddms plugin project or in the ddmuilib project?

  Can only iterate over an array or an instance of java.lang.iterable
  AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

 This is probably a compiler level issue too.

 Xav




 


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



  1   2   >