[android-developers] Detect finger going off screen?

2010-01-03 Thread scastria
I have a motion listener to detect finger down, finger drag, and
finger up.  I start my action at finger down and finish my action at
finger up.  When the action is finished, I store it in a stack for
allowing undo.  My problem is that if I don't get a finger up event, I
can't finish my action to add it to the stack for undo.

How can I detect that the user's finger has left the screen?

I tried using the emulator to see if getEdgeFlags() ever returned
anything useful, and the result was always 0.

Basically, if a finger leaves the screen, then nothing is touching the
screen anymore and I would like to detect that as a finger up event.
How can I do 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


Re: [android-developers] Detect finger going off screen?

2010-01-03 Thread Romain Guy
You should receive an ACTION_CANCEL if that happens.

On Sun, Jan 3, 2010 at 12:27 AM, scastria scastria...@gmail.com wrote:
 I have a motion listener to detect finger down, finger drag, and
 finger up.  I start my action at finger down and finish my action at
 finger up.  When the action is finished, I store it in a stack for
 allowing undo.  My problem is that if I don't get a finger up event, I
 can't finish my action to add it to the stack for undo.

 How can I detect that the user's finger has left the screen?

 I tried using the emulator to see if getEdgeFlags() ever returned
 anything useful, and the result was always 0.

 Basically, if a finger leaves the screen, then nothing is touching the
 screen anymore and I would like to detect that as a finger up event.
 How can I do 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




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

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

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


Re: [android-developers] New in android developement

2010-01-03 Thread TreKing
Answers for 1 - 7: Read the Android documentation, get a book on Android,
and learn to use Google.

Do you seriously expect someone to sit down and answer all these questions
for you when you clearly have made no effort to work them out for yourself?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

On Sun, Jan 3, 2010 at 2:44 AM, ROHIT rohit...@gmail.com wrote:

 Can any one send me some basic information about Android. I have a
 interview. I really want to work in Android technology, its a new and
 challenging technology. so i need some help My email address is

 rohit...@gmail.com


 1. Handler and Looper?
 2. What is a ContentProvider? How to involve it from ContentResolver?
 3. How do you create a Service in Android and how to you call a
 service's method?
 4. How do one does threading in android?
 5. What is Canvas.restore() and Canvas.save()? Why are they required?
 6. How to implement a SAX parser in Android?
 7. What are custom Views? How to implement them? What things are must
 when we are directly extending View class

 Thanx 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
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: Detect finger going off screen?

2010-01-03 Thread scastria
Thanks for the quick reply.  I was mistaken in my original post.  I am
indeed getting ACTION_UP events as soon as my finger leaves the screen
while I am dragging on the ADP1.  Therefore, that is good enough to
solve my problem.  Strange that I am not getting ACTION_CANCEL as you
said.  My preference is to receive ACTION_UP events (as I am currently
getting) when the finger leaves the screen, so great!

On Jan 3, 2:31 am, Romain Guy romain...@android.com wrote:
 You should receive an ACTION_CANCEL if that happens.



 On Sun, Jan 3, 2010 at 12:27 AM, scastria scastria...@gmail.com wrote:
  I have a motion listener to detect finger down, finger drag, and
  finger up.  I start my action at finger down and finish my action at
  finger up.  When the action is finished, I store it in a stack for
  allowing undo.  My problem is that if I don't get a finger up event, I
  can't finish my action to add it to the stack for undo.

  How can I detect that the user's finger has left the screen?

  I tried using the emulator to see if getEdgeFlags() ever returned
  anything useful, and the result was always 0.

  Basically, if a finger leaves the screen, then nothing is touching the
  screen anymore and I would like to detect that as a finger up event.
  How can I do 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

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android 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] MMS API and Enumeration

2010-01-03 Thread Matthew Wardrop
Dear Android Developers,

I have been scouting around for ages, trying to find how to engage
with the mms storage of the android operating system. For my purposes
it is only necessary to know the number of mms sent; and perhaps the
size of each mms. As you are probably aware, the API for this is not
documented. If you have a few moments, I would be very grateful if you
would nudge me in the right direction (if it is even possible).

The code I am currently using to attempt this is below, but it seems
not to be picking up the MMS as desired. A similar approach for SMS
certainly works.

Any pointers?

-

...
public static final Uri MMS_CONTENT_URI = Uri.parse(content://
mms);
public static final Uri MMS_SENT_CONTENT_URI = Uri.withAppendedPath
(
MMS_CONTENT_URI, sent);
...

String[] projection = new String[] { _id };
String id, date, body = ;
long[] monthBounds = getMonthBounds(resetDay);
Cursor cur = managedQuery(MMS_SENT_CONTENT_URI, projection,
date  
+ Long.toString(monthBounds[0]) +  and date  
+ Long.toString(monthBounds[1]), null, null);

if (cur.moveToFirst()) {

int idColumn = cur.getColumnIndex(_id);
int dateColumn = cur.getColumnIndex(date);

do {
// Get the field values
id = cur.getString(idColumn);
date = cur.getString(dateColumn);

// Do something with the values.

} while (cur.moveToNext());
}
--

Kind Regards,
Matthew

-- 
You received this message because you are subscribed to the Google
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: moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-03 Thread Flo
Okay, so my suspicion was right!

How can I achieve passing the parent activity to it?
Does this involve Intents? Or should the CPAddressbook simply extend
the parent activity?

Thanks for your help so far,
Flo.

