[android-developers] Re: switch between activity issue

2011-01-18 Thread tstanly
ok, because I am test for utility,
A, B, C, D is mentioned before,
A is main program, B doing for voice test, C doing for backlight, D
doing for gsensor,
and my device will connect to wifi ap first, then doing this utility
test,
but now I can't figure out my shutdown issue is my application
problem or wifi problem or something else.

so I think the switching between activities many large time may be a
shutdown cause.

thanks


On 1月18日, 下午4時11分, Kevin Duffey andjar...@gmail.com wrote:
 I too am confused.. why do you have to jump through activities repeatedly
 like this? You need to give us a lot more info to make sense of what you are
 doing?







 On Mon, Jan 17, 2011 at 11:22 PM, Kumar Bibek coomar@gmail.com wrote:
  Why exactly are you trying to loop it repeatedly? And that too 1000 times?

  Anyway, what does the logcat say?

  Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com

  On Tue, Jan 18, 2011 at 12:22 PM, tstanly tsai.sta...@gmail.com wrote:

  sorry let me explan detailed,

  now I have four activities, called A, B, C and D,
  the calling sequence is,
  A-B-A-C-A-D-A-B-(loop repeatedly)
  you can think A is main program,
  after finishing B,C,D activity, it must return to A (using
  StartActivityForResult),
  this scenario will repeat for thousand times,
  however it will shutdown in halfway of running process,

  so is there exist problem in my scenario?
  when switching activities repeatedly, does there exist shutdown risk
  to do large repeat times?

  thanks for your patience
  On 1月18日, 下午2時40分, Kumar Bibek coomar@gmail.com wrote:
   I am confused. What are you trying to do?

   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

   On Tue, Jan 18, 2011 at 11:44 AM, stanly tsai.sta...@gmail.com wrote:
hi all,

I have a application,
main activity called A,
function 1 called B, function 2 called C, function 3 called D,
every function are activitys,
then A will use StartActivityForResult call B then return to A,
and used same method to call C and D,
A-B-A-C-A-D-A-B-A-C.and so on,
the loop will execute 1 times,
but system will shutdown when looping the process,

I just confused about *switch activitys*,
does my method have problems for looping it?
may switching activity so many times to cause shutdown issue?

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%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
  cr...@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%2Bunsubs
   cr...@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%2Bunsubs 
  cr...@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: switch between activity issue

2011-01-18 Thread tstanly
I/dalvikvm( 1161): threadid=3: reacting to signal 3
I/dalvikvm( 1161): Wrote stack traces to '/data/anr/traces.txt'
D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
D/wpa_supplicant( 1142): rssi-approx command
D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
D/wpa_supplicant( 1142): Link Speed command
D/wpa_supplicant( 1142): buf LinkSpeed 54
I/Watchdog_N( 1080): dumpKernelStacks
D/dalvikvm( 1080): GC_FOR_MALLOC freed 3608 objects / 185376 bytes in
79ms
I/dalvikvm-heap( 1080): Grow heap (frag case) to 8.403MB for 54484-
byte allocation
D/dalvikvm( 1080): GC_FOR_MALLOC freed 50 objects / 2568 bytes in 87ms
D/dalvikvm( 1080): GC_FOR_MALLOC freed 3 objects / 72 bytes in 86ms
I/dalvikvm-heap( 1080): Grow heap (frag case) to 8.504MB for 72636-
byte allocation
D/dalvikvm( 1080): GC_FOR_MALLOC freed 0 objects / 0 bytes in 87ms
D/dalvikvm( 1080): GC_FOR_MALLOC freed 3 objects / 72720 bytes in 87ms
I/dalvikvm-heap( 1080): Grow heap (frag case) to 8.609MB for 145256-
byte allocation
D/dalvikvm( 1080): GC_FOR_MALLOC freed 10 objects / 264 bytes in 76ms
D/dalvikvm( 1080): GC_FOR_MALLOC freed 8 objects / 199960 bytes in
76ms
D/dalvikvm( 1080): GC_FOR_MALLOC freed 32 objects / 148792 bytes in
77ms
I/Process ( 1080): Sending signal. PID: 1080 SIG: 9
W/Watchdog( 1080): *** WATCHDOG KILLING SYSTEM PROCESS: null
D/dhcpcd  ( 1290): renewing lease of 192.168.1.206
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
4.46 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
7.28 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
15.46 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
32.71 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
63.09 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.76 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.25 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.68 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
63.28 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.15 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.16 seconds
D/dhcpcd  ( 1290): sending DHCP_REQUEST with xid 0x4b10c570, next in
64.05 seconds
D/dalvikvm( 1543): GC_FOR_MALLOC freed 19689 objects / 519064 bytes in
57ms
===

On 1月18日, 下午4時56分, Kumar Bibek coomar@gmail.com wrote:
 Ok. What does your logcat say? OutOfMemory? StackOverFlow? That would give
 more hints

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com







 On Tue, Jan 18, 2011 at 2:20 PM, tstanly tsai.sta...@gmail.com wrote:
  ok, because I am test for utility,
  A, B, C, D is mentioned before,
  A is main program, B doing for voice test, C doing for backlight, D
  doing for gsensor,
  and my device will connect to wifi ap first, then doing this utility
  test,
  but now I can't figure out my shutdown issue is my application
  problem or wifi problem or something else.

  so I think the switching between activities many large time may be a
  shutdown cause.

  thanks

  On 1月18日, 下午4時11分, Kevin Duffey andjar...@gmail.com wrote:
   I too am confused.. why do you have to jump through activities repeatedly
   like this? You need to give us a lot more info to make sense of what you
  are
   doing?

   On Mon, Jan 17, 2011 at 11:22 PM, Kumar Bibek coomar@gmail.com
  wrote:
Why exactly are you trying to loop it repeatedly? And that too 1000
  times?

Anyway, what does the logcat say?

Kumar Bibek
   http://techdroid.kbeanie.com
   http://www.kbeanie.com

On Tue, Jan 18, 2011 at 12:22 PM, tstanly tsai.sta...@gmail.com
  wrote:

sorry let me explan detailed,

now I have four activities, called A, B, C and D,
the calling sequence is,
A-B-A-C-A-D-A-B-(loop repeatedly)
you can think A is main program,
after finishing B,C,D activity, it must return to A (using
StartActivityForResult),
this scenario will repeat for thousand times,
however it will shutdown in halfway of running process,

so is there exist problem in my scenario?
when switching activities repeatedly, does there exist shutdown risk
to do large repeat times?

thanks for your patience
On 1月18日, 下午2時40分, Kumar Bibek coomar@gmail.com wrote:
 I am confused. What are you trying to do?

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Tue, Jan 18, 2011 at 11:44 AM, stanly tsai.sta...@gmail.com
  wrote:
  hi all,

  I have a application,
  main activity called A,
  function 1 called B, function 2 called C, function 3 called D,
  every function are activitys,
  then A will use StartActivityForResult call B then return to A,
  and used same method to call C and D,
  A-B-A-C-A-D-A-B-A-C.and so

[android-developers] Re: switch between activity issue

2011-01-18 Thread tstanly
and from
/dev/log/system

logcat has many following message in the end

==
D/WifiService( 1080): ACTION_BATTERY_CHANGED pluggedType: 0
==

On 1月18日, 下午5時36分, tstanly tsai.sta...@gmail.com wrote:
 actually the logcat different every time, but there are some same
 part,
 now I doubt for two direction,
 one is switching activities, the other is wifi issue,
 following logcat is the end of entire logcat report,
 the D/TAG from my application,
 thanks for your time!
 ===
 I/global  ( 1607): Default buffer size used in BufferedWriter
 constructor. It would be better to be explicit if an 8k-char buffer is
 required.
 D/TAG     ( 1607):
 ---
 D/TAG     ( 1607): after run  write xml true  false
 D/TAG     ( 1607):
 ---
 D/TAG     ( 1607): (m_IsRuninTest==true) 
 (m_IsRuninTestTimeDue==false)
 D/TAG     ( 1607): 1
 D/TAG     ( 1607): 1.1 tis size1
 D/TAG     ( 1607): 1.111 G-Sensor IO false
 D/TAG     ( 1607): 1.112 0th  G-Sensor IO false
 D/TAG     ( 1607): 1.1 getIsForRUNINonceFlag=false index0  G-
 Sensor IO
 D/TAG     ( 1607): 1.1 getIsForRUNINonceFlag=false index0
 removed!!
 D/TAG     ( 1607): 1.2 size1
 D/MyListAdapter3( 1607): getItemIdByTestNmae:0 G-Sensor IO
 D/TAG     ( 1607): 1.3
 D/TAG     ( 1607): 1.4
 D/TAG     ( 1607): 2
 D/TAG     ( 1607): 2.5 xxx.droidfactorytest
 xxx.droidfactorytest.Accelerometer_SensorMonitor_IOTestOnly
 D/TAG     ( 1607): 3
 D/SAXParserTestConfig( 1607): activity start
 D/SAXParserTestConfig( 1607): activity end
 D/SAXParserTestConfig( 1607): onResume
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1005
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT_START!!
 D/SAXParserTestConfig( 1607): BroadcastReceiver onReceive
 ACTION_BATTERY_CHANGED!!
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1006
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT!!
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1006
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT!!
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1006
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT!!
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1006
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT!!
 D/SAXParserTestConfig( 1607): Handler: handleMessage entered!! msg:
 1006
 D/SAXParserTestConfig( 1607): EVENT_DELAYNEXTTASK_WAIT!!
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/dalvikvm( 1291): GC_EXPLICIT freed 1950 objects / 166000 bytes in
 50ms
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/dalvikvm( 1648): GC_EXPLICIT freed 4769 objects / 326992 bytes in
 60ms
 D/SntpClient( 1080): request time failed:
 java.net.SocketTimeoutException: Connection timed out
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd RSSI-APPROX
 D/wpa_supplicant( 1142): rssi-approx command
 D/wpa_supplicant( 1142): wpa_driver_tista_driver_cmd LINKSPEED
 D/wpa_supplicant( 1142): Link Speed command
 D/wpa_supplicant( 1142): buf LinkSpeed 54
 D/wpa_supplicant( 1142

[android-developers] Re: switch between activity issue

2011-01-17 Thread tstanly
sorry let me explan detailed,


now I have four activities, called A, B, C and D,
the calling sequence is,
A-B-A-C-A-D-A-B-(loop repeatedly)
you can think A is main program,
after finishing B,C,D activity, it must return to A (using
StartActivityForResult),
this scenario will repeat for thousand times,
however it will shutdown in halfway of running process,

so is there exist problem in my scenario?
when switching activities repeatedly, does there exist shutdown risk
to do large repeat times?


thanks for your patience
On 1月18日, 下午2時40分, Kumar Bibek coomar@gmail.com wrote:
 I am confused. What are you trying to do?

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com







 On Tue, Jan 18, 2011 at 11:44 AM, stanly tsai.sta...@gmail.com wrote:
  hi all,

  I have a application,
  main activity called A,
  function 1 called B, function 2 called C, function 3 called D,
  every function are activitys,
  then A will use StartActivityForResult call B then return to A,
  and used same method to call C and D,
  A-B-A-C-A-D-A-B-A-C.and so on,
  the loop will execute 1 times,
  but system will shutdown when looping the process,

  I just confused about *switch activitys*,
  does my method have problems for looping it?
  may switching activity so many times to cause shutdown issue?

  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%2Bunsubs 
  cr...@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: change permission to /data/data/package name/databases

2011-01-16 Thread tstanly
beacuse I want to change a database file in /data/data/package/
databases
I need permission for apps to copy .db file from a folder to
/data/data/Native app package/databases,

so I need to change permission,
is somebody have suggestion?

thanks

On 1月14日, 上午2時12分, TreKing treking...@gmail.com wrote:
 On Thu, Jan 13, 2011 at 2:53 AM, stanly tsai.sta...@gmail.com wrote:
  I want to change permission for /data/data/package/databases folder, is
  it possible to do this action in my application?

 Why do you want to do this?

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


[android-developers] long HOME KEY press in android 1.6

2010-04-30 Thread tstanly
hi all,

normally, when we press long key on HOME KEY,
there will show the recently used app list,
now if I want to let this long press behavior do nothing,
is it possiable?

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


[android-developers] query button on phone

2010-04-29 Thread tstanly
hi all,


I want to change the behavior of query button on phone,
so I find the keyevent:
http://developer.android.com/intl/zh-TW/reference/android/view/KeyEvent.html

but can't find the query key?
is possiable to change behavior of query button from application code?


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


[android-developers] can change the search/query key behavior?

2010-04-29 Thread tstanly
hi all,

I want to change the search/query key on phone by application code,
so I use the keyevent, the code is:
===
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_SEARCH) {
//do what you want
System.out.println(this is key SEARCH!);
}
return true;
}
===
but when I press the search button,
there are nothing to change and no message on the logcat,
so, is possiable to change search/query button by application code?

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


