[android-developers] Android input devices

2009-04-01 Thread chen.ju...@zte.com.cn
Who knows how many kinds of input device android can support? Touchscreen,keyboard are known,about else,e.g. mouse etc? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Anton
OK, for anyone interested in my simple physics demo, check out: http://www.antonstoys.com/android/BallPit.apk It's pretty basic, but it shows that you can do some amount of physics on the G-phone at a reasonable rate. And as always, there are many improvements to be made. :)

[android-developers] Re: ListView elements in Dialogs never expand to full width

2009-04-01 Thread matthias
anyone? I still cannot sort this one out. --~--~-~--~~~---~--~~ 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

[android-developers] How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread Matthias
Hi, I am struggling over another layouting problem again. I render a ListView with ellipsized TextView elements, but those text views can expand in size when the user clicks it. The problem is: If the ListView doesn't already take the whole screen (e.g. because the total height of all visible

[android-developers] How to set item's height of ListView

2009-04-01 Thread Jiang
Hello, Guys. The default item's height of ListView is too large, how can I set it's height? just like ApiDemos/Views/Lists/6. ListAdapter Collapsed. Thanks! -Jiang ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/

[android-developers] Media player -38 Error

2009-04-01 Thread Ramesh
Hi, I am trying to play media player.Its working fine but in log i am getting this kind of error Can anybody tell me why this error occured and how to solve this. 03-29 14:33:02.529: ERROR/MediaPlayer(1980): Error (-38,0) 03-29 14:33:02.539: ERROR/MediaPlayer(1980): start called in state 0

[android-developers] Re: Performance: pre-instantiate activities on app launch? Good practice or not?

2009-04-01 Thread matthias
Thanks for your reply Dianne. As to profiling, I looked at traceview, but seems to be a bit overly simplistic to actually profile a whole app. What I understand from the documentation, what it actually does is measuring the time it takes for a single method to complete. That's not a terribly

[android-developers] Re: Fling on ListView

2009-04-01 Thread matthias
Romain, thanks for pointing out onInterceptTouchEvent()! I'll take a look at that method ASAP. As to the it was meant to be part of the UI design, I really wonder why practically none of the apps shipped with Android use gestures then (I mean, apart from scrolling up or down of course)? I can

[android-developers] what can I do if I want to register 4 discontiguous buffers to surface flinger?

2009-04-01 Thread jiangchd
Only contiguous buffer is allowed to be registered to Surface flinger now, what can I do if I want to register 4 discontiguous buffers to surface flinger? Any suggestions? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How do I know where my app received an ANR

2009-04-01 Thread idev
Hi Is there a way of finding out where my app threw an ANR (Application Not Responding). I took a look at the traces.txt file in /data and I see a trace for my application. This is what I see in the trace. DALVIK THREADS: main prio=5 tid=3 TIMED_WAIT | group=main sCount=1 dsCount=0 s=0

[android-developers] Help! Process down after loadlibrary in Service

