Re: [android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-09 Thread Jenus Dong
It is insteresting, i am waiting...
在 2012-1-9 下午9:28,Michael nicholls...@gmail.com写道:

 This looks very interesting. I'm in.

 On Jan 5, 4:50 pm, scp89 jayvanbui...@gmail.com wrote:
  I've recently finished writing the first full-length, android-specific
  book on Android Marketing. It covers tips, tricks, strategies,
  competitive analysis, and so much more. Everything I've learned in 2
  years selling android apps, I've put into this book. It is available
  via e-book OR softcover:
 
  E-book:
 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
 
  Softcover:
 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
 
  GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
  reply to this thread, and 1 week from today I will randomly select 3
  members and PM you a link to your free download of the 130 page book.

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

-- 
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] android:layout_above does not work while android:layout_below does

2011-07-14 Thread Jenus Dong
fill_parent replace match_parent,try it. targetsdkversion is 3?
在 2011-7-14 下午2:33,Shri shri.bo...@gmail.com写道:
 I see a red rectangle above a blue rectangle with this layout using
 layout_below on the lower blue rectangle.

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=match_parent
 android:layout_height=match_parent 
 View android:id=@+id/id_red_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:background=# /
 View android:id=@+id/id_blue_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:layout_below=@+id/id_red_view
 android:background=#ffff /
 /RelativeLayout

 However, with this layout using layout_above on the upper red
 rectangle, I see just the blue rectangle. HierarchyViewer shows that
 the red rectangle *is* above the blue rectangle, but its getHeight()
 is 0.

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=match_parent
 android:layout_height=match_parent 
 View android:id=@+id/id_red_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:layout_above=@+id/id_blue_view
 android:background=# /
 View android:id=@+id/id_blue_view
 android:layout_width=200dip
 android:layout_height=100dip
 android:background=#ffff /
 /RelativeLayout

 Setting android:minHeight on the red rectangle does not fix the
 problem. I tried swapping the order of the views to avoid a forward
 reference, but that does not help either. Any idea why this is
 happening? Is layout_above just broken?

 Thanks,
 Shri

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

-- 
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] displaying mySQL data through JSON in a selectable list

2011-05-30 Thread Jenus Dong
use json parser lib

layout property

在 2011 5 30 20:08,B Lyon bradfl...@gmail.com写道:
 What exactly do you mean by display as selectable items?

 On Fri, May 27, 2011 at 5:05 AM, ram_droid
 richmorgan1...@googlemail.com wrote:
 Hi,

 I am in the process of building an app that runs on a client device
 collecting various bits of data and then posting it to a remote mySQL
 database via php. This part is no problem and works successfully.  The
 remote DB is host to a server process that performs various matching
 exercises on the data based on various conditions and returns a
 variable-sized data list back to client phones which it is intended to
 display in a selectable list (so a phone user can select to view and
 act upon the information).

 I have successfully retrieved the records from the mySQL DB and
 displayed them as static JSON to String text elements on a phone. BUT
 I have been spending days now trying to figure out how to get the JSON
 elements (or String elements) to display as selectable items. Can it
 be so difficult?

 Any help  really appreciated

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

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

-- 
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 length limit? How strange!

2011-02-16 Thread Jenus Dong
anybody?
Later I did some small testing in G3, I found that:
If there is a TextView in the activtiy layout, it can show more than 4096
characters, but when it owned by the item of listview, it just display
invisible.
If there is a TextView with wrap_content with property owned by the item of
listview, it will be cutted one line.