[android-developers] detect click on mapview

2010-03-05 Thread tstanly
hi all,

I have a mapview on my application,
and now I want to get the longtitude/latitude when user
click on mapview,
there are two ways to detect click on mapview,
that's onTouchEvent and dispatchTouchEvent,

however onTouchEvent will not be work,
and dispatchTouchEvent work but still have two problems,

one is when user click mapview, the dispatchTouchEvent will
be trigger two times, the second is if I have a imageButton on
mapview, then click the imageButton will also trigger
dispatchTouchEvent
instead of ImageButton.onClick event?

so can somebody give me suggestion?
thanks

public boolean dispatchTouchEvent(MotionEvent ev) {
// TODO Auto-generated method stub
//test
Projection p=mMapView01.getProjection();
GeoPoint g=p.fromPixels((int)ev.getX(), (int)ev.getY());
double d1=g.getLatitudeE6()/1E6;
double d2=g.getLongitudeE6()/1E6;
showDialog(lat:+d1+lon:+d2);


return super.dispatchTouchEvent(ev);
}

-- 
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] about dispatchTouchEvent issue

2010-03-02 Thread tstanly
hi  all,


I used dispatchTouchEvent on mapview,
the code is bellow:
===
public boolean dispatchTouchEvent(MotionEvent ev) {
// TODO Auto-generated method stub
//test
Projection p=mMapView01.getProjection();
GeoPoint g=p.fromPixels((int)ev.getX(), (int)ev.getY());
double d1=g.getLatitudeE6()/1E6;
double d2=g.getLongitudeE6()/1E6;
showDialog(lat:+d1+lon:+d2);  //a dialog output


return super.dispatchTouchEvent(ev);
}

in fact, when I touch the mapview,
then I want to show a dialog to output the longtitude
and latitude of the position I touch,
and there are two problems...

1) when I touch the mapview, it will show the dialog **twice**,
that is there are two dialog shows.

2) when I want to move the map(by drag), then the dispatchTouchEvent
will be trigger, so I need the program to know whether  *this touch*
need to
show dialog.

so why and to implement...
and I want to know if there are other methods to address
my requirement?

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


[android-developers] rtsp error (Youtube's rtsp stream)

2010-01-17 Thread tstanly
hi all,

I was tried for rtsp stream for a long time,
finally I could success to play the rtsp stream from mobile Youtube
website,
http://m.youtube.com/
my approach is to copy the stream link and paste it in my code,
then, there are sometimes success to work(play) on Android and
sometimes
will not.
I can't figure out why? is something wrong about Youtube server ?
because my code is just the same, and only change is the stream link
url.
I used VideoView widget and my Android platform is sdk 1.5 and under
x86-based,
so I really want to know why and how can I solved for this.

this is the logcat when I can't work for the video stream.
thanks!!!

===
W/PlayerDriver( 2116): Using generic video MIO
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
I/ServiceManager( 2112): service 'media.audio_flinger' died
W/MediaPlayer( 3344): MediaPlayer server died!
E/MediaPlayer( 3344): error (100, 0)
E/MediaPlayer( 3344): Error (100,0)
I/ServiceManager( 2112): service 'media.camera' died
D/VideoView( 3344): Error: 100,0
-- 
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: can write youtube api on android?

2010-01-12 Thread tstanly
thanks for your help,
finally I found that I didn't add activation.jar and servelet.jar(from
tomcat),
at first I thought it didn't need to add.


thanks

On 1月12日, 上午6時44分, Kumar Bibek coomar@gmail.com wrote:
 Hey,
 As far as I can remeber, you need to add the following the
 dependencies.
 gdata-media.jar
 mail.jar
 activation.jar
 google.collect.jar

 Kumar Bibekhttp://tech-droid.blogspot.com

 On Jan 8, 7:09 am,tstanlytsai.sta...@gmail.com wrote:



  thanks for your reply,
  however,
  I try the same code and same libs in the Android project and java
  project (within Eclipse),
  and the Android project will get the above problems that I mentioned
  for,
  but int the java project there will not get the problem, it's work
  normally!

  thanks

  On 1月7日, 上午1時49分, Kumar Bibek coomar@gmail.com wrote:

   You can report it in the Issue List of YouTube. I guess, you are
   missing out some dependencies for youtube api.

   You can check the youtube docs to find out more.

   Thanks and Regards,
   Kumar Bibek

  http://tech-droid.blogspot.com

   On Jan 6, 2:11 pm,tstanlytsai.sta...@gmail.com wrote:

hi all,

I use the youtube api and other libs such as 
gdata_client...http://code.google.com/intl/zh-TW/apis/youtube/getting_started.html

but I always get the verify error:
==
E/dalvikvm(  749): Could not find class
'com.google.gdata.data.media.MediaStream
Source', referenced from method
com.google.gdata.client.media.MediaService.getMe
diaResource
W/dalvikvm(  749): VFY: unable to resolve new-instance 538 (Lcom/
google/gdata/da
ta/media/MediaStreamSource;) in Lcom/google/gdata/client/media/
MediaService;
W/dalvikvm(  749): VFY:  rejecting opcode 0x22 at 0x0013
W/dalvikvm(  749): VFY:  rejected Lcom/google/gdata/client/media/
MediaService;.g
etMediaResource (Ljava/net/URL;Lcom/google/gdata/util/ContentType;Lcom/
google/gd
ata/data/DateTime;)Lcom/google/gdata/data/media/MediaSource;
W/dalvikvm(  749): Verifier rejected class Lcom/google/gdata/client/
media/MediaS
ervice;
D/AndroidRuntime(  749): Shutting down VM
W/dalvikvm(  749): threadid=3: thread exiting with uncaught exception
(group=0x4
000fe70)
E/AndroidRuntime(  749): Uncaught handler: thread main exiting due to
uncaught e
xception
E/AndroidRuntime(  749): java.lang.VerifyError:
com.google.gdata.client.media.Me
diaService
.

==
so I want to confirm whether Android can integrate gdata and youtube
api(lib)?
or is there have mailing list for gdata that I can serach for
problems?

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

[android-developers] change the imageview dynamically in the listview

2010-01-12 Thread tstanly
hi all,

I was defined a new adapter for my listview,
every rows content in the listview will include three information,
that's image(imageview), title(text) and time information(text),
then the three information was retrieve from server at the program
beginning,
and then use adapter to fill ervery rows.
now I have a problem about image information, I don't know how to fill
the
image in the every rows of listview.
I will show my getView function of adapter code,
plz give me some suggestion, thanks!

=getView()
public View getView(int position,View convertView,ViewGroup par)
  {
ViewHolder holder_title,holder_duration,holder_thumbnail;

holder_title = new ViewHolder();
holder_time=new ViewHolder();
holder_image=new ViewHolder();

if(convertView == null)
{
  convertView = mInflater.inflate(R.layout.rows_content, null);

  holder_title.text = (TextView) convertView.findViewById
(R.id.title);
  holder_time.text = (TextView) convertView.findViewById
(R.id.time);
  holder_image.icon=(ImageView) convertView.findViewById
(R.id.image);

  convertView.setTag(holder_title);
  convertView.setTag(holder_time);
  convertView.setTag(holder_image);
}
else
{
  holder_title = (ViewHolder) convertView.getTag();
  holder_time = (ViewHolder) convertView.getTag();
  holder_image=(ViewHolder) convertView.getTag();
}

//import the information
holder_title.text.setText(entry_title.get(position));  //ok
holder_time.text.setText(time_duration.get(position)); //ok
*the image I don't know how to do*

return convertView;
  }

  /* class ViewHolder */
  private class ViewHolder
  {
TextView text;
ImageView icon;
  }
}
-- 
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] set imageView