2009-04-01 Thread herain
I need to load a .so library in my Service onCreate method, but the process just down after System.load. On the other hand, the same code can work in Activity. Are there some differences between activity and service in the way of load .so file. My code: class AisoundService extends Service{

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-04-01 Thread Sergi Velez
If you install the official v1.1 system image for the ADP1 http://www.htc.com/www/support/android/adp.html then the Market client should be able to access both paid and free apps, provided they are not copy-protected. (ADP1s cannot access copy-protected applications.) This applies to

[android-developers] Use native C/C++ libraries

2009-04-01 Thread gunar
Hi! Is it possible to use a native C/C++ library? If so, are there any restrictions for those libraries to be used? Br, gunar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Display of SQLite database information in tabular format

2009-04-01 Thread Zhubham
Hi, I am interested in knowing how can we display the SQLite database information in tabular format, the same way, as it is visible through the SQL reader (SQLite Database Browser). Are there any set of commands which help to achieve this?? Looking forward for your replies. Thanks. Best

[android-developers] Re: How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread matthias
Well, I found a really ugly workaround. That workaround is based on my observation that the problem described does only occur if the ListView's layout height is set to WRAP_CONTENT. So, since I use a custom list adapter, I now call listView.getLayoutParams().height = LayoutParams.FILL_PARENT

[android-developers] Adb connection Error

2009-04-01 Thread jayesh.thadani
Hello All, After i close my application, immediately after 1-2 min i get error like mentioned below, with unusual time, and after restarting application it works fine. Generally it throws error like this, And i am not been able to conclude the problem. Even firewall is turned off. [2009-04-01

[android-developers] playing video file

2009-04-01 Thread jaimin
hi, i have problem in playing video file. Video file is playing nice but i want to play video file in the whole emulator (size).Right now video file is playing but in small size. so any suggestion or solution plz help me. thanks. jaimin. --~--~-~--~~~---~--~~ You

[android-developers] Re: dispatchTouchEvent works differently when finger hold on touch screen in G1 emulator

2009-04-01 Thread Oceanedge
Thank you very much. It works fine. On Mar 31, 10:14 am, Streets Of Boston flyingdutc...@gmail.com wrote: Override you dispatchTouchEvent(...), as you do right now, and forward its MotionEvent to a GestureDetector you created. public class MyView {    GestureDetector mGD = new

[android-developers] Why isn't the standby instruction able to stop the thread?

2009-04-01 Thread Augustin.CL
Dear All, Recently, I have tried to know what would happen to an alive thread, when the device goes to sleep. I program a simple activity that will create and start a thread printing HERE AM I repeatedly through Log.d. I expect the thread would be stopped after I echo standby

[android-developers] Mirrored TextView

2009-04-01 Thread MichaMicha
Hi, I want to create a TextView with the text mirrored vertically. I tried this code, but it doesn't show anything... Does anyone have an idea? /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] send bytes[] buffer in httppost

2009-04-01 Thread zeeshan
Hi Experts, i need to post image on server by http post with some parameters, here is a piece of code i am trying: List NameValuePair nvps = new ArrayList NameValuePair(); nvps.add(new BasicNameValuePair(message[content],abc)); nvps.add(new BasicNameValuePair(message[image],?)); // here i

[android-developers] A ppp change in Android

2009-04-01 Thread Weizhong
Hi there Currently in .../external/ppp/pppd/auth.c, function check_passwd, somebody write { #if 1 return UPAP_AUTHNAK; #else . This basically means PAP auth is not allowed on android. Is there any reason behind this? Can I savely change the #if 1 to #if 0? thanks, Xia Weizhong

[android-developers] Text in of a custom drawable

2009-04-01 Thread Erik H
Hi, I need help to add text in a custom drawable. I'm looking in tha API (android.graphics...) but cannot find any way of doing this. What I basically want is a drawable that contains text that I can change. Is this even possible today? It must be a drawable as I use it where a drawable is

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-04-01 Thread Stoyan Damov
On Wed, Apr 1, 2009 at 7:32 AM, Dan Morrill morri...@google.com wrote: This is not true.  Devices that are identified as root-enabled, whether an ADP1 or a rooted retail G1, cannot access copy-protected apps. They can still access both paid and free apps that are not copy-protected, however.

[android-developers] Is it possible to read cellular-network messages?

2009-04-01 Thread szeldon
Hi, I wonder if it is possible to read messages of cellular network in Android? By this I mean all those beacons that are transmitted by cellular network, all the requests for registration, connection etc. It would be great to see this in Java part of Android, but if it is possible only in lower

[android-developers] Re: ListView elements in Dialogs never expand to full width

2009-04-01 Thread matthias
Okay, I found (once again), a rather ugly workaround for this: Putting the textview in layout object does the job. Like this: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] Re: Passing a 2 dimensional array to an Activity

2009-04-01 Thread dillirao malipeddi
you can do in this way also... Use a static two dimensional array in separate class and use it in service and activity On Wed, Apr 1, 2009 at 11:25 AM, Zhubham sahilz...@gmail.com wrote: Hi, I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE. How can I achieve this in

[android-developers] Re: How do I know where my app received an ANR

2009-04-01 Thread dillirao malipeddi
You must not run any complex operations on main thread like i/o , or network operations for those operations use separate thread , otherwise it will cause ANR On Wed, Apr 1, 2009 at 1:32 PM, idev ideveloper...@gmail.com wrote: Hi Is there a way of finding out where my app threw an ANR

[android-developers] android.intent.action.TIME_TICK - Has anyone used it?

2009-04-01 Thread simonc
I'm trying to get an application / reciever / anything that can perform a task once every minute. I'm trying to use the intent-filter android.intent.action.TIME_TICK which, in theory, sends an Intent message every minute. Does anyone have any code that uses the android.intent.action.TIME_TICK

[android-developers] Re: android.intent.action.TIME_TICK - Has anyone used it?

2009-04-01 Thread Mark Murphy
simonc wrote: I'm trying to get an application / reciever / anything that can perform a task once every minute. That seems harsh for battery life, but maybe there's more to this that I'm not privy to. I can't seem to get it to send the intent to my application and I can't find anything much

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
Thanks for the demo Anton, It certainly runs much smoother than the Phys2D and JBox2D engines I have tried and you have more objects being simulated - so you must have done something right ;) I would expect it to run 2-3 times faster on an actual device too from what I have read. Once you have

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Stoyan Damov
I'm quite interested as well. On Wed, Apr 1, 2009 at 3:04 PM, mscwd01 mscw...@gmail.com wrote: Thanks for the demo Anton, It certainly runs much smoother than the Phys2D and JBox2D engines I have tried and you have more objects being simulated - so you must have done something right ;) I

[android-developers] Re: Passing a 2 dimensional array to an Activity

2009-04-01 Thread Miguel Paraz
On Apr 1, 1:55 pm, Zhubham sahilz...@gmail.com wrote: I need to pass a 2 dimensional array to an ACTIVITY  from a SERVICE. How can I achieve this in minimum number of statements (as in avoiding putExtras for each and every string stored in the array)?? Hi, You could use the JSON en/decoding

[android-developers] Re: Passing a 2 dimensional array to an Activity

2009-04-01 Thread Mark Murphy
Miguel Paraz wrote: On Apr 1, 1:55 pm, Zhubham sahilz...@gmail.com wrote: I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE. How can I achieve this in minimum number of statements (as in avoiding putExtras for each and every string stored in the array)?? Hi, You could

[android-developers] Re: Is it possible to read cellular-network messages?

2009-04-01 Thread David Turner
I believe most radio messages are handled by the radio firmware which, in the case of the G1 and ADP1, runs on a separate ARM9 processor which doesn't share a memory bus with the ARM11 Android itself runs on. In other words, they are not available. On Wed, Apr 1, 2009 at 12:36 PM, szeldon

[android-developers] Re: Use native C/C++ libraries

2009-04-01 Thread Mark Murphy
gunar wrote: Is it possible to use a native C/C++ library? If you are developing changes to the firmware, yes. Questions on this are best address to a mailing list appropriate for firmware-level discussions: http://source.android.com/discuss If you are developing an application designed to

[android-developers] Calender application

2009-04-01 Thread swapnil
Do android have Calender application present in it? If not how can we put any appointments or reminders in the Calender? Thanks in Advance. Swapnil Dalal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: send nmea data to android emulator

2009-04-01 Thread David Turner
Do you have example sentences that demonstrate the problem. For the record, the emulator-specific GPS support in the system will only record GPRMC sentence with a fix status of 'A' On Tue, Mar 31, 2009 at 1:51 PM, malt alt.mi...@googlemail.com wrote: I'm writing a Android gps application using

[android-developers] Re: How to enable Network Location provider.

2009-04-01 Thread David Turner
Did you enabled the GPS with Settings Security location Enable GPS satellites ? On Mon, Mar 16, 2009 at 7:56 AM, Kumar androidq.ku...@gmail.com wrote: Hi, Alex Thanks for your reply to my earlier mail, I am unable to get the location updates when i use Network location provider. From the

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-04-01 Thread Evgeny V
I have unlocked phone purchased from ebay. I can't see the paid APP too. On Wed, Apr 1, 2009 at 11:36 AM, Sergi Velez sergi.ve...@gmail.com wrote: If you install the official v1.1 system image for the ADP1 http://www.htc.com/www/support/android/adp.html then the Market client should be

[android-developers] Re: Display of SQLite database information in tabular format

2009-04-01 Thread Mark Murphy
Zhubham wrote: I am interested in knowing how can we display the SQLite database information in tabular format, the same way, as it is visible through the SQL reader (SQLite Database Browser). Are there any set of commands which help to achieve this?? Pull the database off the device,

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-04-01 Thread David Turner
There is a pending fix here: https://review.source.android.com/Gerrit#change,9452 Note that the build system is a bit buggy and will not re-generate system.img if you integrate this (even though it copies the proper file to out/.../system/etc/vold.conf). One way to force it is: touch

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Bobbie
I tried this code, and every time it force closes. The Uri object gives me the Uri, but I can't see why it's failing... Please help!!! Uri photoUri = intent.getData(); Cursor cursor = getContentResolver().query(photoUri, new String[] {MediaStore.Images.ImageColumns.DATA}, null, null, null);

[android-developers] Re: How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread Streets Of Boston
If your list-view uses a (list-)adapter (or a subclass of this), did you try to call notifyDataSetInvalidated() on the adapter? This will cause your adapter's getView(int position, View convertView, ViewGroup parent) to be called again and you can handle your changed list-item in there. On Apr

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Streets Of Boston
I can't tell. Debug your code and see which statement throws an exception and see what exception is thrown and note the values of the variables (are some set to null when they shouldn't, for example). On Apr 1, 9:35 am, Bobbie bobbie.st...@gmail.com wrote: I tried this code, and every time it

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-04-01 Thread Eric
The HTC 1.1 image and instructions that you have linked to is what I originally put on the phone and still could not see any paid apps, even my own which are not copy protected. After seeing some chatter about this holiday release, I tried that and still no luck. I'm going back to the HTC 1.1

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Streets Of Boston
Two thumbs up! It's fast, not superfast, but there are quite a number of balls in the pit. I'm impressed. If this code could get into the native system, into the firmware... On Apr 1, 2:44 am, Anton socialhac...@gmail.com wrote:     OK, for anyone interested in my simple physics demo, check

[android-developers] Re: Photo Picker

2009-04-01 Thread Bobbie
Any other ideas Boston? Eclipse won't even let me compile that code without putting it in debug mode, so there is something different in that code. Could you take another look? Thanks! On Mar 31, 5:57 pm, Bobbie bobbie.st...@gmail.com wrote: No, I have nothing in onPause().  I guess I'll

[android-developers] Re: Photo Picker

2009-04-01 Thread Bobbie
Here's my debug errors: 04-01 10:01:33.318: ERROR/AndroidRuntime(30289): Uncaught handler: thread main exiting due to uncaught exception 04-01 10:01:33.418: ERROR/AndroidRuntime(30289): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1, result=-1, data=Intent

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-04-01 Thread Tom
Try this: Create a set of volatile variables (toPause, isPaused, toStop, isStopped). Outside the thread, in the methods mentioned previously, set or clear the appropriate variables. Inside the thread, be checking the appropriate variables to determine if the thread needs to be paused or

[android-developers] OpenGL SurfaceView renders black on first start - works after orientation change

2009-04-01 Thread Ulrich Scheller
I have an Activity that was created based on the TriangleRenderer example. It works flawlessly as a standalone project, but when I use it as the tab of a tabhost there is a problem. At startup the whole activity is just black - I can get touch events and do everything else but it doesnt show

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-04-01 Thread clark
Root-enabled G1s are still able to see copy-protected apps. I think it is just the ADP phones that the market detects, because my rooted G1 is able to see copy-protected apps, and download them. I have verified this by looking in the app-private folder on the phone and seeing that the app that

[android-developers] Re: Display of SQLite database information in tabular format

2009-04-01 Thread Zhubham
Hi, My intention is to display the record in tabular format on the emulator. I intetnd to display the database table on the emulator very much similar to the way your tool( OR any other tool) would display it. Any suggestions how i can do that. Thanks in advance. Best Regards, Zhubham.

[android-developers] Byte code format

2009-04-01 Thread Zhubham
Hi, I am keen on understanding how the DVM works and finally what's the format of the generated byte code. Can anyone please recommend a weblink for this. As such, i am looking for the size of Code Segment, Data Segment, Stack, Heap. How can I find these details for any Android application

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread clark
Is this even a topic for google's engineers? The way I see it is it would be up to the manufacturer of the hardware to decide whether to implement the Java VM or Dalvik. There is no guarantee that hardware will have a processor that is optimized for java byte code, and therefore should not be

[android-developers] SystemProperties.get()/set()

2009-04-01 Thread Lawrence
Hi all, In case of reading/setting properties defined in /default.prop /system/build.prop /system/default.prop /data/local.prop, i am finding many source code in android release are using SystemProperties.get()/set() for this purpose. But i am also finding that SystemProperties is not published

[android-developers] Re: [android-discuss] Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread Ecthelion
Google is not forced by Sun in any way. It's just that Sun requests license fees for their JVM and that does not fit with Android being planned by Google as a platform where the manufacturers have no license fees to pay for. On Mar 31, 8:42 pm, Stoyan Damov stoyan.da...@gmail.com wrote: If

[android-developers] Re: Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread Ecthelion
This I cannot confirm. The C64 emulator Mobile C64 runs with AFAIK 10-15% of the original C64 speed on a G1 with its 528 MHz CPU. On my Samsung SGH-i600, with a 624 MHz CPU, the J2ME variant ran at close to 100% of the original C64 speed. This is a factor of 6-10 faster although the device's CPU

[android-developers] Re: OpenGL SurfaceView renders black on first start - works after orientation change

2009-04-01 Thread Ulrich Scheller
I have solved it with an ugly hack. This is not a solution but a workaround until I find a better way: private GLSurfaceView mGLSurfaceView; private static boolean firstCreate = true; /* * Constructors */ /* * Methods */

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-04-01 Thread Stoyan Damov
Aha, so until rooted phones can't see copy-protected apps I don't see any reasons to protect my app. If just 1 user can download and share it with the world it is meaningless to waste twice the space on the user's phone for nothing. On Wed, Apr 1, 2009 at 5:15 PM, clark clarkd...@gmail.com

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-04-01 Thread Streets Of Boston
Do *not* use volatile variables. They are not guaranteed to be atomic. It's just a compiler hint. Instead, use synchronized blocks: class MyThread extends Thread { boolean mPaused; boolean mStopped; public void run() { ... ... mStopped = false; mPaused = true or false,

[android-developers] Re: How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread Romain Guy
ListView supports the WRAP_CONTENT height mode but it is really not meant for that. First of all, having a ListView in WRAP_CONTENT is very costly in terms of layout. It is also meaningless. What does WRAP_CONTENT mean for a ListView since the goal of ListView is to virtualize its children?

[android-developers] Discussion on localizing-android-apps-draft

2009-04-01 Thread Matthias
Xavier, very helpful! thanks for sharing, works perfectly. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Fling on ListView

2009-04-01 Thread Romain Guy
As to the it was meant to be part of the UI design, I really wonder why practically none of the apps shipped with Android use gestures then (I mean, apart from scrolling up or down of course)? We use gestures for scrolling: ListView, GridView, Gallery, MapView, WebView, ScrollView. Calendar

[android-developers] Re: can i add a click listener to a drawable?

2009-04-01 Thread Marco Nelissen
You might want to look at the source code for the camera app, which uses a SurfaceView for its preview, and puts controls on top of it. On Tue, Mar 31, 2009 at 9:21 PM, Josh Dobbs joshdo...@gmail.com wrote: I am using in ImageButton Now and am using the following code to ad the button to the

[android-developers] Re: Scroll and drag a TileView widget around by finger / touch

2009-04-01 Thread Streets Of Boston
What about using a ScrollView as your container view?: LinearLayout |--ScrollView |-- SkyView On Apr 1, 11:49 am, acrosser toned...@gmail.com wrote: Surely this hasn't stumped the group of brilliant Android developers! :-) Is there any tutorial or reference page someone can point me

[android-developers] How to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-04-01 Thread manoj
Hi friends, In my app, I am getting this response. I dont know how to handle this. Please can some one suggest me. Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Troubles with SurfaceView's surfaceCreated/Destroyed

2009-04-01 Thread kbeal10
Thank you, I will try to implement this when I have time. I now understand where my confusion was stemming from. I was under the impression that each time the CupView Activity was resumed, a new CupView object was created thus creating a new CupThread. However I now see that is not the case, the

[android-developers] Re: How to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-04-01 Thread Mark Murphy
manoj wrote: In my app, I am getting this response. I dont know how to handle this. That would probably be best answered by whoever is running the server you are trying to download data from. If you can give us more information, such as which HTTP client library you are using, we might be able

[android-developers] Re: How to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-04-01 Thread manoj
Actually, I am trying to request some data which is available at remote site. On Apr 1, 8:57 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, In my app, I am getting this response. I dont know how to handle this. Please can some one suggest me. Thanks, Manoj.

[android-developers] Re: How to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-04-01 Thread manoj
Actually I am implementing socket connection, with some range headers. For some urls I am getting the nice response (206), but for some urls I am getting this response. On Apr 1, 9:05 pm, Mark Murphy mmur...@commonsware.com wrote: manoj wrote: In my app, I am getting this response. I dont

[android-developers] Re: Use native C/C++ libraries

2009-04-01 Thread ambrosehua
Yes. The C lib is bionic which didnot provide exactly the same functions as glibc! On 4月1日, 下午4时47分, gunar adrian.proco...@gmail.com wrote: Hi! Is it possible to use a native C/C++ library? If so, are there any restrictions for those libraries to be used? Br, gunar

[android-developers] alsa-lib

2009-04-01 Thread l hx
today i get the master code. when I compile ALSA, and it says external/alsa-lib/src/shmarea.c:27:21: error: sys/shm.h: No such file or directory what should I do now? now i copy the shm.h from the former version android. can be ok? --~--~-~--~~~---~--~~ You

[android-developers] Static Variable after Application life cycle.

2009-04-01 Thread wacamoe
Hello all, I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not

[android-developers] SQLite functions - how to use them?

2009-04-01 Thread sirius
Hi, I read in the documentation for SQLite that there should be some core functions and aggregate functions available, but I can't seem to use them in my code.. Can anyone help? Here's the documentation i read: http://www.sqlite.org/lang_aggfunc.html http://www.sqlite.org/lang_corefunc.html

[android-developers] Some of the strange JAVA syntax - android specifics?

2009-04-01 Thread Bin Chen
I am a C programmer before, and I am looking into android source code right now, some JAVA syntax is confusing, I am not sure whether or not it's android related, see: @Override protected void onDraw(Canvas canvas) { synchronized (this) { if (mBitmap

[android-developers] android.provider.MediaStore.RECORD_SOUND

2009-04-01 Thread estivenrpo
Hi, I try to use the android.provider.MediaStore.RECORD_SOUND intent and it work perfect, the problem that i have is whit the uri when the file is saved... the file is saved on /sdcard but i don't know the path or the uri of the file... I try to send a uri through the putExtra but it did not

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Daniel Sargeant
It does look smooth on the G1. The use of accelerometers is quite cool. Good job on minimizing the GC jitters. The screen has horrible ghosting with green to grey transitions, however, which mars the smooth framerate a bit. Red balls would probably reduce that. -Daniel Sargeant On Wed, Apr 1,

[android-developers] Which android's version can support file transfer through bluetooth?

2009-04-01 Thread Kelly Mao
Which android's version can support file transfer through bluetooth? --~--~-~--~~~---~--~~ 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

[android-developers] Altering the resource values in the APK after creating it

2009-04-01 Thread Google_Android_discussion
Hi, Is it possible to alter the string values(in resources) in APK after creating it. Br, Vikram --~--~-~--~~~---~--~~ 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] Re: Android Physics Engine

2009-04-01 Thread lkelemen
Hello everyone, I was also disappointed with jbox2d's performance so I checked APE (Actionscript Physics Engine) from http://www.cove.org/ape/ . It was converted to java (http://www.cove.org/ape/java_ape.zip) so I started to convert the java version to Android. The performance is quite OK for

[android-developers] Signing Problem of an APK

2009-04-01 Thread androch...@gmail.com
Hi i try to sign my apk.. i exportet it unsigned.. created my keys and when i start now jarsigner i get: I get the following Error .. what can i do?? Enter Passphrase for keystore: Exception in thread main java.util.zip.ZipError: jzentry == 0, jzfile = 34283992, total = 22, name =

[android-developers] SD Card

2009-04-01 Thread l hx
Hi. today i get the newest code and make it .but when i mksdcard, and mount it as same as i did before. but now i can not acces sd card int the emulate. who know why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Error creating file on SD card

2009-04-01 Thread BJP
I would like to write a file to the SD card from my application, but the following code throws an IOException when debugged on a T-Mobile G1: String p = Environment.getExternalStorageDirectory() + /log.txt; File recfile = new File(p); recfile.createNewFile(); The last line throws an IOException

[android-developers] Re: MediaPlayer sluggish to play sounds

2009-04-01 Thread Alexey
I think you have to get WakeLock to avoid your media stop when phone is going to sleep. Try to use setWakeMode() method of MediaPlayer or if it won't help for some reason, you can use PowerManager/WakeLock classes directly. On 1 апр, 04:35, Eric M. Burke burke.e...@gmail.com wrote: I have an

[android-developers] Static Variable Instantiation

2009-04-01 Thread wacamoe
Hello all, I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not re-instantiate

[android-developers] setup email account programatically

2009-04-01 Thread reck.wh...@gmail.com
Hello, Does anyone know how to add email accounts to the default email application programatically? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Some questions about Bluetooth A2DP.

2009-04-01 Thread Kelly Mao
I have got the code of Android 1.5,But i haven't downloaded in the phone. During read the code,I have some question about the A2DP. 1) The bluetooth earphone have connected with the phone,How does it switch to A2DP channel when we play mp3 ? Auto-switch or Depending on events from application? 2)

[android-developers] Re: Help! Process down after loadlibrary in Service

2009-04-01 Thread ambrosehua
It seems that the process(26719) shut down, rather than the service (26726); Do you mean whether the service which loaded the .so shut down or after service loaded .so, the process(26719) which maybe use the service got killed? On 4月1日, 下午4时32分, herain herainw...@gmail.com wrote: I need to

[android-developers] How to get the current webpage title and url

2009-04-01 Thread Rain
I want to use the webview's getTitle() and getUrl() to get the current webpage title and url,but i don't know how to do... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] For Bluetooth File Transfer What I can do?

2009-04-01 Thread Kelly Mao
Android 1.0 can't support file transfer.If I want to do by myself what I can do? It seems don't have OBEX protocol. who knows? Please give me reply. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to run apk file on SDcard?

2009-04-01 Thread Fred Grott(shareme)
not possible Stephen Le wrote: Hi all, How to run one or more apk programmess base on Emulator's SDcard? Thanks! -- Sincerely! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-04-01 Thread Joseph Arceneaux
I read somewhere that Google forbids the availability of paid apps to [unlocked] developer phones. It's very frustrating. Also, it seems that dev phones don't get Over The Air (OTA) updates of software. Joe On Tue, Mar 31, 2009 at 6:40 AM, Eric Schott ericwsch...@gmail.com wrote: I have a

[android-developers] Static Variables after Application life cycle

2009-04-01 Thread wacamoe
Hello all, I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not re-instantiate

[android-developers] Bluetooth : RFCOMM connection fails while connecting to a headset which is in discoverable mode.

2009-04-01 Thread Bhargavi
Hi, Iam novice to android and i have seen a issue in G1. can some one help me to proceed further ? Steps to reproduce: 1.Pair and connect to a BT mono / Stereo headset. 2. Disconnect the headset from the G1 phone. 3. Switch off the headset.(Plantronics 320 / Motorola HT820) 4. Put the headset

[android-developers] Re: Static Variable Instantiation

2009-04-01 Thread Romain Guy
This is the correct and normal behavior of static fields :) If you need to reset them, you will have to do so manually. On Tue, Mar 31, 2009 at 10:37 PM, wacamoe waca...@gmail.com wrote: Hello all,  I have noticed in my application(s) that after a call to Activity.finish() that the static

[android-developers] Re: SQLite functions - how to use them?

2009-04-01 Thread Mark Murphy
sirius wrote: Hi, I read in the documentation for SQLite that there should be some core functions and aggregate functions available, but I can't seem to use them in my code.. Can anyone help? Here's the documentation i read: http://www.sqlite.org/lang_aggfunc.html

[android-developers] Re: alsa-lib

2009-04-01 Thread Mark Murphy
l hx wrote: today i get the master code. when I compile ALSA, and it says external/alsa-lib/src/shmarea.c:27:21: error: sys/shm.h: No such file or directory what should I do now? now i copy the shm.h from the former version android. can be ok? Questions regarding the Android source code

[android-developers] Re: Drop entire database?

2009-04-01 Thread sirius
Hi, You can drop the table by writing DROP TABLE tablename IF EXISTS But after that it is good to do a VACUUM (info about that in the link below). I.e the code might look like: private SQLiteDatabase db; private static final String TABLE_NAME = name_of_table; try{db.execSQL(DROP TABLE IF

[android-developers] Re: Which android's version can support file transfer through bluetooth?

2009-04-01 Thread Mark Murphy
Kelly Mao wrote: Which android's version can support file transfer through bluetooth? None, presently. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year

  1   2   >