[android-developers] Re: If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list?

2008-11-27 Thread Satya Komatineni
Thanks a bunch for the answer. Satya On Mon, Nov 17, 2008 at 11:14 PM, Romain Guy [EMAIL PROTECTED] wrote: If you don't use ListActivity, there is no reason to use this id :) On Mon, Nov 17, 2008 at 8:02 PM, Satya Komatineni [EMAIL PROTECTED] wrote: If I am not using ListActivity do I

[android-developers] Is there a way to listen for the completion of AnimationDrawable animation?

2008-12-05 Thread Satya Komatineni
For tweening animation there is a callback that can be registered on the Animation object. I dont see anything similar on AnimationDrawable. Any thoughts? Thanks for your help Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Is there a way to listen for the completion of AnimationDrawable animation?

2008-12-05 Thread Satya Komatineni
on AnimationDrawable. It keeps repeating the animation. On Fri, Dec 5, 2008 at 12:19 PM, Satya Komatineni [EMAIL PROTECTED] wrote: For tweening animation there is a callback that can be registered on the Animation object. I dont see anything similar on AnimationDrawable. Any thoughts? Thanks

[android-developers] Re: How does a Cursor work?

2008-12-11 Thread Satya Komatineni
Taisa, Hopefully you have found some answers on this since you have posted. If you did find any numbers indicating one way or the other, I would like to know. I looked at some source code of Android to see what is under the hood. Here are some thoughts based on what I saw. The Cursor object is

[android-developers] Re: Question about the use of FrameLayout

2008-12-17 Thread Satya Komatineni
I suppose if something is an activity it can be replaced with another component activity and thereby promising a certain amount of openness where it is applicable through intents etc.. On Wed, Dec 17, 2008 at 1:17 AM, Eric Chan jude...@gmail.com wrote: lol, I always argue with my mates about

[android-developers] When does one use a SurfaceView vs a View?

2008-12-27 Thread Satya Komatineni
What does SurfaceView abstraction stand for? The documentation suggests that SurfaceView allows a secondary thread to draw on it. When would one specialize View vs SurfaceView? Thanks for your help Satya --~--~-~--~~~---~--~~ You received this message because

[android-developers] How can I specify radius and radii to a drawable resource element

2009-01-01 Thread Satya Komatineni
Is this possible as a subelement of resources? Or do I have to create a separate xml file in the /res/drawable sub directory? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] I guess the values/drawable tag translates to a ColorDrawable and not a PaintDrawable!

2009-01-01 Thread Satya Komatineni
If i start with drawable name=red_drawable#f00/drawable the java code Drawable d3 = activity.getResources().getDrawable(R.drawable.red_drawable); Log.d(hw:,d3.getClass().getName()); will print android.graphics.drawable.ColorDrawable If that is true may the docs need to be updated. Thanks

[android-developers] Re: When does one use a SurfaceView vs a View?

2009-01-13 Thread Satya Komatineni
app in the sample code included with the SDK. then again, if you know you want to maximize the frames per second from the outset, you might just start with a SurfaceView. Karl On Dec 27 2008, 10:54 am, Satya Komatineni satya.komatin...@gmail.com wrote: What doesSurfaceViewabstraction stand

[android-developers] Can I use a regular View for *trivial* OpenGL programs instead of SurfaceView?

2009-01-13 Thread Satya Komatineni
All samples in Android makes use of a SurfaceView to draw OpenGL. Can I use a regular View instead? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Do I need a while loop in GLThread of GLSurfaceView if animation is not needed?