On 3 Jan., 02:17, Dmitri Plotnikov dplotni...@google.com wrote:
 Actually, no need for a stack trace.  You are manually allocating an
 activity.  This should never be done. It would be best to all the work
 in the activity allocated by the system.  Of course you can delegate
 the work to a helper object like CPAddressbook, but you will need to
 pass the parent activity to it.

 Cheers,
 Dmitri

 On Saturday, January 2, 2010, Dmitri Plotnikov dplotni...@google.com wrote:
  Could you post the exception stack trace?

  Thank you,
  Dmitri

  On Saturday, January 2, 2010, Flo flo.schw...@gmail.com wrote:
  Hey there!

  I'm currently working on a component that's retrieving contact
  information and creating an RDF model (FOAF tbe) from the data
  provided. I started off with the HelloAndroid example and tried some
  code in there. Everything worked out fine, so I wanted to put
  everything in a seperate class which can be accessed via an interface.

  However, now I'm getting a NullPointer Exception when I want to call a
  managedQuery().
  So I tried to create a ContentResolver in order to perform a query().
  But as soon as I call the getContentResolver() I'm getting a
  NullPointer Exception as well.

  I think this could be a problem concerning the AndroidManifest.xml or
  lack of knowledge about how to handle Activities and the likes? I've
  been struggling with that for quite some hours now and think that I
  won't solve this on my own, so I'd like to get your opinions and
  ideas!

  However, here's my code:
  --
  package com.example.helloandroid;

  import it.polimi.elet.contextaddict.microjena.rdf.model.Model;
  import it.polimi.elet.contextaddict.microjena.rdf.model.ModelFactory;
  import it.polimi.elet.contextaddict.microjena.rdf.model.Resource;
  import it.polimi.elet.contextaddict.microjena.vocabulary.RDF;
  import android.app.Activity;
  import android.database.Cursor;
  import android.net.Uri;
  import android.os.Bundle;
  import android.provider.ContactsContract;

  public class CPAddressbook extends Activity implements
  IBasicContextProvider {

       Model contextModel;

       public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            contextModel = ModelFactory.createDefaultModel();
       }

       @Override
       public void detectContext(Model model) {

            Uri contactsURI = ContactsContract.Data.CONTENT_URI;

            String[] projection = new String[] {
                      ContactsContract.Data._ID,
                      ContactsContract.Data.CONTACT_ID,
                      ContactsContract.Data.MIMETYPE,
                      ContactsContract.Data.DATA1,
                      ContactsContract.Data.DATA2,
                      ContactsContract.Data.DATA3,
                      ContactsContract.Data.DATA4,
                      ContactsContract.Data.DATA5,
                      ContactsContract.Data.DATA_VERSION
            };
            String where =      ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?;

            String[] whereArgs = new String[] {

  ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE,

  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE,

  ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE,

  ContactsContr

-- 
You received this message because you are subscribed to the Google
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: moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-03 Thread Flo
Okay, so my suspicion was right!

How can I achieve passing the parent activity to it?
Does this involve Intents? Or should the CPAddressbook simply extend
the parent activity?

Thanks for your help so far,
Flo.

On 3 Jan., 02:17, Dmitri Plotnikov dplotni...@google.com wrote:
 Actually, no need for a stack trace.  You are manually allocating an
 activity.  This should never be done. It would be best to all the work
 in the activity allocated by the system.  Of course you can delegate
 the work to a helper object like CPAddressbook, but you will need to
 pass the parent activity to it.

 Cheers,
 Dmitri

 On Saturday, January 2, 2010, Dmitri Plotnikov dplotni...@google.com wrote:
  Could you post the exception stack trace?

  Thank you,
  Dmitri

  On Saturday, January 2, 2010, Flo flo.schw...@gmail.com wrote:
  Hey there!

  I'm currently working on a component that's retrieving contact
  information and creating an RDF model (FOAF tbe) from the data
  provided. I started off with the HelloAndroid example and tried some
  code in there. Everything worked out fine, so I wanted to put
  everything in a seperate class which can be accessed via an interface.

  However, now I'm getting a NullPointer Exception when I want to call a
  managedQuery().
  So I tried to create a ContentResolver in order to perform a query().
  But as soon as I call the getContentResolver() I'm getting a
  NullPointer Exception as well.

  I think this could be a problem concerning the AndroidManifest.xml or
  lack of knowledge about how to handle Activities and the likes? I've
  been struggling with that for quite some hours now and think that I
  won't solve this on my own, so I'd like to get your opinions and
  ideas!

  However, here's my code:
  --
  package com.example.helloandroid;

  import it.polimi.elet.contextaddict.microjena.rdf.model.Model;
  import it.polimi.elet.contextaddict.microjena.rdf.model.ModelFactory;
  import it.polimi.elet.contextaddict.microjena.rdf.model.Resource;
  import it.polimi.elet.contextaddict.microjena.vocabulary.RDF;
  import android.app.Activity;
  import android.database.Cursor;
  import android.net.Uri;
  import android.os.Bundle;
  import android.provider.ContactsContract;

  public class CPAddressbook extends Activity implements
  IBasicContextProvider {

       Model contextModel;

       public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            contextModel = ModelFactory.createDefaultModel();
       }

       @Override
       public void detectContext(Model model) {

            Uri contactsURI = ContactsContract.Data.CONTENT_URI;

            String[] projection = new String[] {
                      ContactsContract.Data._ID,
                      ContactsContract.Data.CONTACT_ID,
                      ContactsContract.Data.MIMETYPE,
                      ContactsContract.Data.DATA1,
                      ContactsContract.Data.DATA2,
                      ContactsContract.Data.DATA3,
                      ContactsContract.Data.DATA4,
                      ContactsContract.Data.DATA5,
                      ContactsContract.Data.DATA_VERSION
            };
            String where =      ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?
  OR  +
                                ContactsContract.Data.MIMETYPE +  = ?;

            String[] whereArgs = new String[] {

  ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE,

  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE,

  ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE,

  ContactsContr

-- 
You received this message because you are subscribed to the Google
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 parse html with saxparser (or other solution)

2010-01-03 Thread tlegras

ok i got it. it seems the problem is that their xercesMinimal.jar does
not work. it tried it in a non android java project and had the same
problem. with the full xerces jar i can parse my html page even it has
several errors in it. Too bad the full xerces jar is 1.2Mo :(
Seems like a bug from nekohtml, i will repport in their mailing list.

On 2 jan, 19:36, tlegras tleg...@gmail.com wrote:
 ok thanks i am trying nekohtml and currently trying to make it run but
 with the minimal sample code (so using only provided
 xercesMinimal.jar) i got this exception in my parse() function:

 E/AndroidRuntime(  765): Uncaught handler: thread Thread-10 exiting
 due to uncaught exception
 E/AndroidRuntime(  765): java.lang.ExceptionInInitializerError
 E/AndroidRuntime(  765):        at org.cyberneko.html.HTMLScanner
 $ContentScanner.scan(HTMLScanner.java:2043)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
 E/AndroidRuntime(  765):        at
 com.tlegras.freeboxrec.AddRecordingThread.run(AddRecordingThread.java:
 231)
 E/AndroidRuntime(  765): Caused by: java.lang.IllegalStateException:
 Failed to create XercesBridge instance
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.xercesbridge.XercesBridge.makeInstance
 (XercesBridge.java:59)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.xercesbridge.XercesBridge.clinit
 (XercesBridge.java:32)

 Still invistigating, I will give feedback.

 Thanks,
 Thierry.

 On 2 jan, 19:29, Frank Weiss fewe...@gmail.com wrote:

  Check nekohtml. I haven't tried it on Android yet, but used it several times
  on desktop for screee

  On Jan 2, 2010 8:36 AM, Kumar Bibek coomar@gmail.com wrote:

  I guess you need to use a special HTML parse. Since, HTML pages are
  not well-formed and are not XML compliant, using an XML parser will
  not serve your purpose.

  Search for any third party libraries.

  Thanks and Regards,
  Kumar Bibek

  On Jan 2, 8:05 pm, tlegras tleg...@gmail.com wrote:  Happy new year world
  :)   I want to parse...

-- 
You received this message because you are subscribed to the Google
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: Where can I get adds for my application?

2010-01-03 Thread ko5tik
As adsense for mobile is still beta,   they accept only apps
with 100K views a day ( and your is certainly not yet eligible,
or you would not ask this question )

BUt good news is,  that admob will accept it,  and they are about to
be bought
by google - so you will make it to adsense through back door in couple
of months

On Jan 2, 5:34 pm, Kumar Bibek coomar@gmail.com wrote:
 Well, Admob is a good choice. Also, you can try Adsense API by google.

 Thanks and Regards,
 Kumar Bibek

 On Dec 31 2009, 7:13 pm, Martin google-gro...@digle.de wrote:

  Hi!

  I want to write a game for the Market. So where can I get adds for it
  to earn some money (a page like admob.com for example)?
  I am searching for an advertising page, where I do not need to do
  anything and earn the most money. The ad-page has to dynamically
  change the content of my ads in my program.

  Greetings,
  Martin

-- 
You received this message because you are subscribed to the Google
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] Bug:android emulator does not complain with wrong or non existant avd

2010-01-03 Thread Raja Nagendra Kumar
Hi,

When the android emulator is tarted with non existing avd value, it
does not start the emulator nor gives any error message. It may be
good to let the user know that avd xyz supplied did not exist.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com

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


[android-developers] Compatibility issue?

2010-01-03 Thread Thomas
Hello.

The following code works just fine on Android 1.5/1.6. However on
2.0.1 I get an exception (see below).

ContentResolver contentResolver = getContentResolver();
Uri uri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, Long
.toString(item.getId()));
// lesen des Notizfeldes
Cursor c = contentResolver.query(uri, null, null, null, null);
if (c != null) {
if (c.moveToFirst()) {
String notes = 
c.getString(c.getColumnIndex(People.NOTES));
// Aktualisieren des Eintrags
ContentValues values = new ContentValues();
values.put(People.NOTES, 
TKDateUtils.getStringFromDate(item
.getBirthday(), notes));
contentResolver.update(uri, values, null, null);
}
c.close();

The exception is as follows. Could somebody please explain what is
going on? Thank you very much in advance.

Regards
Thomas

01-03 15:06:00.624: ERROR/DatabaseUtils(98): Writing exception to
parcel
01-03 15:06:00.624: ERROR/DatabaseUtils(98):
java.lang.IllegalArgumentException: Empty values
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
android.database.sqlite.SQLiteDatabase.updateWithOnConflict
(SQLiteDatabase.java:1521)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:
1499)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.updateRawContact
(ContactsProvider2.java:3048)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.updateRawContacts
(ContactsProvider2.java:3020)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.updateInTransaction
(ContactsProvider2.java:2899)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.SQLiteContentProvider.update
(SQLiteContentProvider.java:139)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.update
(ContactsProvider2.java:1947)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.LegacyApiSupport.updatePeople
(LegacyApiSupport.java:1046)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.LegacyApiSupport.update
(LegacyApiSupport.java:1000)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.LegacyApiSupport.updateAll
(LegacyApiSupport.java:986)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.LegacyApiSupport.update
(LegacyApiSupport.java:964)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.updateInTransaction
(ContactsProvider2.java:2948)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.SQLiteContentProvider.update
(SQLiteContentProvider.java:139)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
com.android.providers.contacts.ContactsProvider2.update
(ContactsProvider2.java:1947)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
android.content.ContentProvider$Transport.update(ContentProvider.java:
180)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:195)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
android.os.Binder.execTransact(Binder.java:287)
01-03 15:06:00.624: ERROR/DatabaseUtils(98): at
dalvik.system.NativeStart.run(Native Method)

-- 
You received this message because you are subscribed to the Google
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] Update Tab-Content when clicking Tab

2010-01-03 Thread VBMichi
Hi,

I've three Tabs:

mTabHost = getTabHost();
mTabHost.addTab(mTabHost.newTabSpec(tab_1).setIndicator
(Name1).setContent(R.id.tab1));
mTabHost.addTab(mTabHost.newTabSpec(tab_2).setIndicator
(Name2).setContent(R.id.tab2));
mTabHost.addTab(mTabHost.newTabSpec(tab_3).setIndicator
(Name3).setContent(R.id.tab3));
mTabHost.setCurrentTab(0);

If the user click on tab_3, i want to call the function test(); .

How can i set an onclicklistener on tab_3 or solve the problem on
another way?

Thanks and Regards,
Michael

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


[android-developers] Biloxi Android Group

2010-01-03 Thread Lordsaibat
If any one is interested, I am starting up a Linux, Android, and 2600
group in Biloxi, Ms. Come check out my group at
http://groups.google.com/group/biloxi-linux-android-2600-group . If I
get enough interest I would like to have a meeting in February.

-- 
You received this message because you are subscribed to the Google
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: Listening to a video stream and rendering it on the screen

2010-01-03 Thread Android Development
Hello Devs

Any ideas regarding inline ?



On Thu, Dec 31, 2009 at 12:19 PM, Android Development
indodr...@gmail.comwrote:

 Hello,

 *My Cases:*

 1. I have a RTP stack, using which i am receiving raw audio and video
 streams from the network.

 2. Similarly, I will be sending audio and video streams towards the network
 using the same RTP stack.

 *Following are my questions/doubts:*

 For working with audio formats to realize cases-1 and 2, I can use the
 AudioTrack and AudioRecord APIs to play/record audio streams.

 However, for working with video formats to realize cases-1 and 2, are there
 any alternatives available similar to the Audio APIs ?

 If I receive a raw video stream from the network through my stack, and i
 wish to play it in real-time, how do I go about it ? Can i use
 the MediaController and MediaPlayer to render the video on a custom
 VideoRenderer activity (GUI) ?

 For video transmission, I am thinking of capturing the preview stream
 from the camera and transmitting it as Live video through my stack.

 *Problem Summary:*

 In short, I can find ways to encode and decode audio streams in android
 as well as encode video from the camera source. However, I dont know how
 to decode incoming video streams on android using its APIs.

 Inputs and suggestions appreciated and will be very helpful. If there is
 anything above that is conceptually incorrect, please let me know.

 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: Updating a unique AppWidgetProvider from a Service

2010-01-03 Thread theSmith
To follow up on my own question, heres how I did it.

I went from a service to an IntentService and in the onHandleIntent
(Intent intent) I handle the update requests.

To get the individual id's I put them as an extra in the intent in the
onRecieve() method in the widget, then fire them off to the
IntentService with context.startService(i).  Everything is working
perfectly now.

-theSmith

On Jan 1, 10:12 pm, theSmith chris.smith...@gmail.com wrote:
 Here is my issue, I want to be able to update a specific
 AppWidgetProvider (home screen widget) from a custom service class.  I
 have to build the remote view in the service because I'm also doing
 some networking in there, which takes some time.

 The problem is that I can't figure out how to update a specific widget
 (individual widgets can have different update intervals, using the
 alarm manager).

 If I wanted to do it from the onUpdate of the AppWidgetProvider I
 could just call appWidgetManager.updateAppWidget(appWidgetId,
 remoteView);

 Does anyone have any experience with this or any suggestions?

 -theSmith

-- 
You received this message because you are subscribed to the Google
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] Conventions about using SD card

2010-01-03 Thread Andriy Zakharchuk
Hello all,

I have a question about SD card usage in Android applications. I need
my application to store some files on the SD card. Is there any
document (conventions) about how the application should use the SD
card?

I saw applications create a directory named as the application itself
and store their files in this directory. I saw a number of
applications that create a directory named as the application's
package. I saw some applications that write files directly to the SD
card root. And, finally, built-in camera application uses standard
DCIM/100 scheme.

So the question is: is there any recommendation about where to store
files (to make them visible for users and avoid conflicts with other
applications) or I can decide it on my own.

Thank you 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: Service - how to show its progress in Activity

2010-01-03 Thread Molee
lol

I didn't notice that there is a comprehensive explanation in this
website

Thank You

On 1月3日, 上午11時59分, Kumar Bibek coomar@gmail.com wrote:
 AsyncTask gives you more control over how you background work is done.
 You get callbacks for , progress, completion of action, etc.

 You would also get  some etra hooks, like Pre-execute and Post-
 execute.

 http://android-developers.blogspot.com/2009/05/painless-threading.html

 Thanks and Regards,
 Kumar Bibek

 On Jan 3, 7:32 am, Molee leehc...@gmail.com wrote:

  I used to implements the progress of downloading sth in a worker
  thread,

  and new a thread when u choose the corresponding option in the menu
  ( overriding onOptionsItemSelected funciton)

  yet the UI will be frozen once you choose the download option in the
  menu

  Is using asynctask instead the better solution???

  Whats the difference between thread and asynctask???

  Any response is greatly appreciated.

  Thanks,
  Molee

  On 1月3日, 上午1時10分, Kumar Bibek coomar@gmail.com wrote:

   If the service is coupled to your UI, I think AsyncTask would be a
   better solution. Look at the examples for the same.

   But, if the service is completely separate from the UI, then you have
   to bind to the service, and then check it's progress.

   Thanks and Regards,
   Kumar Bibek

   On Jan 2, 4:54 pm, fhucho fhu...@gmail.com wrote:

Hi,
I have a service that downloads something from the Internet, it shows
progress in notifications and in MyActivity (only when MyActivity is
on foreground of course). How should the service post the progress to
MyActivity? I know this could be done somehow with IBind but can I
just simply do this in MyActivity:

MySevice.myActivity = this;
startService(new Intent());

?
From MyService I can now call MyActivity's methods because I have a
static reference to it in MySevice.myActivity, so I can call e.g.
myActivity.sendProgress(63).

-- 
You received this message because you are subscribed to the Google
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: Conventions about using SD card

2010-01-03 Thread schwiz
Well as you have seen from your own experience there doesn't seem to
be any real convention.  I would do whatever you find the most
convenient as a user. I personally like it when they make a folder
with the app name not the package name.

On Jan 3, 10:18 am, Andriy Zakharchuk andriy.zakharc...@gmail.com
wrote:
 Hello all,

 I have a question about SD card usage in Android applications. I need
 my application to store some files on the SD card. Is there any
 document (conventions) about how the application should use the SD
 card?

 I saw applications create a directory named as the application itself
 and store their files in this directory. I saw a number of
 applications that create a directory named as the application's
 package. I saw some applications that write files directly to the SD
 card root. And, finally, built-in camera application uses standard
 DCIM/100 scheme.

 So the question is: is there any recommendation about where to store
 files (to make them visible for users and avoid conflicts with other
 applications) or I can decide it on my own.

 Thank you 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: Conventions about using SD card

2010-01-03 Thread Edward Falk
No official conventions exist as far as I know.  It would be very anti-
social to store your files in the sd card root because of the clutter
it would cause (and I'm surprised that there are apps that do it).  If
you're confident that your application's name will be unique, you
could just create /sdcard/your_app directory and store your files
there.  I think that's what most people do.  If you're worried about
namespace collision, then the safest approach would be to create /
sdcard/com/foo/your_app (using the full package name).  IMHO that is
best practice, but not everybody does it that way.

If you think it's likely that your app would share files with other
apps (such as photos or music files) you might want to store your
files in the commonly-used directories for such, but I'm guessing
that's not the case for you.

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


[android-developers] HttpPost works with Wifi, not with Mobile...

2010-01-03 Thread p1erstef
Hi all,

I'm trying to use HttpPost to send data from an android device to a
server.
It works great with a Wifi connection, but I get the IOException The
target server failed to respond with a Mobile connection (3G, Edge,
etc.). It doesn't seem to be a timeout problem (I set it to 90s).
The use of HttpGet works perfectly with both Wifi and Mobile
connection...
Any idea of where the problem could come from?

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] Re: New in android developement

2010-01-03 Thread Neilz
Dear Rohit.

When you have found your answers, please come back here and post them
so we can all share in your new found knowledge.

Thanx 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] One Of The Easiest Ways To Promote Your Site!

2010-01-03 Thread Abrahim
According to me sales and business increase by marketing.So market
place need to be clean and powerful.Take a step for clear business.
place ad @ http://www.adplacebd.com  your trustful partner.visit
http://www.adplacebd.com

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


[android-developers] FREE ADVERTISING WORK!-it's your Promotion

2010-01-03 Thread Abrahim
Market place in the important think of merketing. So increase your
sales, be a great business man.place an ad. please visti 
http://www.adplacebd.com
- advance classified of bangladesh.

-- 
You received this message because you are subscribed to the Google
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] Online TV.PROSSECING LIVE TV.

2010-01-03 Thread Abrahim
With so many packages and add-ons, the possibilities are endless! Your
main objective as an Affiliate is to send http://www.adplacebd.com
traffic to our programs and we will do the rest.. For all the sales
generated by you or your sub-affiliates you will be paid, on a bi-
monthly basis, in a form of a check. Our high converting products
could bring you not only the money, but the satisfaction of your
customers. Your success is our success, don't forget! We are here any
moment to help you ! For any problems you might have please don't
hesitate to contact us!
http://click.tvprocessing.com?PID=0d2cdd7d-b445-4c25-b9ed-44582a29e01a

-- 
You received this message because you are subscribed to the Google
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 thread priority

2010-01-03 Thread Carter
Hi Diane,

What's the definition of background in terms this scheduling mode in
Android 1.6 or later?  Is it based on this document?
http://developer.android.com/intl/fr/guide/topics/fundamentals.html#proclife

The follow up question is: if a service is a foreground service (e.g.
has called startForeground()), will it consume more CPU than a service
that has not?


Thanks,
Carter



On Dec 16 2009, 6:33 pm, Dianne Hackborn hack...@android.com wrote:
 You should be nice.  As of 1.6, processes running in the background have
 their threads forced into a background scheduling class so they can't
 disrupt the foreground UI.

 On Wed, Dec 16, 2009 at 3:05 PM, Christine christine.kar...@gmail.comwrote:





  I have two apps that use a service to upload and download files and
  data. I've noticed that when the service gets very busy, it can cause
  the UI to block, up to the point that Android shows a force quit/
  wait popup. In order to avoid that, I run tasks in a service at a
  lower priority. This way, the service will never cause the UI to
  hickup. Also, the service stops if the app hasn't been used for a
  certain number of minutes. I don't want to keep resources if the user
  isn't using my app.

  I have found that some of my users run apps that run services
  permanently at normal priority. Such a service starts at phone switch
  on, and keeps running indefinitely, downloading vast amounts of data.
  My policy of being nice to other apps doesn't pay off: these agressive
  third party services push my service away so it never gets anything
  done. As one of my users told me, my app has hickups, until he kills
  the service of this app X, after which my app runs smoothly, snappy,
  and fast.

  My question is, should I be nice to other apps and to the UI in my own
  app, or should I just run a service and agressively take all resources
  I need - or don't need? This is one issue where Android is different
  from iPhone. We can run services, but by doing so, we can cause damage
  to other peoples apps. Of course, my question doesn't require an
  answer. I'm just curious after what other people think, what your
  experience here is.

  --
  You received this message because you are subscribed to the Google
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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] EditTextPreference: how to make it single-line?

2010-01-03 Thread Edward Falk
I have an EditTextPreference item in my Preference activity.  I would
like the enter key signal ok rather than enter a newline.  Is this
do-able via the preferences.xml file or some resources file?

In fact, ideally, I'd like to replace the enter symbol in the soft
keyboard with Done.

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


Re: [android-developers] EditTextPreference: how to make it single-line?

2010-01-03 Thread Wayne Wenthin
android:singleLine=true

On Sun, Jan 3, 2010 at 11:06 AM, Edward Falk ed.f...@gmail.com wrote:

 I have an EditTextPreference item in my Preference activity.  I would
 like the enter key signal ok rather than enter a newline.  Is this
 do-able via the preferences.xml file or some resources file?

 In fact, ideally, I'd like to replace the enter symbol in the soft
 keyboard with Done.

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums

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

Re: [android-developers] EditTextPreference: how to make it single-line?

2010-01-03 Thread Wayne Wenthin
and check out these:
android:imeOptions=actionNext
android:imeOptions=actionDone


On Sun, Jan 3, 2010 at 11:13 AM, Wayne Wenthin wa...@fuligin.com wrote:

 android:singleLine=true


 On Sun, Jan 3, 2010 at 11:06 AM, Edward Falk ed.f...@gmail.com wrote:

 I have an EditTextPreference item in my Preference activity.  I would
 like the enter key signal ok rather than enter a newline.  Is this
 do-able via the preferences.xml file or some resources file?

 In fact, ideally, I'd like to replace the enter symbol in the soft
 keyboard with Done.

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Writing code is one of few things
 that teaches me I don't know everything.

 Join the Closed Beta of Call Girl Manager
 http://www.fuligin.com/forums




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums

-- 
You received this message because you are subscribed to the Google
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: FREE ADVERTISING WORK!-it's your Promotion

2010-01-03 Thread Philip
The problem with spam these days is that you don't know if they make
typos in order to get around spam filters or if it is simply a pure
lack of education from the authors..

On Jan 3, 10:01 am, Abrahim adplac...@gmail.com wrote:
 Market place in the important think of merketing. So increase your
 sales, be a great business man.place an ad. please 
 vistihttp://www.adplacebd.com
 - advance classified of bangladesh.

-- 
You received this message because you are subscribed to the Google
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] Object Pooling

2010-01-03 Thread Philip
Hello everyone,

I was wondering what solutions other android developers have adopted
to get around gc pauses. I am working on a game framework and the
creation and destruction of small objects like points and vectors are
killing my bandwidth, I googled up java pool and found this:

http://commons.apache.org/pool/

I am curious to find out if there is an implementation on Android with
such tweaking that it would really increase the performances or if
there is something else (maybe in the framework already?) that I can
use.

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


Re: [android-developers] Object Pooling

2010-01-03 Thread Romain Guy
Hi,

There is an object pool implementation in Android, put it's private at
the moment. You can however copy its source code that you can find
here:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/util;h=91ffaec4501c851cfec5d1423418177ce47e3ec9;hb=master

Look for the various Pool*.java files.

On Sun, Jan 3, 2010 at 11:30 AM, Philip philip.dese...@gmail.com wrote:
 Hello everyone,

 I was wondering what solutions other android developers have adopted
 to get around gc pauses. I am working on a game framework and the
 creation and destruction of small objects like points and vectors are
 killing my bandwidth, I googled up java pool and found this:

 http://commons.apache.org/pool/

 I am curious to find out if there is an implementation on Android with
 such tweaking that it would really increase the performances or if
 there is something else (maybe in the framework already?) that I can
 use.

 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




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

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

-- 
You received this message because you are subscribed to the Google
Groups Android 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 someone with a Motorola Droid call AccountManager.getAccounts() please?