On Tue, Feb 15, 2011 at 2:17 PM, Jenus Dong jenus.ne...@gmail.com wrote:

 Hi, everyone.
 I having a ListView,  which has three TextView components in every item.
 One TextView possiblily display too long text, for example 5000 characters
 in Ascii code. The testing result is:
 G7 ,2.2 , it is ok. But when it running in G3, it just display space, no at
 all one character. So I just try and trial, when
 words.setText(ss.subSequence(0, 3653));
 it display all.
 when
 words.setText(ss.subSequence(0, 3654));
 it display none.

 The listview item layout is like:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
 xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical 

 RelativeLayout
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=vertical
 android:background=@drawable/friendlist_friend_selector 

 TextView
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:id=@+id/chat_item_words
 android:focusable=false
 android:text=a
 #android:maxLength=3653
 android:textColor=@android:color/black
 android:layout_marginLeft=10dp
 android:layout_marginRight=5dp
 android:layout_marginTop=10dp /

 TextView
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:id=@+id/chat_item_name
 android:text=ALIDA:
 android:focusable=false
 android:layout_marginLeft=10dp
 android:layout_marginTop=10dp /

 TextView
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:id=@+id/chat_item_date
 android:focusable=false
 android:text=08-18 22:03
 android:textSize=14sp
 android:textColor=@color/message_date
 android:layout_below=@+id/chat_item_words
 android:layout_alignParentRight=true
 android:layout_marginRight=10dp
 android:layout_marginTop=4dp /

 /RelativeLayout



 View
 android:layout_height=1dp
 android:layout_width=wrap_content
 android:background=@color/friendlist_friend_line /

 /LinearLayout

 So android:maxLength=3653,  it just works.
 I would appreciated if having some hints, thanks a lot.


-- 
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] TextView length limit? How strange!

2011-02-14 Thread Jenus Dong
Hi, everyone.
I having a ListView,  which has three TextView components in every item. One
TextView possiblily display too long text, for example 5000 characters in
Ascii code. The testing result is:
G7 ,2.2 , it is ok. But when it running in G3, it just display space, no at
all one character. So I just try and trial, when
words.setText(ss.subSequence(0, 3653));
it display all.
when
words.setText(ss.subSequence(0, 3654));
it display none.

The listview item layout is like:

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical 

RelativeLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
android:background=@drawable/friendlist_friend_selector 

TextView
android:layout_height=wrap_content
android:layout_width=wrap_content
android:id=@+id/chat_item_words
android:focusable=false
android:text=a
#android:maxLength=3653
android:textColor=@android:color/black
android:layout_marginLeft=10dp
android:layout_marginRight=5dp
android:layout_marginTop=10dp /

TextView
android:layout_height=wrap_content
android:layout_width=wrap_content
android:id=@+id/chat_item_name
android:text=ALIDA:
android:focusable=false
android:layout_marginLeft=10dp
android:layout_marginTop=10dp /

TextView
android:layout_height=wrap_content
android:layout_width=wrap_content
android:id=@+id/chat_item_date
android:focusable=false
android:text=08-18 22:03
android:textSize=14sp
android:textColor=@color/message_date
android:layout_below=@+id/chat_item_words
android:layout_alignParentRight=true
android:layout_marginRight=10dp
android:layout_marginTop=4dp /

/RelativeLayout



View
android:layout_height=1dp
android:layout_width=wrap_content
android:background=@color/friendlist_friend_line /

/LinearLayout

So android:maxLength=3653,  it just works.
I would appreciated if having some hints, thanks a lot.

-- 
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] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Hi, all
Such like messager app,  client/server framework, using tcp long connection
using heart beating packet.
Cause TCP connection, so when local network is diable or changed,
connection would be disconnected. But to the client, it may not be known
right now till
the next interaction with the SERVER.
Is there a general solution to reconnect automatically  when network is
available again?
For example,  a broadcast receiver would be triggerd when network connection
changed, and reconnect  when available?

Further more, how to check the network capacility, auto-connect the wanted
one cause good bandwith?

Regards

-- 
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] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Thanks, Miguel Morales.
When network disconnected,  the code will check right now. Yes, now start
the timer to connect periodically till it
connect successfully. It works.
After googling, Android has one manager, ConnectivityManager, can detect the
network information. So can check the available network
and reconnect it as soon as possible.
If Anybody who used it, can give me some more advise, I would appreciate
very much.