2010-01-12 Thread tstanly
hi all,

I have a imageView1 and imageView2,
then i want to set imageView1 to imageView2,
but use the following API will not do this,
such as:
setBackgroundResource(int resource id)
setBackgroundDrawable(drawable d)
setImageBitmap(Bitmap b)
setImageDrawable(drawable d)
.etc


so how can I do?

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

[android-developers] Re: Process in Android

2010-01-12 Thread tstanly
when you leave to b from a,
if you want to close a activity,

then you can write the code in the onDestroy
such as:

onDestroy(){
 a.this.finish();
}



On 1月13日, 上午11時08分, Android Developer kavithasuni...@gmail.com
wrote:
 Hi,

 I have an application which has one activity. The application is
 launched. When i say back, OnDestory() would be called. This means
 that the activity is being killed.

 What will happen to the process? Will the process also be killed? But
 when i use ps command i could see the process still running.

 Will the process not be killed?
 Can someone explain this in detail or provide from reference to get
 information on the same.

 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

[android-developers] Error int the eclipse when import Gdata jar

2010-01-10 Thread tstanly
hi all,

I was developed for youtube application,
so I was import so many jar files in the eclipse,
but the eclipse always shows the error,

[2010-01-11 10:10:02 - demo] warning: Ignoring InnerClasses attribute
for an anonymous inner class that doesn't come with an associated
EnclosingMethod attribute. (This class was probably produced by a
broken compiler.)


but the android project/emulator still can run,
and the signed apk still can export too.

but I want to know how to solve this problem,
because every time that I was open the Eclipse, the error messages
will
output continuously.

if you have the same experience or any suggestion,
plz tell me,
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: can write youtube api on android?

2010-01-07 Thread tstanly

thanks for your reply,
however,
I try the same code and same libs in the Android project and java
project (within Eclipse),
and the Android project will get the above problems that I mentioned
for,
but int the java project there will not get the problem, it's work
normally!


thanks

On 1月7日, 上午1時49分, Kumar Bibek coomar@gmail.com wrote:
 You can report it in the Issue List of YouTube. I guess, you are
 missing out some dependencies for youtube api.

 You can check the youtube docs to find out more.

 Thanks and Regards,
 Kumar Bibek

 http://tech-droid.blogspot.com

 On Jan 6, 2:11 pm,tstanlytsai.sta...@gmail.com wrote:



  hi all,

  I use the youtube api and other libs such as 
  gdata_client...http://code.google.com/intl/zh-TW/apis/youtube/getting_started.html

  but I always get the verify error:
  ==
  E/dalvikvm(  749): Could not find class
  'com.google.gdata.data.media.MediaStream
  Source', referenced from method
  com.google.gdata.client.media.MediaService.getMe
  diaResource
  W/dalvikvm(  749): VFY: unable to resolve new-instance 538 (Lcom/
  google/gdata/da
  ta/media/MediaStreamSource;) in Lcom/google/gdata/client/media/
  MediaService;
  W/dalvikvm(  749): VFY:  rejecting opcode 0x22 at 0x0013
  W/dalvikvm(  749): VFY:  rejected Lcom/google/gdata/client/media/
  MediaService;.g
  etMediaResource (Ljava/net/URL;Lcom/google/gdata/util/ContentType;Lcom/
  google/gd
  ata/data/DateTime;)Lcom/google/gdata/data/media/MediaSource;
  W/dalvikvm(  749): Verifier rejected class Lcom/google/gdata/client/
  media/MediaS
  ervice;
  D/AndroidRuntime(  749): Shutting down VM
  W/dalvikvm(  749): threadid=3: thread exiting with uncaught exception
  (group=0x4
  000fe70)
  E/AndroidRuntime(  749): Uncaught handler: thread main exiting due to
  uncaught e
  xception
  E/AndroidRuntime(  749): java.lang.VerifyError:
  com.google.gdata.client.media.Me
  diaService
  .

  ==
  so I want to confirm whether Android can integrate gdata and youtube
  api(lib)?
  or is there have mailing list for gdata that I can serach for
  problems?

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

[android-developers] can write youtube api on android?

2010-01-06 Thread tstanly
hi all,

I use the youtube api and other libs such as gdata_client...
http://code.google.com/intl/zh-TW/apis/youtube/getting_started.html

but I always get the verify error:
==
E/dalvikvm(  749): Could not find class
'com.google.gdata.data.media.MediaStream
Source', referenced from method
com.google.gdata.client.media.MediaService.getMe
diaResource
W/dalvikvm(  749): VFY: unable to resolve new-instance 538 (Lcom/
google/gdata/da
ta/media/MediaStreamSource;) in Lcom/google/gdata/client/media/
MediaService;
W/dalvikvm(  749): VFY:  rejecting opcode 0x22 at 0x0013
W/dalvikvm(  749): VFY:  rejected Lcom/google/gdata/client/media/
MediaService;.g
etMediaResource (Ljava/net/URL;Lcom/google/gdata/util/ContentType;Lcom/
google/gd
ata/data/DateTime;)Lcom/google/gdata/data/media/MediaSource;
W/dalvikvm(  749): Verifier rejected class Lcom/google/gdata/client/
media/MediaS
ervice;
D/AndroidRuntime(  749): Shutting down VM
W/dalvikvm(  749): threadid=3: thread exiting with uncaught exception
(group=0x4
000fe70)
E/AndroidRuntime(  749): Uncaught handler: thread main exiting due to
uncaught e
xception
E/AndroidRuntime(  749): java.lang.VerifyError:
com.google.gdata.client.media.Me
diaService
.

==
so I want to confirm whether Android can integrate gdata and youtube
api(lib)?
or is there have mailing list for gdata that I can serach for
problems?

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

[android-developers] about TTS issue

2009-12-27 Thread tstanly
hi all,

I have some questions about TTS(text-to-speech) lib,
1)
does sdk 1.5 support for TTS?
I download TTS application from market,
but can't work

2)
I develope the TTS app use third party TTS lib,
http://code.google.com/p/eyes-free/downloads/list
but according the tutorial,
the app can't work on my platform(x86+sdk 1.5  htc diamond+sdk1.5)
the error message is (eg: to speech hello)::

I/TTS received: ( 3020): hello
V/TtsService( 3020): TTS service received hello
I/TtsService( 3020): Stopping
I/TtsService( 3020): Stopped
V/TtsService( 3020): TTS processing: hello
V/TtsService( 3020): null synth, can't speak


can somebody give me the suggestion?
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] longtitude/latitude problem in the mapview

2009-12-13 Thread tstanly
hi guys,

I have a problem about get the longtitude and latitude from the
mapview,
now I want to get the longtitude/lattitude when user click/touch on
the mapview,
actually says that program can knows the information when user click
on the mapview,
is it possiable?


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


[android-developers] animation between two activities

2009-12-02 Thread tstanly
hi all,

I design a rotate animation when activity 1 ends, and then start
activity 2.
so my code is:
===when activity 1 ends function===

rotate_animation();  //first call up the animation

Intent i=new Intent();
i.setClass(activity1.this,activity2.class);
startActivity(i);

===
but this code will not saw the animation totally,
that's means, the animation will pop up a second then soon activity2
start!
but I need the animation play over, then the activity 2 start.


so how I do for that requestion?
I almost use the threadhandler to do, but it wasn't work.

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


[android-developers] how to get domain name

2009-11-26 Thread tstanly
hi all,

I use webview to address the url link,
but I want to know how to get the url's domain name?
such as when I link to http://www.yahoo.com,
then I can get the yahoo domain name,

so how to do that?

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


[android-developers] Re: how to get domain name

2009-11-26 Thread tstanly
sorry,
or can I get the url's title?
that means the website titile content in the http header tag

On 11月27日, 上午10時49分, tstanly tsai.sta...@gmail.com wrote:
 hi all,

 I use webview to address the url link,
 but I want to know how to get the url's domain name?
 such as when I link tohttp://www.yahoo.com,
 then I can get the yahoo domain name,

 so how to do that?

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


[android-developers] gallery problem

2009-11-23 Thread tstanly
hi all,

I used the gallery widget for photo shows,
when I put the photos in the photo directory,
there will be some black photos on the gallery when gallery shows,
so, did somebody have the same experience?


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


[android-developers] detect whether the network is connect

2009-11-18 Thread tstanly
hi all,

how can I check whether the network is connect or not in my
application?
eg:
I have three connect type, wifi, 3G and ethernet,
I want to detect whether the connection is setup or not by the
application,
if not, it will pop up a dialog to mention user that there are not
connect yet.

but now when I use my ftp application, if there are not connection,
the application will crash down,
that't not my expected.


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


[android-developers] get the package/class name by code

2009-11-15 Thread tstanly
hi guys,

how can I use sdk to get the package/class name of a specific apk
file,
eg: I have a test.apk, and I want to know the package name and class
name by API when I write a android program

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


[android-developers] Re: get the package/class name by code

2009-11-15 Thread tstanly
for detail::

there are several apk files in the /data/app (design by myself),
and first I will read the /data/app and get the apk file list,
then launch other apk file by user choose,

so the problem is that I need to know the package name and class name
by xxx.apk string.


thanks

On 11月16日, 上午10時26分, tstanly tsai.sta...@gmail.com wrote:
 hi guys,

 how can I use sdk to get the package/class name of a specific apk
 file,
 eg: I have a test.apk, and I want to know the package name and class
 name by API when I write a android program

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


[android-developers] add layout in other apk program

2009-11-10 Thread tstanly
hi guys,

I have write a a.apk already,
and there are a button in the a.apk that can trigger for b.apk,
however b.apk is a freeware apk downloaded from the internet,

now, I want to add a layout in the b.apk,
such as left side is b.apk main program region, and right side is my
new add layout region for a button,
this button in the new layout region that can let users back to a.apk
when click on.

so is it possiable to do for that?

thanks so mush



-- 
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] multi-apk in one activity issue

2009-11-10 Thread tstanly
hi guys,

I write a a.apk,
in a.apk, the left side are some buttons,
and right side have a layout region,
now, I want to trigger b.apk from the button of a.apk left side
region,
when user click the buttons of a.apk left region then the b.apk can
show up in the right side layout of a.apk,

