[android-developers] Does anyone has a recommendation on a good implementation of SQLite Script Runner

2014-08-23 Thread Satya Komatineni
I have gone through StackOverflow etc. I ran into the Beryl library etc. Do you know if Beryl library is still active on google code? Does anyone have strong recommendations on this subject Appreciate your thoughts Satya -- You received this message because you are subscribed to the Google

[android-developers] Help: When will CONTEXT_INCLUDE_CODE result in a security exception while creating a package context?

2014-05-10 Thread Satya Komatineni
Is it when the target context does not share the user id with the calling context? Appreciate your insight 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@googlegroups.com To

[android-developers] A startup weekend question on parental controls for Android

2014-02-02 Thread Satya Komatineni
is there a way to enable and disable certain features of Android based on parental or control authority permissions. Say a parent may want to disable certain features of the phone either during homework hours, or based on a location (like a car) say. Appreciate if one can chime in thanks Satya

Re: [android-developers] How to stop or cancel Asyntask (Download image)

2013-11-30 Thread Satya Komatineni
You can call the cance(boolean) method on the asynctask. And you can pass true to forcefully remove the thread as per the docs. However it depends on what the URL and the drawable is doing and if they need to be informed of cancelling. You can also set a flag to cancel the task and check it often

Re: [android-developers] Circular Menu

2013-02-15 Thread Satya Komatineni
Ravi, what you need is a custom view and some 2D graphics API details. Some of the material might be of some help Essential Custom View Code snippets http://satyakomatineni.com/item/4330 Also you will see here links for custom layouts research as well if you were to arrange buttons or images in

[android-developers] Info: Research notes on using GSON for Mobile App Storage

2012-12-28 Thread Satya Komatineni
Article: GSON for Mobile App Storage http://satyakomatineni.com/item/4440 Here is an abstract: You will be surprised how GSON can propel your mobile app productivity especially release 1 candidates. In this approach you will represent the persistent state of your apps as JSON. You will use the

[android-developers] wondering if a value of * is deprecated for the metadata android.app.default_searchable?

2012-11-30 Thread Satya Komatineni
application... activity.../ meta-data android:name=android.app.default_searchable android:value=* / /application Is this feature of indicating * seem to be deprecated. The following lines in Searchables.java // This value is deprecated, return null

[android-developers] Principles of Custom Layouts with code snippets

2012-11-10 Thread Satya Komatineni
Here are some notes and code samples for implementing custom layouts like a flow layout http://satyakomatineni.com/item/4359 This covers *** Inherit from ViewGroup Override OnMeasure Use a pencil and paper to figure out your algorithm Use ViewGroup.measureChild(). Don't directly

Re: [android-developers] Re: 3D game engine integration in the android framework

2012-11-09 Thread Satya Komatineni
These are excellent goals. Thank you for your work and the post Satya http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com http://twitter.com/SatyaKomatineni On Fri, Nov 9, 2012 at 2:29 PM, sebastian_bugiu sebastian.bugiu.reloa...@gmail.com wrote: Why

[android-developers] A quick note on the dispatchMethodX pattern in Android

2012-11-07 Thread Satya Komatineni
When I am researching the custom components I often ran into something I call a dispatchMethodX pattern. Example is how draw(), onDraw() and dispatchDraw() work hand in hand for a composite pattern like views and view groups. I put a quick note here with also references to the design patterns

Re: [android-developers] How do I make an app that allows users to interact with each other?

2012-11-02 Thread Satya Komatineni
that is an ambitious question. :) See a little bit of research I have done http://satyakomatineni.com/item/4234 this space is coming to be known as BAAS (Back end as a service) Some players are Cocoafish - Appecelerator/Titanium now ACS Parse Applicasa Stackmob Kinvey But thats just tip of

[android-developers] Re: How does one use fragment dialogs inside compound controls?

2012-11-01 Thread Satya Komatineni
://satyakomatineni.com/item/4341 (principles, sample code, images, and research) Thanks Satya On Tue, Oct 30, 2012 at 3:40 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Examples of fragment dialogs look like this SomeActivity { public void buttonClicked(View someView

[android-developers] How does one use fragment dialogs inside compound controls?

2012-10-30 Thread Satya Komatineni
Examples of fragment dialogs look like this SomeActivity { public void buttonClicked(View someView) { DialogFragment newFragment = new DatePickerFragment(); newFragment.show(getFragmentManager(), timePicker); } public static class DatePickerFragment

Re: [android-developers] How to do if User focussed on Edittext, menus should be displayed?

2012-10-27 Thread Satya Komatineni
Meena, I haven't tried it. But a view seem to have a public method called showConextMenu(). So you will set up a context menu for your control and call showContextMenu() on focus grab. (My theory but try it out) But more importantly, you may need to go in the direction of writing your own input

[android-developers] Few hunches on requestLayout() and forceLayout() (Their differences)

2012-10-26 Thread Satya Komatineni
I have been doing some research for custom components. The long thread of the research is at http://satyakomatineni.com/item/4148 Reading the internet I have got bits and pieces about requestLayout() and invalidate(). I think I kind of know what they are. However the difference between

[android-developers] Re: What is the norm these days to save the state of a custom view

2012-10-25 Thread Satya Komatineni
as to what is required to create a custom view http://satyakomatineni.com/item/4330 Thanks http://twitter.com/SatyaKomatineni http://satyakomatineni.com http://androidbook.com On Wed, Oct 24, 2012 at 9:41 AM, Satya Komatineni satya.komatin...@gmail.com wrote: The literature seem to indicate

[android-developers] What is the norm these days to save the state of a custom view

2012-10-24 Thread Satya Komatineni
The literature seem to indicate a number of alterantives 1. Just have the activity or fragment call a dedicated save and restore methods especially if the base class of your SpecialView is View. 2. Use the View's capabilities of onSaveInstanceState() and ignore the null from the VIew

[android-developers] Is it redundant to call invalidate() in the onSizeChanged method?

2012-10-22 Thread Satya Komatineni
I looked at the setFrame() method of the parent view class. This method calls onSizeChanged() only if there is a change in size of that view. If there is a change in size it also calls invalidate(). So am I right in thinking that it is redundant to call invalidate() in onSizeChanged() method.

[android-developers] How come LinearLayout doesn't seem to measure wrap_content properly

2012-10-22 Thread Satya Komatineni
I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent textviewheight=wrap_content some-custom-circle-viewheight=wrap_content textview ..height=wrap_content /LinearLayout In the custom circleview constructor I set

Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly

2012-10-22 Thread Satya Komatineni
a custom view that extends the base View class you really should override onMeasure(). On Mon, Oct 22, 2012 at 2:33 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I am doing more research to see if this indeed is the case. But here are the symptoms LinearLayoutheight=wrap_conent

Re: [android-developers] Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?

2012-10-21 Thread Satya Komatineni
not lead to a draw pass but some views might react to a Layout change by calling invalidate. On Oct 20, 2012 12:59 PM, Satya Komatineni satya.komatin...@gmail.com wrote: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call

[android-developers] Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?

2012-10-20 Thread Satya Komatineni
For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call invalidate() on my view So, no rectangle is invalid (I am assuming that is the assertion because I didn't call invalidate) Is it possible that the layout phase may invalidate()

Re: [android-developers] REQUEST

2012-10-04 Thread Satya Komatineni
May be this is a long shot. But may be you can look at 3D modelling tools like AutoDesk and see if you can export the 3D structures to be consumed by Android. Just a thought. I expect lot of work but worth doing... Tue, Oct 2, 2012 at 4:18 PM, ANDRÉS LEONARDO MOLINA Good luck

Re: [android-developers] My AVD is super slow

2012-09-15 Thread Satya Komatineni
what is your computer and OS? if it is windows it helps to have 4G or more. It could still be slow but much better exprience. It further helps if you have a solid state drive. It also helps to keep the AVD running once it has started. http://satyakomatineni.com/android/training

Re: [android-developers] GL_POINTS not drawing points

2012-09-02 Thread Satya Komatineni
Sorry this line Finally to get your gl_position = mvp * gl_position; and not the other way. should read Finally to get your gl_position = mvp * positionAttributeVariable; and not the other way. On Sat, Sep 1, 2012 at 11:10 PM, Satya Komatineni satya.komatin...@gmail.com wrote: Guich, Given

Re: [android-developers] GL_POINTS not drawing points

2012-09-02 Thread Satya Komatineni
On Sun, Sep 2, 2012 at 10:39 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Sorry this line Finally to get your gl_position = mvp * gl_position; and not the other way. should read Finally to get your gl_position = mvp * positionAttributeVariable; and not the other way. On Sat, Sep

Re: [android-developers] GL_POINTS not drawing points

2012-09-01 Thread Satya Komatineni
Guich, Given a number of ways how to do the same thing in OpenGL it will be quite hard to debug. On Sat, Sep 1, 2012 at 9:11 AM, guich guiha...@gmail.com wrote: Hi, I've spent a full day trying to draw a series of points using GL_POINTS. I know i could use a texture, but i want to learn how

Re: [android-developers] Android custom view (very basic)

2012-08-28 Thread Satya Komatineni
Victor, I am not entirely sure. But I can suggest a couple of experiments to debug. May be inheriting a View directly is too simplisitic. Try inheriting a TextView first. And if it works then you can look at what other base methods of the View you will need to inherit. Take a look at this item

Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?

2012-08-28 Thread Satya Komatineni
See if something like this helps http://androidbook.com/training Also if you have a set number of folks (about 10) I don't mind travelling with in the US for a week to teach. http://androidbook.com/training http://androidbook.com http://satyakomatineni.com http://twitter.com/SatyaKomatineni On

Re: [android-developers] How do I read an XML Data in Android?

2012-08-27 Thread Satya Komatineni
See if this SDK doc helps http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html Here is some earlier research I have done on XML treatment on Android (This may be a bit outdated as I haven't revisited it in a year) What XML libraries are available for Android

Re: [android-developers] First android app

2012-08-22 Thread Satya Komatineni
If you are still looking for advice I have created a note a while ago called How I have learned Android SDK: An authors note http://www.satyakomatineni.com/item/3784 See if this is of some help (Disclosure: Yes I do have a book on the subject) http://satyakomatineni.com/android/training

Re: [android-developers] Back face culling

2012-08-20 Thread Satya Komatineni
Hi, I don't see any image except a blank screen. There may be, and quite likely, more reasons why your figure is not showing (if it is not showing). You may want to check your eye positioning, check your view port, check your frustum etc. More importantly close trace your sample that works and

Re: [android-developers] Re: Back face culling

2012-08-20 Thread Satya Komatineni
No difference at all where you start. On Mon, Aug 20, 2012 at 4:27 PM, Braindrool cawehk...@gmail.com wrote: Your fix didn't work, but something I am getting confused about. Does it matter what vertex is the starting point in a counter clockwise winding? Example:

Re: [android-developers] OpenGL using multiple classes

2012-08-16 Thread Satya Komatineni
Hopefully you have a good reason to structure your classes they way you have done. To start BlaRenderer is a proper derived class that will get called. So this is a concrete class by itself. Number 2, the player class looks more like a utilitiy class and hence doesn't need to derive from

Re: [android-developers] Can't make new Android project in Eclipse.

2012-08-16 Thread Satya Komatineni
Johannes, Your tools may be more recent. Otherwise an android application project is similar to android project in earlier tool versions. There should be enough parallels to extrapolate. http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com

Re: [android-developers] App Not Installed

2012-08-16 Thread Satya Komatineni
Where are you installing the app? are you doing it on the emulator or a real device? If it is a real device you can do that with out creating an unsigned package directly through eclipse. Otherwise you will need to sign it to install on the device as a proper app. And the image you have included

Re: [android-developers] Error in an XML file: aborting build.

2012-08-16 Thread Satya Komatineni
You typically install the .apk file on the emulator or the device and then locate the icon for your application and use that icon to click on it to run. If you are using eclipse, you can use eclipse to run the project automatically on the emulator or the device. (Eclipse will compile and make the

[android-developers] Kudos: Android Team, You have done a fantastic job on OpenGL documentation

2012-07-24 Thread Satya Komatineni
http://developer.android.com/guide/topics/graphics/opengl.html The lessons and tutorials here are excellent! http://developer.android.com/training/graphics/opengl/index.html Real thanks http://satyakomatineni.com/android/training http://satyakomatineni.com http://androidbook.com

[android-developers] A free article on Android custom attributes

2012-06-15 Thread Satya Komatineni
It turns out there is a little bit of depth to android custom attributes. These are the XML attributes that you can use for your own custom views in layout files. I have collected my research notes into a proper article and posted it at http://satyakomatineni.com/item/4169 This article will

[android-developers] what are the restrictions on the declare-styleable name attribute? (Does it allow sub packages?)

2012-05-22 Thread Satya Komatineni
what happens if I have two custom views com.mycompany.projectname.CustomView com.mycompany.projectname.subpkg.CustomView How do I declare styleable resoruce for these classes? (of course I can name them differently, but is that the only way?) Here is an example resources declare-styleable

[android-developers] 5 free chapters from the previous editions of Pro Android

2012-03-29 Thread Satya Komatineni
I have made available some valuable published content from the previous editions of Pro Android for free. we had to remove these chapters from our latest edition ProAndroid 4 (http://androidbook.com/proandroid4) due to size and other reasons. The chapters are OpenGL Search API Live Folders Text

Re: [android-developers] onUpdate function is never being called from widget

2012-01-02 Thread Satya Komatineni
this group at http://groups.google.com/group/android-developers?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

Re: [android-developers] Emulator takes 15 minutes to start an app, something wrong ?

2011-12-13 Thread Satya Komatineni
://groups.google.com/group/android-developers?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

[android-developers] Help: I have git on windows. I just want to a) see b) download a speciifc android repository

2011-11-23 Thread Satya Komatineni
? Thank you so very much (Yes I did read about 50 messages on stackoverflow and here...) (I am really not prepared to install a linux to get a repository out..How may operating systems does it take to change a light bulb!!) -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com

[android-developers] Re: Help: I have git on windows. I just want to a) see b) download a speciifc android repository

2011-11-23 Thread Satya Komatineni
Ok, I may be getting somewhere, the following seem to work git clone https://android.googlesource.com/platform/manifest.git and git clone https://android.googlesource.com/platform/frameworks/base.git will keep you posted On Wed, Nov 23, 2011 at 7:59 AM, Satya Komatineni satya.komatin

Re: [android-developers] Help: I have git on windows. I just want to a) see b) download a speciifc android repository

