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().
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
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
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
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
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
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
, 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
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
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
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
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();
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
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.
, 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
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
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
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,
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
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
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
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
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
--
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
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
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
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
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,
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.
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
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
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
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
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
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
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
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.)
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
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
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.
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
59 matches
Mail list logo