[android-developers] Re: AsyncTask blocking UI thread

2012-08-20 Thread warenix
Here's an example use of onProgressUpdate() which solves your problem.

http://www.codingforandroid.com/2011/06/basic-asynctask-with-progress-bar.html

On Monday, August 20, 2012 11:34:07 PM UTC+8, Wolfgang wrote:

 Hey guys,
  
 I am trying to add a ProgressDialog to show the progress of my AsyncTask. 
 However, the ProgressDialog is not being shown until after the async task 
 is complete. I have read that async task blocks the UI thread. How can I 
 get around this to show the ProgressDialog during the async task?
  
 Thanks,
  
 -W


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

[android-developers] Re: Textview Instead of ImageView

2011-11-25 Thread warenix
magznumber contorls what to show in your switch statement.
Make sure the value of it is 2 if you want to show text.
Use debugger or logcat to find out the values at runtime.

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

[android-developers] Re: Clickable ImageView

2011-08-16 Thread warenix
You have a typo misstake here:

team_background = (ImageView) findViewById(R.id.home_background);
...
ImageView
android:id=@+id/team_background
android:layout_width=fill_parent
android:layout_height=fill_parent/

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

[android-developers] 回覆:Re: 回覆:facebook

2011-05-30 Thread warenix
Hi Ali,

Quoted from https://github.com/facebook/facebook-android-sdk

Testing

Here are some tips to help test your application:

   - 
   
   You will need to have the Facebook application in your test environment. 
   The SDK includes a developer release of the Facebook application that can be 
   side-loaded for testing purposes. On an actual device, you can just download 
   the latest version of the app from the Android Market, but on the emulator 
   you will have to install it yourself:
   
   adb install FBAndroid.apk
   - 
   
   Use a signed build. You can sign with a debug key, but make sure that the 
   key you used to sign matches the *Key Hash* field in the Facebook 
   developer settings.
   - 
   
   Make sure to test both with and without the Facebook application. The SDK 
   will fall back to a Webview if the Facebook app is not installed.
   - 
   
   You can use this guide to developing on a 
devicehttp://developer.android.com/guide/developing/device.html
   .
   

User authentication  authorization are performed by Facebook SDK for 
android. If you have official app installed, the process will be seamless.
In you app, all you need is to provide the SDK your facebook APP_ID, no need 
to store the SECRET KEY.


The only trick I found is the key hash, please follow this web page on how 
to get the hash.
http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1

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

回覆:Re: [android-developers] 回覆:Re: 回覆:facebook

2011-05-30 Thread warenix
the hash key is very tricky as your eclipse debug keystore may be different 
to your release keystore.
so you will have two different hash keys, one for debug   the other for 
release.

my practice is to use a dummy facebook app id during debug.
and create a real facebook app id for the release.

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

[android-developers] 回覆:facebook

2011-05-29 Thread warenix
no, you don't need to put app secret.

authorization of your app will be done by official app installed.
a pop up browser window will be shown.

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

[android-developers] 回覆:facebook and twitter

2011-05-17 Thread warenix
you don't have to install twitter  facebook app but the java library  sdk 
for facebook  twitter.
you can check them:
twitter4j http://twitter4j.org/en/index.html, facebook 
sdkhttps://github.com/facebook/facebook-android-sdk/


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

回覆:Re: [android-developers] ??:facebook and twitter

2011-05-17 Thread warenix
Please refer to this web page on configuring eclipse
http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-%28Java%29

or simply google search eclipse external jar should give you enough 
information.

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

[android-developers] 回覆:Hello, Android troubles

2011-05-04 Thread warenix
did you compile your code in Eclipse or in command line console?

look like you didn't include the android sdk in your class path

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

[android-developers] Re: TweetDeck android app like column view

2010-09-01 Thread warenix
@jean-guy
you widget looks great! I will study your code.
Thanks for sharing!

On Aug 27, 1:31 am, jean-guy jean...@gmail.com wrote:
 Earlier in the month I wrote and open-sourced a simple widget that may
 fit your needs:

 http://code.google.com/p/deezapps-widgets/

 Each column could be a page in the paradigm I'm using.  Grab the
 source and customize as you see fit!

 On Aug 26, 8:11 am, warenix ware...@gmail.com wrote:







  I found an approach by extending the gallery widget.
  the look and feel is quite similar to what i want.

  On 8月21日, 下午11時34分, warenix ware...@gmail.com wrote:

   Hi! The add/remove columns UI of TweetDeck android app is very
   promising. But I have no idea how to make one like that.

   If I make it with HorizontalScrollView, and the children with
   layout_width set to fill_parent

   HorizontalScrollView
          LinearLayout android:id=@+id/column_group_view
                   android:layout_width=fill_parent
   android:layout_height=fill_parent
                   android:orientation=horizontal
                   include layout=@layout/column_view1
   android:layout_width=fill_parent
                           android:layout_height=fill_parent /
                   include layout=@layout/column_view2
   android:layout_width=fill_parent
                           android:layout_height=fill_parent /
           /LinearLayout
   /HorizontalScrollView

   I can't scroll horizontally and only see one view.

   If I set the layout_width with number like this: layout_width=320sp
   then the two columns sit next to each other and I can scroll
   horizontally.

   Do you have any idea how TweetDeck makes theirs?

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


[android-developers] Re: TweetDeck android app like column view

2010-08-26 Thread warenix
I found an approach by extending the gallery widget.
the look and feel is quite similar to what i want.

On 8月21日, 下午11時34分, warenix ware...@gmail.com wrote:
 Hi! The add/remove columns UI of TweetDeck android app is very
 promising. But I have no idea how to make one like that.

 If I make it with HorizontalScrollView, and the children with
 layout_width set to fill_parent

 HorizontalScrollView
        LinearLayout android:id=@+id/column_group_view
                 android:layout_width=fill_parent
 android:layout_height=fill_parent
                 android:orientation=horizontal
                 include layout=@layout/column_view1
 android:layout_width=fill_parent
                         android:layout_height=fill_parent /
                 include layout=@layout/column_view2
 android:layout_width=fill_parent
                         android:layout_height=fill_parent /
         /LinearLayout
 /HorizontalScrollView

 I can't scroll horizontally and only see one view.

 If I set the layout_width with number like this: layout_width=320sp
 then the two columns sit next to each other and I can scroll
 horizontally.

 Do you have any idea how TweetDeck makes theirs?

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


[android-developers] TweetDeck android app like column view

2010-08-21 Thread warenix
Hi! The add/remove columns UI of TweetDeck android app is very
promising. But I have no idea how to make one like that.

If I make it with HorizontalScrollView, and the children with
layout_width set to fill_parent

HorizontalScrollView
   LinearLayout android:id=@+id/column_group_view
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=horizontal
include layout=@layout/column_view1
android:layout_width=fill_parent
android:layout_height=fill_parent /
include layout=@layout/column_view2
android:layout_width=fill_parent
android:layout_height=fill_parent /
/LinearLayout
/HorizontalScrollView

I can't scroll horizontally and only see one view.

If I set the layout_width with number like this: layout_width=320sp
then the two columns sit next to each other and I can scroll
horizontally.

Do you have any idea how TweetDeck makes theirs?

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


[android-developers] can we light up the trackball led while the screen is still on

2010-05-27 Thread warenix
Hi developers,

With froyo and notification api, I can set the trackball led with
specified color. But the trackball only glows when I turn off the
screen.

I would like to let user to preview the notification color in app, so
I need the screen to be on.

I am finding solution for that, any idea? Or is my idea possible?

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