[android-developers] can u tel me what are the attributes we want to specify in the scrollview xml file

2009-08-29 Thread ragavendran s
 can u tel me what are the attributes we want to specify in the scrollview
xml file bcoz i want to display scrollbar n my layout...i tried
scrollview but it shows an error like force to closepls tel me the
answer...

thanks,
with regards,
Raghav.S

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



[android-developers] Re: Non-freeware apps on Swedish android market

2009-08-29 Thread Androman

Hej,

Det här är inte rätt forum men det var många från Sverige som frågade
på Android Markets form men de fick aldrig något svar... Jag hoppas
att stöd för betal appar kommer någonstans i oktober eller november...
Men det är bara en gissning...

On Aug 28, 9:03 am, fcaesar fcae...@gmail.com wrote:
 Hi,

 I am a swedish developer developing a commercial app for android that
 I would like to make available for purchase on android market
 (globally). What is the timeframe for this? Also, what is the
 timeframe for releasing commercial android apps on the swedish android
 market?

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



[android-developers] Can't see my USB connected Galaxy in the adb devices command

2009-08-29 Thread 6real

Dear all,

I am under Mac OS X 5.8
I have a Samsung Galaxy with the G8 update

I configure my phone with the following parameters:
Settings  Application  Unknown sources (checked)
Settings  Application  Development  USB Debug checked
Settings  About this phone  Advanced Parameters  Mass storage
(unchecked)

When I connect it via USB I can't see the phone when I try the command
line :
adb devices

Did I miss a point ?

PS : I see my emulator when I start it and do the same command line.

Thanks for your help. I'd like to install and test my apk before
posting it on the market ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android

2009-08-29 Thread Carl Whalley

Theres an interactive timeline here:
http://www.androidacademy.com/3-features/40-current/49-article-what-makes-android-tick

On Aug 29, 12:48 am, Nikamov nika...@gmail.com wrote:
 Just wondering on the release date of Android?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] reduce list view font size

2009-08-29 Thread Sasi Kumar

How can we reduce list view font size?

Can any one know about these.

please reply me.

Thanks in advance

Join

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



[android-developers] Re: Not getting focus on custom view for autocompletetextview

2009-08-29 Thread Shalin

Here, If I set focusable attribute of layout and/or two textviews,
then I cannot choose item from dropdown list. So is there any solution
to solve this problem??Thanks!

On Aug 27, 2:07 pm, Shalin smehta...@yahoo.com wrote:
 Hello, I have made custom view for autocompletetextview, but when I am
 trying to select any

 entry from that dropdown using touch or dpad, it is not showing any
 focus on it, so what can

 be problem in that?? My code is as under. Thanks.

 Custom view adapter code regarding to UI:

 public class ContactListAdapter extends ResourceCursorAdapter {
     private ContentResolver mContent;
     public static String[] projection = { People._ID, People.NAME,
 People.NUMBER };

     public ContactListAdapter(Context context, Cursor c) {
         super(context, R.layout.auto_complete, c);
         mContent = context.getContentResolver();
     }

     @Override
     public void bindView(View view, Context context, Cursor cursor) {
         TextView name = (TextView) view.findViewById(R.id.AutoName);
         name.setText(cursor.getString(1));
         TextView number = (TextView) view.findViewById
 (R.id.AutoContact);
         number.setText(cursor.getString(2));
         //view.setFocusableInTouchMode(true);
 /*        view.setOnTouchListener(new OnTouchListener(){

                         @Override
                         public boolean onTouch(View v, MotionEvent event) {
                                 v.setSelected(true);
                                 return false;
                         }

         });*/
     }

 .xml file
 ?xml version=1.0 encoding=UTF-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=wrap_content
     android:background=#ff
     android:padding=3dp
     

     TextView
         android:id=@+id/AutoName
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:singleLine=true
         /

     TextView
         android:id=@+id/AutoContact
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:singleLine=true
         /
 /LinearLayout

 code for setting adapter to autocompletetextview:
 Cursor contactListCursor =
                 managedQuery(Contacts.People.CONTENT_URI,
                     ContactListAdapter.projection, null, null,
 People.NAME);

             ContactListAdapter contact =
                 new ContactListAdapter(this,
 contactListCursor);
             txtToContact.setAdapter(contact);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Date Limit

2009-08-29 Thread Sasi Kumar

How can i display datepickerdialog for a limited dates.


Ex:-

I want from 25 aug 2009 to 24 Aug 2010

please reply

Join

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



[android-developers] Re: Inserting a new contact is not working

2009-08-29 Thread Michel Albert

Nevermind. I got it to work. The new way to insert contacts is:

Uri newPersonUri = Contacts.People
.createPersonInMyContactsGroup(getContentResolver(), values);

On Aug 28, 4:45 pm, Michel Albert exh...@gmail.com wrote:
 I am trying to insert a new contact, but, even though I get a valid
 URI back, the Contacts do not appear in the Contacts application.

 Code:

     ContentValues values = new ContentValues();
     values.put( People.NAME, contact.getString(name) );
     Uri uri = getContentResolver().insert(People.CONTENT_URI, values);

     Uri phoneUri = null;
     phoneUri = Uri.withAppendedPath(uri,
 People.Phones.CONTENT_DIRECTORY);
     values.clear();
     values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE);
     values.put(People.Phones.NUMBER, phone.getString(number));
     getContentResolver().insert(phoneUri, values);

 My problem lies already in the first three lines. The contact does not
 seem to be stored. However, consecutive runs of this show, that the
 internal ID is increased nonetheless.

 Is there something I am missing? Do you have to commit the changes?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Accelerometer OnSensorChanged() no longer occur in standby

2009-08-29 Thread Yuri Dario

Hi,


 I have tried a wakelock, but only the full, screen-on wakelock allows
 it to work, which is undesirable behaviour.

my background service gets accelerometer events with a partial wake
lock (and screen off). ADP1 with latest 1.5 firmware drop by HTC.

bye,

Yuri

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



[android-developers] Re: Accelerometer OnSensorChanged() no longer occur in standby

2009-08-29 Thread polymorph

Thanks for the reply, but this didn't seem to work for me on either
the Magic or Hero when I tried partial wake locks (you mentioned
trying on ADP1, ie a G1 - have you tried it on any other handsets?)



It has worked in the past without any requirement on a wake lock as
well, so I believe something must have changed recently to cause this.


On Aug 29, 11:04 am, Yuri Dario mc6...@mclink.it wrote:
 Hi,

  I have tried a wakelock, but only the full, screen-on wakelock allows
  it to work, which is undesirable behaviour.

 my background service gets accelerometer events with a partial wake
 lock (and screen off). ADP1 with latest 1.5 firmware drop by HTC.

 bye,

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



[android-developers] Problem HTC-Hero and Widget

2009-08-29 Thread guruk

Hi, I have around 100.000 Installations of my App My Days
and most looks fine. Now I got 2 Complains just from HTC Hero
Users, that when they use my Widgets, they dont appear and
crash the app always when the restart their phone?

Any Ideas from Widget Probs with HTC Hero

greets
chris

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



[android-developers] Date Limit

2009-08-29 Thread Sasi Kumar

Can any one suggess that i want a limited datepicker


ex:- 25 aug 2009 to 24 aug 2010


please reply


Join:

http:
//groups.google.com/group/mobile-application-developers

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



[android-developers] if i pass url in my program i m getting the result the same url is appear in the Textview but i need the answer Success.

2009-08-29 Thread ragavendran s
if i pass the url in my program i m getting the result the same  url is
appear in the Textview but i need the answer Success.

can u pls tel me

with regards,
Raghav.S


getInput = (EditText) this.findViewById(R.id.get_input);
getOutput = (TextView) this.findViewById(R.id.get_output);
getButton = (Button) this.findViewById(R.id.get_button);
getButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
getOutput.setText();

String st1=getInput.getText().toString();
String output =http://localhost:8080/Serv1/servlet/Servlet1?name=+st1;


getHttpResponse(output);
if (output != null) getOutput.setText(output);
}
});
};



private String getHttpResponse(String location) {

String result = null;
URL url = null;
try {
url = new URL(location);
} catch (MalformedURLException e) {

}
if (url != null) {
try {
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(
urlConn.getInputStream()));
String inputLine;
int lineCount = 0;
while ((lineCount  10)  ((inputLine = in.readLine()) != null)) {
lineCount++;
result += \n + inputLine;
}
in.close();
urlConn.disconnect();
}
} else {

}
return b;
}

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



[android-developers] Re: How can i use Scroll bar in my Linear layoutview.....

2009-08-29 Thread wangysh2009
Maybe u should put your linear layout in a scroll view.


2009-08-29 



wangysh2009 



发件人: ragavendran s 
发送时间: 2009-08-29  12:04:54 
收件人: android-developers 
抄送: 
主题: [android-developers] How can i use Scroll bar in my Linear layoutview. 
 
How can i use Scroll bar in my Linear layout view...
can u pls tell me



thanks
Raghav.S


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



[android-developers] Date Picker

2009-08-29 Thread Sasi Kumar

I want a date picker with maximum of 3 days.

i want like

yesterday
today
tomorrow

this 3 days only i want.

any one can sugess some idea.

please reply.

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



[android-developers] Will ADC 2 submission deadline be extended?

2009-08-29 Thread Dollars 5

