[android-developers] Save getCallingPackage() in onSaveInstanceState. is this necessary?

2013-06-24 Thread NoraBora
In Facebook-Android SDK 3.0.1, there is LoginActivity. In LoginActivity, callingPackage is get from getCallingPackage() and save it through onSaveInstanceState and restore from savedInstanceState in onCreate().

[android-developers] Call glGetShaderPrecisionFormat before GLSurfaceView created

2013-06-17 Thread NoraBora
My app is using some graphic filter with GLSurfaceView OpenGL API and I recently found my algorithm depends on shader precision. Now I want to my app to show the GLSurfaceView only if the device supports proper shader precision. but It seems is...I can't use glGetShaderPrecisionFormat until

Re: [android-developers] Call glGetShaderPrecisionFormat before GLSurfaceView created

2013-06-17 Thread NoraBora
don't do this on the UI thread to not conflict with Android's UI renderer. On Sun, Jun 16, 2013 at 11:36 PM, NoraBora noranb...@gmail.com wrote: My app is using some graphic filter with GLSurfaceView OpenGL API and I recently found my algorithm depends on shader precision. Now I want

Re: [android-developers] Re: Call glGetShaderPrecisionFormat before GLSurfaceView created

2013-06-17 Thread NoraBora
I haven't found workaround so until then I wanted to disable the feature from ui. Could you be more specific about 10-bits-mediump fragment precision workaround? I'm interested. 2013/6/17 a1 arco...@gmail.com My app is using some graphic filter with GLSurfaceView OpenGL API and I recently

Re: [android-developers] How to control the SurfaceView's z-order

2013-05-22 Thread NoraBora
Hello, Dianne Hackborn. Is this 'multiple surfaceview' still not-recommended? I'm making Filter camera app with 1 SurfaceView(camera) and 1 GLSurfaceView(filter) targeting Froyo and higher. but their z-order are sometimes changed. I know TextureView is introduced but it is much higher than

Re: [android-developers] How to control the SurfaceView's z-order

2013-05-22 Thread NoraBora
Oh, the answer is here. https://groups.google.com/forum/?fromgroups#!msg/android-developers/nDNQcceRnYA/ps9wTBfXIyEJ Never mind :) 2013년 5월 22일 수요일 오후 5시 8분 25초 UTC+9, NoraBora 님의 말: Hello, Dianne Hackborn. Is this 'multiple surfaceview' still not-recommended? I'm making Filter camera app

Re: [android-developers] Re: SurfaceView#setZOrderMediaOverlay(true) not working as expected

2013-05-22 Thread NoraBora
I though z-order of SurfaceViews is nothing to do(and not guaranted) with order of layout.addView(SurfaceView). but this seems to have something to do with the order of the addView(). For example, // v2 should be on top of v1 SurfaceView v1; GLSurfaceView v2; // Case 1 : always v2 is on top of

Re: [android-developers] Re: handler.removeMessages(0) removes all runnable added by handler.post().

2013-04-12 Thread NoraBora
, NoraBora wrote: Sometimes you use a handler as a member variable and use it for sendMessages(), removeMessage(), post(). I just found out something. Say you call these handler.sendMesssage(0) // 1 handler.post(new Runnable()) // 2 handler.post(new Runnable()) // 3 and call

[android-developers] handler.removeMessages(0) removes all runnable added by handler.post().

2013-04-11 Thread NoraBora
Sometimes you use a handler as a member variable and use it for sendMessages(), removeMessage(), post(). I just found out something. Say you call these handler.sendMesssage(0) // 1 handler.post(new Runnable()) // 2 handler.post(new Runnable()) // 3 and call this

[android-developers] In IAB v3, can I use getBuyIntent() to check purchase?

2013-01-30 Thread NoraBora
I'm testing IAB v3 and found that if I tried to buy a product I already bought, getBuyIntent() returns with the response code BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED. This would be much easier than getPurchase() to check a productId because getPurchase() returns all list. Can I use this to

[android-developers] Using Service without startService(), bindService()?