On Tue, Nov 16, 2010 at 10:01 AM, Miguel Morales therevolti...@gmail.comwrote:

 Something like this wouldn't be hard to implement in your application.
  Android offers several classes that will help you in probing for the
 state of the network connection, wifi connection, etc.

 If what you're doing is just regular socket TCP communication simply
 wrap your communication in an try/catch block and handle your
 reconnect logic there.  (For example, setup a timer that'll check if
 the connection has returned.)

 I'm not aware of any broadcast messages that are sent when the network
 connection changes, but I haven't looked.  That would be a good way of
 handling it as well.

 On Mon, Nov 15, 2010 at 5:56 PM, Jenus Dong jenus.ne...@gmail.com wrote:
  Hi, all
  Such like messager app,  client/server framework, using tcp long
 connection
  using heart beating packet.
  Cause TCP connection, so when local network is diable or changed,
  connection would be disconnected. But to the client, it may not be known
  right now till
  the next interaction with the SERVER.
  Is there a general solution to reconnect automatically  when network is
  available again?
  For example,  a broadcast receiver would be triggerd when network
 connection
  changed, and reconnect  when available?
 
  Further more, how to check the network capacility, auto-connect the
 wanted
  one cause good bandwith?
 
  Regards
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://developingthedream.blogspot.com/,
 http://www.youtube.com/user/revoltingx

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: Resize a view with animation

2010-08-18 Thread Jenus Dong
You could make some subitem in the GONE state, when zoom out, set it in the
VISIBLE state; zoom in, set it in the GONE state reversily.
Hope it would be helpful.

On Thu, Aug 19, 2010 at 9:39 AM, Sandy snarr...@gmail.com wrote:

 I would like to resize the height of a list item with a smooth
 animation i.e reduce the size from say height y to x. I've tried a
 tweened animation to scale down the view but it does not move the rest
 of the list items.  Any thoughts or suggestions on how to proceed
 would be greatly appreciated.

 Thanks,
 Sandy

 On Aug 4, 11:32 am, Sandy snarr...@gmail.com wrote:
  Is it possible to resize a view over the period of tweenanimation. I
  do not want theviewto be scaled but it should be resized giving the
  effect that it is zooming out and as it zooms out reveals more content
  of theview.  Is there an existing way I can use theanimation
  framework to achieve this effect?
 
  Thanks,
  Sandy

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: Problem running heavy application

2010-08-18 Thread Jenus Dong
  java.lang.RuntimeException: Unable to
  instantiate activity
  ComponentInfo{com.test.media/
com.test.media.Welcome}:
  java.lang.ClassNotFoundException:

sounds like manifest problem, you should confige all kinds of activity
there, or could arise this kind of error.


On Thu, Aug 19, 2010 at 9:51 AM, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:

 wow, an unbelieveable size for an apk.

 Is this a game?

 On Aug 18, 11:24 pm, chris2a christelle.truc...@gmail.com wrote:
  Hi everybody,
 
  I developed an heavy application (700 Mb !). With an apk installer
  application, i can install it on the Nexus One SD card (Froyo
  installLocation option). My application is heavy because of the
  videos it contains (located in /raw directory). The problem I have, is
  that it crashes when launched, with this error :
 
  08-18 11:22:16.179: ERROR/AndroidRuntime(1250): FATAL
 
 
 
EXCEPTION: main 08-18 11:22:16.179:
ERROR/AndroidRuntime(1250):
java.lang.RuntimeException: Unable to
instantiate activity
ComponentInfo{com.test.media/com.test.media.Welcome}:
java.lang.ClassNotFoundException:
com.test.media.Welcome in loader
dalvik.system.PathClassLoader[/mnt/asec/com.test.media-1/pkg.apk]
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
   
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
   
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.os.Looper.loop(Looper.java:123)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.app.ActivityThread.main(ActivityThread.java:4627)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
java.lang.reflect.Method.invokeNative(Native
Method) 08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
java.lang.reflect.Method.invoke(Method.java:521)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
   
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
dalvik.system.NativeStart.main(Native
Method) 08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): Caused by:
java.lang.ClassNotFoundException:
com.test.media.Welcome in loader
dalvik.system.PathClassLoader[/mnt/asec/com.test.media-1/pkg.apk]
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): at
   
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
08-18 11:22:16.179:
ERROR/AndroidRuntime(1250): ... 11
more
 
  I dont't understand the reason of this error, because when i try the
  same thing with a lighter application (250 Mb) it runs perfectly. Has
  anyone of you ever had this kind of problem ? Do you know if there is
  a size limit for applications to work ?
 
  Thank you for your help !

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: My application works over WiFi but fails over GPRS

2010-08-17 Thread Jenus Dong
From the log,  the reason is possible timeout. Cause WIFI used to connect
fastly, GPRS is limited with low speed. So you could try to use much longer
timer to connect the server.
Hope it did work.

On Wed, Aug 18, 2010 at 12:27 AM, alan a...@birtles.org.uk wrote:

 Which port are you tring to connect to? maybe your mobile provider is
 blocking that port.

 On Aug 17, 10:02 am, Asif k asifk1...@gmail.com wrote:
  Hi all,
 
  I am developing a social Networking application and it works fine over
  WiFi but tried the same over GPRS it gives following Exception,
 
  08-17 13:55:05.406: WARN/System.err(4233):
  java.net.SocketTimeoutException: Socket is not connected
  08-17 13:55:05.406: WARN/System.err(4233): at
 
 org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
  Method)
  08-17 13:55:05.406: WARN/System.err(4233): at
 
 org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
  131)
  08-17 13:55:05.406: WARN/System.err(4233): at
  org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
  247)
  08-17 13:55:05.406: WARN/System.err(4233): at
  org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
  535)
  08-17 13:55:05.406: WARN/System.err(4233): at
  java.net.Socket.connect(Socket.java:1054)
  08-17 13:55:05.406: WARN/System.err(4233): at
 
 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
  117)
  08-17 13:55:05.413: WARN/System.err(4233): at
 
 com.vodafone360.photos.service.transport.http.HttpConnectionThread.postHTTPRequest(HttpConnectionThread.java:
  293)
 
  what could be the reason?
 
  Thanks,
  Asif

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: Failed to upload .apk on device

2010-08-17 Thread Jenus Dong
You should set the phone to debug allowed. Cause your apk is packaged with
debug signature. Try it.

On Tue, Aug 17, 2010 at 4:47 PM, Lukas Adamec luk.ada...@gmail.com wrote:

 I've checked what you adviced me, but the problem hasn't been solved.

 Here is log from DDMS:
 [2010-08-17 10:29:50 - ddms]transfer error: Permission denied
 [2010-08-17 10:29:50 - Device]Unable to open sync connection! reason:
 Unable to upload file: Permission denied

 Device runs on Android 1.5, so I've set minSdkVersion=3 in manifest
 and target=android-3 in default.properties.
 When I copy .apk to SD card, application runs normally. But in Eclipse
 not. I need debugging, so I need run it from Eclipse.
 I don't know, what is wrong.


 On 16 srp, 15:49, RichardC richard.crit...@googlemail.com wrote:
  I can't seen anything in your manifest that might be a problem.
 
  Things to try/check:
  Have you set the flag  - settings  Application  Unknown sources ?
  Try setting targetSdkVersion to 4 in your manifest
 
  On Aug 16, 5:27 am, Lukas Adamec luk.ada...@gmail.com wrote:
 
   AndroidManifest.xml:
 
   ?xml version=1.0 encoding=utf-8 ?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=cz.xadamec1.apps.bitmap
  android:versionCode=1 android:versionName=1.0
  application android:icon=@drawable/icon android:label=@string/
   app_name android:debuggable=true
 activity android:name=.BitmapDrawing android:label=@string/
   app_name
intent-filter
   action android:name=android.intent.action.MAIN /
   category android:name=android.intent.category.LAUNCHER /
 
/intent-filter
 /activity
  /application
  uses-sdk android:minSdkVersion=3 /
 /manifest
 
   On 15 srp, 21:13, RichardC richard.crit...@googlemail.com wrote:
 
Can we see your manifest please?
 
On Aug 15, 7:43 pm, LukasAdamecluk.ada...@gmail.com wrote:
 
 If somebody dealt with this kind of problem, could you give me some
 advice. I would really appreciate it.
 Thanks
 
 On 12 srp, 14:47, LukasAdamecluk.ada...@gmail.com wrote:
 
  Hi,
  I have problem with uploading my .apk file on device Highscreen
 Zeus.
  In emulator everything works fine, but when I can upload
 application
  on the device, I always get following error:
 
  [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload
  BitmapDrawing.apk on device 'ZUSM1M10A02691'
  [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable
 to
  upload file: Permission denied
  [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled!
 
  Could somebody advise me, how to solve this problem?
  Thanks a lot.
 
  Lukas

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: How to unload image from memory?

2010-08-10 Thread Jenus Dong
bluedogCould you write some code sippet to show your mean,  how does judge
the condition of OutofMemoey,
 by platform, or by ourselves?

2010/8/8 bluedog xuehui...@gmail.com

 use Bitmap.recycle() release native memory
 use SoftReference save all images , will free these memory before out
 of memory

 On 8月7日, 下午11时12分, Alex Xin xinxi...@gmail.com wrote:
  Hi,
 
  Are there any ways that I can unload unused images from memory? For
 example
  I want to unload background pictures in order to save memory when my
  activity is going to background?
 
  I want to this because my app will force close on Nexus One, from the
 logcat
  I found it was caused due to out of memory.
 
  Thanks
 
  Alex

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] How to remove an activity from the navigation stack (without finishing)

2010-08-10 Thread Jenus Dong
Just override OnKeyup of back key up event, you could mimic to start your
wanted activity, try it!
 Streets Of Boston show us a reasonable deal with the condition :).



On Wed, Aug 11, 2010 at 8:16 AM, TreKing treking...@gmail.com wrote:

 On Tue, Aug 10, 2010 at 4:48 PM, Matt Quigley 
 matthew.quig...@gmail.comwrote:

 The problem with using finish() is that I don't want the activity removed
 from memory.


 I'm utterly confused as to why you would need an Activity removed from the
 stack but remaining in memory ...


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] How to handle OutofMemoryError in a service?

2010-08-09 Thread Jenus Dong
Service is bound to acrtivity, this kind of service you can control. So if
service has encounted an OutofMemoryError, the OS could restart your
activity, you can restart your service in the activity, eg, OnCreate,
OnRestart.

On Tue, Aug 10, 2010 at 7:34 AM, doug doug_a...@yahoo.com wrote:

 Hello,

 If my service encounters an OutofMemoryError when creating new
 objects, what can I do to tell Android to restart my service later?  I
 thought about Alarm but then I can't create a pending intent in the
 OutofMemoryError situation...

 Thanks,
 doug

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] Integrating orkut in android application

2010-08-08 Thread Jenus Dong
Project like facebook or twitter would be found in code.google.com, you
could find some hint from that place. Try it, wish it could be helpful to
you.

On Sat, Aug 7, 2010 at 1:29 PM, Amit amitmishr...@gmail.com wrote:

 Hi all,

 I am developing an application in which i m planning to provide a
 feature of sharing contents on social networkign sites.

 like face book and twitter, ow can we integrate orkut in our android
 application. Do we have any sdk or apis for the same.

 Thanks  Best Regards
 Amit

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] unable to playback dumped h264 stream

2010-08-08 Thread Jenus Dong
It is a suggestion to give a answer from the other google group, that is
'ffplay'.  From your description, I dont get it is about to android platform
problem. Do you try the code different platform?

On Sat, Aug 7, 2010 at 5:14 PM, paul linto linto.andr...@gmail.com wrote:

 Hi All,

 Can you please help me on some doubts regarding h264 encoder header.

 I am trying to dump h264 encoded bitstream to a file(video recording
 usecase). I had added the code for the file dump in the OMX FillBufferDone
 () callback.
 [Fillbufferdoneprocessing() function in pvmf_omx_enc_node.cpp]
  In the dump, what I observed is that the start code is not present and I
 think the SPS and PPS sequences are getting dumped. I am unable to playback
 the dumped stream. I am using 'ffplay' player.

 Do i need to dump the header info seperately..?or else what could be the
 problem ..?

 Regards,
 Linto

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: Failure loading drawables on Cupcake/1.5 when building with Froyo/2.2 SDK

2010-08-02 Thread Jenus Dong
Just said Android 2.2 set the resouce of different density resouce directory
tailed with v4 defaultly, so you should assure the resource be exsiting in
the drawable when runing on 1.5.

On Sun, Aug 1, 2010 at 3:45 AM, machambi alexander.j...@gmail.com wrote:

 I have the same problem , Application compiled using 2.2 fails to
 startup on 1.5. If I change the application settings to compile using
 2.1 api, the same app loads ok on 1.5.


 Have you got any resolution to this problem?

 On Jul 19, 6:08 pm, Trygve trygv...@gmail.com wrote:
  I have ported the keyboard from Android 2.2 to 1.5, because I want to
  use it as a base for a keyboard. When I compile the keyboard with SDK
  version 2.2 and run the keyboard in an emulator running 1.5, I get
  this error:
 
  W/ResourceType(  715): Failure getting entry for 0x7f02001f (t=1 e=31)
  in package 0: 0xffb5
 
  Resource 0x7f02001f is a standard 9-patch png drawable located in res/
  drawable-hdpi and res/drawable-mdpi. It is loaded from a xml file as a
  background. If I remove the code to load this drawable, the next
  drawable that tries to load fails.
 
  To locate the error, I have commented out all the methods from newer
  SDK's, and when I compile the keyboard with SDK version 1.5, 1.6 or
  2.1 it works fine on the emulator running 1.5. However when I compile
  it with SDK 2.2 (without changing any code), I get the error above.
 
  The keyboard works fine when I try it in an emulator running 1.6, 2.1
  and 2.2 when the keyboard is compiled with SDK 2.2. I have to compile
  with SDK 2.2 because I need the speech API.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Image Upload via HTTP POST/Google App Engine

2010-08-01 Thread Jenus Dong
http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java

You can check the key of Image, get the input stream, do it reverse
according to the sending progress.
Maybe I misunderstand your question, hehe.



On Mon, Aug 2, 2010 at 6:42 AM, KG kevinconca...@gmail.com wrote:

 Hi,

 I'm trying to integrate Google App Engine with an Android app I've
 built but am having trouble with image processing.  In the Android
 app, I convert the image into a byte array and send it to App Engine
 via HTTP POST to be put in a Blob.  However, even after searching
 through all the examples posted, I can't figure out how to retrieve
 the image and display it from the Blob (or if I even sent it to the
 Blob correctly).

 Help on either the Android or Google App Engine side would be greatly
 appreciated.  Here's the code I'm using for the Android side:

// Create a new HttpClient and Post Header
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(website_url);

ByteArrayOutputStream baos = new
 ByteArrayOutputStream();
query.compress(Bitmap.CompressFormat.PNG, 100, baos); //bm
 is the bitmap object
byte[] b = baos.toByteArray();

try {
// Add your data
ListNameValuePair nameValuePairs = new
 ArrayListNameValuePair(2);
nameValuePairs.add(new BasicNameValuePair(description,
 testtesttest));
nameValuePairs.add(new BasicNameValuePair(image, new
 String(b)));
httppost.setEntity(new
 UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);

} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}

 Thank you.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: How to set the scroll position of a ListView.

2010-08-01 Thread Jenus Dong
yes!
myListView.scrollTo(0, PositionY); Just this kind of api is used to every
page without scroll, for example, you can see another page using the next
page button, when disabling scolling action.

On Sun, Aug 1, 2010 at 9:19 PM, greg sep...@eduneer.com wrote:

 I use myListView.setSelection(anyPosition) to scroll the list so that
 anyPosition is at the top of the list (e.g., anyPosition set to 410
 results in the display of items 410 through 416 of 2255 items).  That
 is the behavior I want so I've never experimented with scrollTo,
 scrollBy, or setSelected.

 On Jul 30, 9:07 am, Rodrigo Otávio rodrigo.otavi...@gmail.com wrote:
  Hi,
  I have a listview displaying my data.Ok.
  I want to set the scroll position in a position of my choice, but I
  just cant do it.
   I used :
 
   myListView.setSelection( anyPosition );
   myListView.setSelected(true);
 
  and has not worked. I also tried :
 
  myListView.scrollTo(0, PositionY);
  and
  myListView.scroolBy(0, PositionY);
 
  and there’s a strange behavior, this two methods doesn’t put the
  scrool in the “PositionY”, it made the “PositionY” be the first
  position in the list, cutting everything that exist before.
 
  Any help would be much appreciated.
  Thanks.
 
  Rodrigo.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: Multiple Back Button clicks needed to exit application

2010-07-30 Thread Jenus Dong
yeah,the welcome activity has the reference of the application activity, you
can call activity.finish() of the application, and there you can overide the
finish function of the application, make destory the servicebind.
Hope it could be helpful.

On Fri, Jul 30, 2010 at 3:33 PM, StillALearner k.mad...@gmail.com wrote:

 Used finish(); to end an activity 


 On Jul 30, 10:32 am, Priyank priyankvma...@gmail.com wrote:
  Hi,
  In my current application design, I have an activity class
  application.java (which starts on launching the application), and it
  does not have a layout(UI screen). I call another class called
  servicebind.java from the onCreate method of my 1st class. here I bind
  to the local server (bindServer()). i call back the application class
  through an intent.
   Once I am back to my application class, I call my activity class
  called welcome.java which has a layout/UI.
 
  When I run this application, I am able to see the welcome screen. But
  the problem is, when I click on the back button, I get a black screen
  with just the title on top. I have to hit back button 3 times to exit
  the application.
 
  The reason I see from the logs is that, the 1st 2 activity classes
  (application.java and services.java) does not get destroyed unless I
  hit the back button. So the 1st time I hit back button, the welcome
  activity gets destroyed. the next back button destroys the servicebind
  class and final back destroys the application class.
  Is the reason because these classes dont have a UI to display in the
  onCreate method.
 
  I do not want to change my design where I bind the service in the
  servicebind class and call the welcome activity in the application
  class.
 
  can anyone please help me find a way to avoid pressing the back button
  multiple times to exit.
  Please let me know if you dont understand my question.
 
  Thanks,
  Priyank

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Froyo -- How to detect that my application has been killed?

2010-07-30 Thread Jenus Dong
Do you mean how to kill the service when you want to kill the process, that
is , the host of service?

On Fri, Jul 30, 2010 at 11:15 AM, Dianne Hackborn hack...@android.comwrote:

 Applications can't kill services with this.  They can only kill background
 processes, which the OOM killer is free to kill at any time anyway.


 On Thu, Jul 29, 2010 at 6:37 PM, tomei.ninge...@gmail.com 
 tomei.ninge...@gmail.com wrote:

 On Froyo, we found that some new Task Manager apps are now using the
 ActivityManager.killBackgroundProcesses() to kill apps. When this
 happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired.

 How can I find out that my application has been killed?

 I tried to start a service, and I do see this message printed in
 logcat:

 W/ActivityManager( 2426): Scheduling restart of crashed service
 com.example.android.apis/.app.RemoteService in 2ms

 However, the service is never restarted as advertised, if the app is
 killed using the killBackgroundProcesses API.

 (If I go into adb shell and kill the service process, the service will
 indeed be restarted ...)

 This looks like a bug anyway, because the notification created by the
 app is no longer removed like in eclair (the StatusBarService, and a
 bunch of other system services, depend on the
 Intent.ACTION_PACKAGE_RESTARTED broadcast).

 Thanks

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.


  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] how to return to root activity after the task is cleared?

2010-07-25 Thread Jenus Dong
At the Onpause of B when you click home, you can do something.

On Tue, Jul 13, 2010 at 5:41 PM, kevin0228ca kevin022...@gmail.com wrote:

 Hi everyone.
 I have a app with 2 activities, A B
 A has a button that launches a new intent for B.
 When at B I press home, then launch app again, B is resumed with
 onResume().
 But if after I press home, I use something like taskiller to clear
 tasks, then I launch app again, it still shows B, but onCreate() is
 called.
 What I want for the second situation is for the app to start A instead
 of B.
 How can that be done?
 Thanks.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] api levels device lookup chart?

2010-07-19 Thread Jenus Dong
http://en.wikipedia.org/wiki/List_of_Android_devices

Is it latest right?

On Tue, Jul 20, 2010 at 2:30 AM, andrew android andygoldm...@gmail.comwrote:

 Does anyone know of a site where I could find all android devices
 listed with their current api level ?
 Does such a chart or database exist?
 Please help!
 Thanks!

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] How can I get the sources for the 1.6 release

2010-07-18 Thread Jenus Dong
android-1.6_r1.5
Android 1.6 release 1.5
tag
 | commit | shortlog | log

where did you download the source of android?  If you find in
http://android.git.kernel.org, you should select the right file of
manifest.git.

Hope it will be helpful.

On Mon, Jul 19, 2010 at 6:48 AM, sojan P.R. soja...@gmail.com wrote:

 On Jul 18, 2010 10:16 AM, nation-x shawn.payme...@gmail.com wrote:

 I am still working on 1.6 version apps and need the source for 1.6
 rather than 2.2. Where or how can I get that... are there branches
 that I can clone from? Thanks in advance.

 Shawn

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: progressive video play over https

2010-07-16 Thread Jenus Dong
try use media player to play the https url, find out.

the manifest of media player should include the filter like,

data android:scheme=http /
data android:scheme=https /

or some permission problem, anybody have more experience  in this field?



On Fri, Jul 16, 2010 at 5:02 AM, Dave Sparks davidspa...@android.comwrote:

 The media player currently does not support https.

 On Jul 13, 7:18 pm, zhao zhaoyang...@gmail.com wrote:
  I am trying to stream video over https from Android browser. If the
  video url is http, everything works fine. But when I switch the url to
  https, no video can be played. I tried 2 methods to stream over http/
  https through Android browser.
 
  1. Use html5 Video tag on browser (Android 2.0+ device) and call
  video.play( ) from javascript.
  - With Https url. Browser launches media player and the player
  displays alert dialog saying “Can’t play video”. I captured the client
  TCP traffic and found no SSL handshake between client and server. It
  looks like the player pops up the alert on any https link.
  - With Http url. Browser launches media player and the player can
  stream the video successfully.
 
  2. Use direct link of html a tag on browser and click the link
  - With Https url. Browser downloads the video file without launching
  the player. The browser seems not try to load any https link in media
  player.
  - With Http url. Browser launches media player and the player can
  stream the video successfully.
 
  So the above tests make me think Android media player cannot play
  media from any https url. Is it the expected behavior? Can someone
  give me clues?
 
  Thanks for helping!
 
  Regards,
  Zhao

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] No measured width and height for inflated layout

2010-07-16 Thread Jenus Dong
override onSize(), computescroll() method, then call SetVisiblity().
Would you want to design self scrollView dialog?
Please give some code here,  it is possible to say something right.

On Fri, Jul 16, 2010 at 5:03 AM, Pepi jose.prietoga...@gmail.com wrote:

 Hello to all,

 I need to hide/show a Button whether a ScrollView needs to scroll or
 not. (The same behavior as the ScrollView's ScrollBar).

 I've done this working with the ScrollView's computeScroll() method,
 in order to compare it's height, with the child's one, then according
 to that condition hide/show the Button. But I'm facing a repaint issue
 since this is made once the layout has been set by
 Activity.setContentView().

 So now I'm trying to inflate the layout that contains this ScrollView,
 perform this height comparison before the Activity.setContentView()
 it's called.

 The problem is that the LayoutInflater inflates the layout without any
 measure (width = 0 and height = 0).

 This is how I'm inflating the layout:

 LayoutInflater inflater = getLayoutInflater();
 LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.main,
 null);

 Is there a way to retrieve the Activity's first ViewGroup in order to
 inflate my layout with a parent? I think the issue is related with
 this.

 Thanks a lot in advance,

 Pepi

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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