that's means the b.apk and a.apk exist together,
is it possiable??

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] call for the other apk file

2009-11-01 Thread tstanly
hi guys,

Now, I have two apk in /data/app which are a.apk and b.apk,
and I want to invoke b.apk from a.apk,


so in the a.apk,
I used the Intent object to achive:
code===
Intent intent=new Intent(android.intent.action.MAIN);
intent.setClassName(com.android.b, test); //package name
and class name
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
startActivity(intent);
a.this.finish();
===
but with error by logcat::

error
E/AndroidRuntime(  740): android.content.ActivityNotFoundException:
Unable to fi
nd explicit activity class {com.android.b/test}; have you declared t
his activity in your AndroidManifest.xml?
===

so how can I do for that?
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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: call for the other apk file

2009-11-01 Thread tstanly
hi Dianne,

thanks so much!!!:)



On Nov 2, 11:11 am, Dianne Hackborn hack...@android.com wrote:
 The class name needs to be fully qualified, i.e. com.android.b.test.

 And I am going to assume com.android.b is not the real package name you
 are using, just an example. :)





 On Sun, Nov 1, 2009 at 6:55 PM, tstanly tsai.sta...@gmail.com wrote:
  hi guys,

  Now, I have two apk in /data/app which are a.apk and b.apk,
  and I want to invoke b.apk from a.apk,

  so in the a.apk,
  I used the Intent object to achive:
  code===
         Intent intent=new Intent(android.intent.action.MAIN);
         intent.setClassName(com.android.b, test); //package name
  and class name
         intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
                         Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
         startActivity(intent);
         a.this.finish();
  ===
  but with error by logcat::

  error
  E/AndroidRuntime(  740): android.content.ActivityNotFoundException:
  Unable to fi
  nd explicit activity class {com.android.b/test}; have you declared t
  his activity in your AndroidManifest.xml?
  ===

  so how can I do for that?
  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%2bunsubs­cr...@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.- Hide quoted text -

 - Show quoted text -

-- 
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 invoke a APK file

2009-10-28 Thread tstanly

hi guys,

if I wnat to invoke b.apk from a.apk (such as click a button on a.apk)
and if I don't know the package name and class name(entry point) about
b.apk,
can it still to do that??

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



[android-developers] youtube API

2009-10-20 Thread tstanly

hi all,

is there have youtube API or lib (like jar file) in the Android?
I hope that can write a app like youtube on the htc mobile phone,
such that I can search video, and return the video information
(snapshot,video length,shard author..etc)

can somebody give me some suggestion?

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



[android-developers] some questions about IBinder.transact

2009-10-14 Thread tstanly

hi guys,

I have some questions about IBinder.transact,
in the:
http://developer.android.com/intl/zh-TW/reference/android/os/IBinder.html
the document about transact method,

there are four parameters for transact are code, data, reply and
flags,

code is the action to perform.This should be a number between
FIRST_CALL_TRANSACTION and LAST_CALL_TRANSACTION.
but I can't understand what it means?
eg: what is FIRST_CALL_TRANSACTION  do?

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



[android-developers] GeoCoder.getFromLocationName return NULL

2009-10-11 Thread tstanly

hi all,

I used GeoCoder.getFromLocationName for resoved address to GeoPoint,
it will return true in the emulator,but null on my machine.


the simple code I post bellow..
is anyboy knows about this issue?


thanks!
==
Geocoder mGeocoder = new Geocoder
(this, Locale.getDefault());


ListAddress lstAddress = mGeocoder.getFromLocationName
   (search_address, 1);
if (!lstAddress.isEmpty())
{
  showDialog(not null)
}
else{
showDialog(Address's GeoPoint not found,null!!);
}
--~--~-~--~~~---~--~~
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] GeoCoder.getFromLocationName always return null??

2009-10-05 Thread tstanly

hi all,

I used GeoCoder.getFromLocationName for resoved address to GeoPoint,
it will return true in the emulator,but null on my machine.

the simple code I post bellow..
is anyboy knows about this issue?

thanks!
==
Geocoder mGeocoder = new Geocoder
(this, Locale.getDefault());

ListAddress lstAddress = mGeocoder.getFromLocationName
   (search_address, 1);
if (!lstAddress.isEmpty())
{
  showDialog(not null)
}
else{
showDialog(Address's GeoPoint not found,null!!);
}

--~--~-~--~~~---~--~~
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] map overlay issue

2009-09-27 Thread tstanly

hi all,

I used overlay to mark two point on the mapview,
but I only want to removed one point at a time,
but the mapview.getoverlay().clear() will remove two marks for
mapview,


so how can I do for remove one mark only?

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



[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread tstanly

is any update for stream of media issue in sdk 1.6??


thanks

On 9月16日, 上午6時22分, Xavier Ducrohet x...@android.com wrote:
 http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here...

 Enjoy!
 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.
--~--~-~--~~~---~--~~
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] about webview.clearCache

2009-09-21 Thread tstanly

hi all,

I had a problem about webview.clearCache method,
what's the main function about clearCache?
is a essential steps for using webview?

I used for it in my app when user load his webview everytime,
but there are errors some times,
like app had not permission to touch cache in the sqlite,
so I removed clearCache finally.


so what's the role for clearCache?

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



[android-developers] clear issue on Mapview

2009-09-21 Thread tstanly

hi all,

I have a mapview,
and I draw two point on the same mapview,
using
mapview.getoverlay().add(point1);
mapview.getoverlay().add(point2);

and now I want to clear point1,
I just can find:
mapview.getoverlay().clear() method to clear mapview,
but this action will clear point1 and point2,
but I just want to clear one point at the time.


so how can I do for my requestion??

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



[android-developers] Re: sqlite can't show chinese words issue

2009-09-11 Thread tstanly

thanks Dianne,

use app to insert record,it work!

On 9月11日, 上午11時06分, Dianne Hackborn hack...@android.com wrote:
 How about trying to put the data in through the API rather than the command
 line tool?  Who knows what in the world is happening to your text as it goes
 through your desktop terminal, adb, the shell session, and the sqlite3
 command.





 On Thu, Sep 10, 2009 at 7:47 PM, tstanly tsai.sta...@gmail.com wrote:

  hi guys,

  I'm sorry about ask this question again,
  I know that sqlite store format is UTF-8,
  so I will describe the whole process that I used sqlite.

  first I create a table named map by shell mode in the emulator,

  # sqlite  create table map ( id INTEGER PRIMARY KEY,chinese_word TEXT
  NOT NULL,
  en_word TEXT NOT NULL);

  second, insert a record by shell mode in the emulator,

  # sqlit  insert into map values (1,CHINESE WORD,hello);

  then, there are two spinner in my app and retrieve column
  chinese_word, en_word
  by sql query.

  finally in my app, the first spinner shows RANDOM CODE,
  and second spinner shows correct word hello.

  so, can somebody tell me how can I solve for that

  I really appreciate.

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



[android-developers] request data from mobile youtube

2009-09-11 Thread tstanly

hi all,


is possiable request data from the mobile youtube website,
(http://m.youtube.com)
such as scrennshot of movie,address of movie,description of
movie...etc.

like youtube on the g1 phone.


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



[android-developers] sqlite can't show chinese words

2009-09-10 Thread tstanly

hi all,

I found that sqlite can't store chinese words and will shows random
code in
the application when retrieve data.

can somebody give some 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sqlite can't show chinese words

2009-09-10 Thread tstanly

under eclipse,the shell shows chinese ok (via sqlite3 and select *)
but random code in the app then retrieve data from database,

the same situation in the machine.

thanks

On 9月10日, 下午2時51分, 楊健 y...@cycomtech.co.jp wrote:
 I have try to store japanese and it works well.But the logcat can't show
 Japanese correctly,maybe you just test under eclipse, did you?



 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of tstanly
 Sent: Thursday, September 10, 2009 3:44 PM
 To: Android Developers
 Subject: [android-developers] sqlite can't show chinese words

 hi all,

 I found that sqlite can't store chinese words and will shows random
 code in
 the application when retrieve data.

 can somebody give some 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Couldn't get connection factory client

2009-09-10 Thread tstanly

I had met before, it's key issue.
you may use different keystore to export signed apk.

On 9月10日, 下午3時12分, Raja Nagendra Kumar nagendra.r...@tejasoft.com
wrote:
 Hi,

 Map api of Google, is an excellent abstraction, however the error
 messages could be improved more.

 For the above erorr message in the subject and the same  discussed in
 the 
 messagehttp://groups.google.com/group/android-developers/browse_thread/threa...

 it would be nice to say it is a Invalid Map API key etc.

 Regards,
 Raja Nagendra Kumar,
 C.T.Owww.tejasoft.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sqlite can't show chinese words

2009-09-10 Thread tstanly

thanks Dianne,

but actually I use sqlite3 to insert a record not by program,
and I check when the record is English words, the app can output
correctly,

soI don't think this is a code issue???


thanks

On 9月10日, 下午4時02分, Dianne Hackborn hack...@android.com wrote:
 It stores unicode characters fine.  (I believe the internal encoding it uses
 is UTF-8, but this should be invisible to the Java level.)  I would suggest
 looking at your code around it to make sure there aren't any encoding
 problems or such.

 2009/9/10 tstanly tsai.sta...@gmail.com







  under eclipse,the shell shows chinese ok (via sqlite3 and select *)
  but random code in the app then retrieve data from database,

  the same situation in the machine.

  thanks

  On 9月10日, 下午2時51分, 楊健 y...@cycomtech.co.jp wrote:
   I have try to store japanese and it works well.But the logcat can't show
   Japanese correctly,maybe you just test under eclipse, did you?

   -Original Message-
   From: android-developers@googlegroups.com

   [mailto:android-develop...@googlegroups.com] On Behalf Of tstanly
   Sent: Thursday, September 10, 2009 3:44 PM
   To: Android Developers
   Subject: [android-developers] sqlite can't show chinese words

   hi all,

   I found that sqlite can't store chinese words and will shows random
   code in
   the application when retrieve data.

   can somebody give some help?

   thanks!- 隱藏被引用文字 -

   - 顯示被引用文字 -

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



[android-developers] sqlite can't show chinese words issue

2009-09-10 Thread tstanly

hi guys,

I'm sorry about ask this question again,
I know that sqlite store format is UTF-8,
so I will describe the whole process that I used sqlite.

first I create a table named map by shell mode in the emulator,

# sqlite  create table map ( id INTEGER PRIMARY KEY,chinese_word TEXT
NOT NULL,
 en_word TEXT NOT NULL);