2012-10-31 Thread NoraBora
I'm looking at the In-app Billing example and found something interesting. (http://developer.android.com/guide/google/play/billing/billing_integrate.html#billing-download) I have known that Service must be started with startService() or bindService(), but in the example BillingService is made by

[android-developers] Re: Setting Translucent Theme from Java

2010-06-18 Thread NoraBora
set the Translucent theme in the AndroidManifest.xml and use setTheme(). It seems strange but it works. To enable translucent is only possible in manifest. I guess. To disable translucent is possible in manifest and java code. Also remember that setTheme() has to be before super.onCreate();

[android-developers] Re: 'Avoiding memory leaks' article in android blog

2010-04-12 Thread NoraBora
On Apr 11, 11:23 am, Streets Of Boston flyingdutc...@gmail.com wrote: If all it OK, you should only have on activity (the new one) and the old one should be a candidate for garbage collection. But sBackground is (indirectly) still referencing the old activity and it will not be garbage

[android-developers] 'Avoiding memory leaks' article in android blog

2010-04-10 Thread NoraBora
I just read the article 'Avoiding memory leaks' in android blog written by Romain Guy. http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html According to the article, the below code has memory leak when rotating because the static drawable has a reference to Activity.

[android-developers] Re: Scrollbar Thumb Color

2010-03-04 Thread NoraBora
, NoraBora noranb...@gmail.com wrote: AFAIK, you cannot change the scroll bar colors. On Feb 25, 3:20 am, sriram srimc...@gmail.com wrote: Hi All, Can the application customize the scroll bar colors like the thumb color/image or the background color image. For example I am using

[android-developers] Re: Scrollbar Thumb Color

2010-03-01 Thread NoraBora
AFAIK, you cannot change the scroll bar colors. On Feb 25, 3:20 am, sriram srimc...@gmail.com wrote: Hi All, Can the application customize the scroll bar colors like the thumb color/image or the background color image. For example I am using a ListView on a device. Now the scrollbar seems

[android-developers] Re: How to use setBounds in android.

2010-03-01 Thread NoraBora
Button class does not have setBounds(). setBounds() is for Drawable. http://developer.android.com/reference/android/graphics/drawable/Drawable.html#setBounds%28int,%20int,%20int,%20int%29 What are you trying to achieve with setBounds? On Feb 24, 10:39 pm, rajesh chandrasekaran

[android-developers] Re: question regarding pv player

2010-02-21 Thread NoraBora
No. MediaPlayer.java uses PV Player internally. On Feb 20, 2:32 am, zeeshan genx...@gmail.com wrote: Hi Dear, is PV player API available at Android application level? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-02-21 Thread NoraBora
Are you using this code? AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); For ExpandableListView, you have to use ExpandableListContextMenuInfo. On Feb 20, 9:06 am, TreKing treking...@gmail.com wrote: Folks, I have an ExpandableListView with a registered context

[android-developers] Re: Deprecated Absolute layout ?

2010-02-18 Thread NoraBora
AFAIK, AbsoluteLayout does not support variable screen size like WVGA. On Feb 16, 6:59 am, Mina Samyhttp://android-pro.blogspot.com; m.s.ra...@gmail.com wrote: Hi all the absolute layout class is deprecated but still can write it in code and it works. will there be any problems if I use

[android-developers] Re: rotate progress bar

2010-02-18 Thread NoraBora
To use vertical progressbar, you have to make your own widget extending View, not ProgressBar. the source of ProgressBar widget may help. On Feb 16, 6:24 am, Jonathan jonathanmschm...@gmail.com wrote: HI, I am extending the normal android.widget.ProgressBar. I want to make it vertical. This is

[android-developers] Re: Simple Cursor Adapter - Listview Example

2010-02-18 Thread NoraBora
See ApiDemos in SDK On Feb 16, 9:33 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, Any simple cursor adapter with listview example ? -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to change color of button borders

2010-02-10 Thread NoraBora
You can make your own button background. android:background=@drawable/your_resource On Feb 10, 12:03 am, umesh chalwetkar umeshk...@gmail.com wrote: Hi, I am beginner to android, I am trying to change the color of the borders of button using xml. Do you have any solution? Thanks, Umesh --

[android-developers] Re: How can I align an ImageView to the right of the Parent?

2010-02-10 Thread NoraBora
It seems to me in the 2nd ImageView android:layout_toRightOf=@id/text and android:layout_alignParentRight=true conflict each other. try removing android:layout_toRightOf=@id/text On Feb 10, 11:28 pm, n179911 n179...@gmail.com wrote: Thanks. But I want android framework to align

[android-developers] How can I scroll ListView by pixel?

2010-02-07 Thread NoraBora
I have a ListView which has many TextViews. Each TextView has different texts. They are usually 2 or more pages. How can I scroll this ListView by pixel? At first I thought scrollBy works but then it doesn't show the next item. Later I implemented with a few of dispatchTouchEvent(). but then

[android-developers] Re: Layout Highlight

2010-02-06 Thread NoraBora
Did you send me an email? I didn't get any. Why don't you post the layout here? On Feb 6, 1:40 pm, haric zhu haric@gmail.com wrote: Have you got my layout file, and if you have any other problem about this issue, please email me:) 2010/2/6 NoraBora noranb...@gmail.com

[android-developers] Re: 'SimpleCursorAdapter' symbol not found and related errors in notepad sample application.

2010-02-05 Thread NoraBora
Remove the first line. import com.tutorials.R; or in Eclipse Ctrl+Shift+o, which is a short-cut for auto-import. On Feb 4, 10:23 am, Swiftguy vikram@gmail.com wrote: Hello All, Im new to Android. Trying to run the 'notepad' application on my local system (building using ANT) Getting

[android-developers] Re: Using StaticLayout with a canvas to draw text.