2009-01-13 Thread Satya Komatineni
I see that In GLSurfaceView sample GLThread is doing the OpenGL drawing. I see a code snippet in its run method that starts with while (!mDone) { while (needToWait()){{} . } I understand that the surface may not be ready to be drawn and so I get the second while loop. But

[android-developers] Re: Do I need a while loop in GLThread of GLSurfaceView if animation is not needed?

2009-01-14 Thread Satya Komatineni
nothing has changed on the surface. Hope someone can confirm this Thanks Satya On Tue, Jan 13, 2009 at 10:38 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I see that In GLSurfaceView sample GLThread is doing the OpenGL drawing. I see a code snippet in its run method that starts

[android-developers] Can I use a regular view as a target for OpenGL drawing?

2009-01-20 Thread Satya Komatineni
I see that eglCreateWindowSurface is being passed a SurfaceHolder. What other objects will it take? Will it take a Canvas? Thanks for your help Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Is there a way to navigate android SDK documentation online for multiple releases??

2009-04-18 Thread Satya Komatineni
Going forward will Android maintain the sites for multiple SDKs that might be in use. For example at this very moment there may development teams that are working on 1.0, 1.1 and possibly 1.5. If the main site carries documentation only for 1.1 (current release) will Android make an effort to

[android-developers] Is there a way to drop a collection of apps into a folder on the homepage programmatically?

2009-04-21 Thread Satya Komatineni
If I want to take 3 apps that I write and target them for a folder called my corporation folder is there a way to do this programmatically? Will live folders help here in such a case? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How do live folders register for change in content?

2009-04-22 Thread Satya Komatineni
If I create a content provider to service a live folder, and if this content provider is just a wrapper aggregating other content providers, how does the live folder know if the real content has changed somewhere down the line. For example, I have a live folder that has items pointing to video,

[android-developers] How does requery know what the original where clause is that returned the cursor?

2009-04-22 Thread Satya Komatineni
I know that in a content provider query method one can indicate to the cursor a notify uri. The cursor knows what this uri is. Does the cursor uses this uri to update itself? Does it result in a call to query method of the contentprovider for a query. How does the cursor know what the additional

[android-developers] Re: How does requery know what the original where clause is that returned the cursor?

2009-04-22 Thread Satya Komatineni
, 2009 at 3:20 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I know that in a content provider query method one can indicate to the cursor a notify uri. The cursor knows what this uri is. Does the cursor uses this uri to update itself? Does it result in a call to query method

[android-developers] Re: How do live folders register for change in content?

2009-04-22 Thread Satya Komatineni
Dianne, Mark, Thank you both for looking into this Satya On Wed, Apr 22, 2009 at 7:50 PM, Mark Murphy mmur...@commonsware.com wrote:     But if I were to use something like MatrixCursor which doesn't have     a specific requery mechanism, I will have to build that refresh     logic in  a

[android-developers] Here is some sample code for a live folder example

2009-04-24 Thread Satya Komatineni
http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3014ownerUserId=satya If you see any errors or discrepancies, I will appreciate it if you let me know Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] will the device wake up if there is a widget instance on the homepage but the widget provider or receiver is disabled?

2009-09-16 Thread Satya Komatineni
will the device wake up if there is a widget instance on the homepage but the widget provider or receiver is disabled? If I have a widget instance on the home page, but if I were to disable the widget provider from receiving messages by disabling the component, and if I have no components

[android-developers] Re: will the device wake up if there is a widget instance on the homepage but the widget provider or receiver is disabled?

2009-09-16 Thread Satya Komatineni
the update. This is based on 1.5. Thanks again Satya On Wed, Sep 16, 2009 at 3:51 PM, Dianne Hackborn hack...@android.com wrote: It doesn't wake up for app widgets at all.  Alarms wake up the device, if they are using a type that does so. On Wed, Sep 16, 2009 at 12:29 PM, Satya Komatineni

[android-developers] Can I keep a broadcast receiver process alive by creating a service that stays around?

2009-09-16 Thread Satya Komatineni
The app widget documentation indicates that the widget provider being a receiver of a broadcast service may not exist (the process) beyond the completion of the call. If I want to maintain state between two broadcast events, such as say widgetProvider.onUpdate(), can I start a local service and

[android-developers] Re: Can I keep a broadcast receiver process alive by creating a service that stays around?

2009-09-17 Thread Satya Komatineni
the servcie. In such a case can the widget provider and the service stay in the apk file and can the update messages rely on the static variables that the service keeps around. Thanks Satya On Thu, Sep 17, 2009 at 5:59 AM, Mark Murphy mmur...@commonsware.com wrote: Satya Komatineni wrote: The app

[android-developers] Can I have multiple widgets in the same apk file?

2009-09-18 Thread Satya Komatineni
The configuration seem to allow it, however both widgets show up with the same label in the widget list. I guess it may be a bad idea to do so as well due to shared space and multiple widgets needing to behave quite differently with different requirements. Thanks Satya

[android-developers] An approach and very **drafty** sample code for utilizing models for storing widget state..

2009-09-21 Thread Satya Komatineni
I have been experimenting with widgets for a few days, and I needed a simple abstract means of saving the widget state. I want to be able to do something like the following: private void updateAppWidget(String name, String dob) { //create a widget model with its own data

[android-developers] Wondering if someone can clarify this android 2.0 and 1.6

2009-09-28 Thread Satya Komatineni
There was a talk some months ago that Android 2.0 is donut. However I see that 1.6 is just out and it indeed is donut. Can someone clarify what Android 2.0 is then and how soon befor it hit the ropes? Thanks Satya --~--~-~--~~~---~--~~ You received this message

[android-developers] Android search in pictures (Informational post)

2009-10-20 Thread Satya Komatineni
As I have been looking into the android quick search box, here is a series of pictures that digs into the nature of the new Android Search. http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3325ownerUserId=satya These pictures should be helpful as you read through the

[android-developers] what does this icon mean in Android Search Box

2009-10-21 Thread Satya Komatineni
In android global search suggestions, I see an icon that looks like a closed box with the android icon slapped on it half way. You can see the image here http://www.knowledgefolders.com/akc/filestorage/satya/documentfiles/3325/what-does-this-mean.gif The suggestion items are previously entered

[android-developers] A possible bug??: global mode type-to-search not closing if the search is self directed with suggestions

2009-10-21 Thread Satya Komatineni
Here is what is happening 1. I have an activity that is responding to searches. Call this search results activity 2. the search results activity is enabled type-to-search global keys 3. I see the global search box show up if type some text on the activity 4. I type in a pattern such as g or gh

[android-developers] Is it possible to invoke an external activity, such as a browser, from a custom suggestion provided by a custom suggestion provider

2009-10-23 Thread Satya Komatineni
when I examine the intent raised by clicking on a suggestion provided by a custom suggestion provider it looks like this launching Intent { act=android.intent.action.VIEW dat=http://www.google.com flg=0x1000 cmp=com.ai.android.search.custom/.SearchActivity (has extras) } This is assuming

[android-developers] help! Odd behavior with a search activity

2009-10-24 Thread Satya Komatineni
I have a package with two activities 1. A main activity 2. A search activity The search activity is invoked by a search suggestion provider in two possible ways 1. By clicking directly on a suggestion invoking the search activity through a VIEW action 2. By clicking on the explicit search icon

[android-developers] Re: help! Odd behavior with a search activity

2009-10-24 Thread Satya Komatineni
if you have some ideas I would love to hear them Thanks Satya On Sat, Oct 24, 2009 at 9:10 AM, Satya Komatineni satya.komatin...@gmail.com wrote: I have a package with two activities 1. A main activity 2. A search activity The search activity is invoked by a search suggestion provider in two

[android-developers] Re: WebView and contents://

2008-09-27 Thread Satya Komatineni
I suspect you may need some kind of signatures to give access to local resources or files from a web browser. Just like any regular browser won't let access local resources due to local constraints. But again that is a guess. Hope someone else will answer you for sure. Satya On Fri, Sep 26,

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

2008-10-02 Thread Satya Komatineni
Thanks for the reply. Then how does /res/raw directory differ from /assets sub directory? Both seem to host raw files. Satya On Thu, Oct 2, 2008 at 1:15 PM, hackbod [EMAIL PROTECTED] wrote: The asset directory is just an unstructured hierarchy of files, allowing you to put anything you want

[android-developers] Is Runnable no longer supported by android.view.Menu?

2008-10-03 Thread Satya Komatineni
I see it in the description of of some menu methods as if a Runnable is going to be called if one exists. However I don't see an add method adding a runnable to the menu item. Any thoughts Thanks Satya --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Is Runnable no longer supported by android.view.Menu?

2008-10-04 Thread Satya Komatineni
(similar to how many people used the Runnable previously), you can do so with the MenuItem.setOnMenuItemClickListener. jason On Fri, Oct 3, 2008 at 7:42 PM, Satya Komatineni [EMAIL PROTECTED] wrote: I see it in the description of of some menu methods as if a Runnable is going to be called

[android-developers] How did android.R.id.list got into android.R.java file??

2008-10-06 Thread Satya Komatineni
Can one change R.java file manually? (I take it is auto generated based on res files) How did android.R.id.list constant got into android.R.java file? was there a layout in android that said ListView android:id=@+id/list.../ Thanks Satya --~--~-~--~~~---~--~~

[android-developers] Re: How did android.R.id.list got into android.R.java file??

2008-10-06 Thread Satya Komatineni
I suppose the following will work resources item type=id name=myviewId/ /resources TextView android:id=@id/myviewId... I suppose the above two definitions would be equivalent to TextView android:id=@+id/myviewId.. Satya On Mon, Oct 6, 2008 at 8:59 AM, Satya Komatineni [EMAIL PROTECTED

[android-developers] is there any one using XML to Java binding in Android?

2008-10-09 Thread Satya Komatineni
Android seem to have a nice way to inflate lay out objects into their equivalent java stuff. Can I use the same kind of features for an xml downloaded from a website? Thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: is there any one using XML to Java binding in Android?

2008-10-09 Thread Satya Komatineni
are not parsing raw XML files. On Oct 9, 8:40 am, Satya Komatineni [EMAIL PROTECTED] wrote: Android seem to have a nice way to inflate lay out objects into their equivalent java stuff. Can I use the same kind of features for an xml downloaded from a website? Thanks again

[android-developers] Is there a way to find out a list of activities that are installed on android

2008-10-11 Thread Satya Komatineni
and then find out the actions they will respond to and the correspoding URIs needed? At least to begin with those that are on the emulator out of the box Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Is there a way to find out a list of activities that are installed on android

2008-10-11 Thread Satya Komatineni
out of the box. Isn't there a way to know from the debugger or other tools to know which activities have been registered etc. Satya On Sat, Oct 11, 2008 at 9:48 AM, Mark Murphy [EMAIL PROTECTED] wrote: Satya Komatineni wrote: and then find out the actions they will respond

[android-developers] Re: How can I launch the default Contact Application provided in SDK with my app

2008-10-11 Thread Satya Komatineni
I suppose if one knows the explicit packagename and classname of the activity that was launched from the main launcher then you could do it that way. I have tried the following but android says it doesn't know any activitiy Intent intent = new Intent(Intent.ACTION_VIEW); intent.setFlags(..new

[android-developers] Re: is there any one using XML to Java binding in Android?

2008-10-11 Thread Satya Komatineni
Anm, So cllases like TextView etc are instantiated and then filled up using the XmlPullParser on the device at run time? If so what strategies have you used to populate objects from XmlPullParser? Can that code be reused to for user defined java objects? Satya On Thu, Oct 9, 2008 at 3:46 PM, A

[android-developers] Re: How can I launch the default Contact Application provided in SDK with my app

2008-10-11 Thread Satya Komatineni
Perhaps, you can test the theory by invoking the sample Notepad application that you are in control of. Invoke the action view with the known uri for notes. See then if it is a registration problem. Satya On Sat, Oct 11, 2008 at 10:29 AM, Satya Komatineni [EMAIL PROTECTED] wrote: Yes

[android-developers] Re: baffling alert dialog listener behavior: how come local variables dont keep their data

2008-10-14 Thread Satya Komatineni
Thank you. So that explans it. However, is there a way to block show()? is the behavior of showDialog(id) the same as well? or is that a blocking call? Thanks again Satya On Tue, Oct 14, 2008 at 1:44 PM, Romain Guy [EMAIL PROTECTED] wrote: //show ad.show(); When you call show(), the

[android-developers] is ACTION_WEB_SEARCH removed from the SDK?

2008-10-31 Thread Satya Komatineni
Just wondering what happened to the intent filter that responds to this event. I do know how to use the VIEW action with a url syntax to invoke a browser. Just curious as it is in the doucmentation but results in an exception at run time Satya

[android-developers] who should close the activity started by a PICK action once the item is picked?

2008-11-08 Thread Satya Komatineni
I have the following code and the activity that displays notes is not closing after picking an item. Do I need to explicitly close this activity?? Thanks for your help Satya public static void invokePick(Activity activity) { Intent pickIntent = new Intent(Intent.ACTION_PICK);

[android-developers] How come PICK doesn't seem to work on Contacts.CONTETN_URI?

2008-11-08 Thread Satya Komatineni
I have used the following code public static void invokePick(Activity activity) { Intent pickIntent = new Intent(Intent.ACTION_PICK); pickIntent.setData(Contacts.CONTENT_URI); activity.startActivityForResult(pickIntent, 1); } I get an exception that no activity found matching this criteria.

[android-developers] Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Satya Komatineni
Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name? And also what are the minimal intent filters that are needed? What I noticed is the following: 1. The activity has to be in the manifest.xml 2. It doesn't seem to need any additional

[android-developers] Re: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name?

2008-11-17 Thread Satya Komatineni
PROTECTED] wrote: Satya Komatineni wrote: Is it necessary for an activity to be in manifest.xml for that to be invoked by its explicit component name? Yes, but... And also what are the minimal intent filters that are needed? No intent filters are needed for an activity

[android-developers] If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list?

2008-11-17 Thread Satya Komatineni
If I am not using ListActivity do I need to id a ListView as the predefined id android:id/list? Whose contract is android:id/list? Is this used only by ListActivity or is it used somewhere else as well such as the ListAdapter? Thanks Satya --~--~-~--~~~---~--~~

Re: [android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-11-16 Thread Satya Komatineni
On windows/XP I couldn't make this work directly from the AVD manager by itself. I had to do it through the Eclipse plugin for ADT (which in turn can invoke the AVD manager internally in eclipse) Must be something to do with jdk version or the java version when run outside(I am thinking)

Re: [android-developers] onNewIntent() is never called when use Icons

2009-11-16 Thread Satya Komatineni
Hopefully you have figured out what the problem is. I can't say I fully understand it. But one thing is sure with onNewIntent(). I have looked at it when I was configuring an activity on behalf of search functionality. This method is invoked ONLY IF this activity is on top of the visible stack.

[android-developers] Re: AppAccelerator for Android and iPhone

2009-08-11 Thread Satya Komatineni
I am positive on the approach that Titanium and other appcelerator products are taking for applicationd development. I am currently doing a bit of research to see the capabilities. You can take a look at the larger set of my notes here:

[android-developers] Re: AppAccelerator for Android and iPhone

2009-08-11 Thread Satya Komatineni
By the way this is also a similar approach taken by Adobe AIR and advanced IDEs like Aptana Studio can provide the needed IDE support around these ideas. Satya On Tue, Aug 11, 2009 at 8:12 AM, Satya Komatinenisatya.komatin...@gmail.com wrote: I am positive on the approach that Titanium and

[android-developers] Re: any development book for new guy?

2009-08-15 Thread Satya Komatineni
I must disclose first that I am one of the co-authors of the Pro-Android. So you shouldn't consider this a good recommendation. The book was set to release when 1.5 was just released also. So we worked the 1.5 content very late in the book. This content is covered in the last chapters. This

[android-developers] why would a javascript alert doesn't show on a locally loaded html file through webkit?

2009-08-18 Thread Satya Komatineni
If an html file is locally loaded from the assets directory into the webkit and if that html has an alert on it, what could be a reason it won't show a dialog? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Does anyone know if the donut branch if built will have the sample programs that usually come with a release?

2009-08-26 Thread Satya Komatineni
Does anyone know if the donut branch if built will have the sample programs that usually come with a release? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Is it possible to build a windows distribution of a donut release?

2009-08-26 Thread Satya Komatineni
Is it possible to build a windows distribution of a donut release? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Donut Development Environment

2009-09-05 Thread Satya Komatineni
Al, Thank you. this is great help Satya On Sat, Sep 5, 2009 at 11:04 AM, Al Sutton a...@funkyandroid.com wrote: If you want to play with the Donut SDK ADT eclipse plug-in, I've just built them both from the open source repository and you can get them at;

Re: [android-developers] Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Satya Komatineni
=satya Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Thu, Aug 19, 2010 at 3:22 AM, Mark Carter mjc1...@googlemail.com wrote: I want to implement Cursor so that it wraps another Cursor (probably MatrixCursor) and can swap out the wrapped Cursor as necessary. I've

Re: [android-developers] Re: Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Satya Komatineni
on the wrapped MatrixCursor which is discarded as soon as setInternalCursor() is called... On Aug 19, 3:53 pm, Satya Komatineni satya.komatin...@gmail.com wrote: Mark, It has been a while I looked into this when I researched this stuff for Live Folders chapter in Pro Android 2 book. I have some source

Re: [android-developers] Why does not this sleep work?

2010-07-02 Thread Satya Komatineni
The short answer is you need to read up on something called a handler. It will probably take a few pages to explain the ideas in detail. But here are some notes I have kept http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3496ownerUserId=satya Here is the short answer:

[android-developers] why does AlarmManagerService.java call remove first in a set alarm?

2010-07-13 Thread Satya Komatineni
It was a bit baffling (Probably there is a good reason, and it doesnt take much to baffle me) AlarmManager am; ... PendingIntent pi; am.set(pi, ...) at 11pm am.set(pi,...) at 2pm Same pending intent with the same intent and request code, in otherwords they resolve to same intent on equals.

Re: [android-developers] why does AlarmManagerService.java call remove first in a set alarm?

2010-07-14 Thread Satya Komatineni
the more recent one replaces the previous. It's like doing: HashMapString, Foo alarms; Foo foo1 = new Foo(); Foo foo2 = new Foo(); alarms.put(mything, foo1); alarms.put(mything, foo2); The second call replaces the value of the first. On Tue, Jul 13, 2010 at 8:04 PM, Satya Komatineni

Re: [android-developers] why does AlarmManagerService.java call remove first in a set alarm?

2010-07-14 Thread Satya Komatineni
. On Wed, Jul 14, 2010 at 7:12 AM, Satya Komatineni satya.komatin...@gmail.com wrote: I would have probably seen that if the operation indicated by the pendingintent is used as a key. But I am saying an explicit removal of the alarm containing the operation (pending intent). See the code

Re: [android-developers] why does AlarmManagerService.java call remove first in a set alarm?

2010-07-14 Thread Satya Komatineni
Ok, thank you very much Satya On Wed, Jul 14, 2010 at 3:35 PM, Dianne Hackborn hack...@android.com wrote: Because that is how we want and designed it to work. On Wed, Jul 14, 2010 at 11:27 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Dianne, thanks again. Sorry to still hang

Re: [android-developers] R cannot be resolved

2010-07-21 Thread Satya Komatineni
Perhaps, give your directory structure in that project and probably the contents of the R.java file. Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Tue, Jul 20, 2010 at 6:31 PM, Marc marc.d.pa...@gmail.com wrote: Hi. I'm an Android development newb, and I got a problem

Re: [android-developers] What is a WeakReference?

2010-07-22 Thread Satya Komatineni
are towards the end of the document Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Thu, Jul 22, 2010 at 1:48 PM, GodsMoon godsm...@gmail.com wrote: Google just posted a new blog post on http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html. I

Re: [android-developers] onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-07-31 Thread Satya Komatineni
such as attending to menus, then you want to call the base super last. In the particular case of onCreate, as it resembles construction, I go with calling the super first. Hope this reflection helps Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Sat, Jul 31, 2010 at 10

[android-developers] will the android emulator support opengles 2.0 in the future?

2010-10-04 Thread Satya Komatineni
on the Android emulator as well. Thanks for the help Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.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

Re: [android-developers] Re: will the android emulator support opengles 2.0 in the future?

2010-10-04 Thread Satya Komatineni
but you still really need a device to test since a PC GPU is going to be many times faster than a mobile GPU. So why can't the Android emulator do the same thing?  Because the PVR lib is for x86/OSX and the Android emulator is running on ARM. On Oct 4, 4:13 pm, Satya Komatineni satya.komatin

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread Satya Komatineni
considering that R.java is a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to 1.5 SDK pre, together with the ADT. I followed the instruction to select Android 1.5 as

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Satya Komatineni
perhaps is there a way to intercept all key events globally before they are dispatched to the apps? On Tue, May 5, 2009 at 8:51 AM, Taísa Cristina taisa.san...@gmail.com wrote: My application behavior is similar to voice call, but I need also to handle key events. My application is still

[android-developers] Re: Handling key events in a paused Activity

2009-05-06 Thread Satya Komatineni
What about function keys? Is it possible to tie together a set of function keys (if they exist) to a service or an activity that is in the background? On Tue, May 5, 2009 at 6:19 PM, Mark Murphy mmur...@commonsware.com wrote: Taísa Cristina wrote: In fact I do need to handle key strokes.

[android-developers] what logic does contacts api use to aggregate (possibly) overlapping fields from multiple raw contacts

2010-11-02 Thread Satya Komatineni
when a contact detail screen is presented in the contacts application, how is each field aggregated from its underlying raw contacts case 1: Overlapping fields when the same field exists in two or more contacts. Say they have two different last names or emails in different accounts. Does the

Re: [android-developers] Re: Can anyone recommend a good OpenGL ES book?

2010-11-03 Thread Satya Komatineni
programming guide (Core OpenGL concepts0 Shading programming language - Randi Rost I am not sure off * OpenGL ES 2.0 Programming Guide Meanwhile if you find a reasonable book do tell. Thanks Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Tue, Nov 2

[android-developers] In Android 2.2.1 startSearch() seem to behave differently...

2010-12-01 Thread Satya Komatineni
in an application calling onSearchRequested() which in turn calls the startSearch() with a false flag, is not invoking Global search. Is this a change in direction? or documentation not updated? Appreciate any input Thanks -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com -- You

Re: [android-developers] someone please help me with these issues.

2010-05-11 Thread Satya Komatineni
Aishwarya, You may want to break up the issues individually and post them. Optionally, you may also want to post sample code for each issue on some blog and put a pointer to it for someone to take a look at the code quickly. On Tue, May 11, 2010 at 5:43 AM, aishwarya shukla

[android-developers] what happens to the auto generated linux user ids when apk files are installed and uninstalled?

2010-05-18 Thread Satya Komatineni
I read that each apk file runs in its own process (unless shared) and gets its own unique user id. I take it this user id is auto generated unless one indicates a specific shared id. what is the format of these user ids? what happens to them when apk files are uninstalled and removed from the

[android-developers] Info: Understanding self signed jar files (like the apk files)

2010-05-19 Thread Satya Komatineni
A number of facets in Android depend on signing the .apk file. Some of the features are available when jar files are signed with the same signature. However if you are new to digital signing process, it can be a bit confusing. Here are some notes I have kept to clarify the digital signing

[android-developers] help: Multiple broadcast receivers in the same process: Do they all run in the main thread??

2010-05-20 Thread Satya Komatineni
The application fundamentals page at the android site states that By default, all components of the application run in that process and thread Is this true for a broadcast receiver as well? if I have multiple broadcast receivers in a single apk file and do they all run on the main thread one

[android-developers] what is the point of an internal broadcast receiver that is invoked explicitly by its classname?

2010-05-20 Thread Satya Komatineni
It is possible to create receiver tag with just a classname and no intent filters. The documentation indicates that in this case the receiver is considered internal to that package. The way that receiver is invoked is through sendBroadcast(explicit-class-intent) How is this different from

[android-developers] Info: Android Predicates (Surrounding Architecture)

2010-05-21 Thread Satya Komatineni
What I know as likely to be true ** 1. An application represented by an apk file (usually) runs in its own proces 2. Each such application or package runs under its own linux user id to create/access resources underneath 3. Such a linux user id is

[android-developers] How does a held wakelock impact if the service dies with out releasing it?

2010-06-04 Thread Satya Komatineni
Scenario: 1. Broadcast Receiver holds a static wake lock hoping the service it started, when it finishes will release the lock 2. Howvever Service dies with out releasing the wake lock? What is likely to happen? I am assuming the process will be stopped after calling the onDestory() of the

Re: [android-developers] how to listen for system wide key presses

2010-06-04 Thread Satya Komatineni
There was a thread last year on the topic of being able to intercept or respond to key strokes when the activity is not in focus. I believe the general consensus was that there is no such facility and that it is a good thing for privacy reasons as well. On Fri, Jun 4, 2010 at 11:42 AM, Sean

[android-developers] A slightly altered pattern for extending the life span of a broadcast receiver (Not entirely verified yet)

2010-06-05 Thread Satya Komatineni
How would one go about making sure a broadcast receiver (triggered) code can run for more than 10 secs (this is the limit when you start seeing not responding warnings), This has been much disccussed in this group and excellent suggestions and even working code like wakefulintentservice (thanks

Re: [android-developers] A slightly altered pattern for extending the life span of a broadcast receiver (Not entirely verified yet)

2010-06-08 Thread Satya Komatineni
head, can I hire you to do a bit of cleaning while you are in there? :-) Satya Komatineni wrote: 1. Make the whole thing look like just a broad cast receiver and hide the service as much as possible with only one method exposed The problem here is that there are some system-provided

Re: [android-developers] A slightly altered pattern for extending the life span of a broadcast receiver (Not entirely verified yet)

2010-06-11 Thread Satya Komatineni
is at http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3514ownerUserId=satya Caution: I have barely tested this. Use it at your own risk. On Tue, Jun 8, 2010 at 9:39 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Mark, Thank you vey much for the detailed look. I

Re: [android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Satya Komatineni
May be this will work: MyService extends IntentService { Handler mMainThreadHandler = null; onCreate() { super.onCreate(); //initialize and populate the mMainThreadHandler //because this method runs on the main thread

Re: [android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Satya Komatineni
If it helps here is a link to the source code of the nifty IntentService http://www.netmite.com/android/mydroid/1.6/frameworks/base/core/java/android/app/IntentService.java Satya On Fri, Jun 11, 2010 at 2:01 PM, Satya Komatineni satya.komatin...@gmail.com wrote: May be this will work

[android-developers] can multiple activiites share an ActionBar?

2011-02-02 Thread Satya Komatineni
Hello there. I am looking at the ActionBar classes in 3.0. Each activity can control its ActionBar. Activity { . ActionBar bar = getActionBar(); bar.addTab(..1..) bar.addTab(..1..) . } Does every activity in an application setup an ActionBar independently?

[android-developers] Will this action bar navigation mode be there: NAVIGATION MODE DROPDOWNLIST

2011-02-05 Thread Satya Komatineni
I see this navigation mode in the API however not in the javadoc that is downloaded with honeycomb preview. Any thoughts which is more recent? Thanks Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Will this action bar navigation mode be there: NAVIGATION MODE DROPDOWNLIST

2011-02-05 Thread Satya Komatineni
On Sat, Feb 5, 2011 at 12:58 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I see this navigation mode in the API however not in the javadoc that is downloaded with honeycomb preview. Any thoughts which is more recent? Thanks Satya -- Satya Komatineni http://www.satyakomatineni.com

[android-developers] Re: Will this action bar navigation mode be there: NAVIGATION MODE DROPDOWNLIST

2011-02-05 Thread Satya Komatineni
Here is some sample code, images of various actionbar modes, and a downloadable sample project. http://www.satyakomatineni.com/item/3624 On Sat, Feb 5, 2011 at 1:21 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Looks like the value for both NAVIGATION_MODE_LIST

Re: [android-developers] Re: Fragment question on the use of the arguments bundle

2011-02-14 Thread Satya Komatineni
?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.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

[android-developers] How does one set title for a DialogFragment

2011-02-15 Thread Satya Komatineni
A DialogFragment seem to indicate a style that is STYLE_NO_TITLE when the style is STYLE_NORMAL The display from the API demos shows a glowing horizontal bar with no title. How does one go about setting a title? I dont' see any methods on DialogFragment or Fragment to set titles. The

[android-developers] what is the diff between dismissing a dialogfragment or explicitly removing it from the fragment manager?

2011-02-17 Thread Satya Komatineni
ASampleDialogFragment extends DialogFragment { onButtonDismiss() { this.dismiss(); } onButtonRemove() { FragmentManager fm = this.getFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.remove(this); ft.commit(); } } if

  1   2   >