second, insert a record by shell mode in the emulator,

# sqlit  insert into map values (1,CHINESE WORD,hello);

then, there are two spinner in my app and retrieve column
chinese_word, en_word
by sql query.

finally in my app, the first spinner shows RANDOM CODE,
and second spinner shows correct word hello.

so, can somebody tell me how can I solve for that

I really appreciate.



--~--~-~--~~~---~--~~
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: SQLlite issue

2009-09-09 Thread tstanly
=';
 private static final String END_TABLE = /table;
 private static final String START_ROW = row;
 private static final String END_ROW = /row;
 private static final String START_COL = col name=';
 private static final String END_COL = /col;

 private BufferedOutputStream _bos;

 public Exporter() throws FileNotFoundException
 {
 this( new BufferedOutputStream(
 _ctx.openFileOutput( EXPORT_FILE_NAME,
 Context.MODE_WORLD_READABLE ) ) );
 }

 public Exporter( BufferedOutputStream bos )
 {
 _bos = bos;
 }

 public void close() throws IOException
 {
 if ( _bos != null )
 {
 _bos.close();
 }
 }

 public void startDbExport( String dbName ) throws IOException
 {
 String stg = START_DB + dbName + CLOSING_WITH_TICK;
 _bos.write( stg.getBytes() );
 }

 public void endDbExport() throws IOException
 {
 _bos.write( END_DB.getBytes() );
 }

 public void startTable( String tableName ) throws IOException
 {
 String stg = START_TABLE + tableName + 
 CLOSING_WITH_TICK;
 _bos.write( stg.getBytes() );
 }

 public void endTable() throws IOException
 {
 _bos.write( END_TABLE.getBytes() );
 }

 public void startRow() throws IOException
 {
 _bos.write( START_ROW.getBytes() );
 }

 public void endRow() throws IOException
 {
 _bos.write( END_ROW.getBytes() );
 }

 public void addColumn( String name, String val ) throws 
 IOException
 {
 String stg = START_COL + name + CLOSING_WITH_TICK + 
 val + END_COL;
 _bos.write( stg.getBytes() );
 }
 }

 class Importer
 {

 }





 }
 On Wed, Sep 9, 2009 at 11:02 AM, tstanly tsai.sta...@gmail.com wrote:

  hello,

  I have a question about the SQLlite,
  is it possiable import existed database or tables in the Android
  SQLlite?
  or can Android SQLite link to external database via Internet?
  I search for this topic in this group,and someone mention that Android
  not
  support for JDBC connection.

  so can someone give me some suggestion?

  thanks!

 --
 Regards
 ---
 Desu Vinod Kumar
 vinny.s...@gmail.com
 09176147148- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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: A question about mediaplayer could not play rtsp?

2009-09-09 Thread tstanly

this issue was still un-solute for a long time.

the only possiable answer I know,
is the stream must be a progressive stream.


so you can try a stream server that can support progressive.


On 9月9日, 下午4時29分, yjshi shiyaju...@gmail.com wrote:
 I create a mplayer to play the rtsp on the emulator . when the
 mplayer play the http ,it is ok.
 ---­---
 MediaPlayer mplayer = new MediaPlayer();
 mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
 20090313/wenjiabao1.mp4);
 mplayer.prepare();
 mplayer.start();
 ---­---
 but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
 CHECKSUM INCORRECT.

  806        89.930803        10.4.70.24        125.76.233.38
 UDP        Source port: 59211  Destination port: 6971 [UDP CHECKSUM
 INCORRECT]
 ---­---
 Then I let the mplayer worked on the device,but it is also has some
 problems.Just like working on the emulator ,it doesn't play .Because
 it is in the device ,I could not use the Wireshark to catch the
 packets. I will be appreciate if anyone  could give me a suggestion .
 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread tstanly

I try for many before,
the emulator always fail,
and plz try this rtsp stream, I was success for this stream before,
and now I still success to play this stream,but only for this address.

that's why someone mention it's a stream server issue.

rtsp://video2.americafree.tv/AFTVHorrorH26496.sdp

On 9月9日, 下午11時50分, yj shi shiyaju...@gmail.com wrote:
 Are you meaning that set a PreparedListener to see what wrong is ?I will try
 this method later.And I also have a question.
 My question is whether the mediaplayer could play RTSP.
 Because I ask so many people ,and I also get so many answer.
 Too many people tell me that it could not play on the emulator but could
 play on the device(phone).
 I tried on the device but failed.
 So could you tell me whether the mediaplayer could play rtsp?
 Thank you very much.

 2009/9/9 yj shi shiyaju...@gmail.com



  I found that the source code of Opencore(PacketVideo) has a file that named
  Streaming . The file is said to support the RTSP.I don't know whether it
  could work well on the phone. Could you tell me whether Opencore  supports
  RTSP? Thanks.

  2009/9/9 dindin dinesh.nadara...@gmail.com

  On Sep 9, 4:55 am, 石亚军 shiyaju...@gmail.com wrote:
   progressive stream is a address begin with http://;. And now
   MediaPlayer could play the progressive streaming.

   My question is how to play the real-time streaming.

  To my knowledege the current Android platform does not support Real-
  time streaming - I am assuming by real-time, you mean Live here. If
  play an MP4 file off a server, then RTSP and HTTP should give you
  similar experience but the network profile will not be the same -
  RTSP can control the bit stream rate and buffering along with RTCP.
  For live support, would have to have an open ended file support such
  as TS or segmented MP4.- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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] insert large volume data into sql database

2009-09-08 Thread tstanly

hi all,

I have a large volume data that must insert into sql,
the tables contains about ten columns and at least one thousand rows,
the values of each rows are string and different,
so is there a conveniance way to insert String data?
I think the for loop is not a good method to solve...
because it's all the different String data..


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



[android-developers] SQLlite issue

2009-09-08 Thread tstanly

hello,

I have a question about the SQLlite,
is it possiable import existed database or tables in the Android
SQLlite?
or can Android SQLite link to external database via Internet?
I search for this topic in this group,and someone mention that Android
not
support for JDBC connection.

so can someone give me some suggestion?

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



[android-developers] check the mounted device

2009-09-07 Thread tstanly

hi all,

I use the code to check whether the mouted device is exist,
but always get false..I can't understand?

I try unmount it (just insert the device but not use mount in
console mode)
and mount device (use mount command in console mode) status but get
the same result.

thanks!


public boolean isExternalStorageReady(){

  return Environment.getExternalStorageState().equals
(Environment.MEDIA_MOUNTED);

}

--~--~-~--~~~---~--~~
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] gps with gmap, and routing information issue

2009-09-07 Thread tstanly

hi all,

I used google map to do gps location service,
and then I want to use it to do routing schedule function,
eg:
google map knows user location(longtitudlatitude),and user
can input his destination, then via the routing schedule function,
google map will display the routing information,
just like this photo shows:
http://img2.pict.com/39/96/b4/1584599/0/routing.jpg


I know there has method that must send start and destination point
to google server for computing and displaying on the browser(web),
but now I don't want the routing information shows via browser to
server,
in other word, I want the routing information download in my app .

is it possible?
I hoped that someone can help me for this issue.

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



[android-developers] detect usb device

2009-09-06 Thread tstanly

hi all,

does sdk provides methods to detect whether a usb device plug in ?
if it's a android porting problem, I am so sorry...


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



[android-developers] Re: detect usb device

2009-09-06 Thread tstanly

thanks!

and the other question,
is Android detect dynamically possible(on listening mode)?

that is,
when I'm in the Activity1, and insert a usb device,
then app can detect right now and use dialog send a message to user
the device is mounted!?

thanks

On 9月7日, 下午1時30分, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 You can detect when you attach a USB storage device.

 See android.intent.action.MEDIA_MOUNTED

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 6, 10:05 pm, tstanly tsai.sta...@gmail.com wrote:



  hi all,

  does sdk provides methods to detect whether a usb device plug in ?
  if it's a android porting problem, I am so sorry...

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



[android-developers] setImageBitmap issue

2009-09-04 Thread tstanly

hi all,

I want to play photos like slide show,
and I use setImageBitmap,timer and timer task to do,
but when I enter into my app,
it always show the final photo, not begin from fist to
sceond,thirduntil final photo.

I need some help, thanks

code===
package demo.app;


public class photo_show_play extends Activity
{

private ListString photo_list;
private File f;
private File[] files;
private ImageView ImageView01;
private Gallery g;
private Bitmap bm;
private String path;
private int photo_num=0;
private int play_no;
private Timer timer=new Timer();

/** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
super.onCreate(savedInstanceState);
setContentView(R.layout.photo_show_play);

ImageView01 =(ImageView)findViewById(R.id.ImageView01);

store_photo_list();
play_no=0;  //index=0

timer.schedule(new photo_task(), 1000, 3000);

try {
Thread.sleep(photo_num*3000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

timer.cancel();

  } /* end of onCreate */

  private void store_photo_list()
  {

   photo_list=new ArrayListString();
f=new File(path);
files=f.listFiles();

for(int i=0;ifiles.length;i++)
{
  File file=files[i];
  if(getImageFile(file.getPath())){
photo_list.add(file.getPath());
photo_num=photo_num+1;
  }
} /* end of for */
  } /* end of store_photo_list */

  private boolean getImageFile(String fName)
  {
boolean re;


String end=fName.substring(fName.lastIndexOf(.)+1,
  fName.length()).toLowerCase();


if(end.equals(jpg)||end.equals(gif)||end.equals(png)
||end.equals(jpeg)||end.equals(bmp))
{
  re=true;
}
else
{
  re=false;
}
return re;
  } /* end of getImageFile class */

  public class photo_task extends TimerTask{
@Override
public void run() {
// TODO Auto-generated method stub
//play_photo(play_no);

bm = 
BitmapFactory.decodeFile(photo_list.get(play_no).toString());
ImageView01.setImageBitmap(bm);
ImageView01.setScaleType(ImageView.ScaleType.FIT_XY);

play_no=play_no+1;

} /* end of run */
  } /* end of photo_task class */
} /* end of photo_show_play class */