2010-01-03 Thread polyclefsoftware
I'm about to tear my hair out. The authToken I was getting from
AccountManager was working fine before I went away for the holidays. I
get back home and start back into development and now the authToken I
get from the following code is no longer valid when requesting a
cookie:

AccountManager mgr = AccountManager.get(this);
Account[] accts = mgr.getAccountsByType(com.google);
Account acct = accts[0];
AccountManagerFutureBundle accountManagerFuture = mgr.getAuthToken
(acct, ah, null, this, null, null);
Bundle authTokenBundle = accountManagerFuture.getResult();
String authToken = authTokenBundle.get
(AccountManager.KEY_AUTHTOKEN).toString();

When I went back and hard-coded in my Google username and password and
got an authToken from https://www.google.com/accounts/ClientLogin;,
it worked just fine.

So as far as I can tell something happened over the past week that
rendered the authToken acquired from an Android phone using the
AccountManager API to longer authenticate properly, at least with
Google App Engine.

Is anyone else actually using the new API for authentication? Is
anyone else having problems? Can anyone else confirm this behavior?

-- 
You received this message because you are subscribed to the Google
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: Cannot play audio on some phones

2010-01-03 Thread DulcetTone
I have no idea.  This can't happen on my phone.
Should I be calling create(myActivity, id) or create
(myActivity.getBaseContext(), id)?

I don't know why I ask -- neither form seems to solve the problem on
at some (not all) of these Hero phones.  I am coming to really despise
Hero/Eris.

tone

On Dec 30 2009, 4:21 pm, Mark Murphy mmur...@commonsware.com wrote:

 What does your log show, particularly at warning level, when you call
 get null from create()?

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


Re: [android-developers] Re: Service thread priority

2010-01-03 Thread Dianne Hackborn
On Sun, Jan 3, 2010 at 10:53 AM, Carter ccjerni...@gmail.com wrote:

 What's the definition of background in terms this scheduling mode in
 Android 1.6 or later?  Is it based on this document?

 http://developer.android.com/intl/fr/guide/topics/fundamentals.html#proclife


 Yes, any process not in the foreground or visible scheduling classes (that
is not directly interacting with the user) has its thread put into the
background scheduling class.

The follow up question is: if a service is a foreground service (e.g.
 has called startForeground()), will it consume more CPU than a service
 that has not?


It will be considered to be a foreground process, so its thread will not be
forced into the background scheduling class.  Whether it consumes more CPU
is really dependent on the two services -- but if they are both trying to
use 100% of the CPU and have not otherwise adjusted their thread priorities,
then the foreground one would get most of the CPU time (90% or even more).

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

Re: [android-developers] No Adobe Flash support for Eclair!?!

2010-01-03 Thread Dianne Hackborn
On Tue, Dec 29, 2009 at 5:42 PM, chris harper ch393...@gmail.com wrote:

 So what you are saying is that Android development doesn't really want
 developers building applications that use Flash?


Only a few phones have Flash at this point so, no, I would not suggest using
it.

Longer term...  well, it would be problematic for this to become a standard
part of the Android SDK.  Given that flash is proprietary, that would leave
us with the platform becoming dependent on someone else's proprietary code
in order to support these apps.  This is very counter to a basic philosophy
of Android, that the entire platform is open-source and thus you don't need
to someone's proprietary code to build an android compatible device.

(And to head off the inevitable cries about not really being open-source --
yes there are bits and pieces that are not open source, such as hardware
drivers and applications like Market.  This is a far cry from baking
dependencies on non-open-source code into the standard APIs, though.)


 But it now sounds like if anyone wants to develop an Android app that uses
 Flash it'll be more of a gamble and might not work for most devices or at
 the least be a hassle for the end user to make it work because they would
 have to install Flash plugins.


I can't tell you what devices Flash may or may not be available on, because
it is owned by Adobe.  Clearly they have a self-interest in getting it as
widely spread as possible, but from the perspective of the platform we can't
make any guarantees about who can include it on a device, the kinds of
hardware it can run on, and how well it would perform.  And that is one of
the big rubs.


 It is kind of disappointing because if Android and Adobe can get together
 and start supporting development of applications that use Flash then that
 would be an Ace in the hole for making Android apps far better than the
 IPhone.


The first step for having some technology adopted for the standard Android
platform is to make it available under an open-source license that is
compatible with the rest of the platform.  Somehow, I don't see this
happening for Flash. :}

-- 
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: How can I get the highest framerate with this quellcode?

2010-01-03 Thread Martin
Thank you! I am using SurfaceView now in my game and it is really
f** FAST!! :-) thanks!
I found this good tutorial here:
http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html

Martin

On 2 Jan., 14:16, ko5tik kpriblo...@yahoo.com wrote:
 Depending on UI event handling to produce smooth
 and accurately timed  animations is usually bad idea

 In your code,  if you remove delay you are just trashing
 event pipeline, so UI will (and certainly does) become irresponsive.
 And if you keep it in, your delays are unpredictable
 (let me Guess, you are sending messages because you can not
 affect UI from non UI thread? )

 I recommend to look into LunarLander sample. Basic idea for smooth
 animation is:
 1. Use Surface to draw ( any SurfaceHolder subclass ), you can access
 it from any thread
 2.  You animation loop looks OK
 3. I would recommend to create  something like finite automate / state
 engine
 to  provide smooth and controlled transition between game states

 You drawing method would look like:
  redraw() {
         // field is prepared
         Canvas canvas = holder.lockCanvas();
         //  draw background
         canvas.drawBitmap(field, 0, 0, null);
 ...  draw whatever you like
 // push it to the screen
      holder.unlockCanvasAndPost(canvas);

 }

 have fun

-- 
You received this message because you are subscribed to the Google
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 minimize the stuttering of the graphics?

2010-01-03 Thread Martin
This tutorial describes the best way!! ;-)
http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html

Greetings, Martin


On 1 Jan., 19:18, Martin google-gro...@digle.de wrote:
 Thank you, I will try it :-)
 Martin

 On 31 Dez. 2009, 16:16, skink psk...@gmail.com wrote:



  On Dec 31, 3:13 pm, Martin google-gro...@digle.de wrote:

   Hi!

   How can I minimize the stuttering of my graphics?
   I am using MANY ImageView's in my program (and JUST ImageView's). I
   change their positions directly, when I need to change them without
   using onDraw to redraw everything. Is it ok, If I do not overwrite
   onDraw?

   I have in average 10 objects which I added to the mainscreen-layout.
   These 10 objects are 5 trees and 5 flowers.
   The trees and flowers have 5 different states and therefore 5
   different ImageViews which I all added to the layout, whose just are
   invisible.
   So I have about 50 ImageViews added to my main screen
   When one of these objects changes its state, I just make its ImageView
   invisible and the ImageView of the new state visible.

   Is it ok to do it like that?
   I realized that if I just use one ImageView for every object and
   change the ressource of it when its state changes, all objects, which
   are currently added to the mainscreen-layout, change their position to
   (0;0). That was the reason, I have so many ImageView's added to the
   mainscreen-layout.
   Is there a better solution for that?

   Greetings,
   Martin

  hi,

  i'd use 10 ordinary Views, each one with own LevelListDrawable

  pskink

-- 
You received this message because you are subscribed to the Google
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] pass checkbox status between activities

2010-01-03 Thread Abhi
Hi,

How can we pass checked box status from one activity to the calling
activity?

For e.g., I have two activities. The first activity calls the second
activity that has a listview with checkboxed items and two buttons,
'OK' and 'CANCEL'. The second activity has to pass the names of list
items that are checked to the calling acitivity. I am not able to
figure out how to do this efficiently?

Can anyone help please?

Thanks,

Abhi

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


Re: [android-developers] pass checkbox status between activities

2010-01-03 Thread Mark Murphy
 How can we pass checked box status from one activity to the calling
 activity?

 For e.g., I have two activities. The first activity calls the second
 activity that has a listview with checkboxed items and two buttons,
 'OK' and 'CANCEL'. The second activity has to pass the names of list
 items that are checked to the calling acitivity. I am not able to
 figure out how to do this efficiently?

Step #1: Have the first activity use startActivityForResult() to invoke
the second activity

Step #2: Have the second activity call setResult() after the user makes
her selections, encoding the various bits of information in the Intent
supplied to setResult() (e.g., as extras)

Step #3: Have the first activity override onActivityResult() to get the
Intent created in Step #2.

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


-- 
You received this message because you are subscribed to the Google
Groups Android 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] Record audio from SoundPool?

2010-01-03 Thread magic
I am developing a musical app which can allow user to insert notes and
define its sound to play. (Just like Reason or Guitar Pro)
I use soundpool to play the audio file.
I am wondering is there a way to record the audio from the
SoundPool.Play() to output the sound file (Mp3 or Wav)?

Thanks for help!!

-- 
You received this message because you are subscribed to the Google
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 i can control the Screen On/Off Lock/Unlock in Donut( SDK 1.6)

2010-01-03 Thread krekar
hi, all( happy new year~! :D)

I making an Alarm App.

In my Alarm App, if user set the alarm, the alarm Dialog will be shown
at the set alarm time.

but if device(phone) was in lock and screen off, I can't see the alarm
dialog.

I need to write code to the alarm dialog will be shown automatically
although the device(phone) is screen off(and locked).

I see the source code about AlarmClock in Donut SDK.

It is use the code like below:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);

but the FLAG_TURN_SCREEN_ON is only available in SDK 2.0 or later.

I just only use Donut(SDK 1.6).

How can i Screen on  unlock in Donut(SDK 1.6)?

-- 
You received this message because you are subscribed to the Google
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 rotate an Image in different angles?

2010-01-03 Thread Martin
Hi!

I found the solution! I did not need to rotate the image. I just had
to rotate the canvas-object, I was using.
LunarLander has the best example. Here is some code of it:


canvas.save();
canvas.rotate((float) mHeading, (float) mX, mCanvasHeight
- (float) mY);
if (mMode == STATE_LOSE) {
mCrashedImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mCrashedImage.draw(canvas);
} else if (mEngineFiring) {
mFiringImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mFiringImage.draw(canvas);
} else {
mLanderImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mLanderImage.draw(canvas);
}
canvas.restore();



Greetings, Martin




On 1 Jan., 19:15, Martin google-gro...@digle.de wrote:
 HI!

 I have a png-picture in
 ImageView rotatedimage = new ImageView ()

 Is there a better way to rotate it in changing directions than the
 following way? There I have to create a new picture for every new
 rotating angle and add it to the layout:

 Bitmap bitmap = BitmapFactory.decodeResource(getResources
 (),R.drawable.frosch);
 Matrix rotationMatrix = new Matrix();
 rotationMatrix.setRotate(grad);

 Bitmap rotatedbitmap = Bitmap.createBitmap(frogbitmap, 0, 0,
 rotatedbitmap.getWidth(), rotatedbitmap.getHeight(), rotationMatrix,
 true);

 BitmapDrawable bmd = new BitmapDrawable(rotatedbitmap);

 rotatedimage.setImageDrawable(bmd);

 mtrx.postRotate(10);
 rotatedimage.setImageMatrix(mtrx);

 Greetings, Martin

-- 
You received this message because you are subscribed to the Google
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: Doubt w.r.t content resolver

2010-01-03 Thread deeMurthy
Thanks!

On Jan 1, 9:14 am, Rui Wu netiger198...@gmail.com wrote:
 All member functions in AppWidgetProvider have a Context type. I think you
 can call Context's getContentResolver() to get an content resolver intance.

 2009/12/31 deeMurthy darshana.mur...@wipro.com



  Hi

  Is it possible to access the content resolver methods in a class
  extending from AppWidgetProvider class? Have been trying to do it with
  no luck so far. Please help.

  Many 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 BRs,
 Rui

-- 
You received this message because you are subscribed to the Google
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 and VOIP

2010-01-03 Thread JP
No announcement there of course, but the following:
http://www.eweek.com/c/a/Cloud-Computing/Google-Has-Big-Plans-for-Google-Voice-Cloud-Computing-in-2010-552678/
has been interpreted as a hint towards VoIP over 3G under the umbrella
of Google Voice. This is really nothing terribly new - I've got that
running on an old Nokia E-series (out of the box). Worked on UMTS as
far back as 2006 without drama, although regular calls were a
considerably better experience. Probably still are, over a mature
network with decent codecs anyway...

On Jan 1, 11:34 am, jotobjects jotobje...@gmail.com wrote:
 Where was the announcement or rumor onVOIPfor google voice on
 android?

 Also, there areVOIPproducts using sipdroid that supposedly do this
 now.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 and VOIP

2010-01-03 Thread JP
I've played with sipdroid a few months back. Like two minutes,
because, as you found, it's not much more than a static front end of a
fixed provider. Kindof useless. Basic UI aside, from memory, there
were also plenty of elements missing to make it a viable SIP client.

On Jan 2, 7:10 am, Ricardo Martins rpopp...@gmail.com wrote:
 The problem with sipdroid is that it's tied to pabxes.org. If you want
 to use on your local sip pbx (asterisk) you can't do it.

 jotobjects escreveu:

  Where was the announcement or rumor onVOIPfor google voice on
  android?

  Also, there areVOIPproducts using sipdroid that supposedly do this
  now.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)

2010-01-03 Thread Aaron Li
After some studying, i found following code segment in Brower's
source:

 //
 // start MASF proxy service
 //
 //Intent proxyServiceIntent = new Intent();
 //proxyServiceIntent.setComponent
 //(new ComponentName(
 //com.android.masfproxyservice,
 //com.android.masfproxyservice.MasfProxyService));
 //startService(proxyServiceIntent, null);

Does that imply the browser won't consider proxy anymore?

Best regards,
Aaron

On 2009年12月28日, 下午4時56分, Aaron Li yhlee...@gmail.com wrote:
 Hello, is it possible to set http proxy on real device with Android
 2.0.1?
 -http-proxy only available for emulator :(

 Best regards,
 Aaron

 On 12月16日, 下午3時33分, WebUX1 web...@gmail.com wrote:



  Hi, I am also experiencing this same issue where G1.6 emulatorproxy
  works withAPNsettings but trying to use G2.0 fails to access the
  internet (APNfails, -http-proxyfails).

  I have tried the above recommended steps - all with the same result
  Web page not available

  My debugproxyoutput for Clark:
  D:\Android\Android-2.0\toolsemulator.exe -avd Android201AVD 
  -debug-proxy-http-proxy10.0.2.2:
  emulator: WARNING:    4: missing expected assignment operator (=).
  line ignored
  proxy_http_setup: creating httpproxyservice connecting to:
  10.0.2.2:
  server name '10.0.2.2' resolved to 10.0.2.2:
  proxy_http_setup: creating HTTPProxyService Footer is (len=2):
  '
  '
  http_service_free

  D:\Android\Android-2.0\tools

  On Dec 7, 6:03 am, Clark Hunter chbrigh...@gmail.com wrote:

   I had tried -http-proxybefore without success. My command line:
   Emulator -avd Android201 
   -debug-proxy-http-proxyhttp://uid:pwd@10.0.6.251:3128

   Initial startup console messages:
   proxy_http_setup: creating httpproxyservice connecting to:
   10.0.6.251:3128
   server name '10.0.6.251' resolved to 10.0.6.251:3128
   proxy_http_setup: creating HTTPProxyService Footer is (len=55):
   'Proxy-authorization: Basic Base64UidPwd

   If I open a link to a GOOD connection inside the firewall, I see:
   http_service_connect: trying to connect to 10.10.0.252:80
   http_service_connect: using HTTP rewriter
   tcp:10.10.0.252:80(1416): cannot connect toproxy: unknown error
   adb logcat doesn't show any unusual messages.

   If I do a BAD connection (e.g. google), I don't see any console
   messages?
   adb logcat shows:
   E/browser (  192): onReceivedError -2http://www.google.com/TheURL
   could not be found.

   again, myAndroid1.6 emulator works with theAPNsettings and didn't
   honor the -http-proxysetting.
   On Dec 4, 8:10 pm, David Turner di...@android.com wrote:

Try using the -http-proxyproxy option when starting the emulator.
This implements a transparent HTTPproxythat doesn't need modifying
settings in the emulated system at all.
It used to be buggy in previous releases of the emulator (mainly when 
used
with MSproxyservers) but this should
have been fixed in the latest SDK Tools release.

If this still doesn't work, try to use -debug-proxyas well, this will 
dump
the proxied traffic, and send it here so I can
have a look at it.

Also see -help-proxyfor details about the proxy parameter.

Hope this helps.

On Fri, Dec 4, 2009 at 10:19 AM, Clark Hunter chbrigh...@gmail.com 
wrote:
 This link has some suggestions forproxysetting for early (pre-1.5)
 and later (1.5 thru 1.6)Androidemulators:

http://www.coderanch.com/t/462906/Android/Mobile/connect-internet-beh...

 Basically, the older emulator used a “com.android.provider.setting.db”
 database or -http-proxycommand line switch to setproxy/port/userid/
 password.

Android1.5 and 1.6 used:  Home-Menu-Settings-WirelessControls-
 MobileNetworks-Access Point Names to set multipleproxy/port/userid/
 password configurations.
 My 1.6 emulator is working behind our corporate firewall/proxy.

Android2.0 has some issue where theAPNdidn't display.
 I used sqlite3 /data/data/com.android.providers.telephony/databases/
 telephony.db to manually set fields and make the entries editable
 (current=1).
 I could access local servers, but not get thru the firewall?

Android2.0.1shows theAPNwith a default 'TelKila' entry. I can add
 myproxyinformation, but still can't get past the firewall (shows Web
 page not available)?

 --
 You received this message because you are subscribed to the Google
 Groups AndroidDevelopers group.
 To post to this group, send email 
 toandroid-develop...@googlegroups.com
 To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsub
 s­cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en-Hidequoted 
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 

[android-developers] Re: HttpPost works with Wifi, not with Mobile...

2010-01-03 Thread Kumar Bibek
Post some logcat log so that it will be clearer.

Check the reponse status line. That will provide more information.

Thanks and Regards,
Kumar Bibek

http://tech-droid.blogspot.com

On Jan 3, 10:52 pm, p1erstef pierre.stef...@gmail.com wrote:
 Hi all,

 I'm trying to use HttpPost to send data from an android device to a
 server.
 It works great with a Wifi connection, but I get the IOException The
 target server failed to respond with a Mobile connection (3G, Edge,
 etc.). It doesn't seem to be a timeout problem (I set it to 90s).
 The use of HttpGet works perfectly with both Wifi and Mobile
 connection...
 Any idea of where the problem could come from?

 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] Re: get city name by latitude and longitude

2010-01-03 Thread Kumar Bibek
After you get the lat/long info, you can do  Reverse GeoCoding to find
the address of the place.

From there, you can pick up the city name and use it.

http://developer.android.com/reference/android/location/Geocoder.html

http://stackoverflow.com/questions/472313/android-reverse-geocoding-getfromlocation

Thanks and Regards,
Kumar Bibek


On Jan 3, 9:25 am, star double doublestar...@gmail.com wrote:
 Hi, all

 I am making a weather widget now , and there is a problem that how can I get
 some city name after getting latitude and longitude from google map.
 because I think we can't get weather data if can not get city name . any
 advice is welcome, thanks a lot !

-- 
You received this message because you are subscribed to the Google
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: java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper

2010-01-03 Thread Kumar Bibek
From the log, it seems that, when you go to sleep, some receiver is
getting un-registered. So, when you wake up and try to use that
Receiver, you are getting this excpetion since the Receiver is now not
registered but you are still trying to use it.

A little bit of code will help us in pointing out the exact code.

Thanks and Regards
Kumar Bibek,

On Jan 3, 10:19 am, Shane shanemenchi...@gmail.com wrote:
 I have a ViewFlipper in my app.

 When my app is running and the phone goes to sleep it works fine.

 When I wake the phone up and my app then tries to display again, I get
 the following error.

 Any thoughts or suggestions?  I can't figure this out :-(

 01-02 20:59:22.706: ERROR/AndroidRuntime(11428): Uncaught handler:
 thread main exiting due to uncaught exception
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):
 java.lang.IllegalArgumentException: Receiver not registered:
 android.widget.viewflippe...@44e0be10
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread$PackageInfo.forgetReceiverDispatcher
 (ActivityThread.java:667)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ApplicationContext.unregisterReceiver
 (ApplicationContext.java:747)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
 321)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.View.dispatchDetachedFromWindow(View.java:5835)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1076)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1074)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1570)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewRoot.doDie(ViewRoot.java:2556)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.ViewRoot.die(ViewRoot.java:2526)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.WindowManagerImpl.removeViewImmediate
 (WindowManagerImpl.java:218)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
 436)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
 3498)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
 3599)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread.access$2300(ActivityThread.java:119)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1867)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.os.Looper.loop(Looper.java:123)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:860)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 01-02 20:59:22.726: ERROR/AndroidRuntime(11428):     at
 dalvik.system.NativeStart.main(Native Method)

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


Re: [android-developers] Re: Android and VOIP

2010-01-03 Thread Android Development
The  biggest problem for supporting SIP based VoIP on android is the
capability of the android media framework.

As for example, if you refer to this table:
http://developer.android.com/guide/appendix/media-formats.html..most of the
media encoders are not present.

There is no use for having only a decoder for codecs, as in a SIP based VoIP
session, you will need both the encoder and the decoder for bidirectional
SENDRECV streaming of media.

Most SIP clients use SDP as a means of codec negotiation. Going by that
table, we can only use AMR-NB for voice and H.263 for video in the SDP offer
for a SIP based session.

As a workaround, sipdroid uses its own G.711 and H.264 codec by making use
of a native library and JNI calls.

For SIP/VoIP, playing from a static resource on the device is hardly a
requirement.


On Mon, Jan 4, 2010 at 9:03 AM, JP joachim.pfeif...@gmail.com wrote:

 I've played with sipdroid a few months back. Like two minutes,
 because, as you found, it's not much more than a static front end of a
 fixed provider. Kindof useless. Basic UI aside, from memory, there
 were also plenty of elements missing to make it a viable SIP client.

 On Jan 2, 7:10 am, Ricardo Martins rpopp...@gmail.com wrote:
  The problem with sipdroid is that it's tied to pabxes.org. If you want
  to use on your local sip pbx (asterisk) you can't do it.
 
  jotobjects escreveu:
 
   Where was the announcement or rumor onVOIPfor google voice on
   android?
 
   Also, there areVOIPproducts using sipdroid that supposedly do this
   now.

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


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

Re: [android-developers] Time To Load a Application in Emulator

2010-01-03 Thread Dan Sherman
From my experience, depends on the size of the application, and what other
builders you have set up.

For a very basic app (the HelloWorld examples), about 5 seconds on my
computer.

For a large gaming project, 30 seconds for a full build/install.

The machine is a 2.4ghz quad-core, with 6gb of ram if that gives a better
indication.

- Dan

On Mon, Jan 4, 2010 at 12:51 AM, Sasikumar.S sasikumar.it1...@gmail.comwrote:

 Hi,

 I opened my android emulator  now i like to execute my application.
 How much time it will take to install that application in emulator?...

 --
 Thanks  Regards
 Sasikumar.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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
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 connect with another bluetooth device through given uuid.

2010-01-03 Thread prabhu
Hi all,

I'm trying to connect to another bluetooth device through OPP uuid,
using socket.connect(); but the connection is turning off unnoticed,
but the outputstream.write(byte[]) is happening perfectly flawless on
my side. The thing is I want to set the bluetooth packet header in my
device so that the remote device recognizes it.
Does anybody knows how to set the packet header and packet type
manually(programmatically through java)?
If so, Kindly do help me out...

Thanks and regards,
prabhu.

-- 
You received this message because you are subscribed to the Google
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: Conventions about using SD card

2010-01-03 Thread Andriy Zakharchuk
Thank you, guys, just wanted to be sure that I haven't missed
something important (the conventions document).

-- 
You received this message because you are subscribed to the Google
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] now open all blocked site with our proxy

2010-01-03 Thread alagmy
now open all blocked site with our proxy

now if you find any blocked site in your country you open it with this
proxy just enter this site and put your site and click browse

this is the site

http://alagmy.almslol.net

-- 
You received this message because you are subscribed to the Google
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] Txt Messages Got Deleted

2010-01-03 Thread chris turner
Hi, I was just wondering why people (including myself) have gotten all
of their text messages deleted?  I just received a text message late
last night and said ill just read it in the morning.  Then I woke up
and all my txts were deleted.  I am using handcent, no message cap,
and I had no errors or force closes.  I was just wondering if this
problem is getting fixed.

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] Android SqlLite DB?

2010-01-03 Thread to...@webpro.com
Hi, I am new to the Android Development process and I have on
question. Is there a way to access a non local sqlLite server or do
the db's have to be kept on the phone itself? If so what would be the
best way to pull data from an external db? Write a server side app
that pulls the data from the db and creates an XML file and saves it
to the server then read the XML file from the android app?

Thanks in advance for your pointers and suggestions!

Tommy

-- 
You received this message because you are subscribed to the Google
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] MMS + MP3

2010-01-03 Thread forceoflight
Hello,

does anyone know if it is possible to implement a MP3 file send via
MMS message?

Regards Markku

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


Re: [android-developers] Re: Java Question about reflection

2010-01-03 Thread Attila Bodis
Consider using the builder pattern instead of static factory methods:
http://en.wikipedia.org/wiki/Builder_pattern

On Sat, Jan 2, 2010 at 2:58 PM, jotobjects jotobje...@gmail.com wrote:
 Here is a start...

 Class barClass = com.example.Bar.class;
 Method m = barClass.getMethod(foo, ...) // add parameter types to
 call
 Object val = m.invoke(null, ...) // add parameter values to call

 On Jan 2, 12:10 pm, Philip philip.dese...@gmail.com wrote:

 2. I am trying to replicate the easy functionality of the
 NSClassFromString method. Basically, if I have a string for a full
 qualified class name, what is the best way to invoke a static method
 with a known signature for that class.

 In objective c:

 Class foo()
 {
         NSString *r = @Bar;
         Class c = NSClassFromString(r);
         return c;

 }

 then you can call method sna() on class Bar with [foo() sna:d]

 So far in Java using reflection, I came up with this convoluted code
 that doesn't replicate the behavior for the parameters for the
 function (I pass back the object reference, not the method back,
 therefore I also have to pass the parameter to call the method):

 static SuperClassOfBar foo(float d) {
         try {
             String r = Bar;
             Class c = Class.forName(com.example.+r); // Fully
 qualified name for class
             Class partypes[] = new Class[1];
             partypes[0] = Float.TYPE;
             Method m = c.getDeclaredMethod(sna, partypes);
             Object arglist[] = new Object[1];
             arglist[0] = d;
             Object o = m.invoke(null, arglist);
             return SuperClassOfBar.class.cast(o);
         } catch (Exception e) {
             return null;
         }

 It works but it's heavy and not pretty. I understand that leaving a
 dynamic language like objective c , I have to make some compromises,
 but I may miss something about Java for not having found something
 more lightweight for such a generic programming functionality. Any
 suggestions to simplify this implementation are welcome.

 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

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


Re: [android-developers] Full Android Example using Twitter OAuth with Signpost

2010-01-03 Thread kamran Manzoor
Salam

I have a problem with my emulator it works fine in my hostel where no proxy
setting needed
But the problem is that' emulator not working in my University where setting
the proxy..

If any one knows this plz reply me as Soon as Possible

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] AppWidget is not updating

2010-01-03 Thread Vikas1976
Hi all, I am attempting to query a database and update information in
the appwidget screen based on changes to the database done while in an
activity - so that when the user exits, the changes are reflected in
the widget on the screen.  The appwidget is being updated with a
broadcast from OnPause() and OnStop() in my primary Activity.
Relevant pieces of the code are below.  The Toast shows me that the
data is correctly being pulled when OnUpdate() is called.  But the
widget refused to change!  Help me!  I'm tearing my hair out here :)


public class QwikButton extends AppWidgetProvider {

public String listuuid = ;
public String title = ;
public String listfinal = ;
public String[] listitems = null;


@Override
public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] appWidgetIds) {
setupDBs(context);

RemoteViews rv = new RemoteViews(context.getPackageName(),
R.layout.main);

listfinal = ;
listuuid = this.getUUID(context);
title = this.getTitle(context, listuuid);

listitems = this.getItems(context, listuuid);
if (listitems == null)
{
listfinal = No items in this list.;
rv.setTextViewText(R.id.lv_list, listfinal);}
else
{
for (String s : listitems) { listfinal += s; }
listfinal = listfinal.subSequence(0, 
listfinal.length()-2).toString
();
rv.setTextViewText(R.id.lv_list, listfinal);
}

Toast.makeText(context, listuuid+title+listfinal
+appWidgetIds.toString(), Toast.LENGTH_LONG).show();

rv.setTextViewText(R.id.tv_title, title);

/* ... lots of irrelevant code ... */

appWidgetManager.updateAppWidget(appWidgetIds, rv);
}

/* ... lots of irrelevant code ... */

}


Layout main.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent android:orientation=vertical
android:background=@drawable/bg2x2 android:layout_gravity=center
android:layout_height=fill_parent android:id=@+id/background
RelativeLayout android:layout_width=wrap_content
android:layout_height=wrap_content
Button android:background=@drawable/microphone 
android:id=@+id/
button_two
android:layout_gravity=center_horizontal|center
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_alignParentRight=true
android:layout_marginLeft=0dip
android:layout_marginTop=10dip
android:layout_marginRight=8.5dip /
Button android:background=@drawable/openfolder 
android:id=@+id/
button_one
android:layout_gravity=center_horizontal|center
android:layout_marginLeft=0dip
android:layout_height=wrap_content
android:layout_width=wrap_content 
android:layout_toLeftOf=@id/
button_two
android:layout_alignTop=@id/button_two /
Button android:background=@drawable/mail android:id=@+id/
button_gmail
android:layout_gravity=center_horizontal|center
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_toLeftOf=@id/button_one
android:layout_alignTop=@id/button_two /

/RelativeLayout
TextView android:text=Title android:id=@+id/tv_title
android:layout_gravity=center_horizontal|center
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_toLeftOf=@id/button_one 
android:textColor=#00
android:layout_centerVertical=true android:textSize=16.0sp
/TextView

TextView android:text=List/nList/nList android:id=@+id/lv_list
android:layout_height=fill_parent
android:layout_width=fill_parent
android:layout_marginLeft=18dip 
android:layout_marginRight=8dip
android:textColor=#00 android:textSize=10.0sp
/TextView

/LinearLayout





?xml version=1.0 encoding=utf-8?

appwidget-provider xmlns:android=http://schemas.android.com/apk/res/
android
android:minWidth=146dip android:minHeight=146dip
android:updatePeriodMillis=1000 android:initialLayout=@layout/
main /




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

[android-developers] How can I put a linearlayout in a grid of the gridview?

2010-01-03 Thread sunxin8086
this is what I did in the adapter class. but its not working.

public View getView(int position, View convertView, ViewGroup
parent) {
ThumbnailProfile profile = profiles.get(position);
LinearLayout thumbnailProfileView = new LinearLayout(online);
thumbnailProfileView.setLayoutParams(new GridView.LayoutParams
(85, 10));
thumbnailProfileView.setOrientation(LinearLayout.VERTICAL);

TextView username = new TextView(online);
username.setText(profile.getUsername());
TextView basicInfo = new TextView(online);
basicInfo.setText(profile.getAge() + ,  + profile.getHeight() +
,  + profile.getWeight());


ImageView imageView;
if (convertView == null) {  // if it's not recycled,
initialize some attributes
imageView = new ImageView(online);
imageView.setLayoutParams(new GridView.LayoutParams(85,
85));
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
imageView.setPadding(8, 8, 8, 8);
} else {
imageView = (ImageView) convertView;
}
Bitmap pic = getImageBitmap(profiles.get
(position).getProfilePicUrl());
imageView.setImageBitmap(pic);
thumbnailProfileView.addView(username);
thumbnailProfileView.addView(basicInfo);
thumbnailProfileView.addView(imageView);
return thumbnailProfileView;
}