2010-02-05 Thread NoraBora
Maybe you can try canvas.translate() before draw. On Feb 4, 2:05 pm, julz jmuens...@gmail.com wrote: Hi, I have figured out the static layout this far, but I have no idea how to make it display my text anywhere else but in the top left corner. StaticLayout layout = new StaticLayout(text,

[android-developers] Re: Draw clock like minute hand

2010-02-05 Thread NoraBora
There is a AnalogClock widget. you can find the source useful. On Feb 5, 12:37 am, Sonic nitroussi...@googlemail.com wrote: Hi all. Just a quick question, how would i go about implementing a clock like hand that rotates around a centre point to different positions depending on a value.

[android-developers] Re: Layout Highlight

2010-02-05 Thread NoraBora
In 'list_selector_background' you can set your default background image with no state and set highlight image with state_pressed or state_focused. http://developer.android.com/reference/android/widget/ImageButton.html On Feb 5, 8:40 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank U

[android-developers] Re: how to use style

2010-02-02 Thread NoraBora
On 29 jan, 05:09, NoraBora noranb...@gmail.com wrote: Have you looked at ApiDemos? It has lots of useful code examples. On Jan 26, 7:07 am, saad bouchehboun bsaad1...@gmail.com wrote: hy , I need to use list selector , xml syntax , to custum my listview , can you help me find

[android-developers] Re: docs for shape xml syntax

2010-02-02 Thread NoraBora
a little info here. http://developer.android.com/intl/fr/reference/android/graphics/drawable/ShapeDrawable.html On Jan 30, 1:22 am, jotobjects jotobje...@gmail.com wrote: I did find a handful of examples in samples/ApiDemos/res/drawable. The xml files in that directory are all examples of

[android-developers] Re: Problem with expandable list view

2010-02-02 Thread NoraBora
I had a cannot-click-item problem with ListView. In my case the android:inputType in TextView was the problem. You should try removing attributes in text2. Maybe start with 'android:numeric=integer'? On Jan 30, 4:33 am, tikky tiku...@gmail.com wrote: I have an expandable list view, where the

[android-developers] Re: code problem

2010-01-28 Thread NoraBora
If you want to show a splash screen. http://www.anddev.org/simple_splash_screen_-_alternative-t815.html You can get more info if you search with splash screen in this group. On Jan 25, 11:51 pm, ho(AO4) kahoma...@gmail.com wrote: hi I want to ask   how can i solve it if i create  

[android-developers] Re: how to use style

2010-01-28 Thread NoraBora
Have you looked at ApiDemos? It has lots of useful code examples. On Jan 26, 7:07 am, saad bouchehboun bsaad1...@gmail.com wrote: hy , I need to use list selector , xml syntax , to custum my listview , can you help me find his full documentation . -- You received this message because you

[android-developers] Re: ViewAnimator?

2010-01-27 Thread NoraBora
You can see the examples of ViewFlipper or ViewSwitcher in ApiDemos. On Jan 24, 5:46 am, Duey Oxburger cg-art...@hotmail.com wrote: Lads, When my game fires up I'm trying to fade from my company logo to my splash page... basically fade from one image to the other.  I'm trying to use

[android-developers] Re: Orientation change crash in tab activity with list activity.

2010-01-25 Thread NoraBora
Using ListActivity ExpandableListActivity at the same in one tab activity. is just an example of crash in tabs. The crash still happens when you use ListView and ExpandableListView as the contents of the tabs, not activities. Another example here. (I modified tabs1.xml from ApiDemos.)

[android-developers] Orientation change crash in tab activity with list activity.

2010-01-21 Thread NoraBora
When views with different type have same id and screen orientation changes, either java.lang.ClassCastException: android.view.AbsSavedState$1 or java.lang.IllegalArgumentException: Wrong state class -- expecting View State will occur. (depends on the view's order) Because

[android-developers] Re: horizentally center aligned

2010-01-18 Thread NoraBora
I guess this is because of the LinearLayout's android:layout_width=fill_parent. If width is fill_parent, it can't be horizontally centered. You can see that if you give background color to the LinearLayout. Try android:layout_width=wrap_content. Or change LinearLayout's

[android-developers] Re: ImageView in ListActivity

2010-01-12 Thread NoraBora
Shouldn't the orientation be vertical? On Jan 12, 4:01 am, Brion Emde brione2...@gmail.com wrote: You've got the ListView height set to fill_parent, which will fill the parent. I think you've got to add layout_weight=1 on your ImageView, so it will inform the layout that it wants space too.

[android-developers] Re: How To show Progress Bar in Tab Activity

2010-01-07 Thread NoraBora
Try TabHost.TabSpec.setIndicator(View view) and access the indicator view. On Jan 6, 2:29 pm, RamaMohan rama.mohan...@gmail.com wrote: Hi, I am having a tab Activity with 5 tabs with intents.the classes are used to load data from internet source.I need to show display progress bar while

[android-developers] Re: Nested TabWidget ?

2010-01-06 Thread NoraBora
Method 1. tab content can be an activity. so you can have another tabwidget (@android:id/tabs) in that activity. Method 2. You don't have to use TabActivity to use tabs. All TabActivity does is to match tab widget to predefined ids such as tabs, tabcontents. Without using TabActivity, you

[android-developers] Re: Typo in android developer resource site. 2

2009-12-19 Thread NoraBora
OK. I posted in http://code.google.com/p/android/issues/detail?id=5536 On Dec 18, 11:29 pm, Mark Murphy mmur...@commonsware.com wrote: NoraBorawrote: I found another typo in android developer resource site. http://developer.android.com/resources/faq/commontasks.html Selecting,

[android-developers] Re: ExpandableListView change background for child items

2009-12-19 Thread NoraBora
See the default android music player. http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/ArtistAlbumBrowserActivity.java SimpleCursorTreeAdapter constructor has group layout and child layout. for example, group layout is here

[android-developers] Typo in android developer resource site.

2009-12-18 Thread NoraBora
I found a typo in android developer resource site. http://developer.android.com/resources/faq/commontasks.html Returning a Result from a Screen // Listen for results. protected void onActivityResult(int requestCode, int resultCode, Intent data){ // See which child activity is calling us

[android-developers] Typo in android developer resource site. 2

2009-12-18 Thread NoraBora
I found another typo in android developer resource site. http://developer.android.com/resources/faq/commontasks.html Selecting, Highlighting, or Styling Portions of Text stringid=@+id/styled_welcome_messageWe are biso/i/b glad to see you./string should be string

[android-developers] set chlidDivider in ExpandableListView

2009-12-15 Thread NoraBora
This is my ExpandableListView ExpandableListView android:id=@+android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:listSelector=@android:color/transparent android:groupIndicator=@null android:dividerHeight=2px

[android-developers] Re: GK: How to generate android.jar using open source platform.

2009-12-01 Thread NoraBora
After you build the whole source, you can find mydroid/out/target/common/obj/JAVA_LIBRARIES/ android_stubs_current_intermediates/javalib.jar it is same as android.jar. just rename and use it. or just 'make sdk'. On Dec 1, 6:22 pm, Jack Ganesh ganesh...@gmail.com wrote: Hi All, Can any one

[android-developers] Re: Specifying SeekBar colors in layout file ...

2009-12-01 Thread NoraBora
You don't have to make any subclasses. make your_progress_horizontal.xml under drawable directory and use it in your_layout.xml like this. SeekBar android:id=@+id/SeekBar01 android:layout_width=fill_parent android:layout_height=wrap_content

[android-developers] Re: Density independence for GradientDrawable

2009-11-30 Thread NoraBora
change android:innerRadius to 150px. when you use dp, android will automatically resize from 160dpi to target dpi. On Nov 30, 7:12 am, mgpc mcumm...@gmail.com wrote: Hi, I'm trying to work with the (wonderfully undocumented) android gradient drawables in a way that's independent of screen

[android-developers] Re: Specifying SeekBar colors in layout file ...

2009-11-30 Thread NoraBora
I wanted to change not only color but the images of bar thumb. and I found something strange... please see this link. http://groups.google.com/group/android-developers/browse_thread/thread/24db6bc2b790eb96/2b4651ec6ed925f0 I posted 2 weeks ago but it seems very few are interested in

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread NoraBora
I agree that Direct access to member variable is very bad. but how about protected? If all the variables are protected, people can extend and make their widget much more easily. For example I wanted to change the image alignment of RadioButton, so I tried to make MyRadioButton extends

[android-developers] Re: scope of member variables in ViewGroup , AdapterView, AbsSpinner etc..

2009-11-30 Thread NoraBora
break on a future version of the platform where the framework doesn't have an opportunity to update its internal state appropriately.) On Mon, Nov 30, 2009 at 8:39 PM, NoraBora noranb...@gmail.com wrote: I agree that Direct access to member variable is very bad. but how about protected

[android-developers] Re: ImageButton handling of transparent src pngs

2009-11-29 Thread NoraBora
try android:background=@null On Nov 28, 4:12 pm, Mark Rosenberg markrosenberg01460...@gmail.com wrote: ImageButton doesn't honor the transparency of my android:src png. My src image is a rounded rectangle, with the remaining portion of the bounding rectangle set to be transparent. When the

[android-developers] layout_gravity=center_horizontal affects below widgets?

2009-11-22 Thread NoraBora
I wrote main.xml like below. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Button android:text=@+id/Button01 android:id=@+id/Button01

[android-developers] Re: pressed image not showing !

2009-11-19 Thread NoraBora
I had a same problem. I think the order is somewhat important.(I don't understand why the order matters, though. maybe a bug?) Have a look at the default button and change the order like this.

[android-developers] Re: Autohide Scrollbar in ListView

2009-11-18 Thread NoraBora
in ListView since that is not the standard behavior for it). On Mon, Nov 16, 2009 at 6:43 PM, NoraBora noranb...@gmail.com wrote: How can I autohide scrollbar in ListView? I thought there would be an autohide attribute for ListView but there isn't. What I want to do is scrollbar

[android-developers] SeekBar bug or intended?

2009-11-16 Thread NoraBora
I made a SeekBar like below. SeekBar android:id=@+id/SeekBar011 android:layout_width=200px android:layout_height=80px android:progressDrawable=@drawable/ progress_horizontal2 android:thumb=@drawable/seek_thumb2 / All images in

[android-developers] Autohide Scrollbar in ListView

2009-11-16 Thread NoraBora
How can I autohide scrollbar in ListView? I thought there would be an autohide attribute for ListView but there isn't. What I want to do is scrollbar is hidden at first when I touch the listview, scrollbar appears 2~3 seconds after the touch off, scrollbar disappears again. What is the