--~--~-~--~~~---~--~~
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 webkit to handle page redirect problem

2009-09-03 Thread tstanly

hi all,


I use webkit to implement a small-scale web browser,
but some page have redirect problem,
for example,
use webkit link to http://xxx..com will redirect to http://oo.ooo.oo.com
so whe webkit will load twice,


is there possiable to solve this problem?


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



[android-developers] Re: Circular Gallery

2009-09-03 Thread tstanly

hi Jasmine,

can you share how to do slide shows effect on gallery?
circulr showing just like you say,

because I'm find for this topic...

thanks
On 9月3日, 上午11時57分, Jasmine techi.j...@gmail.com wrote:
 Hello Everyone,

 I have just now started working on Android,,,
 Can anyone tell me how to make gallery widget circular?

 And my app takes over 70% of CPU usage can anyone suggest something.
 My application just displays images, slide shows a bit of music etc...
 thats all.
 Its gives highest CPU usage on a Activity Launch!! And says My app is
 not responding with Force Close and Wait.

 -
 Thanks in advance.

 Jasmine.
--~--~-~--~~~---~--~~
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 a little time stop between two works

2009-09-03 Thread tstanly

hi all,

I have two work now,named wok1 and work2,
and work2 will to do after work1 finish,

now I want to make a time period stop between work1 and work2,
that is,when work1 finish, and pause one miniute then start work2,

how can I do for that?

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



[android-developers] about tabhost problem

2009-09-02 Thread tstanly

hi all,

I have a tab host and three tabs,
each tabs have a own listview, the three listview shows different file
directory in different tabs,
and there is a problem is, for example,

in the tab1, I click the item of listview1 and into the dirrectory1,
and then I choose the tab 2, want to move to directory 2 in the
listiew2,
but when I click,actually I will click on the listview1 directory1's
item ,

so I think I havn't change the focus of listview ??


can somebody help me?

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



[android-developers] Re: how to use shell command in Android app

2009-08-30 Thread tstanly

thanks for your reply,


so if I have a script file now,
the script file content wants to mount a device or do some control
such as open wireless connection,
and wants app to execute script file,

if it possiable?


thanks!

On 8月29日, 上午1時42分, Dianne Hackborn hack...@android.com wrote:
 Keep in mind that shell commands are not part of the SDK.  These commands
 will and do change between releases, with no predictability (for example
 different output, etc).  And for all of the commands that are simple enough
 that they are less likely to change (such as mkdir), it is much more
 efficient to use the appropriate Java APIs to do the same thing.





 On Fri, Aug 28, 2009 at 2:54 AM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  I want to use command like ls,mkdir,cd,./..etc, in the app,
  somebody says use Runtime class,

  Runtime.getRuntime().exec(ls);

  but there is nothing happen..
  I also use logcat to observe, but have the same result.

  so could app use (linux) command?

  thanks!

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



[android-developers] Re: Activity stack: A B C - press BACK - go to A

2009-08-30 Thread tstanly

can possiable to verify whether B is exist or not?
if B exist,so the apps can call finish() to close B,
if not,don't call B.finish()
(will be error because B is not exist)


thanks!

On 8月31日, 上午4時11分, Jonas Petersson jonas.peters...@xms.se wrote:
 fhucho wrote:
  my activity stack is ABC, in activity C I press back, and return to B,
  then press back again and go to A. What should I do to return to A
  directly from C?

 I guess it depends on the reason for wanting to skip B. I needed
 exactly this case yesterday and in my case B knows very well that it
 will not be needed when it starts up C, so B simply calls finish()
 after that. Solved.

                         Best / Jonas
--~--~-~--~~~---~--~~
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 use shell command in Android app

2009-08-28 Thread tstanly

hi all,

I want to use command like ls,mkdir,cd,./..etc, in the app,
somebody says use Runtime class,

Runtime.getRuntime().exec(ls);


but there is nothing happen..
I also use logcat to observe, but have the same result.


so could app use (linux) command?


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



[android-developers] why padding can't use

2009-08-24 Thread tstanly

hi all,

because my layout have a listview and tab widget,
so I must set padding for seperating they,

but when I use the
android:padding=10px
in the layout of xml file,

there is nothing happen in the emulator screen,


so how can I do for the padding??


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



[android-developers] Re: error msg after run a thread

2009-08-20 Thread tstanly

thanks for reply,

so how can I do for change thread's control to change my UI?

thanks!

On 8月20日, 下午1時03分, star double doublestar...@gmail.com wrote:
 My god, you must change your UI in main thread  but not your new thread , it
 is  android's rule .

 2009/8/20 tstanly tsai.sta...@gmail.com





  hi all,

  I write a thread, and do show() after thread complete,
  but I always get the error msg bellow,
  and this show() function is ok, because I put it on other location of
  program,
  and it works fine.

  plz help me!
  thanks!

  error msg===
  E/AndroidRuntime(  746): Uncaught handler: thread Thread-8 exiting due
  to uncaug
  ht exception
  E/AndroidRuntime(  746): android.view.ViewRoot
  $CalledFromWrongThreadException: O
  nly the original thread that created a view hierarchy can touch its
  views.

  code===
  new Thread()
  {
  public void run()
   {
  try{
 } /* end of try */
  catch (Exception e)
   {
   Log.d(tsai_error1,e.getMessage());
   } /* end of catch */
  finally
   {
   mProgressDialog2.dismiss();

   } /* end of finally */
   }/* end of run */
  }.start();

  show();- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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 can change controll to main thread from new other thread?

2009-08-20 Thread tstanly

hi all,

I was define a new thread for a task,
but when task is complete, I must to refresh my listview,
however I will get the error for just can use main thread to change
view,


so, any idea for it??

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



[android-developers] Re: how can change controll to main thread from new other thread?

2009-08-20 Thread tstanly

thank you for your suggestion,

it works!!

On 8月20日, 下午4時35分, Saurav Mukherjee to.saurav.mukher...@gmail.com
wrote:
 use a Handler object...

 Handler uiHandler=new Handler();

 then inside ur funcion:
 uiHandler.post(new Runnable(){
 void run(){
 here u can change components in the ui thread.



 }
 });
 On Thu, Aug 20, 2009 at 1:12 PM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  I was define a new thread for a task,
  but when task is complete, I must to refresh my listview,
  however I will get the error for just can use main thread to change
  view,

  so, any idea for it??

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



[android-developers] Re: how can change controll to main thread from new other thread?

2009-08-20 Thread tstanly

thank for reply...

but does handler can use with progressdialog??

thanks!

On 8月20日, 下午4時35分, Saurav Mukherjee to.saurav.mukher...@gmail.com
wrote:
 use a Handler object...

 Handler uiHandler=new Handler();

 then inside ur funcion:
 uiHandler.post(new Runnable(){
 void run(){
 here u can change components in the ui thread.



 }
 });
 On Thu, Aug 20, 2009 at 1:12 PM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  I was define a new thread for a task,
  but when task is complete, I must to refresh my listview,
  however I will get the error for just can use main thread to change
  view,

  so, any idea for it??

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



[android-developers] when I click the listview item,and the hint light can focus

2009-08-19 Thread tstanly

hi all,

I have a listview and contains several items,
now, I want to do is when user click the item,
then the hint light(that means a response color on the item can let
user knows he had already click)
can still focus on the item?




how can I do for that??


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



[android-developers] Re: MapActivity in android 1.5

2009-08-19 Thread tstanly


if you want to put color on the mapview,
you must use the overlay class
search for overlay in the map API


On 8月19日, 下午2時16分, Honest honestsucc...@gmail.com wrote:
 Hello,

 I want to display my two point on maps. I saw many example but they
 are using MapActivity when i used MapActivity in my sdk which is 1.5.
 it seems it is not available in it. So is it true that it is not
 available in 1.5 API. So is there any other alternative for it. can i
 do it using the following code sniiipt. I can do it for one code
 snippt but i do not know how can i display two point.

 String uriString = geo: + lat
                 + , + longi;
             Intent intent = new Intent
 (android.content.Intent.ACTION_VIEW,
                 Uri.parse(uriString));
--~--~-~--~~~---~--~~
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] error msg after run a thread

2009-08-19 Thread tstanly

hi all,

I write a thread, and do show() after thread complete,
but I always get the error msg bellow,
and this show() function is ok, because I put it on other location of
program,
and it works fine.

plz help me!
thanks!

error msg===
E/AndroidRuntime(  746): Uncaught handler: thread Thread-8 exiting due
to uncaug
ht exception
E/AndroidRuntime(  746): android.view.ViewRoot
$CalledFromWrongThreadException: O
nly the original thread that created a view hierarchy can touch its
views.


code===
new Thread()
{
public void run()
 {
try{
} /* end of try */
catch (Exception e)
 {
  Log.d(tsai_error1,e.getMessage());
 } /* end of catch */
finally
 {
  mProgressDialog2.dismiss();

 } /* end of finally */
  }/* end of run */
}.start();

show();
--~--~-~--~~~---~--~~
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] about Runtime.getRuntime().exec

2009-08-19 Thread tstanly

hi all,


I am use the command:
Runtime.getRuntime().exec(chmod 777 /data);


but still not to change the file mode?


why fail?

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



[android-developers] question about tabhost

2009-08-10 Thread tstanly

hi all,

I have a questions for setting tab widget,


if I set three tab initial,
then how can I remove one of three tab?
because form the reference,
http://www.104.com.tw/area/army/search.cfm#go
there only have the clearalltabs() method.

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



[android-developers] Re: question about tabhost

2009-08-10 Thread tstanly

and the other question is
when I want to add tab, the code is:
eg:
mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator
(one).setContent(R.id.mTextView);

if now I want to add two component in a tab content
such as TextView and Button widget,

then how can I do that?

thanks!!


On 8月10日, 下午4時21分, tstanly tsai.sta...@gmail.com wrote:
 hi all,

 I have a questions for setting tab widget,

 if I set three tab initial,
 then how can I remove one of three tab?
 because form the reference,http://www.104.com.tw/area/army/search.cfm#go
 there only have the clearalltabs() method.

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



[android-developers] questions about tabHost

2009-08-10 Thread tstanly

hi all,

I have two questions for setting tab widget,


if I set three tab initial,
then how can I remove one of three tab?
because form the reference,
http://developer.android.com/reference/android/widget/TabHost.html#setCurrentTabByTag(java.lang.String)
there only have the clearalltabs() method.


and the other question is
when I want to add tab, the code is:
eg:
mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator
(one).setContent(R.id.mTextView);

if now I want to add two component in a tab content
such as TextView and Button widget,


then how can I do that?


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



[android-developers] can ListActivity and Tab widget can use in one activity?

2009-08-09 Thread tstanly

hi all,

my activity have to use List and Tab widget,
one is left side,the other is right side, I means layout,

but use List must to extends ListActivity,
and use Tab widget must to extends TabActivity?


is it possible??

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



[android-developers] Re: can ListActivity and Tab widget can use in one activity?

2009-08-09 Thread tstanly

sorry, I was ignore about that...


thanks anyway

On 8月10日, 上午11時12分, Dianne Hackborn hack...@android.com wrote:
 You don't need to use ListActivity; just put a ListView in your layout and
 work with it directly.





 On Sun, Aug 9, 2009 at 6:38 PM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  my activity have to use List and Tab widget,
  one is left side,the other is right side, I means layout,

  but use List must to extends ListActivity,
  and use Tab widget must to extends TabActivity?

  is it possible??

  thanks!!

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



[android-developers] can execute my app automatilly when android is up?

2009-08-06 Thread tstanly

hi all,

I want to change the start point of my machine,
that is,when start on Android,
it can run my app instead of home firstly,

if it possiable?


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



[android-developers] Re: can execute my app automatilly when android is up?

2009-08-06 Thread tstanly

thanks for your reply,

for your first point,
i try to do it by edit the AndroidManifesr.xml,

edit the intent-filter/ tag for...

intent-filter
 action android:name=andrroid.intent.action.MAIN /
 category android:name=android.intent.category.HOME /
/intent-filter


but not work?

thanks!

On 8月6日, 下午3時40分, brian.schimmel brian.schim...@googlemail.com
wrote:
 I think home is not the first application that is started, but it is
 the first visible one. So you have two options:

 1. Your application can replace the home screen, but then it should do
 everything that a home screen does. You have to declare an
 IntentFilter with the Home category, 
 seehttp://developer.android.com/reference/android/content/Intent.html#CA...

 2. You can register your app to be executed on startup, additional to
 home. There is a matching broadcast action decribed 
 here:http://developer.android.com/reference/android/content/Intent.html#AC...

 On 6 Aug., 08:43, tstanly tsai.sta...@gmail.com wrote:



  hi all,

  I want to change the start point of my machine,
  that is,when start on Android,
  it can run my app instead of home firstly,

  if it possiable?

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



[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-08-05 Thread tstanly

I finally solved,
it's a eclipse problem.

On 8月5日, 下午1時55分, tstanly tsai.sta...@gmail.com wrote:
 thanks for your reply,
 but even I push the lib in the /system/framework,
 but still can't work,

 when import org.apache.commons.net.ftp.FTP;
 it still have errors?

 how can I solve

 thank you

 On 8月5日, 下午1時21分, zhao lifeng zhaolifeng...@gmail.com wrote:



  Hi tsai:
   adb remount
   best wishes

  On Wed, Aug 5, 2009 at 11:43 AM, tstanlytsai.sta...@gmail.com wrote:

   hi all,

   I want to import the org.apache.commons.net.ftp.FTP,
   but there is no libs for it,
   so I download the commons-net-2.0 lib from apache website,

   I try to push this lib into /system/framework/
   but I can't because the directory is a read-only filesystem,
   and I try to chang mode for directory, but can't work!

   is other methods can use the lib??

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



[android-developers] Re: how can close other activity?

2009-08-05 Thread tstanly

sorry..

a activity named before that I don't want to close or finish it,
untile the other activity named after called, the before I want to
finish.

but I don't know how to close before when after is called?


thank you so much

On 8月5日, 下午2時37分, Saurav Mukherjee to.saurav.mukher...@gmail.com
wrote:
 i really do not understand wat u intend to say, all i can help is if u use
 the Activity public function finish(), the activity closes.
 use it when u need to close the activity, wisely.

 hope it helps.



 On Wed, Aug 5, 2009 at 9:09 AM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  for example,I have three activity now,
  a, b and c,
  a is start point of activity lifecycle, and can go to b or c,
  and then assume go to b from a and close a,
  and then go to c from b but will not close b,
  and this time, I want to check whether b is start(create) or not,

  if b start, I want to close b and then go to a,
  if b doesn't start(possible will go to c from a doesn't via b),
  it will also go to a but do nothing for b

  how can I do for that?

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



[android-developers] how can close other activity?

2009-08-04 Thread tstanly

hi all,


for example,I have three activity now,
a, b and c,
a is start point of activity lifecycle, and can go to b or c,
and then assume go to b from a and close a,
and then go to c from b but will not close b,
and this time, I want to check whether b is start(create) or not,

if b start, I want to close b and then go to a,
if b doesn't start(possible will go to c from a doesn't via b),
it will also go to a but do nothing for b

how can I do for that?

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



[android-developers] how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread tstanly

hi all,

I want to import the org.apache.commons.net.ftp.FTP,
but there is no libs for it,
so I download the commons-net-2.0 lib from apache website,

I try to push this lib into /system/framework/
but I can't because the directory is a read-only filesystem,
and I try to chang mode for directory, but can't work!


is other methods can use the lib??

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



[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-08-04 Thread tstanly

thanks for your reply,
but even I push the lib in the /system/framework,
but still can't work,


when import org.apache.commons.net.ftp.FTP;
it still have errors?


how can I solve

thank you

On 8月5日, 下午1時21分, zhao lifeng zhaolifeng...@gmail.com wrote:
 Hi tsai:
  adb remount
  best wishes



 On Wed, Aug 5, 2009 at 11:43 AM, tstanlytsai.sta...@gmail.com wrote:

  hi all,

  I want to import the org.apache.commons.net.ftp.FTP,
  but there is no libs for it,
  so I download the commons-net-2.0 lib from apache website,

  I try to push this lib into /system/framework/
  but I can't because the directory is a read-only filesystem,
  and I try to chang mode for directory, but can't work!

  is other methods can use the lib??

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



[android-developers] is possible can link to android market server?

2009-08-03 Thread tstanly

hi all,

is possible link to market server?

I want to write a customize app that can link to market server,
and also can get the available apk list,
finally install in my machine.

just like the g1 mobile phone.

can somebody give a hint?

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



[android-developers] the mediaplayer with mediacontroller issue

2009-07-27 Thread tstanly

hi all,


this question I have post for twice,
but nobody answer,


Is someone success use mediaplayer with mediacontroller??

or is there have a alternative tools or methods to play music,
and have the mediacontroller workly?


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



[android-developers] Re: is possible mapview and list exist in same activity

2009-07-26 Thread tstanly

thank you for your reply,

so I want to ask the next question,
that's how to put list with the mapview??

I just think it must extends ListActivity,
is there another methods?


thanks so much!!

On Jul 26, 3:02 am, HeHe cnm...@gmail.com wrote:
 afail, you could combine a mapview and listview (or any other sort of
 views) in a map activity.

 as for how-to, you should do some experiment.

 On Jul 23, 10:34 pm,tstanlytsai.sta...@gmail.com wrote:



  hi all,

  for now i have a list,
  using extends listactivity,
  and now i want to addmapviewon the same activity using framelayout
  probably,

  but if i want to use themapview, the activity must extends
  mapactivity,

  one must extends mapactivity,the other must extends list activity,

  if it possible to do that???

  thanks!!!- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] my zoom controls can't put in everywhere???

2009-07-26 Thread tstanly

hi all,

i add a zoomcontrols in my view,
not in the webview or mapview,


but when i click the zoom in/out,
the view can't in/out?


thanks


my code is:


==


   mZoomControls1=(mZoomControls1)findViewById(r.id.zc);
   mZoomControls1.show();
   /* zoom controls in  */
mZoomControls1.setOnZoomInClickListener(new
ZoomControls.OnClickListener()
{


public void onClick(View v) {
// TODO Auto-generated method stub
mZoomControls1.setIsZoomInEnabled
(true);
mZoomControls1.setIsZoomOutEnabled
(true);
}


});


/* zoom controls out */
mZoomControls1.setOnZoomOutClickListener(new
ZoomControls.OnClickListener()
{


public void onClick(View v) {
// TODO Auto-generated method stub
mZoomControls1.setIsZoomInEnabled
(true);
mZoomControls1.setIsZoomOutEnabled
(true);
}


});


--~--~-~--~~~---~--~~
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: my zoom controls can't put in everywhere???

2009-07-26 Thread tstanly
or it just can use in the mapview and webview?

On 7月27日, 上午1時15分, tstanly tsai.sta...@gmail.com wrote:
 hi all,

 i add a zoomcontrols in my view,
 not in the webview or mapview,

 but when i click the zoom in/out,
 the view can't in/out?

 thanks

 my code is:

 ==

        mZoomControls1=(mZoomControls1)findViewById(r.id.zc);
        mZoomControls1.show();
        /* zoom controls in  */
         mZoomControls1.setOnZoomInClickListener(new
 ZoomControls.OnClickListener()
         {

                         public void onClick(View v) {
                                 // TODO Auto-generated method stub
                                 mZoomControls1.setIsZoomInEnabled
 (true);
                                 mZoomControls1.setIsZoomOutEnabled
 (true);
                         }

         });

         /* zoom controls out */
         mZoomControls1.setOnZoomOutClickListener(new
 ZoomControls.OnClickListener()
         {

                         public void onClick(View v) {
                                 // TODO Auto-generated method stub
                                 mZoomControls1.setIsZoomInEnabled
 (true);
                                 mZoomControls1.setIsZoomOutEnabled
 (true);
                         }

         });
--~--~-~--~~~---~--~~
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] about close Location Manager service

2009-07-26 Thread tstanly

hi all,

it' so strange about close gps location manager,
the gps signal dosen't stop.

my code is:

==code===
public class g extends MapActivity{

   private LocationManager mLocationManager01;
   