I spoke to many developers and myself feel that Google should consider
a small extension on deadline say 1 or 2 weeks. August 31 looks pretty
much tight :(

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



[android-developers] Re: Will ADC 2 submission deadline be extended?

2009-08-29 Thread Dollars 5

Anyone able to test on devices? The developer phones also unavailable
- it makes it a bit harder to find testers to check the app on device?

On Aug 29, 5:00 pm, Dollars 5 dollars5ad...@gmail.com wrote:
 I spoke to many developers and myself feel that Google should consider
 a small extension on deadline say 1 or 2 weeks. August 31 looks pretty
 much tight :(

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



[android-developers] ContentProvider with openFile but empty _data

2009-08-29 Thread Fabian Sturm

Hi!

I implemented a custom ContentProvider and everything works great!
I now wanted to extend it to also store a Bitmap in the table with the
_data convention and the same url for the content as also the file.

So I did everything as described:

- I added a _data column type TEXT

- Implemented openFile like this:

public ParcelFileDescriptor openFile(Uri uri, String mode) throws   
   FileNotFoundException {
if (uriMatcher.match(uri) != ITEM_ID) {
throw new IllegalArgumentException(openFile only allowed
for single items);
}
return this.openFileHelper(uri, mode);
}


- Changed my access code to this:

ContentValues values = new ContentValues();

values.put(SnipsProvider.KEY_DESCRIPTION, description);
values.put(SnipsProvider.KEY_TITLE, title);

Uri uri = cr.insert(ItemProvider.CONTENT_URI, values);
OutputStream outStream = cr.openOutputStream(uri);
picture.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
outStream.close();

But I get:

 java.io.FileNotFoundException: Column _data not found.
 at
android.content.ContentProvider.openFileHelper(ContentProvider.java:546)

Here the message is a little bit missleading, I do have the _data column
but since no one ever wrote to it it's contents is empty and the call to
c_.getString(i) returns null which leads to this error message.

So how does it magically get filled? I don't see any contenprovider
filling it?

Thanks a lot in advance, Fabian




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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread Bruce Rees

I'll add my vote, I'm in New Zealand and the HTC magic is available
thru Vodafone but we can neither buy or sell apps, all enquiries on
the market forum seem to go unanswered.. Apple seem to have no
problems with itunes so it's hard to imagine what's holding Google up?


On Aug 29, 1:19 am, João Carvalho joaonunoc...@gmail.com wrote:
 Me and and small group of friend developers in Portugal are also very
 interested. Currently there are HTC Magic and Hero in the shops and
 financed  by the operators, but if there is no market to sell apps or
 buy apps, there is point on developing for it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread Armond Avanes

Following this discussion, I'm curious to know the reason why Google pulled
Australia out of merchant location list? It was in the list for a few days!
Again a typo like the one back in February when they launched the paid
market and Australia was mistakenly in the list? Or something is going on
behind the scene?

Armond

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Bruce Rees
 Sent: Saturday, August 29, 2009 4:57 PM
 To: Android Developers
 Subject: [android-developers] Re: Countries for selling priced
 applications in Android Market
 
 
 I'll add my vote, I'm in New Zealand and the HTC magic is available
 thru Vodafone but we can neither buy or sell apps, all enquiries on
 the market forum seem to go unanswered.. Apple seem to have no
 problems with itunes so it's hard to imagine what's holding Google up?
 
 
 On Aug 29, 1:19 am, João Carvalho joaonunoc...@gmail.com wrote:
  Me and and small group of friend developers in Portugal are also very
  interested. Currently there are HTC Magic and Hero in the shops and
  financed  by the operators, but if there is no market to sell apps or
  buy apps, there is point on developing for it.
 

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



[android-developers] how to read values from the server using Http GET method

2009-08-29 Thread ragavendran s
how to read values from the server using Http GET  method

whenever i m passing the url to the server it returns same url in the
textview

i think i commited mistake in http connection using GET method..would u tel
me pls how it is?..

pls...



with regards,
Raghav.S

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



[android-developers] Re: Inserting Photo to Contacts

2009-08-29 Thread Michel Albert

Hmmm... I am trying the same thing. The method with setPhotoData
does indeed run without a hitch. Except that the photo does not show
on the contact when displaying it with the default Contacts
application. I double checked both the Uri and the bytearray. Both are
perfectly fine. The whole thing runs in a separate thread. Upon
instantiation of the thread, I pass the Activity which started the
thread as parameter. This is the mParent variable. Could it have
something to do with that?

JSONArray photos = contact.getJSONArray(photos);
if ( photos.length()  0 ) {
String photo = photos.getString(0);
if (photo != null ){
try {

Contacts.People.setPhotoData(mParent.getContentResolver(), uri,
Base64.decode(photo));
System.out.println( Added to  + uri );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}


On Jul 24, 6:32 pm, Serkan Ozel serkano...@gmail.com wrote:
 Yes, People.setPhotoDataworked, thanks.

 Here is what I ended up doing - I hope others can also benefit from
 this.

 Bitmap photo = myImage.getBitmap();
 if (photo != null) {
   ByteArrayOutputStream stream = new ByteArrayOutputStream();
   photo.compress(Bitmap.CompressFormat.JPEG, 75, stream);
   People.setPhotoData(getContentResolver(), uri, stream.toByteArray
 ());

 }

 On Jul 24, 1:22 am, quill quill...@163.com wrote:

  Use Contacts.People.setPhotoDatato insert a photo.

  On Jul 23, 9:21 pm, Serkan Ozel serkano...@gmail.com wrote:

   Hello Friends,

   I was wondering if anyone has been able to accomplish this.

   I'm able to insert entries into contacts (from my app) with name,
   phone and email however I can't seem to add a photo to these
   entries.

   This works:
   ContentValues values = new ContentValues();
   values.put(People.NAME, Serkan Ozel);
   Uri uri = getContentResolver().insert(People.CONTENT_URI, values);

   continuing this fails:
   photoUri = Uri.withAppendedPath(uri,
   Contacts.Photos.CONTENT_DIRECTORY);
   values.clear();
   values.put(Contacts.Photos.DATA, image.getByteArray());
   getContentResolver().insert(photoUri, values);

   This is the stack trace:
   java.lang.UnsupportedOperationException: Cannot insert into URL:
   content://contacts/people/36/photo
   at android.database.DatabaseUtils.readExceptionFromParcel
   (DatabaseUtils.java:131)
   at android.database.DatabaseUtils.readExceptionFromParcel
   (DatabaseUtils.java:111)
   at android.content.ContentProviderProxy.insert
   (ContentProviderNative.java:340)
   at android.content.ContentResolver.insert(ContentResolver.java:476)

   Any help would be appreciated.

   Thanks- Hide quoted text -

  - Show quoted text -


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



[android-developers] draw textview

2009-08-29 Thread Sasi Kumar

please give some suggestion for me...

I want to draw text in my text view

my class is extended with Activity.

textview t1;
textview t2;

t1.settext(sun 29 Sug 2009);
t2.settext(tue 29 Sug 2009);

see here sun and tue both are having same length words but it is
moving.

so when i'm showing it is like

sun 29 Sug 2009
tue 29 Sug 2009

i want it in straight line like

sun 29 Sug 2009
tue  29 Sug 2009

now i have adjused with giving space.
but i did not want to give space.

so by drawing we can get these correctly in x and y positions.

Please give idea for these to draw in activity extended class.

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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread Dollars 5

I am eager to see India on that list. Not sure why it takes them this
long to get more countries :(

On Aug 24, 10:58 am, Michael Leung michaelchi...@gmail.com wrote:
 Hi,
   That is near the end of Q3 now. Does anyone know whether there will be a
 new list of Countries for selling priced applications in Android Market?

 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Will ADC 2 submission deadline be extended?

2009-08-29 Thread Chris Stratton

You need a developer phone if you want to change android itself, but
you do not need one to test ordinary applications. At most you may
need a sim unlocked phone (without carrier cruft like myfaves) if no
carrier in your location yet offers one for its network.

(In an ideal world, any phone would become a dev phone simply by
convincing it that you really want to enable that level of
customization, but alas...)

On Aug 29, 8:02 am, Dollars 5 dollars5ad...@gmail.com wrote:
 Anyone able to test on devices? The developer phones also unavailable
 - it makes it a bit harder to find testers to check the app on device?

 On Aug 29, 5:00 pm, Dollars 5 dollars5ad...@gmail.com wrote:



  I spoke to many developers and myself feel that Google should consider
  a small extension on deadline say 1 or 2 weeks. August 31 looks pretty
  much tight :(

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



[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-29 Thread Klaus Kartou
Bump.

Please, have anyone used the CropImage intent on a HTC Magic?

On Sat, Aug 29, 2009 at 12:39 AM, Klaus Kartou kar...@gmail.com wrote:

 This code works on G1

  Intent intent = new
 Intent(com.android.camera.action.CROP);
  intent.setClassName(com.android.camera,
 com.android.camera.CropImage);
  intent.setData(uri);
  intent.putExtra(outputX, 128);
  intent.putExtra(outputY, 128);
  intent.putExtra(aspectX, 128);
  intent.putExtra(aspectY, 128);
  intent.putExtra(scale, true);
  intent.putExtra(noFaceDetection, true);
  intent.putExtra(output, Uri.parse(file:/ + FILE_PATH + userId
 + /user.jpg));
  startActivityForResult(intent, CROP_PICTURE_ACTION);




 On Sat, Aug 29, 2009 at 12:16 AM, Klaus Kartou kar...@gmail.com wrote:

 Hi,

 I have a pretty urgent issue. I am using the CropImage intent on my G1 Dev
 phone to crop images.
 However when starting this intent on a HTC Magic I get an error indicating
 the activity cannot be found:

 Unable to find explicit activity class
 {com.android.camera/com.android.camera.CropImage}

 Why is this activity not present on HTC Magic?
 Any input is much appreciated.

 Best 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Question about assets vs resources

2009-08-29 Thread longhairedsi

Hi Diane, thanks for the reply

Could I have a little clarification please? On app startup would the
resources and assets be loaded into memory or only when they are
used?  Something like this seems to be happening to my app. Since I
added the files I had on the sdcard to the assets folder the app takes
much longer to load on initial startup. If this is the case I think
copying the files to the sdcard on first run might be the way to go
(but much more work for monday ;) )

Thanks
Simon

On Aug 28, 3:06 am, Dianne Hackborn hack...@android.com wrote:
 Assets and resources are basically the same thing.  They are all entries in
 your zip files, resources have an associated table so you can retrieve the
 file by resource identifier (which may select amongst different files based
 on the configuration), while assets are just retrieved with a raw path in
 the zip.

 On Thu, Aug 27, 2009 at 4:35 PM, longhairedsi
 longhaire...@googlemail.comwrote:



  Hi

  I have many ogg files in my app(around 1mb worth). Currently I'm
  loading them from my sdcard from a folder that i manualy coppied
  across. For distribution of my app where should i put the oggs? I
  tried adding them as resources(R.) but it seemed to make my app take
  an age to load, would this happen? Is assets the way to go? if so has
  anyone got an example of loading an oog from assets? i can't get it to
  work..

  Cheers
  Si

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Very nasty error for no reason

2009-08-29 Thread longhairedsi

Hi

I've just changed my app to load an xml file from a raw resource
instead of from the sdcard. Every time i run the app it now fails in a
spectacular way. It just closes down, no exceptions. Log output is
below.

I'm not kidding, all i changed was the way an xml file is loaded. If
change back and it's fine

Please help!

Cheers
Simon


08-29 14:24:32.979: INFO/DEBUG(1236): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
08-29 14:24:32.979: INFO/DEBUG(1236): Build fingerprint: 'tmeu/kila_eu/
dream/trout:1.5/CRC37/150879:user/ota-rel-keys,release-keys'
08-29 14:24:32.979: INFO/DEBUG(1236): pid: 1710, tid: 1711  
com.basementajax.microjam 
08-29 14:24:32.979: INFO/DEBUG(1236): signal 11 (SIGSEGV), fault addr
0004
08-29 14:24:32.979: INFO/DEBUG(1236):  r0 0004  r1 40021800  r2
0004  r3 ad32aa45
08-29 14:24:32.979: INFO/DEBUG(1236):  r4   r5   r6
ad344125  r7 4100afb8
08-29 14:24:32.989: INFO/DEBUG(1236):  r8 100ffcb0  r9 4100afb0  10
41a46450  fp 1071
08-29 14:24:32.989: INFO/DEBUG(1236):  ip ad36492c  sp 100ffc98  lr
ad32aa4f  pc afb045a8  cpsr 0010
08-29 14:24:33.309: INFO/DEBUG(1236):  #00  pc 45a8  /
system/lib/libcutils.so
08-29 14:24:33.309: INFO/DEBUG(1236):  #01  lr ad32aa4f  /
system/lib/libandroid_runtime.so
08-29 14:24:33.319: INFO/DEBUG(1236): stack:
08-29 14:24:33.319: INFO/DEBUG(1236): 100ffc58  
08-29 14:24:33.319: INFO/DEBUG(1236): 100ffc5c  00197e80  [heap]
08-29 14:24:33.319: INFO/DEBUG(1236): 100ffc60  
08-29 14:24:33.319: INFO/DEBUG(1236): 100ffc64  00169140  [heap]
08-29 14:24:33.319: INFO/DEBUG(1236): 100ffc68  100ffcc8
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc6c  00197e80  [heap]
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc70  423907a0
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc74  00c1
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc78  40021800
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc7c  00c2
08-29 14:24:33.329: INFO/DEBUG(1236): 100ffc80  
08-29 14:24:33.339: INFO/DEBUG(1236): 100ffc84  
08-29 14:24:33.339: INFO/DEBUG(1236): 100ffc88  
08-29 14:24:33.339: INFO/DEBUG(1236): 100ffc8c  
08-29 14:24:33.339: INFO/DEBUG(1236): 100ffc90  df002777
08-29 14:24:33.349: INFO/DEBUG(1236): 100ffc94  e3a070ad
08-29 14:24:33.349: INFO/DEBUG(1236): #00 100ffc98  
08-29 14:24:33.349: INFO/DEBUG(1236): 100ffc9c  ad32aa4f  /system/
lib/libandroid_runtime.so
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffca0  100ffcd0
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffca4  ad344135  /system/
lib/libandroid_runtime.so
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffca8  410a99d0
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffcac  ad00e3b8  /system/
lib/libdvm.so
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffcb0  410a99d0
08-29 14:24:33.359: INFO/DEBUG(1236): 100ffcb4  000f7430  [heap]
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffcb8  ad344125  /system/
lib/libandroid_runtime.so
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffcbc  40021800
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffcc0  410a99d0
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffcc4  afe39dd0
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffcc8  100ffcd0
08-29 14:24:33.369: INFO/DEBUG(1236): 100ffccc  ad040a8d  /system/
lib/libdvm.so
08-29 14:24:33.379: INFO/DEBUG(1236): 100ffcd0  4100afb0
08-29 14:24:33.379: INFO/DEBUG(1236): 100ffcd4  41c44fd4
08-29 14:24:33.379: INFO/DEBUG(1236): 100ffcd8  ad344125  /system/
lib/libandroid_runtime.so
08-29 14:24:33.379: INFO/DEBUG(1236): 100ffcdc  100ffd48
08-29 14:24:34.109: INFO/ActivityManager(62): Process
com.basementajax.microjam (pid 1710) has died.
08-29 14:24:34.119: INFO/WindowManager(62): WIN DEATH: Window{433928a8
com.basementajax.microjam/com.basementajax.microjam.MicroJam
paused=false}
08-29 14:24:34.119: INFO/DEBUG(1236): debuggerd committing suicide to
free the zombie!
08-29 14:24:34.129: DEBUG/Zygote(34): Process 1710 terminated by
signal (11)
08-29 14:24:34.169: INFO/DEBUG(1723): debuggerd: Aug  6 2009 17:14:09
08-29 14:24:34.179: INFO/WindowManager(62): WIN DEATH: Window{4343fbc8
com.basementajax.microjam/com.basementajax.microjam.MicroJam
paused=false}
08-29 14:24:34.199: INFO/WindowManager(62): Setting rotation to 0,
animFlags=0
08-29 14:24:34.219: INFO/WindowManager(62): Config changed:
{ scale=1.0 imsi=0/0 locale=en_GB touch=3 key=2/1/2 nav=3 orien=1 }
08-29 14:24:34.229: INFO/WindowManager(62): Config changed:
{ scale=1.0 imsi=0/0 locale=en_GB touch=3 key=2/1/2 nav=3 orien=1 }
08-29 14:24:34.239: WARN/SurfaceComposerClient(62): Destroying surface
while a transaction is open. Client 0x1f8ba8: destroying surface 0,
mTransactionOpen=1
08-29 14:24:34.239: WARN/WindowManager(62):
performLayoutAndPlaceSurfacesLocked called while in layout

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google

[android-developers] textbox error

2009-08-29 Thread kabir

Hi,

I am experiencing a bug with some EditTexts. when you click on them
and they take focus, all is fine, but when you navigate away using the
track ball to another similar edittext they crash, throwing an error
from the onDraw function.

the textboxes are referenced minimally by other code, and they live in
a linearlayout, in a linearlayout in a relative layout.

has anyone experienced something like this before, or know of a
possible solution?

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



[android-developers] Re: draw textview

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

I didn't quite see your problem..however if you want to drawText, you
can create a CustomView and override the onDraw method.

Use the Canvas.drawText method to draw your text.

Also, did you try textview's android:typeface and  android:textStyle
options

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

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


On Aug 29, 5:51 am, Sasi Kumar sasikumar.it1...@gmail.com wrote:
 please give some suggestion for me...

 I want to draw text in my text view

 my class is extended with Activity.

 textview t1;
 textview t2;

 t1.settext(sun 29 Sug 2009);
 t2.settext(tue 29 Sug 2009);

 see here sun and tue both are having same length words but it is
 moving.

 so when i'm showing it is like

 sun 29 Sug 2009
 tue 29 Sug 2009

 i want it in straight line like

 sun 29 Sug 2009
 tue  29 Sug 2009

 now i have adjused with giving space.
 but i did not want to give space.

 so by drawing we can get these correctly in x and y positions.

 Please give idea for these to draw in activity extended class.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: textbox error

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

What's the error - please paste the logcat output.

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

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


On Aug 29, 6:56 am, kabir kab...@gmail.com wrote:
 Hi,

 I am experiencing a bug with some EditTexts. when you click on them
 and they take focus, all is fine, but when you navigate away using the
 track ball to another similar edittext they crash, throwing an error
 from the onDraw function.

 the textboxes are referenced minimally by other code, and they live in
 a linearlayout, in a linearlayout in a relative layout.

 has anyone experienced something like this before, or know of a
 possible solution?

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



[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

Firstly, I agree it does fail in a spectacular way :)
Secondly, please paste your code snippet : before and after !

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

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

On Aug 29, 6:40 am, longhairedsi longhaire...@googlemail.com wrote:
 Hi

 I've just changed my app to load an xml file from a raw resource
 instead of from the sdcard. Every time i run the app it now fails in a
 spectacular way. It just closes down, no exceptions. Log output is
 below.

 I'm not kidding, all i changed was the way an xml file is loaded. If
 change back and it's fine

 Please help!

 Cheers
 Simon

 08-29 14:24:32.979: INFO/DEBUG(1236): *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** *** ***
 08-29 14:24:32.979: INFO/DEBUG(1236): Build fingerprint: 'tmeu/kila_eu/
 dream/trout:1.5/CRC37/150879:user/ota-rel-keys,release-keys'
 08-29 14:24:32.979: INFO/DEBUG(1236): pid: 1710, tid: 1711  
 com.basementajax.microjam 
 08-29 14:24:32.979: INFO/DEBUG(1236): signal 11 (SIGSEGV), fault addr
 0004
 08-29 14:24:32.979: INFO/DEBUG(1236):  r0 0004  r1 40021800  r2
 0004  r3 ad32aa45
 08-29 14:24:32.979: INFO/DEBUG(1236):  r4   r5   r6
 ad344125  r7 4100afb8
 08-29 14:24:32.989: INFO/DEBUG(1236):  r8 100ffcb0  r9 4100afb0  10
 41a46450  fp 1071
 08-29 14:24:32.989: INFO/DEBUG(1236):  ip ad36492c  sp 100ffc98  lr
 ad32aa4f  pc afb045a8  cpsr 0010
 08-29 14:24:33.309: INFO/DEBUG(1236):          #00  pc 45a8  /
 system/lib/libcutils.so
 08-29 14:24:33.309: INFO/DEBUG(1236):          #01  lr ad32aa4f  /
 system/lib/libandroid_runtime.so
 08-29 14:24:33.319: INFO/DEBUG(1236): stack:
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc58  
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc5c  00197e80  [heap]
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc60  
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc64  00169140  [heap]
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc68  100ffcc8
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc6c  00197e80  [heap]
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc70  423907a0
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc74  00c1
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc78  40021800
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc7c  00c2
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc80  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc84  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc88  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc8c  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc90  df002777
 08-29 14:24:33.349: INFO/DEBUG(1236):     100ffc94  e3a070ad
 08-29 14:24:33.349: INFO/DEBUG(1236): #00 100ffc98  
 08-29 14:24:33.349: INFO/DEBUG(1236):     100ffc9c  ad32aa4f  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca0  100ffcd0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca4  ad344135  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca8  410a99d0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcac  ad00e3b8  /system/
 lib/libdvm.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcb0  410a99d0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcb4  000f7430  [heap]
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcb8  ad344125  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcbc  40021800
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc0  410a99d0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc4  afe39dd0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc8  100ffcd0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffccc  ad040a8d  /system/
 lib/libdvm.so
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcd0  4100afb0
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcd4  41c44fd4
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcd8  ad344125  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcdc  100ffd48
 08-29 14:24:34.109: INFO/ActivityManager(62): Process
 com.basementajax.microjam (pid 1710) has died.
 08-29 14:24:34.119: INFO/WindowManager(62): WIN DEATH: Window{433928a8
 com.basementajax.microjam/com.basementajax.microjam.MicroJam
 paused=false}
 08-29 14:24:34.119: INFO/DEBUG(1236): debuggerd committing suicide to
 free the zombie!
 08-29 14:24:34.129: DEBUG/Zygote(34): Process 1710 terminated by
 signal (11)
 08-29 14:24:34.169: INFO/DEBUG(1723): debuggerd: Aug  6 2009 17:14:09
 08-29 14:24:34.179: INFO/WindowManager(62): WIN DEATH: Window{4343fbc8
 com.basementajax.microjam/com.basementajax.microjam.MicroJam
 paused=false}
 08-29 14:24:34.199: INFO/WindowManager(62): Setting rotation to 0,
 animFlags=0
 08-29 14:24:34.219: INFO/WindowManager(62): Config changed:
 { scale=1.0 imsi=0/0 locale=en_GB touch=3 key=2/1/2 nav=3 

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi

Ok i found the problem. But don't ask my why this would cause a
problem, I have no idea!

It stems from me passing the inputstream into a method. This is what i
was doing.

//in the activity
InputStream filestream = null;
filestream = mCtx.getResources().openRawResource(R.raw.default_song);
Document songXml = parseSongAsset(filestream);
filestream.close();

//the method i used
public Document parseSongAsset(InputStream filestream ) {
try {

DocumentBuilder docBuilder = 
DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
Document songXml = docBuilder.parse(filestream);
return songXml;
} catch (FileNotFoundException e) {


This is what i did to fix it

//in the activity
Document songXml = parseSongAsset();

//the method
protected Document parseSongAsset() {
try {
InputStream filestream = null;
filestream = mCtx.getResources().openRawResource
(R.raw.default_song);
DocumentBuilder docBuilder = 
DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
Document songXml = docBuilder.parse(filestream);
return songXml;
} catch (FileNotFoundException e) {


Anyone got an idea why the the original would break things?

Thanks
Simon

On Aug 29, 2:40 pm, longhairedsi longhaire...@googlemail.com wrote:
 Hi

 I've just changed my app to load an xml file from a raw resource
 instead of from the sdcard. Every time i run the app it now fails in a
 spectacular way. It just closes down, no exceptions. Log output is
 below.

 I'm not kidding, all i changed was the way an xml file is loaded. If
 change back and it's fine

 Please help!

 Cheers
 Simon

 08-29 14:24:32.979: INFO/DEBUG(1236): *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** *** ***
 08-29 14:24:32.979: INFO/DEBUG(1236): Build fingerprint: 'tmeu/kila_eu/
 dream/trout:1.5/CRC37/150879:user/ota-rel-keys,release-keys'
 08-29 14:24:32.979: INFO/DEBUG(1236): pid: 1710, tid: 1711  
 com.basementajax.microjam 
 08-29 14:24:32.979: INFO/DEBUG(1236): signal 11 (SIGSEGV), fault addr
 0004
 08-29 14:24:32.979: INFO/DEBUG(1236):  r0 0004  r1 40021800  r2
 0004  r3 ad32aa45
 08-29 14:24:32.979: INFO/DEBUG(1236):  r4   r5   r6
 ad344125  r7 4100afb8
 08-29 14:24:32.989: INFO/DEBUG(1236):  r8 100ffcb0  r9 4100afb0  10
 41a46450  fp 1071
 08-29 14:24:32.989: INFO/DEBUG(1236):  ip ad36492c  sp 100ffc98  lr
 ad32aa4f  pc afb045a8  cpsr 0010
 08-29 14:24:33.309: INFO/DEBUG(1236):          #00  pc 45a8  /
 system/lib/libcutils.so
 08-29 14:24:33.309: INFO/DEBUG(1236):          #01  lr ad32aa4f  /
 system/lib/libandroid_runtime.so
 08-29 14:24:33.319: INFO/DEBUG(1236): stack:
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc58  
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc5c  00197e80  [heap]
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc60  
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc64  00169140  [heap]
 08-29 14:24:33.319: INFO/DEBUG(1236):     100ffc68  100ffcc8
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc6c  00197e80  [heap]
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc70  423907a0
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc74  00c1
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc78  40021800
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc7c  00c2
 08-29 14:24:33.329: INFO/DEBUG(1236):     100ffc80  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc84  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc88  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc8c  
 08-29 14:24:33.339: INFO/DEBUG(1236):     100ffc90  df002777
 08-29 14:24:33.349: INFO/DEBUG(1236):     100ffc94  e3a070ad
 08-29 14:24:33.349: INFO/DEBUG(1236): #00 100ffc98  
 08-29 14:24:33.349: INFO/DEBUG(1236):     100ffc9c  ad32aa4f  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca0  100ffcd0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca4  ad344135  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffca8  410a99d0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcac  ad00e3b8  /system/
 lib/libdvm.so
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcb0  410a99d0
 08-29 14:24:33.359: INFO/DEBUG(1236):     100ffcb4  000f7430  [heap]
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcb8  ad344125  /system/
 lib/libandroid_runtime.so
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcbc  40021800
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc0  410a99d0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc4  afe39dd0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffcc8  100ffcd0
 08-29 14:24:33.369: INFO/DEBUG(1236):     100ffccc  ad040a8d  /system/
 lib/libdvm.so
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcd0  4100afb0
 08-29 14:24:33.379: INFO/DEBUG(1236):     100ffcd4  

[android-developers] Re: textbox error

2009-08-29 Thread kabir

Ah sorry, have pasted below:

08-29 14:15:15.717: INFO/dalvikvm(742): Stack overflow, expanding
(0x41048200 to 0x41048000)
08-29 14:15:15.727: INFO/dalvikvm(742): Shrank stack (to 0x41048200,
curFrame is 0x41049cd8)
08-29 14:15:15.727: DEBUG/AndroidRuntime(742): Shutting down VM
08-29 14:15:15.737: WARN/dalvikvm(742): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
08-29 14:15:15.737: ERROR/AndroidRuntime(742): Uncaught handler:
thread main exiting due to uncaught exception
08-29 14:15:15.797: ERROR/AndroidRuntime(742):
java.lang.StackOverflowError
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:603)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.addFocusables(ViewGroup.java:614)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.getFocusables(View.java:3097)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.FocusFinder.findNextFocus(FocusFinder.java:109)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.FocusFinder.findNextFocus(FocusFinder.java:93)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:461)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.focusSearch(ViewGroup.java:463)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.focusSearch(View.java:3032)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.widget.TextView.onCreateInputConnection(TextView.java:4321)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.inputmethod.InputMethodManager.startInputInner
(InputMethodManager.java:933)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.inputmethod.InputMethodManager.checkFocus
(InputMethodManager.java:1105)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.inputmethod.InputMethodManager.isActive
(InputMethodManager.java:530)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.widget.TextView.onDraw(TextView.java:3880)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
Android.SuperCalc.CEditText.onDraw(CEditText.java:70)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.draw(View.java:5838)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at

[android-developers] Re: Date Picker

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

How about just using a Spinner instead of a DatePicker ?
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

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


On Aug 29, 4:08 am, Sasi Kumar sasikumar.it1...@gmail.com wrote:
 I want a date picker with maximum of 3 days.

 i want like

 yesterday
 today
 tomorrow

 this 3 days only i want.

 any one can sugess some idea.

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



[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-29 Thread Chauncey Chen

Hi Jiaoni,

I still look forward to an officer's or groupmate's answer.
I have only one CPU. But I think we encountered almost the same
situation.

Maybe I should reinstall my operating system although it has been
WinXP SP2.
Or it is because my OS is Chinese version? (I guess you come from
China)

I am just wondering why?


On Aug 25, 10:42 am, jiaoni jiaoni5...@gmail.com wrote:
 Hi Chauncey,

 Yes, sometimes I encountered such situation like yours, the emulator
 stopped at the Android.. stage and never moved on. I had to kill and
 restart it.

 However, my above situation is a bit different, that the emulator is
 actually working, but it's always occupying100% cpu. Although I have
 2 cpus in my machine, it's annoying that the 50% cpu power is wasted,
 and the application debugging is very slowly.

 Any idea?

 Thanks,
 Jiaoni

 On Aug 24, 7:48 pm, Chauncey Chen chaunceyc...@gmail.com wrote:



  Mine is also occupying100% CPU. I am a fresh man and just now created
  a HelloWorld in Eclipse. When I ran it as an Android application,
  after a while, it keep100% occupying some minutes and only the text
  Android_ with black background in the emluator.

  My OS is Windows XP and Eclipse is 3.4. I have tried JDK5 and JDK6. I
  have tried many times today and yesterday.

  Here is my console lines in Eclipse:
  After I lunch as below,
  [2009-08-24 19:37:43 - HelloWorld] --
  [2009-08-24 19:37:43 - HelloWorld] Android Launch!
  [2009-08-24 19:37:43 - HelloWorld] adb is running normally.
  [2009-08-24 19:37:43 - HelloWorld] Performing com.test.HelloWorld
  activity launch
  [2009-08-24 19:37:43 - HelloWorld] Automatic Target Mode: launching
  new emulator with compatible AVD 'my_avd'
  [2009-08-24 19:37:43 - HelloWorld] Launching a new emulator with
  Virtual Device 'my_avd'
  [2009-08-24 19:37:52 - HelloWorld] New emulator found: emulator-5554
  [2009-08-24 19:37:52 - HelloWorld] Waiting for HOME
  ('android.process.acore') to be launched...

  No way, I kill the emluator, then as below,
  [2009-08-24 19:39:24 - Emulator] emulator: emulator window was out of
  view and was recentred
  [2009-08-24 19:39:24 - Emulator]

  On 8月21日, 下午3时57分, jiaoni jiaoni5...@gmail.com wrote:

   Hi,

   Many times (not all the times), my emulator is running100% of one of
   my two CPUs on the machine.

   Can anyone tell me why it is so, and how can I reduce the cpu usage?

   Thanks a lot,
   Jiaoni- Hide quoted text -

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



[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi

Arggh! it seems to be a random error, it just happned again a few
times. If I debug and step through it works fine. If i run normally it
fails.

 the code fails when builder.create().show(); is called on the
dialogue

Here's the snippets( i'm using the template pattern to build different
loading objects)

in the activity packbuilder is the xml loader, buildJamPacks is the
method i am updating

private void showWelcomeMessage(){
if (mPackBuilder == null) {
mPackBuilder = new JamPackBuilderAssets(this);
mPackBuilder.buildJamPacks();
}
AlertDialog.Builder builder = new AlertDialog.Builder(this);
//builder.setTitle(Please choose a loop pack);
//builder.setIcon(R.drawable.alert_dialog_icon)
builder.setTitle(Welcome to MicroJam!);
builder.setMessage(R.string.instructions);
builder.setPositiveButton(Ok, new 
DialogInterface.OnClickListener
() {
public void onClick(DialogInterface dialog, int 
whichButton) {

openJamPack(mPackBuilder.getPack(0));//default 
pack House 1
}
});
builder.create().show();
}



//Working code:

// Loops through each folder in the root.
// Load the song definition file for each song(default_song.xml)
public void buildJamPacks() {
mJamPacks = new ArrayListJamPack();
File[] packs = new File(mRootFolder).listFiles();
int l = packs.length;
for (int i = 0; i  l; i++) {
File pack = packs[i];

File defaultSongFile = new 
File(pack.getAbsolutePath() + /
+ SONG_FILE_NAME);
if(defaultSongFile.exists()){
Document songXml = 
parseSongFile(defaultSongFile);
JamPack JamPack = 
buildPackFromXml(pack.getAbsolutePath(),
songXml);
mJamPacks.add(JamPack);
}else{

//TODO: handle this gracefully
}

}
}
 protected Document parseSongFile(File file) {
try {
DocumentBuilder docBuilder = 
DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
InputStream fis = new FileInputStream(file);
Document songXml = docBuilder.parse(fis);
return songXml;
} catch (FileNotFoundException e) {


//Not working code
public void buildJamPacks() {
mJamPacks = new ArrayListJamPack();
AssetManager manager = mCtx.getAssets();
String[] packs;
try {
packs = manager.list(mLoopsDir);
int l = packs.length;
for (int i = 0; i  l; i++) {
String pack = packs[i];
String fullpath = mLoopsDir + / + pack ;

Document songXml = parseSongAsset();
JamPack JamPack = buildPackFromXml(fullpath, 
songXml);
mJamPacks.add(JamPack);
songXml = null;

}
}
catch(IOException e){
e.printStackTrace();
}
}


protected Document parseSongAsset() {
try {
InputStream filestream = null;
filestream = mCtx.getResources().openRawResource
(R.raw.default_song);
DocumentBuilder docBuilder =
DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
Document songXml = docBuilder.parse(filestream);
return songXml;
} catch (FileNotFoundException e) {



Thanks, please help! this is driving me nuts ;)
Simon

On Aug 29, 3:15 pm, longhairedsi longhaire...@googlemail.com wrote:
 Ok i found the problem. But don't ask my why this would cause a
 problem, I have no idea!

 It stems from me passing the inputstream into a method. This is what i
 was doing.

 //in the activity
 InputStream filestream = null;
 filestream = mCtx.getResources().openRawResource(R.raw.default_song);
 Document songXml = parseSongAsset(filestream);
 filestream.close();

 //the method i used
 public Document parseSongAsset(InputStream filestream ) {
         try {

                 DocumentBuilder docBuilder = 
 DocumentBuilderFactory.newInstance()
                                 .newDocumentBuilder();
                 Document songXml = docBuilder.parse(filestream);
                 return songXml;
         } catch 

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi

Sorry, forgot to say that the method builds everything as expected,
when inspecting objects in the debugger the xml looks good the JamPack
looks good

Cheers
Simon

On Aug 29, 3:30 pm, longhairedsi longhaire...@googlemail.com wrote:
 Arggh! it seems to be a random error, it just happned again a few
 times. If I debug and step through it works fine. If i run normally it
 fails.

  the code fails when builder.create().show(); is called on the
 dialogue

 Here's the snippets( i'm using the template pattern to build different
 loading objects)

 in the activity packbuilder is the xml loader, buildJamPacks is the
 method i am updating

 private void showWelcomeMessage(){
                 if (mPackBuilder == null) {
                         mPackBuilder = new JamPackBuilderAssets(this);
                         mPackBuilder.buildJamPacks();
                 }
                 AlertDialog.Builder builder = new AlertDialog.Builder(this);
                 //builder.setTitle(Please choose a loop pack);
                 //builder.setIcon(R.drawable.alert_dialog_icon)
                 builder.setTitle(Welcome to MicroJam!);
         builder.setMessage(R.string.instructions);
                 builder.setPositiveButton(Ok, new 
 DialogInterface.OnClickListener
 () {
                         public void onClick(DialogInterface dialog, int 
 whichButton) {

                                 
 openJamPack(mPackBuilder.getPack(0));//default pack House 1
                         }
                 });
                 builder.create().show();
         }

 //Working code:

 // Loops through each folder in the root.
         // Load the song definition file for each song(default_song.xml)
         public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 File[] packs = new File(mRootFolder).listFiles();
                 int l = packs.length;
                 for (int i = 0; i  l; i++) {
                         File pack = packs[i];

                                 File defaultSongFile = new 
 File(pack.getAbsolutePath() + /
                                         + SONG_FILE_NAME);
                         if(defaultSongFile.exists()){
                                 Document songXml = 
 parseSongFile(defaultSongFile);
                                 JamPack JamPack = 
 buildPackFromXml(pack.getAbsolutePath(),
 songXml);
                                 mJamPacks.add(JamPack);
                         }else{

                                 //TODO: handle this gracefully
                         }

                 }
         }
  protected Document parseSongFile(File file) {
                 try {
                         DocumentBuilder docBuilder = 
 DocumentBuilderFactory.newInstance()
                                         .newDocumentBuilder();
                         InputStream fis = new FileInputStream(file);
                         Document songXml = docBuilder.parse(fis);
                         return songXml;
                 } catch (FileNotFoundException e) {

 //Not working code
 public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 AssetManager manager = mCtx.getAssets();
                 String[] packs;
                 try {
                         packs = manager.list(mLoopsDir);
                         int l = packs.length;
                         for (int i = 0; i  l; i++) {
                                 String pack = packs[i];
                                 String fullpath = mLoopsDir + / + pack ;

                                 Document songXml = parseSongAsset();
                                 JamPack JamPack = buildPackFromXml(fullpath, 
 songXml);
                                 mJamPacks.add(JamPack);
                                 songXml = null;

                         }
                 }
                 catch(IOException e){
                         e.printStackTrace();
                 }
         }

 protected Document parseSongAsset() {
         try {
                 InputStream filestream = null;
                 filestream = mCtx.getResources().openRawResource
 (R.raw.default_song);
                 DocumentBuilder docBuilder =
 DocumentBuilderFactory.newInstance()
                                 .newDocumentBuilder();
                 Document songXml = docBuilder.parse(filestream);
                 return songXml;
         } catch (FileNotFoundException e) {

 Thanks, please help! this is driving me nuts ;)
 Simon

 On Aug 29, 3:15 pm, longhairedsi longhaire...@googlemail.com wrote:



  Ok i found the problem. But don't ask my why this would cause a
  problem, I have no idea!

  It stems from me passing the inputstream into a method. This is what i
  was doing.

  //in the activity
  InputStream filestream = null;
  filestream = mCtx.getResources().openRawResource(R.raw.default_song);
  Document songXml = parseSongAsset(filestream);
  filestream.close();

  //the 

[android-developers] Re: code for simple client server http communication

2009-08-29 Thread Gustav Mauer

Search the internet for the following string:
android HttpClient httpclient = new DefaultHttpClient();
This should give you a lot of examples.

On Aug 29, 7:00 am, ragavendran s sraghav.ra...@gmail.com wrote:
 I am new to android development

 can u give anybody .code for simple client server http communication

 i dont know how these client interact with server

 can u tel me the steps for this network concept...how we send the url
 connection to the serve.

 pls.

 thanks,

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



[android-developers] Re: Automatic launch of Virtual Keypad in first screen(launcher) of application

2009-08-29 Thread Gustav Mauer

What I did in the same situation was make one of the images in the
screen focusable (a property in the layout) and then when creating the
view in onCreate after the setContentView() call, called code like
this:
displayIcon = (ImageView)findViewById(R.id.your_image_widget);
displayIcon.requestFocus();
Then the keyboard does not show. Probably not perfect, but it worked
for me on the HTC Magic (G2).

On Aug 27, 8:17 pm, Muha muhamadsu...@gmail.com wrote:
     Hi Durg,
     I'm facing an opposite problem when the app is installed in a real
 device (a HTC G2). I want to open my screen with keypad hidden, but as
 the activity has an EditText which automatically receives focus, it
 triggers the opening of the keypad. As you did, I tried to put a
 similar code (see below) in onCreate() and onResume(), and tried also
 to send the focus to another view, but I didn't have success. On
 emulator, everything runs fine.

 InputMethodManager imm = (InputMethodManager) getSystemService
 (Context.INPUT_METHOD_SERVICE);
 imm.hideSoftInputFromWindow(meuEditText.getWindowToken(), 0);

     Maybe my problem can solve your problem.

 Regards,
 Muha

 On Jul 23, 10:09 am, Durg durga.n.pra...@gmail.com wrote:

  Automatic launch of VirtualKeypadin first screen(launcher) of
  application

  Hi All,

  I have created an application with a EditText in first screen
  (launcher). I want to launch this screen always with VirtualKeypad
  Open. I know how to launch thekeypadon focus change or click. I have
  tried the following code..

  InputMethodManager inputManager = (InputMethodManager) getSystemService
  (Context.INPUT_METHOD_SERVICE);
  inputManager.showSoftInput(objEditText,
  InputMethodManager.SHOW_FORCED);

  in onCreate(), onPostCreate(), onStart(), onResume() and onPostResume
  ().

  But still virtualkeypadis not coming up. Please help me if there is
  any API or Callback to call this function.

  Thanks in advance.

  Regards,
  Durg.


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



[android-developers] Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread jsdf

Hi all,
When I try to install one of my applications to the emulator with adb
install bin/app.apk, I constantly receive the following:

1134 KB/s (123414 bytes in 0.106s)
pkg: /data/local/tmp/app-lite.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]


I have built with two external libraries, Flurry and AdMob.
I have also tried rebuilding my project from scratch, with the same
results.

The very odd thing is that this does not happen when I install the
release version to my phone via downloading an .apk file.

Does anyone have suggestions on how to proceed?

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



[android-developers] Publishing Upgrades on Android Market ... Still Relevant?

2009-08-29 Thread Jason Van Anden

Are the docs on the Developer site regarding Publishing out of date?
In other words, is the Market still considered Beta and do users
actually need a web service to compare their versions with so they can
query the Market for updates?

This is what is on the Android Developer site:

http://developer.android.com/guide/publishing/publishing.html

j

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



[android-developers] GLSurfaceView does not invoke OnKeyDown(...)

2009-08-29 Thread Gameboy

I'm trying to use SDK 1.5 for developing app on opengl feautre, but
GLSurfaceView does not invoke OnKeyDown(...) any more, what's reason?
App runs on windows emulator.

There is sample code in SDK document:

 class MyGLSurfaceView extends GLSurfaceView {

 private MyRenderer mMyRenderer;

 public void start() {
 mMyRenderer = ...;
 setRenderer(mMyRenderer);
 }

 public boolean onKeyDown(int keyCode, KeyEvent event) {
 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
 queueEvent(new Runnable() {
 // This method will be called on the rendering
 // thread:
 public void run() {
 mMyRenderer.handleDpadCenter();
 }});
 return true;
 }
 return super.onKeyDown(keyCode, event);
 }
 }

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



[android-developers] Re: how to build adb.exe for windows.

2009-08-29 Thread Kyo Yin

CATC USB Chief Bus  Protocol Analyzer.
With this equipment, i catch the 0 length packet when the host is ubuntu.


2009/8/29 Tejas tejas.path...@gmail.com:

 Not sure. What usb analyzer are you using ?

 On Aug 27, 11:37 pm, Kyo Yin kyo@gmail.com wrote:
 old framework of adb in target === means i don`t use the composite
 driver in target if the host is ubuntu.you know, before composite
 gadget driver, the adb is a single gadget driver(kernel 2.6.25).
 kernel 2.6.29 add a composite gadget driver, mass storage and adb are
 the functions of this composite gadget driver.

  Are you saying that the usb transfer seen when using windows is same
 as linux, except the 0 length packet ?=== yse, in ubuntu, host will
 send 0 length packet after a packet which size is 4096 or the multiple
 of 64 and our usb protocol analyzer can catch this 0 length packet. In
 windows, our analyzer cannot catch this 0 length packet. But i have
 checked the usb_windows.c, it will send a 0 length packet.So i guess
 the usb driver in windows block this 0 length packet?

 2009/8/28 Tejas tejas.path...@gmail.com





  I am assuming you meant 4096 bytes.. What do you mean by.. BTW, For
  linux host, i use old framework of adb in target ? Are you saying
  that the usb transfer seen when using windows is same as linux, except
  the 0 length packet ?

  On Aug 27, 12:21 am, Kyo Yin kyo@gmail.com wrote:
   thank you for help.i have built the adb.exe

   and i have a question:
   In my opinion, adb will send a 0 length packet after a packet if thie 
   packet
   length is multiple of the max length of endpoint.
   For example, our endpoint is 64 bytes. So after every 4096 packets, 
   adb.exe
   should send a 0 length packet.

   I found the adb.exe has already try to send a 0 length packet.but
   1.in linux host, our usb analyzer can catch the 0 length packet.
   2.in windows host, our usb analyzer can not catch this 0 length packet.

   Did the widows driver block this 0 length packet?

   BTW, For linux host, i use old framework of adb in target, The composite
   driver can not run in ubuntu 8.04.
   For windows host, i use composite driver which has mass storage and adb 
   in
   target.

   2009/8/19 Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com

For being able to compile an exe file on Ubuntu you would have to
cross compile on Ubuntu which means you have to have a Windows cross
compiler on it. Do you?

If not then install Cygwin on your windows environment and try it
again. Make sure that you read the related topics about Android/Cygwin
compilation to be aware of any possible provlems.

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

On Aug 18, 9:38 pm, Kyo Yin kyo@gmail.com wrote:
 hi roman    1.How do you try to compile?
     i just use make HOST_OS=windows in ubuntu.
     2.Are you doing this on Cygwin?
     no.i use ubuntu.

     do you mean i should use cygwin to build adb.exe for windows?

 kyo
 3273

 2009/8/19 Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com

  How do you try to compile? Are you doing this on Cygwin?

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

  On Aug 18, 5:41 am, Kyo kyo@gmail.com wrote:
   hi,everyone.
       i want to modify the usb_windows.c in /system/core/adb and
   recompile a new adb.exe to test our platform.
       but, when i use make HOST_OS=windows, it failed.
       i use ubuntu 8.04 and i can build with make HOST_OS=linux.
       does anyone know how to build my adb.exe?

       thanks

   kyo
 


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



[android-developers] JSONExceptions

2009-08-29 Thread Eurig Jones

I'm fetching a lot of JSON values. Values that could potentially not
exist from my server.

Having android throw JSONExceptions when something doesn't exist is
really annoying! Returning a null value would be enough.

Anyone know the reason behind 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: reduce list view font size

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

You can create a custom adapter and override the getView method.

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

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


On Aug 29, 12:05 am, Sasi Kumar sasikumar.it1...@gmail.com wrote:
 How can we reduce list view font size?

 Can any one know about these.

 please reply me.

 Thanks in advance

 Join

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



[android-developers] HTC Hero Networking Stack

2009-08-29 Thread Dan Sherman
Hey guys,

I've been working on a game for a while now that relies heavily on UDP
connections.  Its been running great, but since releasing in the market,
we've been flooded by complaints from Hero users that it doesn't run
what-so-ever.  We haven't received this complaint from anyone other than
Hero users (seems 100% isolated to the device), and I haven't been able to
reproduce using an HTC rom on my personal G1 (thought it might be related to
the OS), but I'm starting to suspect it's a hardware issue...

Does anyone on the list have access to a Hero, and adb that I could ship an
APK with a bit of extra logging to see exactly whats going wrong?

Thanks,

- Dan

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



[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread Dianne Hackborn
You have a uses-library line in your manifest for a shared library that is
not built into the emulator.  The log will probably tell you more.

On Sat, Aug 29, 2009 at 8:37 AM, jsdf jasons...@gmail.com wrote:


 Hi all,
 When I try to install one of my applications to the emulator with adb
 install bin/app.apk, I constantly receive the following:

 1134 KB/s (123414 bytes in 0.106s)
pkg: /data/local/tmp/app-lite.apk
 Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]


 I have built with two external libraries, Flurry and AdMob.
 I have also tried rebuilding my project from scratch, with the same
 results.

 The very odd thing is that this does not happen when I install the
 release version to my phone via downloading an .apk file.

 Does anyone have suggestions on how to proceed?

 Thanks,
 jsdf
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-29 Thread Dianne Hackborn
This is not part of the SDK.  You dug up the internal package and class name
from somewhere, which happens to exist on the G1, but there is no guarantee
it will exist on other devices (nor that it won't change in a future update
to the G1).

On Fri, Aug 28, 2009 at 3:16 PM, Klaus Kartou kar...@gmail.com wrote:

 Hi,

 I have a pretty urgent issue. I am using the CropImage intent on my G1 Dev
 phone to crop images.
 However when starting this intent on a HTC Magic I get an error indicating
 the activity cannot be found:

 Unable to find explicit activity class
 {com.android.camera/com.android.camera.CropImage}

 Why is this activity not present on HTC Magic?
 Any input is much appreciated.

 Best regards,

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Question about assets vs resources

2009-08-29 Thread Dianne Hackborn
The .apk is mmapped, and assets/resources are only accessed when needed.
Also this -is- a zip file, so to open it we need to find and load the zip
table of contents; this generally is fairly cheap to do, though.

What is much longer?  How does that compare to other apps that are large
(such as maps)?

On Sat, Aug 29, 2009 at 6:35 AM, longhairedsi
longhaire...@googlemail.comwrote:


 Hi Diane, thanks for the reply

 Could I have a little clarification please? On app startup would the
 resources and assets be loaded into memory or only when they are
 used?  Something like this seems to be happening to my app. Since I
 added the files I had on the sdcard to the assets folder the app takes
 much longer to load on initial startup. If this is the case I think
 copying the files to the sdcard on first run might be the way to go
 (but much more work for monday ;) )

 Thanks
 Simon

 On Aug 28, 3:06 am, Dianne Hackborn hack...@android.com wrote:
  Assets and resources are basically the same thing.  They are all entries
 in
  your zip files, resources have an associated table so you can retrieve
 the
  file by resource identifier (which may select amongst different files
 based
  on the configuration), while assets are just retrieved with a raw path in
  the zip.
 
  On Thu, Aug 27, 2009 at 4:35 PM, longhairedsi
  longhaire...@googlemail.comwrote:
 
 
 
   Hi
 
   I have many ogg files in my app(around 1mb worth). Currently I'm
   loading them from my sdcard from a folder that i manualy coppied
   across. For distribution of my app where should i put the oggs? I
   tried adding them as resources(R.) but it seemed to make my app take
   an age to load, would this happen? Is assets the way to go? if so has
   anyone got an example of loading an oog from assets? i can't get it to
   work..
 
   Cheers
   Si
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread Dianne Hackborn
I would instead suggest the service just make a BroadcastReceiver inner
class, which it explicitly registers in onCreate() with registerReceiver()
(and unregisterReceiver() in onDestroy() of course).

On Fri, Aug 28, 2009 at 9:06 PM, GodsMoon godsm...@gmail.com wrote:


 Looks like I answered my own question.
 There is a  peekService  method in BroadcastReceiver for interacting
 with existing Services.

 On Aug 28, 11:50 pm, GodsMoon godsm...@gmail.com wrote:
  Can I Receive a Broadcast from a Service?
  It seem I have to extend BroadcastReceiver to receive broadcasts but
  I'm already extending Service and I can't extend 2 classes.
  Do I set up an additional Activity to receive broadcasts and then just
  pass stuff to the already running Service. And if so, how to I pass
  additional info to an existing Service?
  Is there a better way?
 
  Thanks in advance.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Dianne Hackborn
Could you please file a bug report with full code to reproduce?

Also I know this is not going to be helpful at all, but I would really
recommend staying away from DocumentBuilder -- it is a lot more overhead
compared to directly parsing the XML.

In fact, by far the most efficient way to parse an XML resource is to put it
in res/xml, and retrieve it with Resources.getXml().  This can be literally
a couple orders of magnitude faster than using a pull parser on a raw XML
file.

On Sat, Aug 29, 2009 at 7:30 AM, longhairedsi
longhaire...@googlemail.comwrote:


 Arggh! it seems to be a random error, it just happned again a few
 times. If I debug and step through it works fine. If i run normally it
 fails.

  the code fails when builder.create().show(); is called on the
 dialogue

 Here's the snippets( i'm using the template pattern to build different
 loading objects)

 in the activity packbuilder is the xml loader, buildJamPacks is the
 method i am updating

 private void showWelcomeMessage(){
if (mPackBuilder == null) {
mPackBuilder = new JamPackBuilderAssets(this);
mPackBuilder.buildJamPacks();
}
AlertDialog.Builder builder = new AlertDialog.Builder(this);
//builder.setTitle(Please choose a loop pack);
//builder.setIcon(R.drawable.alert_dialog_icon)
builder.setTitle(Welcome to MicroJam!);
builder.setMessage(R.string.instructions);
builder.setPositiveButton(Ok, new
 DialogInterface.OnClickListener
 () {
public void onClick(DialogInterface dialog, int
 whichButton) {


  openJamPack(mPackBuilder.getPack(0));//default pack House 1
}
});
builder.create().show();
}



 //Working code:

 // Loops through each folder in the root.
// Load the song definition file for each song(default_song.xml)
public void buildJamPacks() {
mJamPacks = new ArrayListJamPack();
File[] packs = new File(mRootFolder).listFiles();
int l = packs.length;
for (int i = 0; i  l; i++) {
File pack = packs[i];

File defaultSongFile = new
 File(pack.getAbsolutePath() + /
+ SONG_FILE_NAME);
if(defaultSongFile.exists()){
Document songXml =
 parseSongFile(defaultSongFile);
JamPack JamPack =
 buildPackFromXml(pack.getAbsolutePath(),
 songXml);
mJamPacks.add(JamPack);
}else{

//TODO: handle this gracefully
}

}
}
  protected Document parseSongFile(File file) {
 try {
DocumentBuilder docBuilder =
 DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
 InputStream fis = new FileInputStream(file);
Document songXml = docBuilder.parse(fis);
 return songXml;
} catch (FileNotFoundException e) {


 //Not working code
 public void buildJamPacks() {
mJamPacks = new ArrayListJamPack();
AssetManager manager = mCtx.getAssets();
String[] packs;
try {
packs = manager.list(mLoopsDir);
int l = packs.length;
for (int i = 0; i  l; i++) {
String pack = packs[i];
String fullpath = mLoopsDir + / + pack ;

Document songXml = parseSongAsset();
JamPack JamPack = buildPackFromXml(fullpath,
 songXml);
mJamPacks.add(JamPack);
songXml = null;

}
}
catch(IOException e){
e.printStackTrace();
 }
}


 protected Document parseSongAsset() {
try {
InputStream filestream = null;
filestream = mCtx.getResources().openRawResource
 (R.raw.default_song);
DocumentBuilder docBuilder =
 DocumentBuilderFactory.newInstance()
.newDocumentBuilder();
Document songXml = docBuilder.parse(filestream);
return songXml;
} catch (FileNotFoundException e) {



 Thanks, please help! this is driving me nuts ;)
 Simon

 On Aug 29, 3:15 pm, longhairedsi longhaire...@googlemail.com wrote:
  Ok i found the problem. But don't ask my why this would cause a
  problem, I have no idea!
 
  It stems from me passing the inputstream into a method. This is 

[android-developers] Don't Send mail

2009-08-29 Thread Ravisanjkar S
I am not android developer

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



[android-developers] Re: can u tel me what are the attributes we want to specify in the scrollview xml file

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

It needs atleast one child layout like LinearLayout and the
android:layout_width, android:layout_height attributes

Here is a working layout using ScrollView
ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView android:id=@+id/tv
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
Button android:text=Button01 android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content/Button
Button android:text=Button02 android:id=@+id/Button02
android:layout_width=wrap_content
android:layout_height=wrap_content/Button
/LinearLayout

/ScrollView

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

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


On Aug 28, 11:23 pm, ragavendran s sraghav.ra...@gmail.com wrote:
  can u tel me what are the attributes we want to specify in the scrollview
 xml file bcoz i want to display scrollbar n my layout...i tried
 scrollview but it shows an error like force to closepls tel me the
 answer...

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



[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon

I have a solution for home screen detection, but its slow and
horrible.
I run this bit of code every 1 seconds.

ActivityManager actvityManager = (ActivityManager)
this.getSystemService( ACTIVITY_SERVICE );
ListRunningAppProcessInfo  procInfos =
actvityManager.getRunningAppProcesses();

for(int i = 0; i  procInfos.size(); i++)
{

if(procInfos.get(i).processName.compareTo
( android.process.acore) == 0
 procInfos.get(i).importance ==
RunningAppProcessInfo.IMPORTANCE_FOREGROUND)
{

// Home Screen Detected! Do something...
}

}

I hate continually polling a piece of code but I don't think there is
a broadcast intent that will help me out.

Do anybody know of a better way of doing this?

On Aug 28, 2:41 pm, Dianne Hackborn hack...@android.com wrote:
 They are described 
 here:http://developer.android.com/guide/topics/fundamentals.html

 On Fri, Aug 28, 2009 at 10:53 AM, GodsMoon godsm...@gmail.com wrote:

  What's the difference between a Task and a Process for
  ActivityManager?

  On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote:
   ActivityManager : getRunningTasks(int)

   On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon godsm...@gmail.com wrote:

That might be enough info for my app.
Which api are you looking at?

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] TextView encoding types? I need to display asian characters...

2009-08-29 Thread Moto

Hi all,
To me it seems crazzy that nowhere in the internet I could find
information about displaying say Chinese text encoded...  How can I do
this?  I tried changing the encoding type on the xml of a layout but I
believe that's there only for eclipse to read and understand the xml
that it...

i.e.
?xml version=1.0 encoding=UTF-8?

I also found this but don't understand how exactly to use:
http://developer.android.com/reference/android/util/Xml.Encoding.html#ISO_8859_1

So how do I go about doing something like the Android Market.  I saw
that they could display some apps that were in chinese...


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



[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread GodsMoon

Thanks for the advice. That works way better.

On Aug 29, 12:19 pm, Dianne Hackborn hack...@android.com wrote:
 I would instead suggest the service just make a BroadcastReceiver inner
 class, which it explicitly registers in onCreate() with registerReceiver()
 (and unregisterReceiver() in onDestroy() of course).



 On Fri, Aug 28, 2009 at 9:06 PM, GodsMoon godsm...@gmail.com wrote:

  Looks like I answered my own question.
  There is a  peekService  method in BroadcastReceiver for interacting
  with existing Services.

  On Aug 28, 11:50 pm, GodsMoon godsm...@gmail.com wrote:
   Can I Receive a Broadcast from a Service?
   It seem I have to extend BroadcastReceiver to receive broadcasts but
   I'm already extending Service and I can't extend 2 classes.
   Do I set up an additional Activity to receive broadcasts and then just
   pass stuff to the already running Service. And if so, how to I pass
   additional info to an existing Service?
   Is there a better way?

   Thanks in advance.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: textbox error

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

...and your code (java and xml) please.
Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

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


On Aug 29, 7:19 am, kabir kab...@gmail.com wrote:
 Ah sorry, have pasted below:

 08-29 14:15:15.717: INFO/dalvikvm(742): Stack overflow, expanding
 (0x41048200 to 0x41048000)
 08-29 14:15:15.727: INFO/dalvikvm(742): Shrank stack (to 0x41048200,
 curFrame is 0x41049cd8)
 08-29 14:15:15.727: DEBUG/AndroidRuntime(742): Shutting down VM
 08-29 14:15:15.737: WARN/dalvikvm(742): threadid=3: thread exiting
 with uncaught exception (group=0x4000fe70)
 08-29 14:15:15.737: ERROR/AndroidRuntime(742): Uncaught handler:
 thread main exiting due to uncaught exception
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):
 java.lang.StackOverflowError
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:603)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.addFocusables(ViewGroup.java:614)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.View.getFocusables(View.java:3097)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.FocusFinder.findNextFocus(FocusFinder.java:109)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.FocusFinder.findNextFocus(FocusFinder.java:93)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:461)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.ViewGroup.focusSearch(ViewGroup.java:463)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.View.focusSearch(View.java:3032)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.widget.TextView.onCreateInputConnection(TextView.java:4321)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.inputmethod.InputMethodManager.startInputInner
 (InputMethodManager.java:933)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.inputmethod.InputMethodManager.checkFocus
 (InputMethodManager.java:1105)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.view.inputmethod.InputMethodManager.isActive
 (InputMethodManager.java:530)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 android.widget.TextView.onDraw(TextView.java:3880)
 08-29 14:15:15.797: ERROR/AndroidRuntime(742):     at
 

[android-developers] Re: Bluetooth Support (lack of it)

2009-08-29 Thread CaseyB

 Andriod doesn't support many profiles.  (ummm 1, the headset profile)
 I can't listen to music via bluetooth in my car anymore.

It supports the Headset profile and the Stereo bluetooth profile.  I
listen to music and podcasts in my car via bluetooth every day.

 The new version of windows mobile has PAN and supports tethering out
 of the box.

I think the lack of tethering support has to do with the fact that the
devices are locked to T-Mobile and tethering violates their terms of
use.

 For GOD sakes, I can't even get a directory listing via USB
 connection.  How does anyone load their own videos and music on this
 device?

You can.  You can access the SD card in your phone via USB and copy
music, videos or anything else to it.  It seems that your real problem
is that you need to RTFM.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Force Close-Wait

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)

You have an ANR...check your code and logcat output, there's a
problem.

http://developer.android.com/guide/practices/design/responsiveness.html

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

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


On Aug 28, 10:16 pm, Sasi Kumar sasikumar.it1...@gmail.com wrote:
 When i'm trying to execute my project.

 It will show one alert dialog in run time.

 That Shows to Forceclose or Wait.

 Why this alert dialog is showing.

 There is any way to stop these.

 In my project i'm reading xml files. is this cause any problem.

 Reply me.

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



[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
No there is no API to do this.  What are you trying to accomplish?

Note that your code will break in many many situations -- when a custom home
screen is being used, on a device where the manufacturer is not using the
base platform home app, in the future when we have more memory so don't need
to run home in a shared process, etc.

On Sat, Aug 29, 2009 at 9:59 AM, GodsMoon godsm...@gmail.com wrote:


 I have a solution for home screen detection, but its slow and
 horrible.
 I run this bit of code every 1 seconds.

 ActivityManager actvityManager = (ActivityManager)
 this.getSystemService( ACTIVITY_SERVICE );
ListRunningAppProcessInfo  procInfos =
 actvityManager.getRunningAppProcesses();

for(int i = 0; i  procInfos.size(); i++)
{

if(procInfos.get(i).processName.compareTo
 ( android.process.acore) == 0
 procInfos.get(i).importance ==
 RunningAppProcessInfo.IMPORTANCE_FOREGROUND)
{

// Home Screen Detected! Do something...
}

}

 I hate continually polling a piece of code but I don't think there is
 a broadcast intent that will help me out.

 Do anybody know of a better way of doing this?

 On Aug 28, 2:41 pm, Dianne Hackborn hack...@android.com wrote:
  They are described here:
 http://developer.android.com/guide/topics/fundamentals.html
 
  On Fri, Aug 28, 2009 at 10:53 AM, GodsMoon godsm...@gmail.com wrote:
 
   What's the difference between a Task and a Process for
   ActivityManager?
 
   On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote:
ActivityManager : getRunningTasks(int)
 
On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon godsm...@gmail.com
 wrote:
 
 That might be enough info for my app.
 Which api are you looking at?
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon

I'm writing an app that turns off the keyguard and I would like to
exitKeyguardSecurely when you user goes back to the home screen.
This works great when hitting the Home button, but the user can back
to the home screen without prompt by using the back button (I think
this is an API bug).
So I'm trying to determine if the Home screen is displayed so I can
force exitKeyguardSecurely.

I realize homescreen replacements will break this code but until the
API bug gets fixed I don't see a good way around this.

On Aug 29, 2:35 pm, Dianne Hackborn hack...@android.com wrote:
 No there is no API to do this.  What are you trying to accomplish?

 Note that your code will break in many many situations -- when a custom home
 screen is being used, on a device where the manufacturer is not using the
 base platform home app, in the future when we have more memory so don't need
 to run home in a shared process, etc.



 On Sat, Aug 29, 2009 at 9:59 AM, GodsMoon godsm...@gmail.com wrote:

  I have a solution for home screen detection, but its slow and
  horrible.
  I run this bit of code every 1 seconds.

  ActivityManager actvityManager = (ActivityManager)
  this.getSystemService( ACTIVITY_SERVICE );
                 ListRunningAppProcessInfo  procInfos =
  actvityManager.getRunningAppProcesses();

                 for(int i = 0; i  procInfos.size(); i++)
                 {

                         if(procInfos.get(i).processName.compareTo
  ( android.process.acore) == 0
                                          procInfos.get(i).importance ==
  RunningAppProcessInfo.IMPORTANCE_FOREGROUND)
                         {

                                 // Home Screen Detected! Do something...
                         }

                 }

  I hate continually polling a piece of code but I don't think there is
  a broadcast intent that will help me out.

  Do anybody know of a better way of doing this?

  On Aug 28, 2:41 pm, Dianne Hackborn hack...@android.com wrote:
   They are described here:
 http://developer.android.com/guide/topics/fundamentals.html

   On Fri, Aug 28, 2009 at 10:53 AM, GodsMoon godsm...@gmail.com wrote:

What's the difference between a Task and a Process for
ActivityManager?

On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote:
 ActivityManager : getRunningTasks(int)

 On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon godsm...@gmail.com
  wrote:

  That might be enough info for my app.
  Which api are you looking at?

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread karthikr


And there has been no updates for quite sometime now, seems things are
going very slow for the past few months, i hope google atleast keeps
us updated on the status. I have sent numerous number of emails to
android support mail id over the past 6 moths regarding this issue,
but i havnt receieved a single reply so far. Is somone from google
watching this post please do keep us updated..

I am eager to see India on the list...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Date Limit

2009-08-29 Thread Brian Conrad

I've done something like this with my own DatePicker like widget where I 
used the TextWatcher member to keep input within bounds.  I haven't 
tried it with the DatePicker widget but it may be possible.

- Brian

Sasi Kumar wrote:
 Can any one suggess that i want a limited datepicker


 ex:- 25 aug 2009 to 24 aug 2010


 please reply


 Join:

 http:
 //groups.google.com/group/mobile-application-developers

 

   


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



[android-developers] escaping string in SQLite

2009-08-29 Thread Nate

How should I be escaping strings for SQLite? I found I was inserting a
string with single quote and this broke. I am now replacing single
quote with two single quotes, but I am wondering what else I should be
escaping, if anything? The SQLite documentation is especially
unhelpful.

I realize this isn't an Android question, but Android uses SQLite and
you should be escaping if you do anything with that part of the
Android API.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: China to have there own Android Market?

2009-08-29 Thread Kai

China is a very different market.

Each carriers is working on running its own app store that supports
different platforms(like app stores inside carrier app store).  The 3
carriers are very powerful so that you won't see a standalone app
store like Apple App Store across carriers.  The traditional way of
paying apps via credit card doesn't work in China cause most Chinese
still don't have credit cards.

oPhone SDK is based on Android 1.1.  It integrates with China Mobile's
services.  You can easily port and localize your Android app to
oPhone.

You can read more about the mobile market in China below:
China Mobile's Mobile Market app store:
http://blog.agilestorm.com/2009/08/26/ouch-china-mobiles-messy-mobile-market-app-store-clone-stumbling-out-of-gate/
China Unicom's App Store that's not only going to support iPhone but
also other platforms as well:  http://www.kai-mai.com/node/171

Kai

On Aug 25, 2:23 pm, CraigsRace craig...@gmail.com wrote:
 Thanks for the info.  Going to stay well clear of them.  Cheers.

 On Aug 26, 1:04 am, Hong lordh...@gmail.com wrote:

  They also operate jailbreak iPhone apps and pirated iPhone apps, if you so
  care.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: escaping string in SQLite

2009-08-29 Thread Agus
use:

org.apache.commons.lang.StringEscapeUtils.escapeSql(str)

On Sat, Aug 29, 2009 at 12:25 PM, Nate nathan.sw...@gmail.com wrote:


 How should I be escaping strings for SQLite? I found I was inserting a
 string with single quote and this broke. I am now replacing single
 quote with two single quotes, but I am wondering what else I should be
 escaping, if anything? The SQLite documentation is especially
 unhelpful.

 I realize this isn't an Android question, but Android uses SQLite and
 you should be escaping if you do anything with that part of the
 Android API.
 


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



[android-developers] Service - Activity (simplest way)

2009-08-29 Thread Rafael Martins

Hi, folks!

I'm searching for the simplest way to implement a communication
between an activity and a service when both are running at the same
process.

I've already made it using binders like the official example in the
API Demo, but I want to call activity's methods from the service. So,
I've made a public static method in the activity and it is working. I
would like to understand the problems of doing this. Why we have to
use binders if we can do all without them? How is the simplest way to
do this?

Sorry if this is a silly question... :-)

Thank u all!

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



[android-developers] Urgent: ListView icon problem

2009-08-29 Thread Sonic

Hi all,

I would be VERY greatful if you could help me with this one, its
literally driving me insane, been trying to do this for 2 days now.

I have a listview, now what I want to do it is, when a position in the
listview gets clicked on, it changes the icon for that position, to a
drawable named ok.png . Simple,

Below is the method I use to fill the ListView

Java:

private void fillData() {
// Get all of the notes from the database and create the item
list
Cursor c = mDbHelper.fetchAllNotes();
startManagingCursor(c);

//String[] from = new String[] { DbAdapter.KEY_TITLE };

int[] to = new int[] { R.id.text1 };

// Now create an array adapter and set it to display using our
row
SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.row, c, from, to);

setListAdapter(notes);




}



and the array that is first declared:

Java:

public class QuickList extends ListActivity implements
View.OnClickListener{
 //declares
 Button add;
 EditText input;
 private DbAdapter mDbHelper;
 private int mNoteNumber = 1;
private static final int DELETE_ID = Menu.FIRST;
String[] from = new String[] { DbAdapter.KEY_TITLE };



I would REALLY appreciate some help with this.

Thanks in advance.

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



[android-developers] Android project

2009-08-29 Thread sriram

Hello friends,

I am a student studying in final year engineering in IT.
I am willing to do my final year projecto Android platform.
Can anyonelease suggest me a good idea that camn be implemented on
Android platform.
We, a group of 5 will be working on this for 5-6 months.
Please, help me out with the topic I am in big trouble.
HELP ME OUT!!

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



[android-developers] How do I unsubscribe?

2009-08-29 Thread John Zebrowski

I tried android-developer-unsubscribe@ googlegroups.com but my account 
is not a gmail account so I get a failed delivery status notification.


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



[android-developers] Showing places near current location

2009-08-29 Thread chris price

Hi,

I have a app which shows my current location on a map.

I want to display places the user is interested in, for example, the
location of nearby pubs.

I have the lat and long, is there a API method call to say get

1) all the locations matching this 'Pub'
2) within 1 mile or simply get 10 pubs

thanks

Chris

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



[android-developers] Hello World - Unknown Error

2009-08-29 Thread DemoShadow

I have just set-up the AndroidSDK in Eclipse in linux. Everything was
going smoothly until I hit the final run that would run the emulator
and start the application. I came up with an [2009-08-29 10:28:35 -
HelloAndroid] Unknown error:  Is their a way to run the emulator by
itself just to check if its that? And any other ideas would be
appreciated.

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



[android-developers] Re: Ubuntu Jaunty and adb not playing well together

2009-08-29 Thread Rino

Here's what works for me on Ubuntu Karmic with my Htc Dream (Vendor ID
0bb4 as seen with 'lsusb') :
- device in usb debug mode (settings/applications/developpment/)

- in file /etc/udev/rules.d/51-android.rules :
SUBSYSTEM==”usb”,ATTRS(idVendor)==”0bb4“,SYMLINK
+=android_adb,MODE=”0666″

- chmod a+x /etc/udev/rules.d/51-android.rules (don't think it's
necessary, though)

- killall adb

- /etc/init.d/udev restart ; /etc/init.d/udev-finish restart

- adb in $PATH

Now 'adb devices' lists my device.


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



[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon godsm...@gmail.com wrote:

 I'm writing an app that turns off the keyguard and I would like to
 exitKeyguardSecurely when you user goes back to the home screen.
 This works great when hitting the Home button, but the user can back
 to the home screen without prompt by using the back button (I think
 this is an API bug).


What API bug?  Of course you can press back to go to the home screen.

What are you doing to determine when the user presses home?  Afaik there
isn't really a way to do this since the system completely consumes the home
key.

Unfortunately, I don't think there is any robust way to do what you want.  I
can't imagine an app being able to do this consistently with the current
API...  and that should kind-of give you a moment of pause since you are
messing with the lock screen and thus fundamental security of the device.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-29 Thread 于洋
Hello,
   I'm dealing with a application which associate with GPS mock locations
and XMPP comunication,and need to send the mock location to two emulator by
ADT at the same time .However I've got a problem .It seems that the location
cann't be send to two emulator  in my computor at the same time . So ,may
any master-hand can tell me if it is possible for us to send mock location
to two emulator in the same computor at the same  time ?
   thanks very much.

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



[android-developers] Re: App shutdown during package reinstall

2009-08-29 Thread nubin...@gmail.com

I don't know the details of your app, but every app in the Android
market can be upgraded by the user while the app is running. During
the upgrade process, the running instance of the older version would
be shut down.

I've rarely seen any complaints that the app is broken during upgrade
from Android market, so I believe the upgrade process itself is
sound.

I think the main problem of your app is not the upgrading process, but
rather it doesn't handle the android lifecycle model properly, and
doesn't cleanly shut down.

On Aug 25, 10:47 am, DaveG david.golom...@flexilis.com wrote:
 On Aug 24, 12:34 pm, Hong lordh...@gmail.com wrote:

  If you do: adb uninstall your.package.name.mainactivity,
  do you ever get any crash/error etc?

  If not, the upgrade/installation process will uninstall your app cleanly.

 We do get crashes (that we're working on), but they don't matter
 since our data files are deleted on uninstall, which is what we
 want to ensure are not corrupted.

  If onDestroy() is never called, try to do things in onStop().
  I would assume onDestroy() will be called during un-installation process.

 I'll give that a try, thanks.

  Other than that, you can potentially have a separate service running and
  check the state of your app, and also the activity of the installer/download
  activities, and clean up things accordingly.

 Yeah, we've been trying that and getting wierd results. If that's
 really the
 only way we can pursue it more.

 Thanks,
 Dave

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



[android-developers] Re: Play audio over an active phone call, so other end can hear it

2009-08-29 Thread jsdf

tcp,
No, I haven't been able to find anything. Looks like it was either
overlooked or intentionally decided against.
jdsf

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



[android-developers] erase char in adb shell?

2009-08-29 Thread Carl Banks

Anyone know if there's a built-in way to change erase char when using
adb shell?  adb doesn't forward my terminal settings, stty isn't
installed, and unfortunately on my desktop backspace sends ^H, whereas
android has erase set to ^? (DEL).

No, I'm not going to change the erase character on my desktop just to
get adb shell to work.

It looks like I could cross-compile and install stty myself, but I
don't feel like doing that.

On a related note, is there a way to set up something like a /etc/
profile for the shell?

Note: I'm using a G1, CRC1 release.

Thanks.

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



[android-developers] Programmaticly adding playlists

2009-08-29 Thread Nathan Ekstrom

I've been banging my head against this for over a day now.  How do I
get a play list file (extension .m3u) to show up in the media player
programmaticly?  I figured out how to add .mp3 files by handing them
to the media scanner.  When I hand the play list file to the media
scanner it does nothing.  If I run the Dev Tools  Scan Media or
unmount and remount the sdcard the playlist shows up.  So how can I
add the playlist or how can I tell the system that there is a new play
list file it needs to add?

Any help would be appreciated as I have run out of ideas.

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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread CG

This is indeed very annoying, sitting in Denmark and cannot bye or
sell aps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-29 Thread Emre A. Yavuz

 

Did you try opening two command screens and telneting to each emulator 
seperately ? You can then use the command geo fix lat long ..  to send mock 
locations.

 

Cheers,

 

Emre
 


Date: Sat, 29 Aug 2009 13:23:11 +0800
Subject: [android-developers] can one cmulator control controls two emulators 
in the same computor at the same time ?
From: yuyang3...@gmail.com
To: android-developers@googlegroups.com

Hello,
   I'm dealing with a application which associate with GPS mock locations and 
XMPP comunication,and need to send the mock location to two emulator by ADT at 
the same time .However I've got a problem .It seems that the location cann't be 
send to two emulator  in my computor at the same time . So ,may any master-hand 
can tell me if it is possible for us to send mock location to two emulator in 
the same computor at the same  time ?
   thanks very much.
   



_
Send and receive email from all of your webmail accounts.
http://go.microsoft.com/?linkid=9671356
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon

Dianne Hackborn,
Are you familiar with the KeyguardManager class? Its really cool, I
haven't seen anything like it on any other platform and I'm excited to
take advantage of it.
http://developer.android.com/reference/android/app/KeyguardManager.html

It can take over the Home screen button

I've created a bug report.
http://code.google.com/p/android/issues/detail?id=3715

Thanks for your help.


On Aug 29, 3:41 pm, Dianne Hackborn hack...@android.com wrote:
 On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon godsm...@gmail.com wrote:
  I'm writing an app that turns off the keyguard and I would like to
  exitKeyguardSecurely when you user goes back to the home screen.
  This works great when hitting the Home button, but the user can back
  to the home screen without prompt by using the back button (I think
  this is an API bug).

 What API bug?  Of course you can press back to go to the home screen.

 What are you doing to determine when the user presses home?  Afaik there
 isn't really a way to do this since the system completely consumes the home
 key.

 Unfortunately, I don't think there is any robust way to do what you want.  I
 can't imagine an app being able to do this consistently with the current
 API...  and that should kind-of give you a moment of pause since you are
 messing with the lock screen and thus fundamental security of the device.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JSONExceptions

2009-08-29 Thread Mark Murphy

Eurig Jones wrote:
 I'm fetching a lot of JSON values. Values that could potentially not
 exist from my server.
 
 Having android throw JSONExceptions when something doesn't exist is
 really annoying! Returning a null value would be enough.
 
 Anyone know the reason behind this?

You would have to ask the author of the org.json package, whose home is
json.org.

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

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

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



[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Dianne Hackborn
Actually, the official example in the same process doesn't use binders for
communication at all:

http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceBinding.html
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/LocalService.html

I don't know what we've done to lead so many people to jump to the much more
complicated remote service sample, but if your service and activity are in
the same process then I strongly recommend taking advantage of that like the
local example does.

On Sat, Aug 29, 2009 at 9:04 AM, Rafael Martins rafaelwmart...@gmail.comwrote:


 Hi, folks!

 I'm searching for the simplest way to implement a communication
 between an activity and a service when both are running at the same
 process.

 I've already made it using binders like the official example in the
 API Demo, but I want to call activity's methods from the service. So,
 I've made a public static method in the activity and it is working. I
 would like to understand the problems of doing this. Why we have to
 use binders if we can do all without them? How is the simplest way to
 do this?

 Sorry if this is a silly question... :-)

 Thank u all!

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread jsdf

Dianne,
Yes, the log tells me that my package requires unavailable shared
library com.google.android.maps.

When I take out the uses-library
android:name=com.google.android.maps / from my manifest, it loads
successfully.  On launch, I get an error: Unable to resolve
superclass of Lcom/jsdf/app/map/MapViewActivity;
And, clearly, that is not the right solution anyway.

Do you (or anyone else) have suggestions on how else to approach this?



Additional details:

My Eclipse build path shows:
admob-sdk-android.jar
FlurryAgent.jar
Google APIs [Android 1.5] -- when expanded, this shows android.jar
and maps.jar.

My Eclipse  Project Properties  Android  Project Build Target is
Google APIs

My (disguised) manifest is below.  Note that if I change uses-sdk
android:minSdkVersion from 1 to 3, the result is the same.

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.jsdf.app android:versionName=1.0
android:versionCode=1
uses-sdk android:minSdkVersion=1 /
uses-permission android:name=android.permission.VIBRATE/uses-
permission
uses-permission android:name=android.permission.INTERNET/uses-
permission
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
application android:icon=@drawable/icon android:label=@string/
app_name
android:debuggable=true
android:name=com.jsdf.app.App
uses-library android:name=com.google.android.maps /
activity android:name=.AppApplication
intent-filter
action 
android:name=android.intent.action.MAIN /
category 
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=Activity/activity
meta-data android:value=
android:name=ADMOB_PUBLISHER_ID /
/application
/manifest

Thanks,
jsdf


On Aug 29, 11:08 am, Dianne Hackborn hack...@android.com wrote:
 You have a uses-library line in your manifest for a shared library that is
 not built into the emulator.  The log will probably tell you more.



 On Sat, Aug 29, 2009 at 8:37 AM, jsdf jasons...@gmail.com wrote:

  Hi all,
  When I try to install one of my applications to the emulator with adb
  install bin/app.apk, I constantly receive the following:

  1134 KB/s (123414 bytes in 0.106s)
         pkg: /data/local/tmp/app-lite.apk
  Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

  I have built with two external libraries, Flurry and AdMob.
  I have also tried rebuilding my project from scratch, with the same
  results.

  The very odd thing is that this does not happen when I install the
  release version to my phone via downloading an .apk file.

  Does anyone have suggestions on how to proceed?

  Thanks,
  jsdf

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Quattrowireless - monetizing your app

2009-08-29 Thread James

I recently posted a free app and subsequently received an email about
monetizing your app from quattrowireless. It sounds enticing but am
wondering if anyone has taken advantage of this offer and how they may
feel about it?

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



[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread Roman ( T-Mobile USA)

Could you send a complete trace of your logcat. It might be from
importance when exactly you are getting this error message.
Furthermore you can check in the project folder of your application
whether the APK was correctly created (look in the bin folder).
Sometimes the emulator behaves weird, a emulator restart might help.

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

On Aug 29, 8:33 am, DemoShadow demosha...@gmail.com wrote:
 I have just set-up the AndroidSDK in Eclipse in linux. Everything was
 going smoothly until I hit the final run that would run the emulator
 and start the application. I came up with an [2009-08-29 10:28:35 -
 HelloAndroid] Unknown error:  Is their a way to run the emulator by
 itself just to check if its that? And any other ideas would be
 appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Quattrowireless - monetizing your app

2009-08-29 Thread Maps.Huge.Info (Maps API Guru)

Got the same e-mail, sort of spammy.

I use the example app they posted, Weatherbug which is a nice app.
The ads displayed on it are of reasonable size and unobtrusive, so
perhaps they are an ok source of ad revenue. Don't know how they pay
or what kind of company they are though.

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



[android-developers] Re: Urgent: ListView icon problem

2009-08-29 Thread Mark Murphy

Sonic wrote:
 Hi all,
 
 I would be VERY greatful if you could help me with this one, its
 literally driving me insane, been trying to do this for 2 days now.
 
 I have a listview, now what I want to do it is, when a position in the
 listview gets clicked on, it changes the icon for that position, to a
 drawable named ok.png . Simple,
 
 Below is the method I use to fill the ListView
 
 Java:
 
 private void fillData() {
 // Get all of the notes from the database and create the item
 list
 Cursor c = mDbHelper.fetchAllNotes();
 startManagingCursor(c);
 
 //String[] from = new String[] { DbAdapter.KEY_TITLE };
 
 int[] to = new int[] { R.id.text1 };
 
 // Now create an array adapter and set it to display using our
 row
 SimpleCursorAdapter notes =
 new SimpleCursorAdapter(this, R.layout.row, c, from, to);
 
 setListAdapter(notes);
 
 
 
 
 }
 
 
 
 and the array that is first declared:
 
 Java:
 
 public class QuickList extends ListActivity implements
 View.OnClickListener{
  //declares
  Button add;
  EditText input;
  private DbAdapter mDbHelper;
  private int mNoteNumber = 1;
 private static final int DELETE_ID = Menu.FIRST;
 String[] from = new String[] { DbAdapter.KEY_TITLE };
 
 
 
 I would REALLY appreciate some help with this.

Read:

http://commonsware.com/Android/excerpt.pdf

It shows you how to override getView() on an ArrayAdapter to achieve
your goals. In your case, you will want to override newView() and
bindView(), since you are using a CursorAdapter.

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

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

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



[android-developers] Re: Support for Arabic?

2009-08-29 Thread Mark Murphy

Ehab Bassilli wrote:
 Can someone from Google kindly tell me when you expect Android to work
 for languages such as Arabic. I'm aware that Arabic is not currently
 supported. 

There are contributors working on that right now -- there has been a
fair bit of discussion over on [android-platform].

 Also, what new features will Android 2.0 have? (officially). 

Officially, there have been no formal announcements of features for
Android 1.6, Android 2.0, Android 2.x, Android 3.x, etc. Generally,
there are no formal announcements of features until it ships, at least
in a preview form.

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

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

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



[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Roman ( T-Mobile USA)

Any ideas what is the size of your input stream?

I assume that when you call the method with passing the input stream,
your stack is too small that's why you get the segmentation fault.


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



On Aug 29, 9:30 am, Dianne Hackborn hack...@android.com wrote:
 Could you please file a bug report with full code to reproduce?

 Also I know this is not going to be helpful at all, but I would really
 recommend staying away from DocumentBuilder -- it is a lot more overhead
 compared to directly parsing the XML.

 In fact, by far the most efficient way to parse an XML resource is to put it
 in res/xml, and retrieve it with Resources.getXml().  This can be literally
 a couple orders of magnitude faster than using a pull parser on a raw XML
 file.

 On Sat, Aug 29, 2009 at 7:30 AM, longhairedsi
 longhaire...@googlemail.comwrote:



  Arggh! it seems to be a random error, it just happned again a few
  times. If I debug and step through it works fine. If i run normally it
  fails.

   the code fails when builder.create().show(); is called on the
  dialogue

  Here's the snippets( i'm using the template pattern to build different
  loading objects)

  in the activity packbuilder is the xml loader, buildJamPacks is the
  method i am updating

  private void showWelcomeMessage(){
                 if (mPackBuilder == null) {
                         mPackBuilder = new JamPackBuilderAssets(this);
                         mPackBuilder.buildJamPacks();
                 }
                 AlertDialog.Builder builder = new AlertDialog.Builder(this);
                 //builder.setTitle(Please choose a loop pack);
                 //builder.setIcon(R.drawable.alert_dialog_icon)
                 builder.setTitle(Welcome to MicroJam!);
         builder.setMessage(R.string.instructions);
                 builder.setPositiveButton(Ok, new
  DialogInterface.OnClickListener
  () {
                         public void onClick(DialogInterface dialog, int
  whichButton) {

   openJamPack(mPackBuilder.getPack(0));//default pack House 1
                         }
                 });
                 builder.create().show();
         }

  //Working code:

  // Loops through each folder in the root.
         // Load the song definition file for each song(default_song.xml)
         public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 File[] packs = new File(mRootFolder).listFiles();
                 int l = packs.length;
                 for (int i = 0; i  l; i++) {
                         File pack = packs[i];

                                 File defaultSongFile = new
  File(pack.getAbsolutePath() + /
                                         + SONG_FILE_NAME);
                         if(defaultSongFile.exists()){
                                 Document songXml =
  parseSongFile(defaultSongFile);
                                 JamPack JamPack =
  buildPackFromXml(pack.getAbsolutePath(),
  songXml);
                                 mJamPacks.add(JamPack);
                         }else{

                                 //TODO: handle this gracefully
                         }

                 }
         }
   protected Document parseSongFile(File file) {
                  try {
                         DocumentBuilder docBuilder =
  DocumentBuilderFactory.newInstance()
                                         .newDocumentBuilder();
                          InputStream fis = new FileInputStream(file);
                         Document songXml = docBuilder.parse(fis);
                          return songXml;
                 } catch (FileNotFoundException e) {

  //Not working code
  public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 AssetManager manager = mCtx.getAssets();
                 String[] packs;
                 try {
                         packs = manager.list(mLoopsDir);
                         int l = packs.length;
                         for (int i = 0; i  l; i++) {
                                 String pack = packs[i];
                                 String fullpath = mLoopsDir + / + pack ;

                                 Document songXml = parseSongAsset();
                                 JamPack JamPack = buildPackFromXml(fullpath,
  songXml);
                                 mJamPacks.add(JamPack);
                                 songXml = null;

                         }
                 }
                 catch(IOException e){
                         e.printStackTrace();
                  }
         }

  protected Document parseSongAsset() {
         try {
                 InputStream filestream = null;
                 filestream = mCtx.getResources().openRawResource
 

[android-developers] Re: Accelerometer OnSensorChanged() no longer occur in standby

2009-08-29 Thread Yuri Dario

Hi,


 the Magic or Hero when I tried partial wake locks (you mentioned
 trying on ADP1, ie a G1 - have you tried it on any other handsets?)

there are over 100 users now, so I think it works; I'll ask someone I
know has a magic.

 It has worked in the past without any requirement on a wake lock as
 well, so I believe something must have changed recently to cause this.

I saw that 1.0/1.1 was not sending sensor updates at all when screen
was off, this has been changed in 1.5

bye,

Yuri

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



[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread DemoShadow
How do I do that?

On Aug 29, 2009 3:52 PM, Roman ( T-Mobile USA) 
roman.baumgaert...@t-mobile.com wrote:


Could you send a complete trace of your logcat. It might be from
importance when exactly you are getting this error message.
Furthermore you can check in the project folder of your application
whether the APK was correctly created (look in the bin folder).
Sometimes the emulator behaves weird, a emulator restart might help.

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

On Aug 29, 8:33 am, DemoShadow demosha...@gmail.com wrote:  I have just
set-up the AndroidSDK in...

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



[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Rafael Martins

But I would like to know if there is any problem if I just call
“public static” methods between activities and services, without using
the IBinder object from the OnServiceConnected(ComponentName
className, IBinder service) method. Calling directing the methods
(“public static”) we don’t need this line from the example:

mBoundService = ((LocalService.LocalBinder)service).getService();

Do we need an object to communicate between services and activities?
If we need, how a service can get an object of the activity class (to
call activity's methods from the service)?

Thank u for your attention.

On 29 ago, 17:35, Dianne Hackborn hack...@android.com wrote:
 Actually, the official example in the same process doesn't use binders for
 communication at all:

 http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...

 I don't know what we've done to lead so many people to jump to the much more
 complicated remote service sample, but if your service and activity are in
 the same process then I strongly recommend taking advantage of that like the
 local example does.

 On Sat, Aug 29, 2009 at 9:04 AM, Rafael Martins 
 rafaelwmart...@gmail.comwrote:







  Hi, folks!

  I'm searching for the simplest way to implement a communication
  between an activity and a service when both are running at the same
  process.

  I've already made it using binders like the official example in the
  API Demo, but I want to call activity's methods from the service. So,
  I've made a public static method in the activity and it is working. I
  would like to understand the problems of doing this. Why we have to
  use binders if we can do all without them? How is the simplest way to
  do this?

  Sorry if this is a silly question... :-)

  Thank u all!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread Mark Murphy

DemoShadow wrote:
 How do I do that?

If by that you mean send a complete trace of your logcat:

http://developer.android.com/guide/developing/tools/adb.html#logcat

Or, look in DDMS or the DDMS perspective in Eclipse, and LogCat is a tab
towards the bottom. Highlight a series of rows and click the save
toolbar icon.

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

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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



[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi

Hi Diane,

I will post a bug report with example code after the developer
challenge monday deadline.

I've found the problem, it seems to be totaly unrelated, but this is
for sure where the problem comes from. I reverted project then added
code line by line.

This is where it went wrong: (this is in onCreate() )

Typeface face=Typeface.createFromAsset(getAssets(), fonts/
ds_digi.ttf);
//mode.setTypeface(face);

When I comment out mode.setTypeface(face); the application fails.
When I put it back in the app works fine(or if I delete the whole
block)

The app does not fail at this point, but later on, in a seemingly
unrelated operation.

I can't believe i've spent 10 hours on this :(.  10 hours I could have
been improving my app.

Anyway, thats life I suppose! At least i can now finish it.

Thanks
Simon

On Aug 29, 5:30 pm, Dianne Hackborn hack...@android.com wrote:
 Could you please file a bug report with full code to reproduce?

 Also I know this is not going to be helpful at all, but I would really
 recommend staying away from DocumentBuilder -- it is a lot more overhead
 compared to directly parsing the XML.

 In fact, by far the most efficient way to parse an XML resource is to put it
 in res/xml, and retrieve it with Resources.getXml().  This can be literally
 a couple orders of magnitude faster than using a pull parser on a raw XML
 file.

 On Sat, Aug 29, 2009 at 7:30 AM, longhairedsi
 longhaire...@googlemail.comwrote:





  Arggh! it seems to be a random error, it just happned again a few
  times. If I debug and step through it works fine. If i run normally it
  fails.

   the code fails when builder.create().show(); is called on the
  dialogue

  Here's the snippets( i'm using the template pattern to build different
  loading objects)

  in the activity packbuilder is the xml loader, buildJamPacks is the
  method i am updating

  private void showWelcomeMessage(){
                 if (mPackBuilder == null) {
                         mPackBuilder = new JamPackBuilderAssets(this);
                         mPackBuilder.buildJamPacks();
                 }
                 AlertDialog.Builder builder = new AlertDialog.Builder(this);
                 //builder.setTitle(Please choose a loop pack);
                 //builder.setIcon(R.drawable.alert_dialog_icon)
                 builder.setTitle(Welcome to MicroJam!);
         builder.setMessage(R.string.instructions);
                 builder.setPositiveButton(Ok, new
  DialogInterface.OnClickListener
  () {
                         public void onClick(DialogInterface dialog, int
  whichButton) {

   openJamPack(mPackBuilder.getPack(0));//default pack House 1
                         }
                 });
                 builder.create().show();
         }

  //Working code:

  // Loops through each folder in the root.
         // Load the song definition file for each song(default_song.xml)
         public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 File[] packs = new File(mRootFolder).listFiles();
                 int l = packs.length;
                 for (int i = 0; i  l; i++) {
                         File pack = packs[i];

                                 File defaultSongFile = new
  File(pack.getAbsolutePath() + /
                                         + SONG_FILE_NAME);
                         if(defaultSongFile.exists()){
                                 Document songXml =
  parseSongFile(defaultSongFile);
                                 JamPack JamPack =
  buildPackFromXml(pack.getAbsolutePath(),
  songXml);
                                 mJamPacks.add(JamPack);
                         }else{

                                 //TODO: handle this gracefully
                         }

                 }
         }
   protected Document parseSongFile(File file) {
                  try {
                         DocumentBuilder docBuilder =
  DocumentBuilderFactory.newInstance()
                                         .newDocumentBuilder();
                          InputStream fis = new FileInputStream(file);
                         Document songXml = docBuilder.parse(fis);
                          return songXml;
                 } catch (FileNotFoundException e) {

  //Not working code
  public void buildJamPacks() {
                 mJamPacks = new ArrayListJamPack();
                 AssetManager manager = mCtx.getAssets();
                 String[] packs;
                 try {
                         packs = manager.list(mLoopsDir);
                         int l = packs.length;
                         for (int i = 0; i  l; i++) {
                                 String pack = packs[i];
                                 String fullpath = mLoopsDir + / + pack ;

                                 Document songXml = parseSongAsset();
                                 JamPack JamPack = buildPackFromXml(fullpath,
  songXml);
                                 mJamPacks.add(JamPack);
    

[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Dianne Hackborn
You're  much safer if you explicitly connect them together.  There are many
ways a static object can be cleared or not yet set (by your process being
killed) when you aren't expecting it.

On Sat, Aug 29, 2009 at 2:42 PM, Rafael Martins rafaelwmart...@gmail.comwrote:


 But I would like to know if there is any problem if I just call
 “public static” methods between activities and services, without using
 the IBinder object from the OnServiceConnected(ComponentName
 className, IBinder service) method. Calling directing the methods
 (“public static”) we don’t need this line from the example:

 mBoundService = ((LocalService.LocalBinder)service).getService();

 Do we need an object to communicate between services and activities?
 If we need, how a service can get an object of the activity class (to
 call activity's methods from the service)?

 Thank u for your attention.

 On 29 ago, 17:35, Dianne Hackborn hack...@android.com wrote:
  Actually, the official example in the same process doesn't use binders
 for
  communication at all:
 
 
 http://developer.android.com/guide/samples/ApiDemos/src/com/example/a...http://developer.android.com/guide/samples/ApiDemos/src/com/example/a.
 ..
 
  I don't know what we've done to lead so many people to jump to the much
 more
  complicated remote service sample, but if your service and activity are
 in
  the same process then I strongly recommend taking advantage of that like
 the
  local example does.
 
  On Sat, Aug 29, 2009 at 9:04 AM, Rafael Martins 
 rafaelwmart...@gmail.comwrote:
 
 
 
 
 
 
 
   Hi, folks!
 
   I'm searching for the simplest way to implement a communication
   between an activity and a service when both are running at the same
   process.
 
   I've already made it using binders like the official example in the
   API Demo, but I want to call activity's methods from the service. So,
   I've made a public static method in the activity and it is working. I
   would like to understand the problems of doing this. Why we have to
   use binders if we can do all without them? How is the simplest way to
   do this?
 
   Sorry if this is a silly question... :-)
 
   Thank u all!
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
On Sat, Aug 29, 2009 at 12:54 PM, GodsMoon godsm...@gmail.com wrote:

 Dianne Hackborn,
 Are you familiar with the KeyguardManager class? Its really cool, I
 haven't seen anything like it on any other platform and I'm excited to
 take advantage of it.
 http://developer.android.com/reference/android/app/KeyguardManager.html


Yes I am.


 It can take over the Home screen button


I don't know what you mean.  As far as I know, it has nothing to do with the
home screen button, it just controls whether the lock screen is shown.


 I've created a bug report.
 http://code.google.com/p/android/issues/detail?id=3715


I've closed this as work as intended, because what you are requesting is not
how it is supposed to work.

You could look at the AlarmClock app to see an example if the API's use.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread Dianne Hackborn
Apparently your app needs Google's maps library.  That library is not in the
emulator image you are using.  I am pretty sure there is an image included
in the SDK that contains that library; the documentation about the SDK and
ADTs should be of help.

On Sat, Aug 29, 2009 at 1:24 PM, jsdf jasons...@gmail.com wrote:


 Dianne,
 Yes, the log tells me that my package requires unavailable shared
 library com.google.android.maps.

 When I take out the uses-library
 android:name=com.google.android.maps / from my manifest, it loads
 successfully.  On launch, I get an error: Unable to resolve
 superclass of Lcom/jsdf/app/map/MapViewActivity;
 And, clearly, that is not the right solution anyway.

 Do you (or anyone else) have suggestions on how else to approach this?



 Additional details:

 My Eclipse build path shows:
 admob-sdk-android.jar
 FlurryAgent.jar
 Google APIs [Android 1.5] -- when expanded, this shows android.jar
 and maps.jar.

 My Eclipse  Project Properties  Android  Project Build Target is
 Google APIs

 My (disguised) manifest is below.  Note that if I change uses-sdk
 android:minSdkVersion from 1 to 3, the result is the same.

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.jsdf.app android:versionName=1.0
android:versionCode=1
uses-sdk android:minSdkVersion=1 /
uses-permission android:name=android.permission.VIBRATE/uses-
 permission
uses-permission android:name=android.permission.INTERNET/uses-
 permission
uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
 permission
uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/uses-
 permission
application android:icon=@drawable/icon android:label=@string/
 app_name
android:debuggable=true
android:name=com.jsdf.app.App
uses-library android:name=com.google.android.maps /
activity android:name=.AppApplication
intent-filter
action
 android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=Activity/activity
meta-data android:value=
 android:name=ADMOB_PUBLISHER_ID /
/application
 /manifest

 Thanks,
 jsdf


 On Aug 29, 11:08 am, Dianne Hackborn hack...@android.com wrote:
  You have a uses-library line in your manifest for a shared library that
 is
  not built into the emulator.  The log will probably tell you more.
 
 
 
  On Sat, Aug 29, 2009 at 8:37 AM, jsdf jasons...@gmail.com wrote:
 
   Hi all,
   When I try to install one of my applications to the emulator with adb
   install bin/app.apk, I constantly receive the following:
 
   1134 KB/s (123414 bytes in 0.106s)
  pkg: /data/local/tmp/app-lite.apk
   Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
 
   I have built with two external libraries, Flurry and AdMob.
   I have also tried rebuilding my project from scratch, with the same
   results.
 
   The very odd thing is that this does not happen when I install the
   release version to my phone via downloading an .apk file.
 
   Does anyone have suggestions on how to proceed?
 
   Thanks,
   jsdf
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >