Re: [android-developers] Re: Application wake up

2010-10-21 Thread Zhihong GUO
Hi Prill,

How to send binary SMS to the specific port on the phone, can we do the test
on emulator?

Thanks

2010/5/11 Timo Prill timo.pr...@googlemail.com

 Send binary SMS to the specific port on the phone, they won't be shown in
 the inbox..

 (except the HTC Tattoo sometimes shows binary SMS in the inbox.. seems to
 be a device-specific bug)

 cheers

 Am 11.05.2010 15:36, schrieb SAM:

 Hi,
 Has anyone found any solution for Port directed SMS OR App directed
 SMS in android?

 Although the Inbox SMS hook is working but I am still unable to delete
 this SMS from Inbox. I dont want user to see this SMS notification.

 Thanks
 Sam

 On Apr 16, 5:04 pm, SAMgulati...@gmail.com  wrote:


 Thanks Guys. Its working now.

 So the process goes like this:
 1. In your manifest file, make a activity and a receiver. Mention your
 receiver class name here.
 2. Make a entry foruses-permission  android:name =
 android.permission.RECEIVE_SMS
 3. To test on emulator, test by DDMS perspective view.
 4. You application will receive SMS while its dead too. in
 Onreceive(), read the SMS and do whatever you want. you can also start
 your activity from here.

 Thanks
 sam

 On Mar 19, 7:56 am, Andreasandreas.bex...@gmail.com  wrote:







 Hi,




 Please note that there is no longer any class called IntentReceiver.
 It is now called BroadcastReceiver. Also, to get this to work, you
 need to register the receiver in the AndroidManifest.xml like this:




 receiver android:name=.RespToSMS
 intent-filter
 action
 android:name=android.provider.Telephony.SMS_RECEIVED /
 /intent-filter
 /receiver




 Regards,
 Andreas




 On Mar 18, 2:50 pm, Vaibhav Kulkarnivaibhavkul...@gmail.com  wrote:




 Hi Sam,




 I think you should create a service for that!!! You can use Intent for
 SMS
 in following way




 public class RespToSMS extends IntentReceiver {
 /* package name for Intent */
 static final String ACTION =
  android.provider.Telephony.SMS_RECEIVED;




 public void onReceiveIntent(Context context, Intent intent) {
  if (intent.getAction().equals(ACTION)) {
   StringBuilder buf = new StringBuilder();
  Bundle bundle = intent.getExtras();
   if (bundle != null) {
   SmsMessage[] messages =
 Telephony.Sms.Intents.getMessagesFromIntent(intent);
   for (int i = 0; ilt; messages.length; i++) {
   SmsMessage message = messages[i];
   buf.append(message.getDisplayMessageBody());
  /* Check your SMS format and respond here... */
   }
   }
   NotificationManager nm = (NotificationManager)
 context.getSystemService(
   Context.NOTIFICATION_SERVICE);




   nm.notifyWithText(123, buf.toString(),
   NotificationManager.LENGTH_LONG, null);




   }
  }




 }




 Thanks,
 Vaibhav




 On Thu, Mar 18, 2010 at 10:33 AM, SAMgulati...@gmail.com  wrote:


 Hi,
 I have a requirement to wake up my application upon receiving a
 particular formatted SMS or App directed notification from server.




 My application is in dead state. Whenever the device receives a event
 may be a SMS in a particular format OR some notification(eg app
 directed notification from server), android OS will start my
 application.




 Its possible in Windows Mobile and BREW.




 Please let me know if its possible in Android and how.




 Thanks
 Sam




 --
 You received this message because you are subscribed to the Google
 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%2bunsubs限cr...@googlegroups.com

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




 - Show quoted text -


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

 - Show quoted text -





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

[android-developers] ContactsContract.Contact Not fully Aggregated

2010-10-21 Thread Chopcsu
I have found that the ContactsContract.Contact table contains the same
contact multiple times for different accounts.

i.e I have one 'dave' with com.google account and another in with
vnd.sec.contact.sim .

I thought the Contact table is supposed to be an aggregate of
RawContacts  automatically group like contacts to have only one row
in the Contact tableIs this incorrect, or it is a case where it
'can' not does.

Any feedback would be greatly appreciated.

Regards,
Steve

-- 
You received this message because you are subscribed to the Google
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] Galaxy Tab SDK missing shared library

2010-10-21 Thread marlan
Hi,

I have downloaded the Galaxy SDK from:
http://innovator.samsungmobile.com/galaxyTab.do

When I try to install my app on the emulator, I get an error: missing
shared library.
I think the google maps api is not included in the emulator.
Is it possible to include the api?

Thanks
Mark

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


Re: [android-developers] ContactsContract.Contact Not fully Aggregated

2010-10-21 Thread Atul Raut
Hi,

Yes the contacts gets aggregetted into contact table and
shows to used.
The concept google introduced here is that same user might have
different googles or yahoos or other account.
Is this you are looking or what please let us know
will elaborate more if needed.

Thanks,
Atul

On Thu, Oct 21, 2010 at 12:12 PM, Chopcsu st...@kilsby.com.au wrote:

 I have found that the ContactsContract.Contact table contains the same
 contact multiple times for different accounts.

 i.e I have one 'dave' with com.google account and another in with
 vnd.sec.contact.sim .

 I thought the Contact table is supposed to be an aggregate of
 RawContacts  automatically group like contacts to have only one row
 in the Contact tableIs this incorrect, or it is a case where it
 'can' not does.

 Any feedback would be greatly appreciated.

 Regards,
Steve

 --
 You received this message because you are subscribed to the Google
 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: queryBroadcastReceivers does not return receivers registered by registerReceiver()

2010-10-21 Thread Assaf
I understand. 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] Re: Can startActivityForResult be called from within InputMethodService?

2010-10-21 Thread Dianne Hackborn
Why do you think it can't be used from a service?

On Wed, Oct 20, 2010 at 3:36 PM, Saied saie...@gmail.com wrote:

 Now it seems that createSpeechRecognizer  cannot be called from within
 a service. Without that, I don't think I can use SpeechRecognizer.

 Does this make sense?

 If it does, how's a service (input method) to integrate voice
 recognition.

 I have seen this done, but how?

 Thank you.

 Saied


 On Oct 15, 1:04 pm, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Oct 15, 2010 at 3:55 PM,Saiedsaie...@gmail.com wrote:
   Are you aware of any examples or tutorials to help me on this?
 
  No, sorry.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android 2.2 Programming Books:http://commonsware.com/books

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




-- 
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: Smooth scrolling within a custom view - how to?

2010-10-21 Thread MB
Okay, I figured this out.
The framework provides computeScroll for this.

On Oct 20, 3:35 pm, MB manoj.bi...@gmail.com wrote:
 Hi,

 I would really appreciate any insights regarding the following. Any
 pointers/hints/thoughts on this   would be very helpful. I have wasted
 quite a bit of time on this.

 I have a custom view that needs to scroll internally. Currently the
 way I do it is to re-draw the View when I detect fling/scroll
 gestures. It works but is extremely jerky when the scroll amount is
 large.
 I am trying to make the custom view scroll smoothly similar to the way
 ListView does.

 I've looked at the 'Scroller' class but couldn't figure out how to
 make it work with a View.

 The only solution I've figured out so far is to start a 'Timer'/Thread
 on large Scrolls and manually post invalidates.  This is obviously
 undesirable from a performance perspective since every fling/large
 scroll creates a Timer/Thread.

 I do not want to use ScrollView. The custom view is laid out within a
 RelativeLayout.

 Thanks,

 --MB.

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

2010-10-21 Thread Kostya Vasilyev
 There is an article by Sony Ericsson guys on implementing a similar 
UI, except their list items don't get stacked on the bottom.


http://blogs.sonyericsson.com/developerworld/category/tutorials/3d-list/

-- Kostya

21.10.2010 9:37, metal mikey пишет:

Sorry, didn't mean to suggest using a ScrollView, rather:

I suggest a solution involving layout animation on ImageViews...layout
animations that get triggered by interaction with a single
GestureOverlayView.

PS: I've seen a similar interface on promo material for Motorola
Flipout, so I guess a Motorola AppWidget has implemented something
similar to your interface.

On Oct 21, 3:55 pm, metal mikeycoref...@gmail.com  wrote:

Your interface requirements are quite specific, and thus likely to be
unique, so expecting people to have already implemented the interface
and simply pass you their solution is probably expecting too much.

For lack of being told exactly what to do...If you have ideas, try
them! Whether they work or fail, you'll learn something...

To help you along, though, I suggest a solution involving layout
animation on ImageViews...layout animations that get triggered by
interaction with a single ScrollView.

On Oct 21, 2:44 pm, argon goldargongol...@gmail.com  wrote:


Hi,
I have uploaded the interface picture that I'd like to design and check it a
link give below
http://www.flickr.com/photos/55033...@n06/5100859925/
I am considering to implement it with layout animation by modifying scroll
views .
Give me your suggestion  based on your experience to design this type of
interface.
Looking forward for your suggestion,
argongold
On Thu, Oct 21, 2010 at 10:37 AM, argon goldargongol...@gmail.com  wrote:

Any one have suggestion on this ?
On Tue, Oct 19, 2010 at 9:31 AM, argon goldargongol...@gmail.com  wrote:

Hello,
I'd like to get your suggestion for best option to implement the following
interface on android 2.2.
1. Folders (or folder windows displayed as pictures) are assembled or
places as a deck of cards on screen.
2. when using a touch (scroll up motion) each folder windows move up
(scroll up) at a tilted angle and gradually it gets straighten in vertical
direction when reaches at the center . The other folder windows are linked
as a chain so if you scroll up again the next folder window will take the
center position and so on until the last one. This can be scroll up or down.
Apparently, it seem it can be done with GridView or Gallery Widget to
start  instead working for new widget. if you have experience doing such
interface , suggest me for better option?
Thanks in advance for your suggestions
Regards,
argongold



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Screen capture from video stream

2010-10-21 Thread sheffanet
Hi,
I want to get a screenshot from the video which is showing.
Is it possible to get screenshot from video stream?

Any ideas?

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] Crash report: NoSuchFieldError

2010-10-21 Thread Markus
Hi all,

Yesterday I noticed this awkward crash report on the Android Market
Home:

java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newApplication(Instrumentation.java:
957)
at android.app.Instrumentation.newApplication(Instrumentation.java:
942)
at android.app.ActivityThread
$PackageInfo.makeApplication(ActivityThread.java:644)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
4232)
at android.app.ActivityThread.access$3000(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchFieldError:
at com.xxx.yyy.Application.clinit(Application.java:30)
... 16 more

The device was a Nexus One and apparently this happened twice (but
only to one user).

Any idea what might be the cause of this?

Markus

-- 
You received this message because you are subscribed to the Google
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 get the state of checkbox in a onListItemClick in Listactivity?

2010-10-21 Thread LiangLiang Wu
f my list has 10 items.. the onclick listener is fired only for the 10th
item. How to get the state of checkbox in a onListItemClick in Listactivity?

I have a class OnItemClickListener like this:

private class OnItemClickListener implements OnClickListener {

private int mPosition;

public OnItemClickListener(int position) {

mPosition = position;

}

@Override

public void onClick(View arg0) {

if (arg0 == repeat_chbt) {//check box is checked

A

} else {//item is checked

B
}

}
}

and I use this class like this in my getview()

repeat_chbt.setOnClickListener(new OnItemClickListener(position));

but only when I check the last item's checkbox, it go A correctly. Other
items' checkbox are checked they just go B. Who could tell me where I am
wrong. Thanks very much. I've searched many site, but I didn't find out the
answer.

-- 
Sincerely,
Liang

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

2010-10-21 Thread kohlerm
Hi,

The dominator tree shows the largest objects in the heap. It shows
only the largest objects that are not retained by one single  object.

It's therefore possible that your objects show not up there. Note that
currently the information shown by the Memory Analyzer does *not* take
the size of native objects into account. This is a limitation
because the hprof file does not contain this information.
Your objects should show up in the history diagram.

You should use the path to GC roots function in the Memory Analyzer
to find out why your GViewGroup are still alive.

If you would post screenshots of MAT or maybe even a heap dump, it
would be easier to help you.


Regards,
Markus(http://kohlerm.blogspot.com/)

On Oct 19, 1:04 am, John Gaby jg...@gabysoft.com wrote:
 Thanks for the tip.  I have installed the Eclipse Memory Analyzer Tool
 and have been able to get a heap dump from my application to inspect,
 but I am having trouble interpreting what I see.  If I choose to look
 at the 'dominator_tree. and sort by package it appears to show my
 objects. I have a custom view group 'GViewGroup', and can find each
 one listed in the analyzer and I am able match them up with the ones
 that I logged as they were created.  Each of the GViewGroup objects
 has a ImageView object attached to it.  To be able to easily identify
 these, I created my own custom GImageView class which extends
 ImageView.  This class adds nothing, except it logs the creation and
 finialization of the class.

 Now when I look in the memory Analyzer, none of the the GImageView
 objects appear in the list (only the class object for GImageView).
 Yet, if I search for the memory address of one of these objects (that
 I get from the logging), it shows up.  In addition, if I expand one of
 the GViewGroup objects, I see that it references a GImageView object.
 Why don't the GImageView objects show up in the list.  How can I get a
 complete list of all the GImageView objects?

 Thanks

 On Oct 18, 12:44 pm, Kostya Vasilyev kmans...@gmail.com wrote:







    If I can make one more suggestion since you mention bitmaps

  It might be useful to add explicit Java methods to clean up your objects
  that hold references to bitmaps, and call Bitmap.recycle(). This method
  immediately frees up the memory allocated to hold bitmap bits, leaving
  only the Java stub that's quite small, and can be dealt with by GC at a
  later time.

  -- Kostya

  18.10.2010 23:35, DanH пишет:

   Kostya's link was a good one.

   On Oct 18, 2:17 pm, John Gabyjg...@gabysoft.com  wrote:
   It is funny that you mention images, because I am pretty sure that my
   leak is associated with images not being freed.

   Can you point me to a reference that discusses the heap dumping tools?

   Thanks again

   On Oct 18, 11:35 am, DanHdanhi...@ieee.org  wrote:

   You probably do need one of the tools that dumps the heap and shows
   you the classes of the objects found.
   And do note that Android (outside of the pure Java issues) has
   issues of its own with regard to image storage.  You can obey all of
   the Java rules on clearing references and still get bit by Android
   images.
   On Oct 18, 12:41 pm, John Gabyjg...@gabysoft.com  wrote:
   So there is no way to force all objects that no longer have references
   to them to be garbage collected?
   Once again, I really don't need to know when the object is actually
   freed.  What I am interested in is finding out whether it CAN be
   freed.  That is whether all the references to it are gone.  In my real
   application, the objects in questions are much larger and more
   complex.  Yet, I never see the finalize called for them.  This make me
   think that I still have references to them, but since I don't see the
   finalize called even in a simple case where I am sure there are no
   references, I cannot be sure.  I definitely have a leak, however,
   since if I perform the same operation enough times, the application
   eventually gets an Out Of Memory error.
   I am taking a look at using ReferenceQueue, or PhantomReference for
   that purpose but they seem to be way more complicated that I need.
   Thanks again.
   On Oct 18, 10:21 am, DanHdanhi...@ieee.org  wrote:
   I doubt that adding content to the object would make it any more
   likely to be collected.  The garbage collector doesn't generally
   weigh objects as to whether they should be collected or not.  The
   only differentiating factors are 1) the absolute size of the object
   itself (not counting references to other objects), 2) the number of
   times the object has survived garbage collection, and (sometimes) 3)
   the class of the object.
   On Oct 18, 11:57 am, Daniel Drozdzewskidaniel.drozdzew...@gmail.com
   wrote:
   On Mon, Oct 18, 2010 at 5:54 PM, Daniel Drozdzewski
   daniel.drozdzew...@gmail.com  wrote:
   On Mon, Oct 18, 2010 at 5:40 PM, John Gabyjg...@gabysoft.com  
   wrote:
   Thanks for the input.  I am a little confused about your 

Re: [android-developers] About the character encoding

2010-10-21 Thread Marcin Orlowski
On 20 October 2010 21:53, Julio Martins martins.ju...@gmail.com wrote:
 Friends,

 I am developing an application that has a module for sending SMS alerts. I'm
 worried about the character encoding.
 What better way to encode the string to be sent and the receiver not
 interpret as funny characters. Has anyone experienced this? Especially
 characters that are not part of my alphabet as Greek characters or Chinese
 characters.

never sent chinese nor greek, but I'd bet - UTF. At least that's what I use
here for polish accented chars.

-- 
You received this message because you are subscribed to the Google
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: Recommendations for variable length ListBox

2010-10-21 Thread Kumar Bibek
Sure you can do that. There can be as many number of ViewTypes you
want. And as many layouts. Also, you can create the views at runtime,
depending on the requirement.

There are a few methods in the BaseAdapter class which will help you.
Search for them (getItemViewType or something)

http://groups.google.com/group/android-developers/browse_thread/thread/1e3419b1254e3a19/d8ca550751b4a8fa?lnk=gstq=getItemViewType

On Oct 21, 10:59 am, Peter Webb r.peter.w...@gmail.com wrote:
 All of the examples of the use of ListView and similar controls that I
 can find assume a fixed number of field names coded into @strings or
 similar, and retrieved through R.layout functions.

 I want to dynamically create ListViews, Linear Layouts, Spinners etc
 of variable length, and contents determined at run time.

 I assume this is possible. Various appraoches occur to me:

 Extend ListView with a custom creator that pre-populates with the
 runtime determined field 
 names.http://developer.android.com/resources/tutorials/views/hello-listview...
 gives a hint on how to do it, whilst not directly addressing the
 question.

 I could try and take out the requirement to go through R.layout, and
 directly reference some other data structure

 And some others.

 However, this must be a very common design pattern, can anyone tell me
 the recommended approach for allocating the number of items in (say) a
 List View and their content at runtime ?

 Thanks

 Peter Webb

-- 
You received this message because you are subscribed to the Google
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: [USSD] Any API's or code flow ?

2010-10-21 Thread Atul Raut
How to send Ussd command/code using Android phone.
When am trying *#306# [for getting IMEI number] it say
wrong Ussd code. But this is very generic and application
to all phone.

-Atul


On Wed, Oct 13, 2010 at 10:52 AM, Atul Raut atul.dr...@gmail.com wrote:


 Thanks for kind reply.



 On Wed, Oct 13, 2010 at 2:35 AM, Frank Weiss fewe...@gmail.com wrote:

 I didn't even know what USSD code flow is. When I googled, the first few
 results were google groups questions.

 AFAICT, this is a carier-specific issue. I suggest you contact a carrier
 for specific USSD code flow questions.

 --
 You received this message because you are subscribed to the Google
 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] Re: Interface Design Question

2010-10-21 Thread argon gold
Hi William,

What happens to documents that are scrolled above the central one?
Will they accumulate in a stack at the top?

==The documents that scrolled above the central one gradually scrolls to
the top end and disappears.  All documents are like in a chain until the
last one reaches at the center position and stops. At this moment if you
touch and slide (accelerated touch downward) down it will start scrolling
and start making the stack of cards at the lower end.

I am also thinking of using a Container View and Five sub-view (posible
ImageViews)  and applying view animation as well as tilting at different
angles while scrolling up and down with accelerated touch.

Regards,
argongold



On Thu, Oct 21, 2010 at 12:46 PM, William Ferguson william.ferguson.au@
gmail.com wrote:

 Interesting UI, I would love to see it in action. I think it would be
 highly usable.
 What happens to documents that are scrolled above the central one?
 Will they accumulate in a stack at the top?

 I wouldn't use a ListView.
 I think you might be best served with View holding 5 ImageViews with
 the central one taking the lion's share of the  vertical space.
 And using animations to populate each. I suspect it will be simpler to
 manage it yourself rather than try to force a ListView.to co-operate.

 William


 On Oct 21, 1:44 pm, argon gold argongol...@gmail.com wrote:
  Hi,
 
  I have uploaded the interface picture that I'd like to design and check
 it a
  link give below
 
  http://www.flickr.com/photos/55033...@n06/5100859925/
 
  I am considering to implement it with layout animation by modifying
 scroll
  views .
  Give me your suggestion  based on your experience to design this type of
  interface.
 
  Looking forward for your suggestion,
 
  argongold
 
  On Thu, Oct 21, 2010 at 10:37 AM, argon gold argongol...@gmail.com
 wrote:
   Any one have suggestion on this ?
 
   On Tue, Oct 19, 2010 at 9:31 AM, argon gold argongol...@gmail.com
 wrote:
 
   Hello,
 
   I'd like to get your suggestion for best option to implement the
 following
   interface on android 2.2.
 
   1. Folders (or folder windows displayed as pictures) are assembled or
   places as a deck of cards on screen.
   2. when using a touch (scroll up motion) each folder windows move up
   (scroll up) at a tilted angle and gradually it gets straighten in
 vertical
   direction when reaches at the center . The other folder windows are
 linked
   as a chain so if you scroll up again the next folder window will take
 the
   center position and so on until the last one. This can be scroll up or
 down.
 
   Apparently, it seem it can be done with GridView or Gallery Widget to
   start  instead working for new widget. if you have experience doing
 such
   interface , suggest me for better option?
 
   Thanks in advance for your suggestions
 
   Regards,
   argongold

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

2010-10-21 Thread JonFHancock
How is this for a start?

Zip file containing white and gray tab icons for bus, car, bike,
pedestrian, and two types of star in sizes from 512px to 32px:
http://drop.io/pwrsdfe

Here is a sample image: http://drop.io/pwrsdfe/asset/sample-png

If you like them well enough, I'll tackle making more, and put them up
on a nice site.

My development career in Android revolves around icons (launcherpro
icons app), and I've been itching for a way to contribute something
free to the dev community.  I welcome any feedback in general or
particular about the icons.

On Oct 20, 3:09 pm, Pikoh pik...@gmail.com wrote:
 Well, thx JonFHancock for your interest,

   in fact now I'm needing some transport icons for a proyect: bus,
 car, bike, etc.. Also a favorites icon (a star?). But maybe
 something like this

  http://glyphish.com/

 would be useful to a lot of coders.

 On 19 oct, 22:42, JonFHancock jonfhanc...@gmail.com wrote:







  Or I should say: what do you want the icons to represent?

  There is this, by the way.  I haven't looked through all the links,
  but there may be some tab style icons in 
  there.http://www.androidguys.com/2010/09/15/templates-wireframes-stencils-i...

  On Oct 19, 1:40 pm, JonFHancock jonfhanc...@gmail.com wrote:

   I may be that artist.  What kind of icons do you want to see?

   On Oct 19, 9:45 am, Pikoh pik...@gmail.com wrote:

 I haven't found any either...that's why this was my last hope. Well,
let's see if any artist read this and give us some good pack ;)

On 19 oct, 17:52, Christophe christophe.lebesner...@gmail.com wrote:

http://www.glyfx.com/products/free_android2.html

 this is the only icon pack I know with tab variation icon ...
 unfortunaly there is not a lot of free android style icon available
 on the internet :(

 On Oct 19, 1:44 pm, Pikoh pik...@gmail.com wrote:

   Hi all,

  just a simple question..anyone knows of any icon packs for android
  tabhost? Let's say I'm not good at drawing.. :)

-- 
You received this message because you are subscribed to the Google
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] Display a numeric keypad on activity without an input area

2010-10-21 Thread draf...@gmail.com
I use the following code to pop up the soft input keyboard in my
Activity

---

InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
imm.getInputMethodList();

imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

---

This displays the alphabetic keyboard.

But I want to display the numeric keyboard.

Please note I know that using setInputType() works when used with an
Edittext or a TextView but I want to be able to display the keyboard
without an input area such as an EditText and simply listen to the key
presses on the keyboard.

Can anyone confirm whether this is possible and if so how can it be
achieved?

-- 
You received this message because you are subscribed to the Google
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] what intent is used for opening mail account?

2010-10-21 Thread MG
Hi all.

I just want to know what intent am I going to use to open a mail
client.
I can open the compose view of the mail client but I cant find an
intent to open
the inbox view of the mail client.

The same thing for opening the mail application from android device.
For example, from my application, I want to call mail application.
What intent should I use for it?

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: Droid 2: Cannot download to this device.

2010-10-21 Thread Ganapathy.C
May be your app have minimum SDK ver like
 android:minSdkVersion=7

so only it is showing like that...

try this to change to 3

( ver 1.5)

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


[android-developers] ListView OnClickListners Issue

2010-10-21 Thread Honey
Hi,
I have a list view with few rows which has image, some text and a
button in each row of the list.
I have listeners for list and button.The Listener for button works but
for the list view row is not working.
Please let me know a solution for this issue.
I have attached the sample code here:
http://www.4shared.com/file/cEFQ7J04/LazyList.html

Thanks in advance.

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


[android-developers] Android mt9p031 sensor support

2010-10-21 Thread ashwani
Hi all,

I have successfully ported android kernel (enabling staging kernel
2.6.32) on leopard DM365 board.
I am using mt9p031 sensor in my board.

I am getting the following errors while running the android camera
application from adb shell.

W/HAL ( 2118): load: module=/system/lib/hw/sensors.dm365.so
error=Cannot find library
W/HAL ( 2118): load: module=/system/lib/hw/sensors.default.so
error=Cannot find library


I want to know, what are the changes requires in android file system.
My camera  is working fine with previous file system.

Please help me to solve this problem.


Regards
Ashwani

-- 
You received this message because you are subscribed to the Google
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: adjustResize with Landscape Mode.

2010-10-21 Thread gv.ramkumar.75
Yes i want to override that functionality.

1. I don't want the IMEs to go full screen in landscape mode , is there a
property to achieve this?
2. My current layout xml file given above doesn't have the IME to fullscreen
( I believe i have used TextView instead of EditText that prevents it from
going full screen). Now assuming this scenarios is preserved how would i
achieve the property of adjustResize so that the TextView (@+id/txtView2),
 is still anchored to the bottom of the window which i am expecting to be
resized ? I basic idea here is to have the TextView(@+id/txtView2) displayed
in all cases whether the parent container in fullscreen or the IME resizing
it.

Regards
V. Ramkumar

On Thu, Oct 14, 2010 at 12:48 PM, Dianne Hackborn hack...@android.comwrote:

 Most IMEs when running in landscape use the full screen, so it doesn't
 matter what resize mode your apps uses since it is not being resized (it is
 being completely covered by the IME).


 On Wed, Oct 13, 2010 at 11:22 PM, Ram gv.ramkumar...@gmail.com wrote:

 Can any one reply to the below Post?

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




 --
 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.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] MediaRecorder buffering

2010-10-21 Thread RFuente
Hi everyone!

I've been working with MediaRecorder for a while and still keep up
discovering funny things about this class. I have two instances: one
of them records video and the other one records audio (why I don't
implement this with just one instance will be long to explain xD).

At the same time I am sending stored data via UDP to a remote machine
(running Java). The thing is that audio data is being received in
bursts and I've managed to find this is due to the way MediaRecorder
stores data. Do you know if it always behaves in the same way? At the
moment, data is being stored into the SD card, has any of you tried
writing into internal storage or maybe directly into a socket file
descriptor?

I know mine is not the best approach but it's still under development
(Android 1.6).

If anyone could give a hand it would be very much appreciated. Thanks.

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


[android-developers] reading ttf fonts

2010-10-21 Thread siliconeagle
I am writing a vector based drawing app and wanted to be able to get
the vectorised (points, triangles, lines, etc) information for fonts -
apparently this is in most ttf files.

does anyone know how to read ttf files or any libraries that do it? Or
is there a way to get the font information from a TypeFace object?

Or does anyone know the standard system libraries that do it?

thanks in advance.

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


[android-developers] Re: Interface Design Question

2010-10-21 Thread William Ferguson
Let us know when you're done, I'd love to see it.
Good luck.

On Oct 21, 6:48 pm, argon gold argongol...@gmail.com wrote:
 Hi William,

 What happens to documents that are scrolled above the central one?
 Will they accumulate in a stack at the top?

 ==The documents that scrolled above the central one gradually scrolls to
 the top end and disappears.  All documents are like in a chain until the
 last one reaches at the center position and stops. At this moment if you
 touch and slide (accelerated touch downward) down it will start scrolling
 and start making the stack of cards at the lower end.

 I am also thinking of using a Container View and Five sub-view (posible
 ImageViews)  and applying view animation as well as tilting at different
 angles while scrolling up and down with accelerated touch.

 Regards,
 argongold

 On Thu, Oct 21, 2010 at 12:46 PM, William Ferguson william.ferguson.au@

 gmail.com wrote:
  Interesting UI, I would love to see it in action. I think it would be
  highly usable.
  What happens to documents that are scrolled above the central one?
  Will they accumulate in a stack at the top?

  I wouldn't use a ListView.
  I think you might be best served with View holding 5 ImageViews with
  the central one taking the lion's share of the  vertical space.
  And using animations to populate each. I suspect it will be simpler to
  manage it yourself rather than try to force a ListView.to co-operate.

  William

  On Oct 21, 1:44 pm, argon gold argongol...@gmail.com wrote:
   Hi,

   I have uploaded the interface picture that I'd like to design and check
  it a
   link give below

  http://www.flickr.com/photos/55033...@n06/5100859925/

   I am considering to implement it with layout animation by modifying
  scroll
   views .
   Give me your suggestion  based on your experience to design this type of
   interface.

   Looking forward for your suggestion,

   argongold

   On Thu, Oct 21, 2010 at 10:37 AM, argon gold argongol...@gmail.com
  wrote:
Any one have suggestion on this ?

On Tue, Oct 19, 2010 at 9:31 AM, argon gold argongol...@gmail.com
  wrote:

Hello,

I'd like to get your suggestion for best option to implement the
  following
interface on android 2.2.

1. Folders (or folder windows displayed as pictures) are assembled or
places as a deck of cards on screen.
2. when using a touch (scroll up motion) each folder windows move up
(scroll up) at a tilted angle and gradually it gets straighten in
  vertical
direction when reaches at the center . The other folder windows are
  linked
as a chain so if you scroll up again the next folder window will take
  the
center position and so on until the last one. This can be scroll up or
  down.

Apparently, it seem it can be done with GridView or Gallery Widget to
start  instead working for new widget. if you have experience doing
  such
interface , suggest me for better option?

Thanks in advance for your suggestions

Regards,
argongold

  --
  You received this message because you are subscribed to the Google
  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] what intent is used for opening mail account?

2010-10-21 Thread Mark Murphy
On Thu, Oct 21, 2010 at 5:47 AM, MG my.android.a...@gmail.com wrote:
 I just want to know what intent am I going to use to open a mail
 client.
 I can open the compose view of the mail client but I cant find an
 intent to open
 the inbox view of the mail client.

There is no such Intent, sorry.

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

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

-- 
You received this message because you are subscribed to the Google
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: what intent is used for opening mail account?

2010-10-21 Thread MG
But how would you open the mail client?
Not to compose a message but to just call mail or gmail?
Is it not possible?

On Oct 21, 8:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Oct 21, 2010 at 5:47 AM, MG my.android.a...@gmail.com wrote:
  I just want to know what intent am I going to use to open a mail
  client.
  I can open the compose view of the mail client but I cant find an
  intent to open
  the inbox view of the mail client.

 There is no such Intent, sorry.

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

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

-- 
You received this message because you are subscribed to the Google
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: what intent is used for opening mail account?

2010-10-21 Thread Mark Murphy
On Thu, Oct 21, 2010 at 7:30 AM, MG my.android.a...@gmail.com wrote:
 But how would you open the mail client?

Users tap on the icon for whatever mail client (Mail, Gmail, K-9,
etc.) they want.

 Not to compose a message but to just call mail or gmail?
 Is it not possible?

There is no generic Intent to open the mail client inbox view. There
is a generic ACTION_SEND Intent action that can bring up the message
composer.

There is also nothing stopping the community from collecting the
details of every mail client out there and crafting their own generic
Intent (possibly even with a chooser dialog). I am not aware of anyone
in the community doing this, however. And even if they did, that
community code may break when Google updates Mail or Gmail, since the
Intent to open each of those apps is not part of the SDK and therefore
is subject to change.

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

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

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

2010-10-21 Thread A N K ! T
i have developed an app which just notify when location changed...
it used GPS_PROVIDERS as provider..
but as devices go inside of some building. it stop listening ..
i want to change the provider at that time to network provider..
so should i write locationManager.requestLocationUpdate method there in
status change method of listener.with provider to network provider...
or something else will do the task...

-- 

 A N K ! T..

-- 
You received this message because you are subscribed to the Google
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 get device's android version

2010-10-21 Thread Doug Gordon
Seems like this just gets the version that you compiled the app on. I
think the OP is looking for a runtime version for an app that can run
on multiple versions.

  Doug Gordon

On Oct 20, 7:34 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Oct 20, 2010 at 7:32 PM, cindy ypu01...@yahoo.com wrote:
  Ho could I get Android version of a running device using java code?

 Use android.os.Build.VERSION:

 http://developer.android.com/reference/android/os/Build.VERSION.html

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

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

-- 
You received this message because you are subscribed to the Google
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: how to get device's android version

2010-10-21 Thread Mark Murphy
On Thu, Oct 21, 2010 at 7:48 AM, Doug Gordon gordo...@gmail.com wrote:
 Seems like this just gets the version that you compiled the app on.

No, it does not.

 I
 think the OP is looking for a runtime version for an app that can run
 on multiple versions.

Use android.os.Build.VERSION:

http://developer.android.com/reference/android/os/Build.VERSION.html

Here is a sample app demonstrating its use to determine which contacts
API to use at runtime:

http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinners/

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

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

-- 
You received this message because you are subscribed to the Google
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: Forcing locale inside our app.

2010-10-21 Thread sblantipodi
Ciao Riccardo,
it worked.

Thanks. :)

On Oct 20, 5:54 pm, Riccardo Ciovati rciov...@gmail.com wrote:
 On 20 Ott, 14:53, sblantipodi perini.dav...@dpsoftware.org wrote:

  How can I change locale only for my app?

 Did you tried this?

 http://www.tutorialforandroid.com/2009/01/force-localize-application-...

-- 
You received this message because you are subscribed to the Google
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: Which Javascript Framework?

2010-10-21 Thread rovi
Miguel/Kumar,

Thanks for reply. What is your experience of Jquery/Jquery UI on
Android? Mainly the animation and responsiveness (I will only support
the current generation of Android phone, not the early ones like g1/
g2)



Miguel Morales wrote:
 I agree with Kumar.  It's pretty hard to impossible to design an
 interface that works well in a 1024x768 screen size with a precision
 mouse pointer and one that works well in a 480x320 owned by users with
 big thumbs.

 Either you'll be wasting a lot of space, or you'll be cramming your UI.
 I recommend just having a backend that communicates with clients in a
 generic way such as JSON.
 You can then have a specialized mobile and desktop version.   You
 don't have to use the Android SDK for the mobile version, but a
 lightweight javascript framework like jQuery Mobile.  This should work
 on almost all modern smart phones.


 On Wed, Oct 20, 2010 at 7:47 AM, Kumar Bibek coomar@gmail.com wrote:
  You can have a look at jQuery UI. There's a mobile version also which was
  released recently. But, I strongly think that you should have different UI
  for desktop and mobile. If you go for a single solution, you might
  compromise with features/performance.
 
  On Wed, Oct 20, 2010 at 8:12 PM, rovi rovix...@gmail.com wrote:
 
  I did look at it, it seems too heavy compare to others but I never use
  it. What is your experience of it running on Android?
 
  Thanks,
  Rovi
 
  Pragati Ogal Rai wrote:
   Did you look into Appcelerator's Titanium?
  
   On Oct 18, 8:34 am, rovi rovix...@gmail.com wrote:
I am going to develop an app runs on both Android and desktop, so UI
will be built on html , javascript, css. User experience is very
important, I am looking for a javascript UI framework has great UI,
animation and response time. A great UI framework but slow (cause user
annoying) is not acceptable in my case.
   
There are many javascript frameworks available. Can you guys share the
experience of how they behave on Android ?
   
1. JQuery / JQueryMobile
2. JQtouch
3. Xui
4. Sencha Touch
   
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
 
 
  --
  Kumar Bibek
  http://techdroid.kbeanie.com
  http://www.kbeanie.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



 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://developingthedream.blogspot.com/,
 http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
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] best way to play 10 sounds quickly

2010-10-21 Thread ArcDroid
Hello,
I am trying to play the same 10 sounds very quickly and wondering what
is the best way?

1.  make 10 mediaplayers
2.  make 1 mediaplayer and set the sound each time
3.  use a soundpool?
4.  Other ideas

Thanks,
ArcDroid
http://www.arcdroid.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] Estimation go across to GeoPoint !

2010-10-21 Thread MarcoCanali
Someone have a smart tip for get estimated time travel between two
GeoPoint from Google Service ??

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: Tab Icons

2010-10-21 Thread Pikoh
Well, i LOVE them,they are great thank you.

  I really encourage you to make more icons. I think many developers
lack design skills as me, and need some good icons packs
for their proyects. Maybe some of them could give you ideas in this
post.

  Great job Jon, and thanks again.

On 21 oct, 10:49, JonFHancock jonfhanc...@gmail.com wrote:
 How is this for a start?

 Zip file containing white and gray tab icons for bus, car, bike,
 pedestrian, and two types of star in sizes from 512px to 
 32px:http://drop.io/pwrsdfe

 Here is a sample image:http://drop.io/pwrsdfe/asset/sample-png

 If you like them well enough, I'll tackle making more, and put them up
 on a nice site.

 My development career in Android revolves around icons (launcherpro
 icons app), and I've been itching for a way to contribute something
 free to the dev community.  I welcome any feedback in general or
 particular about the icons.

 On Oct 20, 3:09 pm, Pikoh pik...@gmail.com wrote:

  Well, thx JonFHancock for your interest,

    in fact now I'm needing some transport icons for a proyect: bus,
  car, bike, etc.. Also a favorites icon (a star?). But maybe
  something like this

   http://glyphish.com/

  would be useful to a lot of coders.

  On 19 oct, 22:42, JonFHancock jonfhanc...@gmail.com wrote:

   Or I should say: what do you want the icons to represent?

   There is this, by the way.  I haven't looked through all the links,
   but there may be some tab style icons in 
   there.http://www.androidguys.com/2010/09/15/templates-wireframes-stencils-i...

   On Oct 19, 1:40 pm, JonFHancock jonfhanc...@gmail.com wrote:

I may be that artist.  What kind of icons do you want to see?

On Oct 19, 9:45 am, Pikoh pik...@gmail.com wrote:

  I haven't found any either...that's why this was my last hope. Well,
 let's see if any artist read this and give us some good pack ;)

 On 19 oct, 17:52, Christophe christophe.lebesner...@gmail.com wrote:

 http://www.glyfx.com/products/free_android2.html

  this is the only icon pack I know with tab variation icon ...
  unfortunaly there is not a lot of free android style icon 
  available
  on the internet :(

  On Oct 19, 1:44 pm, Pikoh pik...@gmail.com wrote:

    Hi all,

   just a simple question..anyone knows of any icon packs for android
   tabhost? Let's say I'm not good at drawing.. :)



-- 
You received this message because you are subscribed to the Google
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] Listen for key presses on Numeric keypad?

2010-10-21 Thread draf...@gmail.com
I use the following code to listen for the key presses of 0 - 9 from
the soft input keyboard on Android:

---

@Override
public boolean onKeyDown(int keyCode, KeyEvent event)  {

if(keyCode == KeyEvent.KEYCODE_0)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_1)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_2)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_3)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_4)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_5)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_6)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_7)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_8)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_9)
{
Log.d(Keycode, Got KeyCode 9);
return super.onKeyDown(keyCode, event);
}

return true;
}

---

The code works when i display the soft input keyboard in the following
mode:

http://i.imgur.com/Snasz.png

However it does **not** work when I display the soft input keyboard in
the following mode:

 http://i.imgur.com/wf0Kt.png

Why is 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] Re: Camera Preview not working on my G2

2010-10-21 Thread TreKing
On Wed, Oct 20, 2010 at 11:27 PM, Stephen Lebed srle...@gmail.com wrote:

 1) The logcat says Runtime exception: Cannot instantiate activity
 ComponentInfo.  I'm not sure what that is supposed to mean.  Maybe you could
 shed some insight on this.


Is there any more to the log cat? Post the 5 - 10 lines above and below that
error. Also look for cause by in the message and post the 5 - 10 lines
above and below THAT.


 2) How does someone change the discussion subject?  I can't believe someone
 get comes in and hijacks my thread.


I think that's yet another bug with Google Groups. I'm reading this thread
in Gmail and it's currently just you and me :-)

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

-- 
You received this message because you are subscribed to the Google
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] Crash report: NoSuchFieldError

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 2:41 AM, Markus markus.wiederk...@gmail.com wrote:

 Any idea what might be the cause of this?


First Google hit:
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ExceptionInInitializerError.html

...thrown to indicate that an exception occurred during evaluation of a
static initializer or the initializer for a static variable.

So look at how your statics are being initialize. Or, if it's only happening
to this one person, ignore it. That's what I do :-P

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

-- 
You received this message because you are subscribed to the Google
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] Samsung Galaxy Tab: AVD add on package

2010-10-21 Thread Paul
Guys I found this today http://innovator.samsungmobile.com/galaxyTab.do
and was able to install the package into my avd manager and I now have
the Galaxy Tab emulator running.

-- 
You received this message because you are subscribed to the Google
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] Estimation go across to GeoPoint !

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 8:45 AM, MarcoCanali marco.can...@gmail.com wrote:

 Someone have a smart tip for get estimated time travel between two GeoPoint
 from Google Service ??


http://code.google.com/apis/maps/documentation/directions/

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

-- 
You received this message because you are subscribed to the Google
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: Samsung Galaxy Tab: AVD add on package

2010-10-21 Thread Paul
Now I've found the first problem with the Galaxy Tab Emulator.

I tried to run my application on it and got this error, which I don't
get running any other emulator or on actual devices:

Console:
[2010-10-21 11:05:20 - myApp] Installation error:
INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2010-10-21 11:05:20 - myApp] Please check logcat output for more
details.
[2010-10-21 11:05:20 - myApp] Launch canceled!


DDMS

10-21 10:57:33.129: ERROR/PackageManager(72): Package
com.mycomp.android requires unavailable shared library
com.google.android.maps; failing!
10-21 10:57:33.129: WARN/PackageManager(72): Package couldn't be
installed in /data/app/com.mycomp.android-1.apk

Build Target is Google APIs level 4 (1.6). So Obviously
com.google.android.maps is included.

-- 
You received this message because you are subscribed to the Google
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: Galaxy Tab SDK missing shared library

2010-10-21 Thread Paul
Got the same problem today.

My app runs fine on all other emulators, even tried to install from
the web by downloading the version of my app that I sell on the
Android Market. Same issue.

Now since I had to hunt around to find the link for the Galaxy Add-on
maybe its not ready for prime time yet? I searched extensively
yesterday for it and couldn't find it, but today it turns up.

I notice that there is another Build Target available now (right click
project, select properties, click Android) which says: Galaxy Tab Add
On. But what the heck, I don't want to have to have a separate version
of the app compiled against the Galaxy Tab add on package 
Currently I have Google API level 4 (1.6) selected as my Build target.

On Oct 21, 2:55 am, marlan marlan12...@googlemail.com wrote:
 Hi,

 I have downloaded the Galaxy SDK 
 from:http://innovator.samsungmobile.com/galaxyTab.do

 When I try to install my app on the emulator, I get an error: missing
 shared library.
 I think the google maps api is not included in the emulator.
 Is it possible to include the api?

 Thanks
 Mark

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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: Samsung Galaxy Tab: AVD add on package

2010-10-21 Thread Mark Murphy
On Thu, Oct 21, 2010 at 11:13 AM, Paul idi...@gmail.com wrote:
 Now I've found the first problem with the Galaxy Tab Emulator.

 I tried to run my application on it and got this error, which I don't
 get running any other emulator or on actual devices:

 Console:
 [2010-10-21 11:05:20 - myApp] Installation error:
 INSTALL_FAILED_MISSING_SHARED_LIBRARY
 [2010-10-21 11:05:20 - myApp] Please check logcat output for more
 details.
 [2010-10-21 11:05:20 - myApp] Launch canceled!


 DDMS

 10-21 10:57:33.129: ERROR/PackageManager(72): Package
 com.mycomp.android requires unavailable shared library
 com.google.android.maps; failing!
 10-21 10:57:33.129: WARN/PackageManager(72): Package couldn't be
 installed in /data/app/com.mycomp.android-1.apk

 Build Target is Google APIs level 4 (1.6). So Obviously
 com.google.android.maps is included.

That is your build target. It says nothing about the AVD. Your problem
is in the AVD.

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

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

-- 
You received this message because you are subscribed to the Google
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] Uploading an app to the Market for testing

2010-10-21 Thread Bret Foreman
I've just added LVL and server-based licensing into my (as-yet
unpublished) app. It appears that the license testing requires that
the app exist in the Android Market. Is there a way to publish an
app to the Market but keep it hidden while I test?

-- 
You received this message because you are subscribed to the Google
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: SDK Add-on for Samsung Galaxy Tab

2010-10-21 Thread Paul
Yeah, found that today. I don't see the forum links on that page
though.

Also there is an issue running apps on the Tab emulator if they use
Google Maps APIs. Gets an error about missing shared library even
though build target for the app includes the Google APIs.

On Oct 11, 3:02 am, Hongik Kim notto...@gmail.com wrote:
 As you know, a tablet for Android, SamsungGalaxyTabis about to
 release.
 To develop contents forGalaxyTab, an add-on for SDK is introduces at
 the Samsung Mobile Innovator, the official developers' forum.
 You can access the API using front-facing cam and get an emulator 
 forGalaxyTab.

 http://innovator.samsungmobile.com/galaxyTab.do

-- 
You received this message because you are subscribed to the Google
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] Uploading an app to the Market for testing

2010-10-21 Thread Kumar Bibek
:) Sorry. You yourself also wouldn't be able to test it if it remains
hidden.

On Thu, Oct 21, 2010 at 9:19 PM, Bret Foreman bret.fore...@gmail.comwrote:

 I've just added LVL and server-based licensing into my (as-yet
 unpublished) app. It appears that the license testing requires that
 the app exist in the Android Market. Is there a way to publish an
 app to the Market but keep it hidden while I test?

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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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] Re: Help!!! Unknown Error - java.lang.NullPointerException :: Android Packaging Problem

2010-10-21 Thread Chris
Finally figured it out.

==Short version

My .project file was corrupted and I needed to manually update linked
library locations.  Since the .project file was pointing to the wrong
place, a null pointer exception was thrown.

==Long Version

For some reason, the GUI and project settings were disconnected form
one another.  When I went into project settings, my libraries looked
to be correctly linked and properly found in the build path.

However, when going into the .project file using a text editor, there
were straggler linked libraries.  (ie multiple versions of the same
library, pointing to two different locations)

Most likely user error on my part, but something to keep in mind if
you get the unknown packaging error.

Thanks for the suggestion Bret... I did reinstall everything, but the
problem persisted, as per the fix above.

-- 
You received this message because you are subscribed to the Google
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: Problem in running test case

2010-10-21 Thread A. Elk
This class looks OK to me, with one possible exception that I'll
mention at the end.

You didn't post the manifest file for this test package. The problem
might be there.

You said when I extend this class with InstrumentationTestCase...
Can you post exactly what you mean? Which class is this class? You
should not have to extend TestCaseOne with *both*
ActivityInstrumentationTestCase2 *and* InstrumentationTestCase, since
ActivityInstrumentationTestCase2 itself extends
InstrumentationTestCase. So please clarify what you mean.

One off-the-wall thought: Your first test is named test001case(). I
know that JUnit 3 figures out which methods in a test case are tests
by looking for a prefix of test. If it strips off the test, the
method name that remains is 001case, and I wonder if that causes
hiccups somewhere. I try to name all my test methods with a
description of the method or operation they're testing. As an example,
to test an Activity's onPause() method I'd name the test
testOnPause(). Try using a non-numeric name and see what happens.

Joe

On Oct 20, 2:23 am, Siddharth Choudhary elegants...@gmail.com wrote:
 Hello ,

 I am working on android automation ,and i am new to this field , i
 went through the test example available at developer site and i am
 getting

 11-05 14:43:14.509: WARN/TestGrouping(1485): Invalid Package: '' could
 not be found or has no tests

 as  error on running  this code .

 package com.android.myservice.test;

 import com.android.myservice.MockActivity;

 import android.test.ActivityInstrumentationTestCase2;
 import android.util.Log;

 public class TestCaseOne extends
 ActivityInstrumentationTestCase2MockActivity {

         public TestCaseOne(String pkg, ClassMockActivity activityClass) {
                 super(com.android.myservice.test, MockActivity.class);
         }

         public void test001case()
         {
                 Log.e(, test case 001);
         }

 }

 But when i extend this class with InstrumentationTestCase then this
 code work's fine please let me know what mistake am i  doing in using
 ActivityInstrumenationTestCase2.

-- 
You received this message because you are subscribed to the Google
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] Uploading an app to the Market for testing

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 10:49 AM, Bret Foreman bret.fore...@gmail.comwrote:

 Is there a way to publish an app to the Market but keep it hidden while I
 test?


Will it let you un-check all countries?

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

-- 
You received this message because you are subscribed to the Google
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 Canvas.getMatrix followed by Canvas.setMatrix(null) raises NullPointerException

2010-10-21 Thread miniondev
I've also tried calling setMatrix with a real matrix instance that is
explicitly set to identity, but then I start to get unexpected values
from getMatrix.  I really think that I should be able to both get the
current canvas matrix, and reset it without these kind of problems.

Please, if anyone could shed some light on this, it would be greatly
appreciated.

On Oct 15, 11:23 am, miniondev erics...@gmail.com wrote:
 In the lunar lander example, if I add the following two lines to the
 top of the doDraw method, the app crashes immediately with a
 NullPointerException:

 pre
 Matrix m = canvas.getMatrix();
 canvas.setMatrix( null );
 /pre

 Stack trace is:
 pre
 FATAL EXCEPTION: Thread-8
 java.lang.NullPointerException
     at android.graphics.Matrix.preConcat(Matrix.java:233)
     at android.view.Surface$CompatibleCanvas.setMatrix(Surface.java:
 259)
     at com.example.android.lunarlander.LunarView
 $LunarThread.doDraw(LunarView.java:617)
     at com.example.android.lunarlander.LunarView
 $LunarThread.run(LunarView.java:360)
 /pre

 The canvas documentation for setMatrix states that If the matrix
 parameter is null, then the current matrix is reset to identity, so
 there's no reason this should crash.

 Also, if I do not call getMatrix before calling setMatrix(null), then
 setMatrix(null) is successful.  So it would seem that it is the
 combination of the two calls that are causing a problem.

 Whats going on here?

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


[android-developers] Re: Listen for key presses on Numeric keypad?

2010-10-21 Thread Donal Rafferty
Anybody have any ideas?

On Thu, Oct 21, 2010 at 3:21 PM, draf...@gmail.com draf...@gmail.comwrote:

 I use the following code to listen for the key presses of 0 - 9 from
 the soft input keyboard on Android:

 ---

@Override
public boolean onKeyDown(int keyCode, KeyEvent
 event)  {

if(keyCode == KeyEvent.KEYCODE_0)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_1)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_2)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_3)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_4)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_5)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_6)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_7)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_8)
{
return super.onKeyDown(keyCode, event);
}

if(keyCode == KeyEvent.KEYCODE_9)
{
Log.d(Keycode, Got KeyCode 9);
return super.onKeyDown(keyCode, event);
}

return true;
}

 ---

 The code works when i display the soft input keyboard in the following
 mode:

 http://i.imgur.com/Snasz.png

 However it does **not** work when I display the soft input keyboard in
 the following mode:

  http://i.imgur.com/wf0Kt.png

 Why is this?





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

[android-developers] Re: Display a numeric keypad on activity without an input area

2010-10-21 Thread Donal Rafferty
Anybody have any ideas?

On Thu, Oct 21, 2010 at 10:16 AM, draf...@gmail.com draf...@gmail.comwrote:

 I use the following code to pop up the soft input keyboard in my
 Activity

 ---

InputMethodManager imm = (InputMethodManager)
 getSystemService(Context.INPUT_METHOD_SERVICE);
imm.getInputMethodList();

imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

 ---

 This displays the alphabetic keyboard.

 But I want to display the numeric keyboard.

 Please note I know that using setInputType() works when used with an
 Edittext or a TextView but I want to be able to display the keyboard
 without an input area such as an EditText and simply listen to the key
 presses on the keyboard.

 Can anyone confirm whether this is possible and if so how can it be
 achieved?

-- 
You received this message because you are subscribed to the Google
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] How to get the state of checkbox in a onListItemClick in Listactivity?

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 2:55 AM, LiangLiang Wu geish...@gmail.com wrote:

 but only when I check the last item's checkbox, it go A correctly. Other
 items' checkbox are checked they just go B. Who could tell me where I am
 wrong.


Well, you're checking if the argument is the same as the reference you have
saved. This reference can only point to one thing - in this case,
presumably, the last checkbox.
Also, you're only setting the listener on one checkbox, AFAICT.

Usually you maintain state information (like checked state) in your own data
structure, then update the view in getView() based on that state for a given
position.

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

-- 
You received this message because you are subscribed to the Google
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] how to change location provider provider...

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 6:40 AM, A N K ! T ankit.awasth...@gmail.comwrote:

 so should i write locationManager.requestLocationUpdate method there in
 status change method of listener.with provider to network provider...


I have no idea what you just said there.


 or something else will do the task...


Time how long it takes between updates. If it's been too long and / or the
GPS accuracy is way off, register a network provider. When it's good again,
unregister the network provider.

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

-- 
You received this message because you are subscribed to the Google
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: Listen for key presses on Numeric keypad?

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 11:45 AM, Donal Rafferty draf...@gmail.com wrote:

 Anybody have any ideas?


Check what keycodes you are getting when in the second mode? Maybe they're
different for some reason?

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

-- 
You received this message because you are subscribed to the Google
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: Display a numeric keypad on activity without an input area

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 11:45 AM, Donal Rafferty draf...@gmail.com wrote:

 Anybody have any ideas?


Wait more than 8 hours before bumping your own post - especially when you
post around 2 - 5 AM US time.

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

-- 
You received this message because you are subscribed to the Google
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: Listen for key presses on Numeric keypad?

2010-10-21 Thread letlite
Take a look at TextView.addTextChangedListener(TextWatcher)


On Oct 21, 9:45 am, Donal Rafferty draf...@gmail.com wrote:
 Anybody have any ideas?

 On Thu, Oct 21, 2010 at 3:21 PM, draf...@gmail.com draf...@gmail.comwrote:



  I use the following code to listen for the key presses of 0 - 9 from
  the soft input keyboard on Android:

  ---

        �...@override
                         public boolean onKeyDown(int keyCode, KeyEvent
  event)  {

                                 if(keyCode == KeyEvent.KEYCODE_0)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_1)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_2)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_3)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_4)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_5)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_6)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_7)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_8)
                                 {
                                 return super.onKeyDown(keyCode, event);
                                 }

                                 if(keyCode == KeyEvent.KEYCODE_9)
                                 {
                                         Log.d(Keycode, Got KeyCode 9);
                                 return super.onKeyDown(keyCode, event);
                                 }

                             return true;
                         }

  ---

  The code works when i display the soft input keyboard in the following
  mode:

 http://i.imgur.com/Snasz.png

  However it does **not** work when I display the soft input keyboard in
  the following mode:

   http://i.imgur.com/wf0Kt.png

  Why is 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] ListView OnClickListners Issue

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 5:24 AM, Honey honee...@gmail.com wrote:

 Please let me know a solution for this issue.
 I have attached the sample code here:


Sorry, but realistically no one is going to download your files, sift
through your code, determine your problem, and give you a solution.

Post the code bits where you're specifically having issues (where you set
the list and button listeners) and we'll be more inclined to try to help.

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

-- 
You received this message because you are subscribed to the Google
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] Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
Hi I wanted to know how to create a listActivity on Droid but on the
bottom have a bottom to do whatever i want so like in a section of its
own. Recently i tried merging two layouts with one being the row one
for list Activity and a button but all i get are a list with buttons
next to each line on the list so how can we do a list with a space on
the bottom just for a  button?

-- 
You received this message because you are subscribed to the Google
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] Creating a listActivity with a button on the bottom

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 12:46 PM, Gabriel Huie ghui...@gmail.com wrote:

 how can we do a list with a space on the bottom just for a  button?


http://developer.android.com/reference/android/widget/ListView.html#addFooterView%28android.view.View%29

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

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

2010-10-21 Thread Julie Andrews
*Can you make a target number 37 by using five 5s? You can use any math
operator as you want. There are at least two different ways.*

On Thu, Oct 21, 2010 at 3:24 AM, Honey honee...@gmail.com wrote:

 Hi,
 I have a list view with few rows which has image, some text and a
 button in each row of the list.
 I have listeners for list and button.The Listener for button works but
 for the list view row is not working.
 Please let me know a solution for this issue.
 I have attached the sample code here:
 http://www.4shared.com/file/cEFQ7J04/LazyList.html

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




-- 
Julie
http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com
http://vikitionary.blogspot.com
http://gandhi-the-man-of-millenium.blogspot.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

Re: [android-developers] Creating a listActivity with a button on the bottom

2010-10-21 Thread Julie Andrews
sorry can't help

On Thu, Oct 21, 2010 at 10:50 AM, TreKing treking...@gmail.com wrote:

 On Thu, Oct 21, 2010 at 12:46 PM, Gabriel Huie ghui...@gmail.com wrote:

 how can we do a list with a space on the bottom just for a  button?



 http://developer.android.com/reference/android/widget/ListView.html#addFooterView%28android.view.View%29


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


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




-- 
Julie
http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com
http://vikitionary.blogspot.com
http://gandhi-the-man-of-millenium.blogspot.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

Re: [android-developers] Creating a listActivity with a button on the bottom

2010-10-21 Thread Mark Murphy
TreKing's solution works if you want the Button to scroll with the
rest of the contents of the ListView. If you want the Button to stay
fixed on the bottom of the screen:

Step #1: Create a RelativeLayout

Step #2: Put the ListView and the Button in the RelativeLayout

Step #3: Anchor the Button to the bottom of the RelativeLayout using
android:layout_alignParentBottom=true

Step #4: Fill the rest with the ListView using
android:layout_alignParentTop=true and
android:layout_above=@+id/whatever_you_decide_call_your_button

Or:

Step #1: Create a LinearLayout

Step #2: Put a ListView in the LinearLayout with
android:layout_height=0px and android:layout_weight=1

Step #3: Put a Button after the ListView in the LinearLayout with no
android:layout_weight attribute

On Thu, Oct 21, 2010 at 1:46 PM, Gabriel Huie ghui...@gmail.com wrote:
 Hi I wanted to know how to create a listActivity on Droid but on the
 bottom have a bottom to do whatever i want so like in a section of its
 own. Recently i tried merging two layouts with one being the row one
 for list Activity and a button but all i get are a list with buttons
 next to each line on the list so how can we do a list with a space on
 the bottom just for a  button?

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

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

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

2010-10-21 Thread MarcoCanali
When you declare ...
mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
minTime, minDistance , mGPSLocationListner);
go to method  @Override
public void onStatusChanged(String provider, 
int status, Bundle
extras) {
// TODO Auto-generated method stub

} 

OR
@Override
public void onProviderDisabled(String provider) 
{
// TODO Auto-generated method stub

Toast.makeText(getApplicationContext(),provider
+:ProviderDisable, Toast.LENGTH_LONG).show();
}

Both Method of LocationListner and write what do you want to do when
the Provider GPS changes the status !!

On 21 Ott, 13:40, A N K ! T ankit.awasth...@gmail.com wrote:
 i have developed an app which just notify when location changed...
 it used GPS_PROVIDERS as provider..
 but as devices go inside of some building. it stop listening ..
 i want to change the provider at that time to network provider..
 so should i write locationManager.requestLocationUpdate method there in
 status change method of listener.with provider to network provider...
 or something else will do the task...

 --

  A N K ! T..

-- 
You received this message because you are subscribed to the Google
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: Forcing locale inside our app.

2010-10-21 Thread sblantipodi
is there a way to detect default locale?
I need to know what is the default locale of the phone where my app is
running,
is it possible I haven't finded nothing...

Thanks.

On Oct 21, 2:31 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 Ciao Riccardo,
 it worked.

 Thanks. :)

 On Oct 20, 5:54 pm, Riccardo Ciovati rciov...@gmail.com wrote:

  On 20 Ott, 14:53, sblantipodi perini.dav...@dpsoftware.org wrote:

   How can I change locale only for my app?

  Did you tried this?

 http://www.tutorialforandroid.com/2009/01/force-localize-application-...



-- 
You received this message because you are subscribed to the Google
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: Forcing locale inside our app.

2010-10-21 Thread sblantipodi
Ok, just founded.
Locale myPhoneLocale = Locale.getDefault();

On Oct 21, 8:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 is there a way to detect default locale?
 I need to know what is the default locale of the phone where my app is
 running,
 is it possible I haven't finded nothing...

 Thanks.

 On Oct 21, 2:31 pm, sblantipodi perini.dav...@dpsoftware.org wrote:

  Ciao Riccardo,
  it worked.

  Thanks. :)

  On Oct 20, 5:54 pm, Riccardo Ciovati rciov...@gmail.com wrote:

   On 20 Ott, 14:53, sblantipodi perini.dav...@dpsoftware.org wrote:

How can I change locale only for my app?

   Did you tried this?

  http://www.tutorialforandroid.com/2009/01/force-localize-application-...



-- 
You received this message because you are subscribed to the Google
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: Samsung Galaxy Tab: AVD add on package

2010-10-21 Thread Paul
@Mark Murphy- Right, the problem is with the AVD. I just mentioned
the Build target at the end as a way of clarification (also not sure
if emulators/devices automatically include all libraries in
classpath of running application or if they check manifest, etc.,
but that is another topic of discussion).

Main point is- the Galaxy Tab Emulator/AVD  DOES NOT RUN APPLICATIONS
THAT USE GOOGLE MAPS API.

Sorry for shouting. Just want people to catch on to the fact that
Samsung has this thing out there that's not working. Hopefully the
actual Galaxy Tab itself can support Google Maps API. And hopefully
they will fix the emulator/AVD soon.

 That is your build target. It says nothing about the AVD. Your problem
 is in the AVD.

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
Hey so i tried the first solution u suggested but i got an error

basically all i have is one layout file and i call it using

setListAdapter(new ArrayAdapterString(this, R.layout.next, names));

names is already defined then for the layout file and i suppose to
delete some stuff
for either the listview or button cuz when i ran it, i got a force
close? and basically i just added the stuff u talked about on the
bottom of
both the listView and button and then ran itso i wasnt sure if i was
suppose to delete anything else like layout width hieght
ListView
android:id=@+id/ListView01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_above=@+id/whatever_you_decide_call_your_button

/ListView
Button
android:text=@+id/Button01
android:layout_below=@+id/ListView01
android:id=@+id/Button01
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_alignParentBottom=true


/Button



On Oct 21, 10:52 am, Mark Murphy mmur...@commonsware.com wrote:
 TreKing's solution works if you want the Button to scroll with the
 rest of the contents of the ListView. If you want the Button to stay
 fixed on the bottom of the screen:

 Step #1: Create a RelativeLayout

 Step #2: Put the ListView and the Button in the RelativeLayout

 Step #3: Anchor the Button to the bottom of the RelativeLayout using
 android:layout_alignParentBottom=true

 Step #4: Fill the rest with the ListView using
 android:layout_alignParentTop=true and
 android:layout_above=@+id/whatever_you_decide_call_your_button

 Or:

 Step #1: Create a LinearLayout

 Step #2: Put a ListView in the LinearLayout with
 android:layout_height=0px and android:layout_weight=1

 Step #3: Put a Button after the ListView in the LinearLayout with no
 android:layout_weight attribute

 On Thu, Oct 21, 2010 at 1:46 PM, Gabriel Huie ghui...@gmail.com wrote:
  Hi I wanted to know how to create a listActivity on Droid but on the
  bottom have a bottom to do whatever i want so like in a section of its
  own. Recently i tried merging two layouts with one being the row one
  for list Activity and a button but all i get are a list with buttons
  next to each line on the list so how can we do a list with a space on
  the bottom just for a  button?

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

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 1:55 PM, Gabriel Huie ghui...@gmail.com wrote:

 when i ran it, i got a force close?


And the exception that caused the force close is what?

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

-- 
You received this message because you are subscribed to the Google
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: Uploading an app to the Market for testing

2010-10-21 Thread MB
You would have to quickly publish and then un-publish the app  to test
LVL in your app.
This is the only way I could figure out.
If you figure out something better please share it with the group.

This is what I had to do for testing LVL even with the sample LVL
code.

--MB.

On Oct 21, 8:49 am, Bret Foreman bret.fore...@gmail.com wrote:
 I've just added LVL and server-based licensing into my (as-yet
 unpublished) app. It appears that the license testing requires that
 the app exist in the Android Market. Is there a way to publish an
 app to the Market but keep it hidden while I test?

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
Ok so Im still kinda of new to developing droid how do u check the
exception? it doesnt print anything out on console? and when i run it
it just pops up with the screen stating the application stopped?

On Oct 21, 11:57 am, TreKing treking...@gmail.com wrote:
 On Thu, Oct 21, 2010 at 1:55 PM, Gabriel Huie ghui...@gmail.com wrote:
  when i ran it, i got a force close?

 And the exception that caused the force close is what?

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 2:12 PM, Gabriel Huie ghui...@gmail.com wrote:

 Ok so Im still kinda of new to developing droid how do u check the
 exception?


Look at the LogCat view in Eclipse or use DDMS.
http://developer.android.com/guide/developing/debug-tasks.html

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
So i ran the debugger on eclipse so im not sure if this was what u
meant but the top stated
Thread [1 main] (Suspended (exception IllegalStateException))
ListView.layoutChildren() line: 1662
ListView(AbsListView).onLayout(boolean, int, int, int, int) line:
1147
ListView(View).layout(int, int, int, int) line: 7035
FrameLayout.onLayout(boolean, int, int, int, int) line: 333
FrameLayout(View).layout(int, int, int, int) line: 7035
LinearLayout.setChildFrame(View, int, int, int, int) line: 1249
LinearLayout.layoutVertical() line: 1125
LinearLayout.onLayout(boolean, int, int, int, int) line: 1042
LinearLayout(View).layout(int, int, int, int) line: 7035
PhoneWindow$DecorView(FrameLayout).onLayout(boolean, int, int, int,
int) line: 333
PhoneWindow$DecorView(View).layout(int, int, int, int) line: 7035
ViewRoot.performTraversals() line: 1045
ViewRoot.handleMessage(Message) line: 1727
ViewRoot(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4627
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 868
ZygoteInit.main(String[]) line: 626
NativeStart.main(String[]) line: not available [native method]

And then
Thread [1 main] (Suspended (exception IllegalStateException))
ZygoteInit$MethodAndArgsCaller.run() line: 874
ZygoteInit.main(String[]) line: 626
NativeStart.main(String[]) line: not available [native method]

Then it crashed


On Oct 21, 12:19 pm, TreKing treking...@gmail.com wrote:
 On Thu, Oct 21, 2010 at 2:12 PM, Gabriel Huie ghui...@gmail.com wrote:
  Ok so Im still kinda of new to developing droid how do u check the
  exception?

 Look at the LogCat view in Eclipse or use 
 DDMS.http://developer.android.com/guide/developing/debug-tasks.html

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 2:43 PM, Gabriel Huie ghui...@gmail.com wrote:

 So i ran the debugger on eclipse so im not sure if this was what u meant


Yup.

That's the stack of the main thread. You want the exception message from the
LogCat window. It will be basically the same, but ideally the logcat will
have a message indicating *why* the exception was thrown.

Look for the LogCat View in Eclipse. If you don't have it, go to
Window-Show View-Other-Android to enable it.

Regardless, you can see it's crashing while trying to layout your view and
you know it started happening after you made the layout changes, so
something's wrong with your layout file. Post that.

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
10-22 01:15:38.271: ERROR/ArrayAdapter(316): You must supply a
resource ID for a TextView
10-22 01:15:38.312: ERROR/AndroidRuntime(316): FATAL EXCEPTION: main
10-22 01:15:38.312: ERROR/AndroidRuntime(316):
java.lang.IllegalStateException: ArrayAdapter requires the resource ID
to be a TextView
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:
347)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.AbsListView.obtainView(AbsListView.java:1315)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ListView.makeAndAddView(ListView.java:1727)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ListView.fillDown(ListView.java:652)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ListView.fillFromTop(ListView.java:709)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ListView.layoutChildren(ListView.java:1580)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.AbsListView.onLayout(AbsListView.java:1147)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.View.layout(View.java:7035)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.View.layout(View.java:7035)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.View.layout(View.java:7035)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.View.layout(View.java:7035)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.os.Looper.loop(Looper.java:123)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.app.ActivityThread.main(ActivityThread.java:4627)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
java.lang.reflect.Method.invokeNative(Native Method)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
java.lang.reflect.Method.invoke(Method.java:521)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
dalvik.system.NativeStart.main(Native Method)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): Caused by:
java.lang.ClassCastException: android.widget.RelativeLayout
10-22 01:15:38.312: ERROR/AndroidRuntime(316): at
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:
340)
10-22 01:15:38.312: ERROR/AndroidRuntime(316): ... 26 more


On Oct 21, 12:50 pm, TreKing treking...@gmail.com wrote:
 On Thu, Oct 21, 2010 at 2:43 PM, Gabriel Huie ghui...@gmail.com wrote:
  So i ran the debugger on eclipse so im not sure if this was what u meant

 Yup.

 That's the stack of the main thread. You want the exception message from the
 LogCat window. It will be basically the same, but ideally the logcat will
 have a message indicating *why* the exception was thrown.

 Look for the LogCat View in Eclipse. If you don't have it, go to
 Window-Show View-Other-Android to enable it.

 Regardless, you can see it's crashing while trying to layout your view and
 you know it started happening after you made the layout changes, so
 something's wrong with your layout file. Post that.

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

-- 
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread TreKing
On Thu, Oct 21, 2010 at 3:10 PM, Gabriel Huie ghui...@gmail.com wrote:

 10-22 01:15:38.271: ERROR/ArrayAdapter(316): *You must supply a resource
 ID for a TextView*
 10-22 01:15:38.312: ERROR/AndroidRuntime(316): FATAL EXCEPTION: main
 10-22 01:15:38.312: ERROR/AndroidRuntime(316):
 java.lang.IllegalStateException: *ArrayAdapter requires the resource ID to
 be a TextView*


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

-- 
You received this message because you are subscribed to the Google
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] ResourceNotFound occurs sometimes during layout inflation

2010-10-21 Thread Doug Gordon
 My app may launch a sub-activity for a specific purpose. When that 
activity finishes, I get the results in onActivityResult. These results 
are then processed in the subsequent onResume. This consists of a 
setContentView and also starting an AsyncTask that puts up a ProgressDialog.


This all works well when initiated the normal way, which is via a user 
request (i.e., menu selection) after the app is up and running. However, 
under some conditions I need to do this right as the app is starting up, 
so I initiate this sequence right from my onCreate. What then happens is 
that I get fatal ResourceNotFound errors within any o/s call that 
implicitly calls the layout inflater. I got around this with 
setContentView by pre-inflating the view in my onCreate method, but the 
AsyncTask's onPreExecute still fails on ProgressDialog.show() as it 
fails to find Android's own progress_dialog.xml!


Anyone know what's happening here?

I suspect it's something to do with the timing, where this is occurring 
before the main activity has even had a chance to display its screen. 
These calls are all being made on the main UI thread, but maybe 
something hasn't completed within the o/s under these conditions.


  Doug Gordon
  GHCS Software

--
You received this message because you are subscribed to the Google
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: Creating a listActivity with a button on the bottom

2010-10-21 Thread Gabriel Huie
So I'm not really suer what that means I added a TextView and got rid
of ListView when i check outlayout it shows
Relative Layout
  TextView
  Button
So i kno i have a textView but im still gettin that same error what
does it mean supply a resource ID


On Oct 21, 1:14 pm, TreKing treking...@gmail.com wrote:
 On Thu, Oct 21, 2010 at 3:10 PM, Gabriel Huie ghui...@gmail.com wrote:
  10-22 01:15:38.271: ERROR/ArrayAdapter(316): *You must supply a resource
  ID for a TextView*
  10-22 01:15:38.312: ERROR/AndroidRuntime(316): FATAL EXCEPTION: main
  10-22 01:15:38.312: ERROR/AndroidRuntime(316):
  java.lang.IllegalStateException: *ArrayAdapter requires the resource ID to
  be a TextView*

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

-- 
You received this message because you are subscribed to the Google
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] Add a third-party to the emulator ?

2010-10-21 Thread Ferro Francesco
Hi everybody,

I'm delevelopping a litle application that use that facebook library
http://restfb.com/

it's a .jar that i have added in my project.

i have added that line too in the manifest:
uses-library android:name=com.restfb /

It build everything ok, but the apk fail to install..
[2010-10-16 14:09:08 - tt22] Installing tt22.apk...
[2010-10-16 14:09:30 - tt22] Installation error:
INSTALL_FAILED_MISSING_SHARED_LIBRARY

10-16 12:09:29.767: ERROR/PackageManager(58): Package requires
unavailable shared library com.restfb; failing!
10-16 12:09:29.777: WARN/PackageManager(58): Package couldn't be
installed in /xx/xx/xx.apk

so... the virtual device doesn't know where the lib is...


Is there any solution to that?


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] opengl ES 2.0 FrameBuffer strange effect

2010-10-21 Thread cybice
Can anybody explain:

I have an application which to make some effects uses opengl
FrameBuffers
Opengl version is GL ES 2.0 hardware is Nexus One

In my application one call to
draw some texture in FrameBuffer cause FPS decrease from 40 to 30
But 10 calls to 10 FrameBuffers, also cause FPS decrease from 40 to 30
It looks like that switching in opengl to start draw in FrameBuffer
takes the big amount of time,
or something wrong in my code :-)

Can anybody explain what really happens in opengl when i start draw in
FrameBuffer.



-- 
You received this message because you are subscribed to the Google
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] Overriding user sms request

2010-10-21 Thread Omer
Is it possible to know when a user tries to send an sms message, and
preventing him from doing so?

-- 
You received this message because you are subscribed to the Google
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 market account still ask for payment...

2010-10-21 Thread ipsilondev
Hi,

i signed up a few hours ago to the android market, i paid the 25$ usd
and received the receipt from google checkout, but when i try to
complete it, still ask me for payment.

and when i go to this url: http://market.android.com/publish/receipt

it says: Waiting for Google Checkout payment confirmation...

i already sent a email for google market support but i don't think
they will answer soon.

any suggestion of how to solve this?

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: Stagefright Mediaextractor: how to detect interlaced streams in video files?

2010-10-21 Thread Shashank
Yes Deva, You are right.

The information regarding interlace is stored in compressed bit
stream.

Codec component should be able to provide this information to the
application, i.e. OMX Client. In case of Android :: Stagefright, its
OMXCodec.cpp.

Once this information is retrieved, developer can choose to do field
interlacing / selection for display at awesome player.

regards
Shashank
On Oct 4, 1:50 pm, Deva R r.deva...@gmail.com wrote:
 [resolved now]

 i realized lately that its beyond the scope of file parser., and
 supposed to be done by codec component.
 written a custom parser to detect interlaced content,
 and posted to local gerrit -http://review.omapzoom.org/#change,6889

 --
 Regards,
 Devawww.bittoggler.com

 On Tue, Sep 7, 2010 at 4:14 PM, Deva R r.deva...@gmail.com wrote:
  Hi,
  Is it possible to detect scan type (progressive or interlaced) of a video
  file instagefright?

  I see below listed fields are query-able with metadata of file through
 stagefright, but not scan-type which i guess is avaiable in MP4 file header.
  Any hint on how to detect scan-type of video file atStagefrightplayer
  driver? Or is it available in opencore??
  Thanks,
  Deva
  PS.
  From .\frameworks\base\include\media\stagefright\MetaData.h
  enum {
      kKeyMIMEType          = 'mime',
      kKeyWidth             = 'widt',
      kKeyHeight            = 'heig',
      kKeyChannelCount      = '#chn',
      kKeySampleRate        = 'srte',
      kKeyBitRate           = 'brte',
      kKeyESDS              = 'esds',
      kKeyAVCC              = 'avcc',
      kKeyVorbisInfo        = 'vinf',
      kKeyVorbisBooks       = 'vboo',
      kKeyWantsNALFragments = 'NALf',
      kKeyIsSyncFrame       = 'sync',
      kKeyIsCodecConfig     = 'conf',
      kKeyTime              = 'time',
      kKeyDuration          = 'dura',
      kKeyColorFormat       = 'colf',
      kKeyPlatformPrivate   = 'priv',
      kKeyDecoderComponent  = 'decC',
      kKeyBufferID          = 'bfID',
      kKeyMaxInputSize      = 'inpS',
      kKeyThumbnailTime     = 'thbT',
      kKeyAlbum             = 'albu',
      kKeyArtist            = 'arti',
      kKeyAlbumArtist       = 'aart',
      kKeyComposer          = 'comp',
      kKeyGenre             = 'genr',
      kKeyTitle             = 'titl',
      kKeyYear              = 'year',
      kKeyAlbumArt          = 'albA',
      kKeyAlbumArtMIME      = 'alAM',
      kKeyAuthor            = 'auth',
      kKeyCDTrackNumber     = 'cdtr',
      kKeyDiscNumber        = 'dnum',
      kKeyDate              = 'date',
      kKeyWriter            = 'writ',
  };

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

2010-10-21 Thread Caio Lima
Hi guys, this is my first post here, and i want to know what programs
do use to develop games.

I find a engine to 2D games(andEngine), therefore i want to know what
program do u use to design TiledsMaps, control Sprites.

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] Streaming MP4 videos in my app??????

2010-10-21 Thread dbmaui2010
Hello All,

I hope someone out there can help me with this.

I have an app that I designed for Iphone and Ipad, and am now porting
it over to android.
It streams high quality video files and I am having a great deal of
trouble getting the files to stream in android.

I have seen the file stream on a motorola phone at the ATT store, but
have had trouble with an android phone on tmobile, and verizon.
The files are MP4 files, encoded in quicktime using H.264, and saved
as quicktimes... I then open them in MPEG streamclip, and save them as
MP4s.  The reason is that I can get higher quality at lower bit rates
and smaller file sizes using this way.  I am encoding at 720 x 400,
using a bit rate of 800k per second.  These work perfectly in the
iphone environment but I have had limited success in the android
world.

Here is a link to a file if you are interested in investigating
further:

http://64.250.238.26:/clips/GeorgeKahumokuHaleOlu.mp4

Does android run differently on different service carriers?  Is this a
hardware limitation on different phones?

My question is this can anyone verify that there is a problem with
my files?  and can anyone tell me what I need to do to get my video
files to play more predictably on the android platform

ANY help would be incredibly valued

Thank you,

David Barry
d...@digidb.com
d...@makaistudios.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] Setting Widget Icon Image on Widget Load

2010-10-21 Thread Benaiah
I am writing my first application and am trying to get my widget to
load a different image when it is added to the home screen based on
the state of the notification volume.  It is detecting the
notification state fine and the proper Toast messages appear when I
add the widget, but I'm not getting any icon.  I just get an empty
button.  I'm using the same code to change the icon in my onReceive()
method to do other things and that works fine.  Is this the proper way
to accomplish that?  Any suggestions as to what I'm doing wrong would
be appreciated!


   @Override
public void onEnabled(Context context)
{
AudioManager aManager = (AudioManager)
context.getSystemService(Context.AUDIO_SERVICE);

RemoteViews remoteViews = new 
RemoteViews(context.getPackageName(),
R.layout.widget);


if (aManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION) 
==
0)
{
Toast.makeText(context, Off, 
Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button, 
R.drawable.off);
ComponentName cn = new ComponentName(context, 
SilenceWidget.class);

AppWidgetManager.getInstance(context).updateAppWidget(cn,
remoteViews);
}
else
{
Toast.makeText(context, On, 
Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button, 
R.drawable.on);
ComponentName cn = new ComponentName(context, 
SilenceWidget.class);

AppWidgetManager.getInstance(context).updateAppWidget(cn,
remoteViews);
}
}

-- 
You received this message because you are subscribed to the Google
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] Difference between StageFright and Opencore

2010-10-21 Thread Shashank
Guys,

Opencore is a sophisticated multimedia framework developed by Packet
video company.

Over the years it has matured a lot, but as a side effect its huge in
terms of number lines of code.

Whereas Stagefright is not a multimedia framework in my opinion. Its a
custom library meant for multimedia playback
use case. Stagefright has OMX interface at its core, simple and
elegant.

But still needs lot of surgery ;)

regards
Shashank


-- Forwarded message --
From: TreKing treking...@gmail.com
Date: May 24, 9:38 pm
Subject: Difference between StageFright and Opencore
To: Android Developers


On Mon, May 24, 2010 at 1:35 AM, SHameed shaahulham...@gmail.com
wrote:
 What are the differences between StageFright and Opencore?

Try google.com.

 What does this mean to app developers?

Try google.com.

 Please point me to any links, tutorials online.

Try google.com

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

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-
develop...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group 
athttp://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: New OMX component integration into Opencore

2010-10-21 Thread Shashank
Guys,

Nagaraj is right. However available options are

1) Register your OMX Component into PV's OMX Core
MPEG4, H264 codecs have already been integrated in PV OMX Core.
Use them as reference.

2) Define your own OMX Core, implement the core and integrate your OMX
Component into your Core.
Can register your OMX Core during run time, using .cfg file.

regards
Shashank

On Sep 20, 2:10 pm, nagaraj attimani nagaraj.attim...@gmail.com
wrote:
 OMX component should be registred with pvcore
 check the pv omx component for more info

 On Tue, Sep 14, 2010 at 1:19 PM, Bikash jamwal bikash.jam...@gmail.comwrote:



  hi Prajeesh

  i am new to android . i am also trying to integrate new codec to pv
  opencore . can u please give me detailed info what u have done so ..

  thanks

  Bikash

  -- Forwarded message --
  From: praji prajeesh.mo...@gmail.com
  Date: Aug 2, 11:38 am
  Subject: New OMX component integration into Opencore
  To: Android Developers

  I am trying to integrate VP8 video codec into PV opencore FW in Froyo
   test at PV test application level.

  I have done the following steps,

  1. Made a new folder for vp8 @ external/opencore/codecs_v2/omx/
  omx_vp8.
  2. Made appropriate modifications in the omx_baseclass, omx_common
  etc.
  3. Modified the PV test app (external/opencore/codecs_v2/omx/
  omx_testapp) for testing VP8.
  4. included the VP8 source code to froyo.
  5. Included new oscluuid for VP8

  With these modifications, the build is fine. The shared libraries and
  binaries are creating properly.
  Also OMX-MasterInit is passing.

  But the application fails at OMX_GetHandle(). *pHandle is coming as
  zero.
  I am using the PV OMX core. I am just adding a new codec which is not
  supported by PV Opencore and test at PV test_app level.

  Can you please answer my below queries:
  1. Do we need to change the pvplayer.cfg file? Bcoz i am using the PC
  omx_core itself.
  2. Any other changes needs to be done for integrating a new component
  into Opencore?

  Please provide you valuable inputs.

  Let me know if need any additional informations.

  Thanks,
  Prajeesh

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

 --
 Warm Regards,
 Nagaraj

-- 
You received this message because you are subscribed to the Google
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] Distributing free licenses to paid apps

2010-10-21 Thread Brenton
I have an app that contains the License Verification Library (LVL).
My Market developer account is my Google Account, but my phone is
logged in to my Google Apps account.  LVL is issuing a responseCode of
1 and calling callback.disallow() if I try to run my app on my Google
Apps phone.  I've entered my Google Apps email as a Test account in
my Market Developer Profile.

I'd like to authorize certain people to use my app without buying it.
Is there a way to do this?  Am I running into issues with my own phone
because my Google Apps account is not considered a Gmail address?

If I tell them to buy the app, then I immediately issue a refund in
Google Checkout, will this somehow affect my standing as a developer
or merchant?  Does it cost me anything to issue a refund?

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] jsonarray as spinner source

2010-10-21 Thread ally
how do i bind jsonarray to spinner like what we do in html, we have
value and data but in spinner it doesnt have. I have search over the
web and came to know we have to subclass the base adapter to be able
to do this. Can anyone give me some sample code how to add this value
and data into the spinner with subclassing the base adapter. Your kind
help is very much appreciated

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


[android-developers] Yahoo Mail Setting for your Mobile

2010-10-21 Thread Sazzad Rahman
Steps to configure Yahoo mailbox on your mobile. Its very simple just
5 Minute to configure it. Learn with screen shot. This is tested on
N73 and works perfectly.

For configuration

Go to tools-- Setting Wizard-- Email Setting--


INCOMING E-MAIL

   1. User name- (your user name)
   2. Password- (your password)
   3. Incoming mail server-pop.mail.yahoo.co.in (or what ever yours)
   4. Access point-( your gprs access point)
   5. Mail box name-yahoo
   6. Mail box type- pop3
   7. Security ports- off
   8. Ports- default
   9. APOP secure login-off



FOR OUTGOING E-MAIL

   1. Email adress- (your email address)
   2. User name- (your user name)
   3. Password- (your password)
   4. Out going mail server- smtp.mail.yahoo.co.in (or what ever
yours)
   5. Access point- (your access point)
   6. Security ports-off
   7. port-587

Thats all now go to automatic retrieval and change header retrieval to
always for auto download.

-- 
You received this message because you are subscribed to the Google
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: Buffering problem while reading an h264 video (using HTTP protocol).

2010-10-21 Thread Shashank
Hi,

To check if the issue is with your application,
1) run the same content locally see if buffering status is non zero.
2) run the content over http, and issue pause. This should make buffer
status non zero

regards
Shashank

On Oct 13, 2:46 pm, Corentin_ guy_coren...@hotmail.com wrote:
 Hi,

 I'm developping an application on Android 2.2. This application have
 to read some h264 videos using HTTP protocol.

 To read a video, I'm using following methods :

 // INIT PART
 mMediaPlayer = new MediaPlayer();
 mMediaPlayer.reset();
 mMediaPlayer.setOnErrorListener(this);
 mMediaPlayer.setOnBufferingUpdateListener(this);
 mMediaPlayer.setOnCompletionListener(this);
 mMediaPlayer.setOnPreparedListener(this);
 mMediaPlayer.setOnSeekCompleteListener(this);
 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);

 // SET DATASOURCE
 mMediaPlayer.reset();
 mMediaPlayer.setDataSource(url);
 mMediaPlayer.prepareAsync();

 In prepareAsync callback :
 public void onPrepared(MediaPlayer mediaplayer) {
      mMediaPlayer.start();

 }

 But, i'm logging current buffering percent in
 OnBufferingUpdateListener callback ... it's always 0. Sometimes, a
 same video can work, or not. I don't understand the problem ...

 Can I have some help ?

 Thanks,

 Corentin Guy

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

2010-10-21 Thread Gaurav Gupta
Hello,

I'm new to android and looking into android SDK and framework code.
I'm writing an application where I need to switch between
profiles( like home/office/meeting/driving/silent/normal ) on a
particular event. Can you please help me how to do this using android
SDK. It would be great if someone can tell me a step by step procedure
to do that.


Thanks in Advance,
GG

-- 
You received this message because you are subscribed to the Google
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] Bad sound quality when recording/playing sounds...

2010-10-21 Thread Nick
Hey, I have a problem with andriod programing when I try to record and
then play the file that was just recored. I can both record and play
the sound but the quality stinks. Its not just bad is really hard to
listen to and sound abit like its a computer generated voice... I use
the andriod SDK-emulator. The code that sets up the recording looks
like this;

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();
And the code playing the file later looks like this;

MediaPlayer mp = new MediaPlayer();
mp.reset();
mp.setDataSource(path);
mp.prepare();
mp.start();
I dont know what part that makes the audiofile sound really bad... or
if its just the emulator that makes it bad and that it would work on a
real phone. I would love some help with this.

/Nick

-- 
You received this message because you are subscribed to the Google
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: Bad sound quality when recording/playing sounds...

2010-10-21 Thread niko20
The emulator can only record in 8000hz sample rate, so yes it will
always sound like crap. A real device can do higher quality recording.


On Oct 16, 2:17 pm, Nick nickel...@gmail.com wrote:
 Hey, I have a problem with andriod programing when I try to record and
 then play the file that was just recored. I can both record and play
 the sound but the quality stinks. Its not just bad is really hard to
 listen to and sound abit like its a computer generated voice... I use
 the andriod SDK-emulator. The code that sets up the recording looks
 like this;

 MediaRecorder recorder = new MediaRecorder();
 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 recorder.setOutputFile(path);
 recorder.prepare();
 recorder.start();
 And the code playing the file later looks like this;

 MediaPlayer mp = new MediaPlayer();
 mp.reset();
 mp.setDataSource(path);
 mp.prepare();
 mp.start();
 I dont know what part that makes the audiofile sound really bad... or
 if its just the emulator that makes it bad and that it would work on a
 real phone. I would love some help with this.

 /Nick

-- 
You received this message because you are subscribed to the Google
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] Setting Widget Icon Image on Widget Load

2010-10-21 Thread YuviDroid
I'm not sure what's wrong with your code and I'm kind of guessing
here...but:

- onEnabled() is only called when the FIRST widget is created. So, if you
try to add a second widget to the homescreen this method will not be called.
Also, maybe, when onEnabled() is called the widget actually does not exist
yet? So your updateAppWidget() is probably doing nothing.

- try moving this piece of code to the onUpdate() method of your widget
provider (which is called whenever the widget requires an update).

- are you setting other RemoteViews objects in your onReceive() method?



Yuvi

On Sat, Oct 16, 2010 at 7:40 PM, Benaiah benaiahhe...@gmail.com wrote:

 I am writing my first application and am trying to get my widget to
 load a different image when it is added to the home screen based on
 the state of the notification volume.  It is detecting the
 notification state fine and the proper Toast messages appear when I
 add the widget, but I'm not getting any icon.  I just get an empty
 button.  I'm using the same code to change the icon in my onReceive()
 method to do other things and that works fine.  Is this the proper way
 to accomplish that?  Any suggestions as to what I'm doing wrong would
 be appreciated!


   @Override
public void onEnabled(Context context)
{
AudioManager aManager = (AudioManager)
 context.getSystemService(Context.AUDIO_SERVICE);

RemoteViews remoteViews = new
 RemoteViews(context.getPackageName(),
 R.layout.widget);


if
 (aManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION) ==
 0)
{
Toast.makeText(context, Off,
 Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button,
 R.drawable.off);
ComponentName cn = new ComponentName(context,
 SilenceWidget.class);

  AppWidgetManager.getInstance(context).updateAppWidget(cn,
 remoteViews);
}
else
{
Toast.makeText(context, On,
 Toast.LENGTH_SHORT).show();
remoteViews.setImageViewResource(R.id.button,
 R.drawable.on);
ComponentName cn = new ComponentName(context,
 SilenceWidget.class);

  AppWidgetManager.getInstance(context).updateAppWidget(cn,
 remoteViews);
}
}

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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.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] problem in Importing Packages

2010-10-21 Thread Dliswa
Hi Everyone
Brother currently i m new to android and now i developing Gtalk Like
Application.
but when i import package i.e

import com.google.android.gtalkservices.IGTalkService;

IDE give me Error like Can not resolve .

What should i do.
Kindly plz Help me.

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


[android-developers] RelativeLayout and getTextBounds

2010-10-21 Thread Sharon
Hello,

I want to add a RelativeLayout and set its height according to size of
a font.
I added this code:

Rect rect = new Rect();
paint.getTextBounds(A, 0, 1, rect);
ViewGroup.LayoutParams params1 = new
ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, rect.right
- rect.left);
RelativeLayout rl = new RelativeLayout(context);
rl.setLayoutParams(params1);

Than I add a new TextView to this RelativeLayout.

But I can see only small part of the text.

How can I measure the height I will need to this layout before the
onMeasure or onLayout.

Thanks,
Sharon

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


  1   2   3   4   >