2011-11-23 Thread Satya Komatineni
missing something on code search. Also I am glad to know, if that is going to be really true, that the online browsing may be coming back soon. again thanks a bunch Satya On Wed, Nov 23, 2011 at 8:13 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Nov 23, 2011 at 7:59 AM, Satya Komatineni

Re: [android-developers] Help: I have git on windows. I just want to a) see b) download a speciifc android repository

2011-11-23 Thread Satya Komatineni
Murphy mmur...@commonsware.com wrote: On Wed, Nov 23, 2011 at 8:32 AM, Satya Komatineni satya.komatin...@gmail.com wrote: The google code search doesnt seem to bring out the 4.0 code. At lease on my initial search. For instance the contact provider implementation doesnt seem to match what

[android-developers] Re: How come there is no PROFILE specific URI for raw contact data in the contact api?

2011-11-22 Thread Satya Komatineni
temporarily I understand a little m ore. (Ali, thanks for the link as well) On Mon, Nov 21, 2011 at 3:48 PM, Satya Komatineni satya.komatin...@gmail.com wrote: I see that there is a URI for inserting/contributing a raw contact to the new (4.0) personal profile

[android-developers] How come there is no PROFILE specific URI for raw contact data in the contact api?

2011-11-21 Thread Satya Komatineni
I see that there is a URI for inserting/contributing a raw contact to the new (4.0) personal profile ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI I am able to use this URI to insert a raw contact (with a specific account type and name) into the personal profile. However I don't see a

Re: [android-developers] Widget refresh rate

2011-10-08 Thread Satya Komatineni
@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com -- You received

[android-developers] my_activity - brower-activity (How can I go back to my activity)??

2011-09-11 Thread Satya Komatineni
My Activity A starts BrowserActivity with a URL. (No flags) I press BACK button while in the browser Browser follows its own history back and not come back to my activity A. Because I am starting the browser activity (I do realize it is a singletask) is there any flag I can set to have the

Re: [android-developers] Updating a database without freezing

2011-09-04 Thread Satya Komatineni
-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com

Re: [android-developers] XML parsing in android

2011-09-04 Thread Satya Komatineni
-developers?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

Re: [android-developers] Re: Java book (like C KR and C++ Programming Language)

2011-06-11 Thread Satya Komatineni
+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?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

Re: [android-developers] Re: Are dialogs supposed to be modal?

2011-06-02 Thread Satya Komatineni
To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com -- You received

Re: [android-developers] Trying to get a ProgressDialog to display.

2011-05-28 Thread Satya Komatineni
For more options, visit this group at http://groups.google.com/group/android-developers?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

Re: [android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-23 Thread Satya Komatineni
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni

Re: [android-developers] Access instance variables from an activity inside a AsyncTask

2011-05-16 Thread Satya Komatineni
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya

Re: [android-developers] Recommendations for 'specialization'.

2011-05-14 Thread Satya Komatineni
at http://groups.google.com/group/android-developers?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

Re: [android-developers] Does android supports modal dialog box ?

2011-05-10 Thread Satya Komatineni
Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya

Re: [android-developers] Re: Async Task or Spawn a Thread?

2011-05-10 Thread Satya Komatineni
, visit this group at http://groups.google.com/group/android-developers?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

Re: [android-developers] Re: Long process before a dialog is opened

2011-05-10 Thread Satya Komatineni
don't have to leave the current screen and also, since the dialog is transparent,  the user can see the background always. By the way, I own your book. It is a very good comprehensive book for Android. Venkata On May 6, 1:57 pm, Satya Komatineni satya.komatin...@gmail.com wrote: Venkata

Re: [android-developers] Re: Long process before a dialog is opened

2011-05-10 Thread Satya Komatineni
Or (if I understand your context right) better yet, show a progress dialog when the menu is clicked and when the progress dialog finishes show your special dialog thereby fulfilling both requirements of visibility and long running process. On Tue, May 10, 2011 at 10:41 AM, Satya Komatineni

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
this group at http://groups.google.com/group/android-developers?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

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
intents are unique and what happens extras etc. You will also see links to a number of useful posts on pending intents. On Tue, May 10, 2011 at 1:36 PM, Satya Komatineni satya.komatin...@gmail.com wrote: There is enough material on this forum if you search with 'pending intent' especially around

Re: [android-developers] Long process before a dialog is opened

2011-05-06 Thread Satya Komatineni
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya

Re: [android-developers] Multiple Threads

2011-05-04 Thread Satya Komatineni
this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com -- You received this message because you

Re: [android-developers] help for oops concept in android?

2011-05-04 Thread Satya Komatineni
://groups.google.com/group/android-developers?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

Re: [android-developers] Keytool and Jarsigner - where are they?

2011-04-27 Thread Satya Komatineni
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya

Re: [android-developers] Android Widget Design.

2011-04-26 Thread Satya Komatineni
are looking for a tutorial the book is much more helpful Thanks Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Mon, Apr 25, 2011 at 3:49 PM, Chris Ruskai cruskai...@gmail.com wrote: Hi, I've been programming apps for a while now and want to branch out into the realm

Re: [android-developers] Are dialogs supposed to be modal?

2011-04-14 Thread Satya Komatineni
UI from receivign UI input except for the modal dialog. You have to accordingly code your logic to take this into account. -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com On Thu, Apr 14, 2011 at 3:58 PM, Markus Junginger mar...@greenrobot.de wrote: After years

Re: [android-developers] Are dialogs supposed to be modal?

2011-04-14 Thread Satya Komatineni
to be served by the main thread. msg1: show msg2: button2 I guess it is possible to quick fast enough to beat the system. May be you need to set a variable to detect this. Just thinking aloud... Satya On Thu, Apr 14, 2011 at 4:13 PM, Satya Komatineni satya.komatin...@gmail.com wrote: For what

[android-developers] when will the source code for Android 3.0 released?

2011-03-07 Thread Satya Komatineni
I am trying to find out nuances with the new features of home screen widgets. I am wondering when will the source code for Android 3.0 be availabe in git repositories. Thanks Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Help: RemoteViewsFactory: what is the difference between its constructor and its onCreate() callback?

2011-03-02 Thread Satya Komatineni
As part of figuring out the new widget support in honeycomb, I am at a loss to understand the difference between the constructor of a RemoteViewsFactory and its callback method onCreate(). won't they always be called one after the other? The fact that oncreate() exists, suggests that it is

[android-developers] Re: what does this code segment do in weatherwidgetprovider: intent.setData(Uri.parse(sameintent.toUri()))

2011-02-26 Thread Satya Komatineni
PM, Satya Komatineni satya.komatin...@gmail.com wrote: If you could take a look at this segment of code final Intent intent = new Intent(context, WeatherWidgetService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); // //what

[android-developers] what does this code segment do in weatherwidgetprovider: intent.setData(Uri.parse(sameintent.toUri()))

2011-02-25 Thread Satya Komatineni
If you could take a look at this segment of code final Intent intent = new Intent(context, WeatherWidgetService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); // //what is done here??? //

Re: [android-developers]

2011-02-23 Thread Satya Komatineni
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?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

[android-developers] Is it possible to hold onto a DialogFragment pointer in its parent activity?

2011-02-21 Thread Satya Komatineni
The reason I am not able to do this is because 1. To hold on to this fragment pointer I need to save/restore the pointer through the save bundle 2. I am using putFragment() method to do this (via the activity onsaveinstancestate) 3. putFragment() seem to require that the fragment is added to the

Re: [android-developers] Is it possible to hold onto a DialogFragment pointer in its parent activity?

2011-02-21 Thread Satya Komatineni
support on this forum and elsewhere. Satya On Mon, Feb 21, 2011 at 2:30 PM, Dianne Hackborn hack...@android.com wrote: You can only maintain a fragment pointer if it is actually added to the fragment manager. On Mon, Feb 21, 2011 at 7:24 AM, Satya Komatineni satya.komatin...@gmail.com wrote

[android-developers] Direct pointers to fragments

2011-02-18 Thread Satya Komatineni
To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.com -- You received this message

Re: [android-developers] Direct pointers to fragments

2011-02-18 Thread Satya Komatineni
a tag name (or view ID) for the fragment and later re-retrieve it when being created though findFragmentByTag() and findFragmentById(). On Fri, Feb 18, 2011 at 9:22 AM, Satya Komatineni satya.komatin...@gmail.com wrote: You say one can hold direct pointers (not just their references such as id

[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

[android-developers] Can a fragment hold on to local variables?

2011-02-17 Thread Satya Komatineni
A fragment can be instantiated using its default constructor by the base framework. The initialization arguments are passed as a bundle that can be restored and reset. How about local variables for managing state of that fragment? Does one need to use the bundle to insert/remove these local

[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

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

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

[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

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

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

  1   2   >