-- 
You received this message because you are subscribed to the Google
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 parse html with saxparser (or other solution)

2010-01-03 Thread jwei512
Another one you could try is HTML Cleaner (http://
htmlcleaner.sourceforge.net/).

I've made a few applications already that references this library and
it even supports XPATH to parse the HTML source

If you'd like to see some code snippets then let me know and I can
show you some.

- jwei

http://thinkandroid.wordpress.com

On Jan 2, 1:36 pm, tlegras tleg...@gmail.com wrote:
 ok thanks i am trying nekohtml and currently trying to make it run but
 with the minimal sample code (so using only provided
 xercesMinimal.jar) i got this exception in my parse() function:

 E/AndroidRuntime(  765): Uncaught handler: thread Thread-10 exiting
 due to uncaught exception
 E/AndroidRuntime(  765): java.lang.ExceptionInInitializerError
 E/AndroidRuntime(  765):        at org.cyberneko.html.HTMLScanner
 $ContentScanner.scan(HTMLScanner.java:2043)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
 E/AndroidRuntime(  765):        at
 com.tlegras.freeboxrec.AddRecordingThread.run(AddRecordingThread.java:
 231)
 E/AndroidRuntime(  765): Caused by: java.lang.IllegalStateException:
 Failed to create XercesBridge instance
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.xercesbridge.XercesBridge.makeInstance
 (XercesBridge.java:59)
 E/AndroidRuntime(  765):        at
 org.cyberneko.html.xercesbridge.XercesBridge.clinit
 (XercesBridge.java:32)

 Still invistigating, I will give feedback.

 Thanks,
 Thierry.

 On 2 jan, 19:29, Frank Weiss fewe...@gmail.com wrote:



  Check nekohtml. I haven't tried it on Android yet, but used it several times
  on desktop for screee

  On Jan 2, 2010 8:36 AM, Kumar Bibek coomar@gmail.com wrote:

  I guess you need to use a special HTML parse. Since, HTML pages are
  not well-formed and are not XML compliant, using an XML parser will
  not serve your purpose.

  Search for any third party libraries.

  Thanks and Regards,
  Kumar Bibek

  On Jan 2, 8:05 pm, tlegras tleg...@gmail.com wrote:  Happy new year world
  :)   I want to parse...

-- 
You received this message because you are subscribed to the Google
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] Nested TabWidget ?

2010-01-03 Thread mrqzzz
Hello.
I am new to Android. I just started with the layout examples and i was
wondering how to get nested TabWidgets (a TabWidget inside a tab of
another TabWidget).
I noticed that android:id=@android:id/tabs of one TabWidget might
conflict with the other... or am i missing something?

Thanks,
Marcus.

-- 
You received this message because you are subscribed to the Google
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 open project with eclipse

2010-01-03 Thread mobi coder
Hi Friends,

I am new to Android Development. Actually i am iphone developer and i
am learning android developer. I installed android and eclipse and i
run one project successfully.

Now problem is that after creating project, it doesn't appear in
eclipse. So can anyone plz tell me that how can i open project into
eclipse.

Actually i haven't used eclipse anytime and android package contains
lots of like , 1. assets, 2. bin, 3. gen, 4. res, 5. src,
6. .classpath, 7. .project, 8. AndroidManifest, 9. default.properties.

So which file should i open in eclipse.

Regards,
Moby Coder.

-- 
You received this message because you are subscribed to the Google
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] MotionEvent and KeyEvent causing excessive garbage collect (GC) calls

2010-01-03 Thread SnowCrash
Hi folks,

I'm running into some issues with input events and garbage collection,
or more precisely object allocation.  I am creating a game and have
pretty much got my head around the OpenGL environment.  I've digested
all the relevant material I could find regarding performance, memory
allocation etc (and watched the excellent presentation by Chris Pruett
- 
http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html).
I've pretty much eliminated any object allocations after initial setup
from my game (which is still in its infancy), but I'm still getting a
bunch of GC calls, like this:

DEBUG/dalvikvm(52): GC freed 10398 objects / 880928 bytes in 139ms

This is killing my frame-rate and creating a jittery experience, which
is no good.  Running DDMS I see that the culprit is MotionEvent and
KeyEvent.  Allocations like:

656 float[] 3   android.view.MotionEventinit
656 float[] 3   android.view.MotionEventinit
656 float[] 3   android.view.MotionEventinit
656 float[] 3   android.view.MotionEventinit
656 float[] 3   android.view.MotionEventinit

(there are many more, this is just a snapshot)

It seems that every time a MotionEvent is recorded, a float array is
created?

I am just using the onKeyDown event in the main Activity to broker the
key event to my game thread.  I'm also sleeping (16ms) in this method
call (as per Chris Pruett's recommendation) to save in excessive
notifications.

Is there something special I can do to eliminate these allocations?
Perhaps there is an alternate way of obtaining key events and or
trackball events? (which also are a cause of several allocations)

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] Arabic Support

2010-01-03 Thread Alkaabi
dear

I have HTC hero but it doesn't support arabic langauge , although HTC
Magic ,, do you have any idea when will HTC hero will support Arabic.

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] Problem with SMS

2010-01-03 Thread Yang Zhou
Dear android developers,
  I want to create my own folder for SMS,  and copy some message
to that folder. What should I do? 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] how to detect the exact key which closes the menu?

2010-01-03 Thread QD
whenever I use onKeydown or View.onKeyListener

it will always be triggered as the menu pop-up but closing
(maybe because it is focusing on another view?)

another related function onOptionsMenuClosed(Menu menu) seems not
working neither...
(it is called whenever the options menu is being closed (either by the
user canceling the menu with the back/menu button, or when an item is
selected).)

anyway, I want to do different things after user use different ways to
close the menu,

I think it shouldn't be hard to do, right?

plz give me any clue

thx~

-- 
You received this message because you are subscribed to the Google
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: Earn Unlimited income

2010-01-03 Thread jayakumaran . b
Wanted Internet job workers. 
You can earn $750- $1000 daily. 
These are genuine Internet jobs.
Only serious enquires please.

For more details visit : https://time2rich.com/jayavithya

-- 
You received this message because you are subscribed to the Google
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 open project with eclipse

2010-01-03 Thread mobi coder
Hi Friends,

I am new to Android Development. Actually i am iphone developer and i
am learning android developer. I installed android and eclipse and i
run one project successfully.

Now problem is that after creating project, it doesn't appear in
eclipse. So can anyone plz tell me that how can i open project into
eclipse.

Actually i haven't used eclipse anytime and android package contains
lots of like , 1. assets, 2. bin, 3. gen, 4. res, 5. src,
6. .classpath, 7. .project, 8. AndroidManifest, 9. default.properties.

So which file should i open in eclipse.

Regards,
Moby Coder.

-- 
You received this message because you are subscribed to the Google
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: Launch navigation app with an Intent - [DS]

2010-01-03 Thread kautilya
code  working very smoothly on SDK 2.0.1

Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse(google.navigation:q=New+York+NY));
startActivity(i);

Thanks Declan .

On Dec 18 2009, 1:39 am, Declan Shanaghy dec...@350nice.com wrote:
 Sorry but that's just a web URL, not the Navigation App.

 I found out how to do it by applying a bit of guesswork after reading this
 page (suggested previously by Lance, thanks 
 Lance)http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents

 Intent i = new Intent(Intent.ACTION_VIEW,
 Uri.parse(google.navigation:q=New+York+NY));
 startActivity(i);



 On Wed, Dec 16, 2009 at 11:45 PM, lk vaish.alo...@gmail.com wrote:
  for opening in navigation mode try this--
  Intent navigation = new Intent(Intent.ACTION_VIEW, Uri.parse(“http://
  maps.google.com/maps?
  saddr=42.35892,-71.05781daddr=40.756054,-73.986951http://maps.google.com/maps?%0Asaddr=42.35892,-71.05781daddr=40.7560...
  ”));
  startActivity(navigation);

  where saddr = latitude and longitude of starting point.
  and   daddr = latitude and longitude of destination point.

  thanks

  On Dec 12, 10:57 am, Declan Shanaghy dec...@350nice.com wrote:
   Well yes it is the maps app but i want to launch in in Navigation mode,
  not
   just a plain ole map.
   This is for a Droid specific app, which has Android 2.0 with Google
   Navigation.

   On Fri, Dec 11, 2009 at 4:37 PM, Lance Nanek lna...@gmail.com wrote:
Do you mean the Google Maps app? For that you can use an intent with
an ACTION_VIEW action and URI like this:
geo:0,0?q=my+street+address

Documented on this page:
   http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents..
  ..

On Dec 11, 4:48 pm, Declan Shanaghy dec...@350nice.com wrote:
 Hello,
 I realize this might not be the proper place to post this since it's
  not
 Android specific, but rather its about integrating with a google app.

 I've been trying to find some documentation on launching /
  controlling
the
 Google Navigation app via Intents or otherwise.
 I was hoping to find an intent to launch the navigation app with
  address
 parameters setup and start navigation immediately.

 Can't find anything out there, so I'm still not even sure if it can
  be
done.

 Anyone have any ideas?

 Thanks,
 Dek

 --
 An engineer's definition of done is the perfect set of code, and
  left to
 his own devices, an engineer will endlessly improve the code on the
mythic
 journey to done.
 --http://www.randsinrepose.com

 [DS]

--
You received this message because you are subscribed to the Google
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.comandroid-developers%2bunsubscr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com

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

   --
   An engineer's definition of done is the perfect set of code, and left to
   his own devices, an engineer will endlessly improve the code on the
  mythic
   journey to done.
   --http://www.randsinrepose.com

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

 --
 An engineer's definition of done is the perfect set of code, and left to
 his own devices, an engineer will endlessly improve the code on the mythic
 journey to done.
 --http://www.randsinrepose.com

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


[android-developers] regex error with splitting strings

2010-01-03 Thread Curran
I am currently trying to split a string of a mathematical function,
which I am currently respresenting as:

4x2+3x4 (which means 4x^2 + 3x^4)

and I need to split it into the individual terms, 4x2 and 3x4. Using a
string.split(+) method I get the error:

Syntax Error: U_REGEX_RULE_SYNTAX near index 1: +

how can I prevent this error occurring?

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] New to Android Problem with OnKeyListener

2010-01-03 Thread bill pull
So ive just begun to start on my android development learning journey
and got this book Profession Android Application Development, but I
cant get this certain sample code to run and im so new to the sdk I
cant spot the problem. Well obviously eclipse tells me why it wont
compile ive gotten it down from a host of errors just importing
thhings into the document but one red line is still under new
OnKeyListener. Any suggestions appreciated I feel i have too many
imports as well so let me know just started learning hate when these
book examples dont work.

package com.paad.todolist;

import android.app.Activity;
import android.os.Bundle;
import android.view.*;
import android.widget.*;
import android.util.*;
import java.util.*;



public class ToDoList extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {

setContentView(R.layout.main);

//get references to ui widgets
ListView myListView = (ListView)findViewById(R.id.myListView);
final EditText myEditText = (EditText)findViewById
(R.id.myEditText);

//Create Array List of Todo Items
final ArrayListString todoItems = new ArrayListString();
//Create array adapter to bind arraylist to list items
final ArrayAdapterString aa;
aa = new ArrayAdapterString(this,
android.R.layout.simple_list_item_1,
todoItems);
//bind to list view
myListView.setAdapter(aa);

//Setup next user next entry
myEditText.setOnKeyListener(new OnKeyListener(){
public boolean onKey(View v, int keyCode, keyEvent event){
if (event.getAction()== keyEvent.ACTION_DOWN)
if (keyCode == keyCode.KEYCODE_DPAD_CENTER)
{
todoItems.add(0, 
myEditText.getText().toString());
aa.notifyDataSetChanged();
myEditText.setText();
return true;
}
return false;
 }
});
}

}

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


Re: [android-developers] get city name by latitude and longitude

2010-01-03 Thread Carol Bolger
This site has a complete example on using google maps including geocoding -
getting the address of a location from the latitude and longitude.
http://mobiforge.com/developing/story/using-google-maps-android

On Sat, Jan 2, 2010 at 11:25 PM, star double doublestar...@gmail.comwrote:

 Hi, all

 I am making a weather widget now , and there is a problem that how can I
 get some city name after getting latitude and longitude from google map.
 because I think we can't get weather data if can not get city name . any
 advice is welcome, thanks a lot !

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
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] Clickable hyperlinks in AlertDialog

2010-01-03 Thread Thilo-Alexander Ginkel
Hello everyone,

apologies if I missed something obvious...

What I am trying to accomplish is to have clickable hyperlinks in the
message text displayed by an AlertDialog. While the AlertDialog
implementation happily underlines and colors any hyperlinks (defined
using a href=... in the string resource passed to
Builder.setMessage) supplied the links do not become clickable.

The code I am currently using looks like this:
new AlertDialog.Builder(MainActivity.this).setTitle(
R.string.Title_About).setMessage(
getResources().getText(R.string.about))
.setPositiveButton(android.R.string.ok, null)
.setIcon(R.drawable.icon).show();

I'd like to avoid using a WebView to just display a text snippet, so
any advice how to get this working is much appreciated!

Thanks,
Thilo

-- 
You received this message because you are subscribed to the Google
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: Launch navigation app with an Intent - [DS]

2010-01-03 Thread kautilya
Hi Declan ,

Thanks for your code . it's working very well But only with SDK 2.0.1.

Thanks
kautilya

-- 
You received this message because you are subscribed to the Google
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] Outgoing text/sms

2010-01-03 Thread Sunny25
Hi guys,

I can get notification of outgoing call using PhoneStateListener. But
is there any api in android which will notify my application about
outgoing text/sms being sent.

Thanks in advance

Sunny

-- 
You received this message because you are subscribed to the Google
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] Is that possible to get the current sample amplitude by MediaRecorder or other class

2010-01-03 Thread White Chen
Hi everyone,
I have a media recorder, and want to record a media from mic and get
it's amplitude sample.
I want to try to get the correct and current amplitude instantaneously
when calling some API.
But there is just one API in MediaRecorde for getting amplitude:
getMaxAmplitude, and it is used to get the maximum absolute amplitude
measured since the last call.
Is that possible to get the current sample amplitude instantaneously
by MediaRecorder or other class from mic?

Thanks,
Best regards,
Chen

-- 
You received this message because you are subscribed to the Google
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] Is that possible to get the current sample amplitude by MediaRecorder or other class

2010-01-03 Thread White Chen
Hi everyone,
I have a media recorder, and want to record a media from mic and get
it's amplitude sample.
I want to try to get the correct and current amplitude instantaneously
when calling some API.
But there is just one API in MediaRecorde for getting amplitude:
getMaxAmplitude, and it is used to get the maximum absolute amplitude
measured since the last call.
Is that possible to get the current sample amplitude instantaneously
by MediaRecorder or other class from mic?

Thanks,
Best regards,
Chen

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


RE: [android-developers] Clickable hyperlinks in AlertDialog

2010-01-03 Thread Tommy Hartz
you can set the android:autoLink=all or whatever attribute you need in
place of all

Respectfully, 
Tommy Hartz | DBA 

WEBPRO 
  the web people ™ 
Savannah GA. - 912.988.3065 | Charlotte NC. - 704.814.7277  | Toll
888.999.4887
***

CONFIDENTIALITY: The information contained in this email communication,
including any attached documents or information, is confidential and may
contain proprietary information or legally privileged information. This
email communication is intended solely for use of the named addressee. The
intended recipient may not use, copy, distribute, forward or otherwise
disseminate any part of this email communication except as expressly
permitted by WEBPRO International Inc. If the reader of this email
communication is not the intended recipient, you are hereby notified that
the use, copying, distribution, forwarding or other dissemination of any
part of this communication is strictly prohibited. If you have received this
email communication in error, please immediately notify us by calling
888-999-4887 or an e-mail message addressed to the following:
mailto:le...@webpro.com

*** 

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Thilo-Alexander
Ginkel
Sent: Sunday, January 03, 2010 10:11 PM
To: Android Developers
Subject: [android-developers] Clickable hyperlinks in AlertDialog

Hello everyone,

apologies if I missed something obvious...

What I am trying to accomplish is to have clickable hyperlinks in the
message text displayed by an AlertDialog. While the AlertDialog
implementation happily underlines and colors any hyperlinks (defined
using a href=... in the string resource passed to
Builder.setMessage) supplied the links do not become clickable.

The code I am currently using looks like this:
new AlertDialog.Builder(MainActivity.this).setTitle(
R.string.Title_About).setMessage(
getResources().getText(R.string.about))
.setPositiveButton(android.R.string.ok, null)
.setIcon(R.drawable.icon).show();

I'd like to avoid using a WebView to just display a text snippet, so
any advice how to get this working is much appreciated!

Thanks,
Thilo

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

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


Re: [android-developers] Re: J2EE client on Android

2010-01-03 Thread Android Development
Why don't you invoke some web service from the client which in turn talks to
your EJB  ?

On Thu, Dec 3, 2009 at 6:33 AM, Bruce Xia bruce.xi...@gmail.com wrote:

 What I was trying to do is really to have an app client who can talk to EJB
 on server side. This is simply done by adding @EJB annotator in JEE but in
 Anroid package the ejb package is not included. This can probably be done
 thru RMI but if Android has native support it would be great.

 IF you have any example code for this or JMS client it would be helpful.


 On Wed, Dec 2, 2009 at 10:56 PM, Charlie Collins 
 charlie.coll...@gmail.com wrote:

 Depends what you mean by J2EE client. A client could be just a web
 browser (Servlets and JSP are part of the JEE spec). You might mean
 more along the lines of a SOAP or JMS client or such though (which
 also can be done, not that they *should* be done, but can be). You
 need to clarify this quite a bit before anybody can really try to help
 you.

 On Dec 2, 2:55 am, Bruce Xia bruce.xi...@gmail.com wrote:
  is there a way to port or implement a J2EE client on android? Does
  anybody have example code please?

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
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] Map panning and zooming too slow.........

2010-01-03 Thread Pratap
I've developed a GPS app in which i record the user roots and show it
on the map...but
Panning around on the map when reviewing my route is painfully slow,
it takes at least 4 or 5 seconds for the map to respond the finger
swipes..

I've overridden the onDraw()  method and drawing the lines to show the
routes..is there any better way to do this so that panning becomes
faster as in MyTracks...

Thank you all.
Pratap 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


Re: [android-developers] Conventions about using SD card

2010-01-03 Thread Alessandro Pellizzari
Il giorno dom, 03/01/2010 alle 08.18 -0800, Andriy Zakharchuk ha
scritto:

 I have a question about SD card usage in Android applications. I need
 my application to store some files on the SD card. Is there any
 document (conventions) about how the application should use the SD
 card?

Please also consider devices with more than one SD card, like the
Samsung Galaxy (/sdcard is the internal 6.5 GB flash, /sdcard/sd is the
external removable SD card).

If you need to store big chunks of data, you could let the user
configure the path in which to save them.

Bye.


-- 
You received this message because you are subscribed to the Google
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 SqlLite DB?

2010-01-03 Thread Kumar Bibek
Hi,

You db has to be on the phone. You can of course access an online DB
server from your phone, but in such a case, you would have to write a
server side app as you have mentioned.

This depends. If your app uses data that changes dynamically, you will
have to use the server side app, else, you can use the local db that
you create on the phone

Thanks and Regards,
Kumar Bibek

On Jan 3, 1:57 am, to...@webpro.com to...@webpro.com wrote:
 Hi, I am new to the Android Development process and I have on
 question. Is there a way to access a non local sqlLite server or do
 the db's have to be kept on the phone itself? If so what would be the
 best way to pull data from an external db? Write a server side app
 that pulls the data from the db and creates an XML file and saves it
 to the server then read the XML file from the android app?

 Thanks in advance for your pointers and suggestions!

 Tommy

-- 
You received this message because you are subscribed to the Google
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: Where can I get adds for my application?

2010-01-03 Thread Vladimir
What about Quattro Wireless?
I'm generally satisfied with AdMob, but it would be nice to hear from
someone working with other advertisers.

On Jan 3, 3:25 pm, ko5tik kpriblo...@yahoo.com wrote:
 As adsense for mobile is still beta,   they accept only apps
 with 100K views a day ( and your is certainly not yet eligible,
 or you would not ask this question )

 BUt good news is,  that admob will accept it,  and they are about to
 be bought
 by google - so you will make it to adsense through back door in couple
 of months

 On Jan 2, 5:34 pm, Kumar Bibek coomar@gmail.com wrote:



  Well, Admob is a good choice. Also, you can try Adsense API by google.

  Thanks and Regards,
  Kumar Bibek

  On Dec 31 2009, 7:13 pm, Martin google-gro...@digle.de wrote:

   Hi!

   I want to write a game for the Market. So where can I get adds for it
   to earn some money (a page like admob.com for example)?
   I am searching for an advertising page, where I do not need to do
   anything and earn the most money. The ad-page has to dynamically
   change the content of my ads in my program.

   Greetings,
   Martin

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