   @Override
  protected void onCreate(Bundle savedInstanceState)
  {
mLocationManager01 = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
.
 }
}

and my stop code is:

mLocationManager01.removeUpdates(mLocationListener01);//stop gps
service

however,
this stop code I write into the onDetroy(),onPause(),onStop(),finish
(),
but sometimes the gps signal will not stop expectly.


something wrong??

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



[android-developers] Re: about close Location Manager service

2009-07-26 Thread tstanly

sorry,

I found that is the driver issue.


On 7月27日, 上午11時22分, tstanly tsai.sta...@gmail.com wrote:
 hi all,

 it' so strange about close gps location manager,
 the gps signal dosen't stop.

 my code is:

 ==code===
 public class g extends MapActivity{

    private LocationManager mLocationManager01;
    
   �...@override
   protected void onCreate(Bundle savedInstanceState)
   {
     mLocationManager01 = (LocationManager)getSystemService
 (Context.LOCATION_SERVICE);
     .
  }}

 
 and my stop code is:

 mLocationManager01.removeUpdates(mLocationListener01);//stop gps
 service

 however,
 this stop code I write into the onDetroy(),onPause(),onStop(),finish
 (),
 but sometimes the gps signal will not stop expectly.

 something wrong??

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



[android-developers] what coomand can go back to home screen or destop

2009-07-24 Thread tstanly

hi all,

what's command can back to home screen or destop screen?
eg:

a.java have a button can link to b.java,
and b have a button can back to home/destop,

is by finish()?
should
a.this.finish()
or
b.this.finish()?
or both needed?

if it can work possible?


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



[android-developers] Re: videoview can't play mp4 smoothly

2009-07-24 Thread tstanly

thank you,

but the AudioHardwareALSA.cpp is about audio codec,

what's the video codec source name??

thanks

On 7月24日, 下午5時04分, Suchand Ghosh chand4andr...@gmail.com wrote:
 No, Not need to change the movie file. You have to modify your
 software/program to fit into that video codec level and profile. You can
 look into the AudioHarwareALSA.cpp (...\open_src\external\libaudio) or
 similar codec lib level file. There you need to change your MAX_BUFFER_SIZE,
 sample rate etc.
 
 BR,
 Chand



 On Fri, Jul 24, 2009 at 12:33 AM, tstanly tsai.sta...@gmail.com wrote:

  thanks for your reply,

  so what's the section I could modify my code??

  or your suggestion is about   change movie file formate(not the code
  can determine),??
  such as sample rate.

  and what's your mean about increase buffer size? and how to do?

  thanks!

  On 7月23日, 下午7時13分, Suchand Ghosh chand4andr...@gmail.com wrote:
   That might be due to codec sample rate which is default max (44100 Hz),
   available channels (2), buffer size (2048 Bytes). Pls increase those
  values,
   provided your h/w need to support. Ref to file  AudioHarwareALSA.cpp.
   It may solve your issue. Thank you.

   BR,
   Chand

    On Thu, Jul 23, 2009 at 5:14 PM, tstanly tsai.sta...@gmail.com wrote:

hi all,

this question i have post once,
but nobody can answer me

I have used videoview to play mp4 formate movie,
but when start to play it, the videoview can't play smoothly,
that means there have a little lag,

but in the:
   http://developer.android.com/guide/appendix/media-formats.html
the android support media formate have mp4..

the code is very simple,just like in the sample code,
please help me, thanks you!

=code===

videoview=(videoview)findIdByView(r.id.videoview);
videoview.setVideoPath(path);
videoview.start();
videoview.requestFocus();

- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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] videoview can't play mp4 smoothly

2009-07-23 Thread tstanly

hi all,

this question i have post once,
but nobody can answer me


I have used videoview to play mp4 formate movie,
but when start to play it, the videoview can't play smoothly,
that means there have a little lag,


but in the:
http://developer.android.com/guide/appendix/media-formats.html
the android support media formate have mp4..

the code is very simple,just like in the sample code,
please help me, thanks you!

=code===

videoview=(videoview)findIdByView(r.id.videoview);
videoview.setVideoPath(path);
videoview.start();
videoview.requestFocus();


--~--~-~--~~~---~--~~
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: videoview can't play mp4 smoothly

2009-07-23 Thread tstanly

thanks for your reply,

so what's the section I could modify my code??

or your suggestion is about   change movie file formate(not the code
can determine),??
such as sample rate.

and what's your mean about increase buffer size? and how to do?


thanks!

On 7月23日, 下午7時13分, Suchand Ghosh chand4andr...@gmail.com wrote:
 That might be due to codec sample rate which is default max (44100 Hz),
 available channels (2), buffer size (2048 Bytes). Pls increase those values,
 provided your h/w need to support. Ref to file  AudioHarwareALSA.cpp.
 It may solve your issue. Thank you.

 BR,
 Chand



 On Thu, Jul 23, 2009 at 5:14 PM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  this question i have post once,
  but nobody can answer me

  I have used videoview to play mp4 formate movie,
  but when start to play it, the videoview can't play smoothly,
  that means there have a little lag,

  but in the:
 http://developer.android.com/guide/appendix/media-formats.html
  the android support media formate have mp4..

  the code is very simple,just like in the sample code,
  please help me, thanks you!

  =code===

  videoview=(videoview)findIdByView(r.id.videoview);
  videoview.setVideoPath(path);
  videoview.start();
  videoview.requestFocus();

  
--~--~-~--~~~---~--~~
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: videoview can't play mp4 smoothly

2009-07-23 Thread tstanly

did you think this problem is a format issue?

because i download a freeware named aPlayer
it play the same video well,and smoothly..


so that i think it's a code issue.



On 7月24日, 上午12時54分, Marco Nelissen marc...@android.com wrote:
 'mp4 format' is pretty broad. What's the resolution of your video? What is
 the bitrate? What is the encoding?



 On Thu, Jul 23, 2009 at 1:14 AM, tstanly tsai.sta...@gmail.com wrote:

  hi all,

  this question i have post once,
  but nobody can answer me

  I have used videoview to play mp4 formate movie,
  but when start to play it, the videoview can't play smoothly,
  that means there have a little lag,

  but in the:
 http://developer.android.com/guide/appendix/media-formats.html
  the android support media formate have mp4..

  the code is very simple,just like in the sample code,
  please help me, thanks you!

  =code===

  videoview=(videoview)findIdByView(r.id.videoview);
  videoview.setVideoPath(path);
  videoview.start();
  videoview.requestFocus();

  - 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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: videoview can't play mp4 smoothly

2009-07-23 Thread tstanly

I chaeck the formate,

h.264 encoding
30 fps

On 7月24日, 上午9時40分, tstanly tsai.sta...@gmail.com wrote:
 did you think this problem is a format issue?

 because i download a freeware named aPlayer
 it play the same video well,and smoothly..

 so that i think it's a code issue.

 On 7月24日, 上午12時54分, Marco Nelissen marc...@android.com wrote:



  'mp4 format' is pretty broad. What's the resolution of your video? What is
  the bitrate? What is the encoding?

  On Thu, Jul 23, 2009 at 1:14 AM,tstanlytsai.sta...@gmail.com wrote:

   hi all,

   this question i have post once,
   but nobody can answer me

   I have used videoview to play mp4 formate movie,
   but when start to play it, the videoview can't play smoothly,
   that means there have a little lag,

   but in the:
  http://developer.android.com/guide/appendix/media-formats.html
   the android support media formate have mp4..

   the code is very simple,just like in the sample code,
   please help me, thanks you!

   =code===

   videoview=(videoview)findIdByView(r.id.videoview);
   videoview.setVideoPath(path);
   videoview.start();
   videoview.requestFocus();

   - 隱藏被引用文字 -

  - 顯示被引用文字 -- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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: videoview can't play mp4 smoothly

2009-07-23 Thread tstanly

sorry about not mention clear before,

and I think is a buffer issue??

is possible get the mp4(/data/t.mp4) to buffer,
and then begin to start??


thanks
On 7月24日, 上午11時50分, Marco Nelissen marc...@android.com wrote:
 2009/7/23 tstanly tsai.sta...@gmail.com



  did you think this problem is a format issue?

  because i download a freeware named aPlayer
  it play the same video well,and smoothly..

 You didn't mention that before.

 so that i think it's a code issue.

 I guess so, but I have no idea what the problem would be.

 On 7月24日, 上午12時54分, Marco Nelissen marc...@android.com wrote:





   'mp4 format' is pretty broad. What's the resolution of your video? What
  is
   the bitrate? What is the encoding?

   On Thu, Jul 23, 2009 at 1:14 AM, tstanly tsai.sta...@gmail.com wrote:

hi all,

this question i have post once,
but nobody can answer me

I have used videoview to play mp4 formate movie,
but when start to play it, the videoview can't play smoothly,
that means there have a little lag,

but in the:
   http://developer.android.com/guide/appendix/media-formats.html
the android support media formate have mp4..

the code is very simple,just like in the sample code,
please help me, thanks you!

=code===

videoview=(videoview)findIdByView(r.id.videoview);

 There is no such method. Can you copy/paste the actual code you're using?



   videoview.setVideoPath(path);
videoview.start();
videoview.requestFocus();

- 隱藏被引用文字 -

   - 顯示被引用文字 -- 隱藏被引用文字 -

 - 顯示被引用文字 -- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
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] about ZoomControls widget issue

2009-07-23 Thread tstanly

hi all,


i add a zoomcontrols in my view,
not in the webview or mapview,

but when i click the zoom in/out,
the view can't in/out?


thanks


my code is:

==

   mZoomControls1=(mZoomControls1)findViewById(r.id.zc);
   mZoomControls1.show();
   /* zoom controls in  */
mZoomControls1.setOnZoomInClickListener(new
ZoomControls.OnClickListener()
{

public void onClick(View v) {
// TODO Auto-generated method stub
mZoomControls1.setIsZoomInEnabled(true);
mZoomControls1.setIsZoomOutEnabled(true);
}

});

/* zoom controls out */
mZoomControls1.setOnZoomOutClickListener(new
ZoomControls.OnClickListener()
{

public void onClick(View v) {
// TODO Auto-generated method stub
mZoomControls1.setIsZoomInEnabled(true);
mZoomControls1.setIsZoomOutEnabled(true);
}

});
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >