[android-beginners] Re: Problems with ListActivity
Sorry, I didn't make it very clear. What I'm after is to have an Activiy composed of several views. One of them should be a View similar to the one of ListActivity. Ideally, I would have some layout defined in an XML file, reference that in my Java code, and based on some I/O operation, populate a View (like that one of ListActivity) and attached it to my main activity. Hope that's a bit clearer now. Thanks. Could you define what you mean by on top of another Activity? Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Drawing a path line
Do you want to show driving directions? I think this isn't possible anymore without getting the information via HTTP vom Google Maps directly. The class com.google.googlenav.DrivingDirection isn't available anymore in the SDK 1.0. Dennis On 12 Nov., 01:47, Allan Valeriano [EMAIL PROTECTED] wrote: Hi all, I've been trying to draw a path line for a while, but had no success. I tried a dummy code just to see if it works, but couldn't make it draw anything. The code I'm using is: Path path = new Path(); Projection proj = mapView.getProjection(); GeoPoint point1 = new GeoPoint(37423157, -122085008); GeoPoint point2 = new GeoPoint(37495999, -122457508); Point p1 = new Point(); Point p2 = new Point(); proj.toPixels(point1, p1); proj.toPixels(point2, p2); path.moveTo(p1.x, p1.y); path.lineTo(p2.x, p2.y); this.pathPaint.setStrokeWidth(4); this.pathPaint.setARGB(100, 113, 105, 252); canvas.drawPath(path, pathPaint); This code is inside my overridden *draw* method, which is called every time my location, on the map, changes. I found an example (http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t...) on how to do this, but it uses an old API that is not available anymore. Anybody knows what am I doing wrong here? --Valeriano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: emulator isn't launching
Have you tried to clean your emulator? emulator -wipe-data Dennis On 11 Nov., 23:56, error404 [EMAIL PROTECTED] wrote: Hi. I have problem with android emulator when I'm launching application. It's writing on eclipse console NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space left on device I don't know what I should do :-(( I'm using windows vista and eclipse version 3.4.1... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Drawing a path line
Then just draw a line. ;) canvas.drawLine(startX, startY, stopX, stopY, paint) All x, y values are inside the screen coordinate system, for example inside 320x480. Dennis On 12 Nov., 12:33, Allan Valeriano [EMAIL PROTECTED] wrote: Not really. I just want to draw a straight line from point A to point B. --Valeriano On Wed, Nov 12, 2008 at 6:32 AM, Dennis Wilmsmann [EMAIL PROTECTED] wrote: Do you want to show driving directions? I think this isn't possible anymore without getting the information via HTTP vom Google Maps directly. The class com.google.googlenav.DrivingDirection isn't available anymore in the SDK 1.0. Dennis On 12 Nov., 01:47, Allan Valeriano [EMAIL PROTECTED] wrote: Hi all, I've been trying to draw a path line for a while, but had no success. I tried a dummy code just to see if it works, but couldn't make it draw anything. The code I'm using is: Path path = new Path(); Projection proj = mapView.getProjection(); GeoPoint point1 = new GeoPoint(37423157, -122085008); GeoPoint point2 = new GeoPoint(37495999, -122457508); Point p1 = new Point(); Point p2 = new Point(); proj.toPixels(point1, p1); proj.toPixels(point2, p2); path.moveTo(p1.x, p1.y); path.lineTo(p2.x, p2.y); this.pathPaint.setStrokeWidth(4); this.pathPaint.setARGB(100, 113, 105, 252); canvas.drawPath(path, pathPaint); This code is inside my overridden *draw* method, which is called every time my location, on the map, changes. I found an example ( http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t...) on how to do this, but it uses an old API that is not available anymore. Anybody knows what am I doing wrong here? --Valeriano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: emulator isn't launching
just a silly question, do you have space left on your hard disk ? the error message seems to indicate that you don't. On Wed, Nov 12, 2008 at 12:04 PM, error404 [EMAIL PROTECTED] wrote: no... It's falling again... When I tried clean emulator with emulator - wipe-data, it's writing same message on console - NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/ \system.img, No space left on device On Nov 12, 11:49 am, error404 [EMAIL PROTECTED] wrote: thnx :-)... it's running;-) On Nov 12, 9:40 am, Dennis Wilmsmann [EMAIL PROTECTED] wrote: Have you tried to clean your emulator? emulator -wipe-data Dennis On 11 Nov., 23:56, error404 [EMAIL PROTECTED] wrote: Hi. I have problem with android emulator when I'm launching application. It's writing on eclipse console NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space left on device I don't know what I should do :-(( I'm using windows vista and eclipse version 3.4.1... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: emulator isn't launching
no... It's falling again... When I tried clean emulator with emulator - wipe-data, it's writing same message on console - NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/ \system.img, No space left on device On Nov 12, 11:49 am, error404 [EMAIL PROTECTED] wrote: thnx :-)... it's running;-) On Nov 12, 9:40 am, Dennis Wilmsmann [EMAIL PROTECTED] wrote: Have you tried to clean your emulator? emulator -wipe-data Dennis On 11 Nov., 23:56, error404 [EMAIL PROTECTED] wrote: Hi. I have problem with android emulator when I'm launching application. It's writing on eclipse console NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space left on device I don't know what I should do :-(( I'm using windows vista and eclipse version 3.4.1... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: STL Standard Template Library Support
First, please note that Android does *not* support native code development at the moment. Even the open source tree doesn't provide a real STL library at this point. While many parts of the system are written in C++, we profiled and avoided using STL there because it easily generates *very* large binaries that run very poorly on embedded CPUs like the ARM that have tiny instruction caches. We thus had to provide our own templatized containers instead. That doesn't mean you absolutely can't develop a native application, but: 1 - it will have to statically link to your own version of the STL 2 - it will not be easily installable to supported Android devices, like the G1 3 - don't expect it to be small or run very fast. We may provide native development support in the future, but I doubt this will include full STL support. On Wed, Nov 12, 2008 at 3:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Our organization just moved to Android and we have lot of legacy code that was built around STL Containers. I have been searching through blogs and android source trees but couldn't find support for STL in Android latest release. STL seems to be limited to pair and some basic string manipulation functions. I am curious if anyone has run into this issue and has found ways to get around it. Does android provide STL support including Container classes, Vector and std namespace. Thank You Sanjay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Is there a way to fake camera input on the emulator?
I don't know of any way in the emulator. I do know that zxing used to have a way of reading in an image from the device as camera input. It used to be that you used adb to copy a file over to /tmp/barcode.jpg That's no longer supported though. I did speak with some people on the zxing list to see if there was any equivalent and there's a glimmer of hope that something may be available. Since I can't find my own message any more I'll link you to the following one: http://groups.google.com/group/zxing/browse_thread/thread/15bee82edbd17959/5e19913c20735f6d?hl=enlnk=gstq=barcode.jpg#5e19913c20735f6d Of course, if you're comfortable hacking apart the android java files that come with zxing then you should be able to make it load a Bitmap instead of use the camera. Again, there's no proper way of using a camera in the emulator as far as I know. It really would be a big help though. Regards, Stuart. On Nov 11, 8:42 pm, callingshotgun [EMAIL PROTECTED] wrote: I've started playing around with the zxing barcode scanner, and was hoping there was a way to load an image into the emulator, such that the emulator's camera sees that image and lets you capture it? It seems like there should be a way, especially considering all the things the emulator *does* let you fake (location, etc), but I haven't been able to find any documentation on how to do so. Much appreciated. -Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Pre-purchase concerns about the G1
1. No, as far as I can think, you can't do both. :/ On Nov 11, 3:37 pm, chrisdonia [EMAIL PROTECTED] wrote: I'm keen to get on the Android bandwagon early, feeling betrayed by Nokia's inability to keep up with the competitors. But I'm now worried that the things I use my phone for the most will not be provided by the G1. Hopefully somebody can give some answers to my main concerns: 1. No headphone socket; I can cope with this, BUT is it possible to charge the phone whilst having headphones plugged in? 2. No stereo Bluetooth; Is this a hardware or software restriction? Is it possible that a later firmware might allow change, or are we stuck with it? 3. No Flash; presumably Adobe will get around to releasing an Android- compatible Flash player? 4. Media players; I listen to music and watch divx or flv files A LOT on third party applications. Is there something equivalent? I'm terribly afraid I'm going to end up with a shiny G1 which I use for phone/internet and an iPod touch for the rest of my lifestyle, and this distresses me :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Download voicemail from Android.
Sharadov wrote: I am looking for a way to download the voicemail from the android. There is no voicemail on the android. Voicemail is held by the mobile carrier's systems. The iphone has locked down certain parts of the phone like: * appointments from the Calendar app * music or videos from the iPod app * phone or SMS functionality Are these going to be locked down as well That would be a question for the individual firms who make software for Android. In the case of the G1's Calendar application, AFAIK, all that does is access Google Calendar. In the case of the Amazon MP3 market, you will need to ask Amazon. In the case of the YouTube player, you will need to ask the YouTube division of Google. And I don't know what you mean by phone or SMS functionality. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: emulator isn't launching
thnx :-)... it's running;-) On Nov 12, 9:40 am, Dennis Wilmsmann [EMAIL PROTECTED] wrote: Have you tried to clean your emulator? emulator -wipe-data Dennis On 11 Nov., 23:56, error404 [EMAIL PROTECTED] wrote: Hi. I have problem with android emulator when I'm launching application. It's writing on eclipse console NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space left on device I don't know what I should do :-(( I'm using windows vista and eclipse version 3.4.1... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: emulator isn't launching
Have you checked the Path name is correct? it looks wrong. Else create a new SDCard using mksdcard with new volume try. With Regards Devarajan.G Naidu [P r o j e c t A r c h i t e c t] BlazeDream Technologies Pvt Ltd Mobile: +91 98844 87089 Whatever you do, do well, and may success attend your efforts - Dennis Wilmsmann wrote: Have you tried to clean your emulator? emulator -wipe-data Dennis On 11 Nov., 23:56, error404 [EMAIL PROTECTED] wrote: Hi. I have problem with android emulator when I'm launching application. It's writing on eclipse console NAND: could not write file D:\Android \android-sdk-windows-1.0_r1\tools/lib/images/\system.img, No space left on device I don't know what I should do :-(( I'm using windows vista and eclipse version 3.4.1... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] find text in page
How do I find text within a page in the browser app? I use this feature all the time on firefox and its even more important to be able to search for text on a phone browser where you can only see a small portion of a web page at a time... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Diggin Mobile
I too have been very interested in the release of Diggin for Android. I emailed the developers a week ago to check on a potential release date. This is what I got in my email yesterday. -- Forwarded message -- From: Diggin Mobile [EMAIL PROTECTED] Hi! Thanks for your interest in Diggin. We have had some legal issues regarding the album art feature stopping us from releasing Diggin on the Android Market. We are currently trying to find different solutions for the album art service and we are planning to release a free Beta version of Diggin for test purposes on this page as soon as possible. We will notify you when it is released hoping that you can help us evaluate our application. Thanks again for contacting us! /The Diggin Team --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] AW: [android-beginners] data communication between emulator and localhost
Hello, you are trying to connect to localhost which is the emulator. Please try the name or IP address of your physical machine! Best regards, Christian -Ursprüngliche Nachricht- Von: android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Isuru Gesendet: Mittwoch, 12. November 2008 05:19 An: Android Beginners Betreff: [android-beginners] data communication between emulator and localhost i want to communicate data between localhost( as server) and emulator (as client). server program is written using java and its running on the java flatform. Client program is written using android.we use below code for the client. try { InetAddress serverAddr = InetAddress.getByName (localhost); Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, 8080); String message = Hello from Client; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter ( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (Exception e) { Log.e(TCP, C: Error, e); } But it shows below error. 11-12 09:11:37.647: DEBUG/TCP(234): C: Connecting... 11-12 09:11:37.647: ERROR/OSNetworkSystem(234): unknown socket error -1 11-12 09:11:37.678: ERROR/TCP(234): C: Error 11-12 09:11:37.678: ERROR/TCP(234): java.net.SocketException: unknown error 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl (Native Method) 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket (OSNetworkSystem.java:79) 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.net.PlainSocketImpl2.create (PlainSocketImpl2.java:59) 11-12 09:11:37.678: ERROR/TCP(234): at java.net.Socket.startupSocket(Socket.java:668) 11-12 09:11:37.678: ERROR/TCP(234): at java.net.Socket.init (Socket.java:215) 11-12 09:11:37.678: ERROR/TCP(234): at mili.android.DataCom.TCPClient.run(TCPClient.java:20) 11-12 09:11:37.678: ERROR/TCP(234): at java.lang.Thread.run (Thread.java:935) 11-12 09:11:37.916: INFO/ActivityManager(50): Displayed activity mili.android.DataCom/.SocketTest: 913 ms 11-12 09:11:37.968: INFO/ARMAssembler(50): generated scanline__0077:03545404_0A04_ [ 29 ipp] (51 ins) at [0x23f4c0:0x23f58c] in 7832686 ns 11-12 09:11:43.007: DEBUG/dalvikvm(89): GC freed 2452 objects / 123016 bytes in 78ms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: CAD
[EMAIL PROTECTED] wrote: I would like to know if there is a possibility of viewing CAD files on a cell phone. I am a design engineer and I want to know if it would be possible, I can guarantee that every Architect, Engineer, Developer, Drafter, and Construction manager would use it. If there was a way to view CAD files such as AutoCAD on the Android system it would completely revolutionize the development industry. Any ideas? Due to Autodesk's fairly aggressive control over file formats, tools that can use AutoCAD files have to pay for the privilege, last I knew. That doesn't make it impossible, but it does clobber a whole group of potential developers who aren't in position to sign up for that sort of commitment. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installing Android on an LG KU990
Is that even posible? I would very much love to be able to do this as it dont seem like any phones with androyd will be comming out here any time soon, but I didn't think adroid offered an onscreen keyboard, which kind of makes it useless on the ku990... Plz, if I am wrong, correct me :) Best Regards VagaStorm On Sep 28, 5:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Everyone, I'll be honest - I'm a complete beginner when it comes to mobile operating systems, especially replacing OEM standard OSs with open- source options. With that being said, I am highly interested in the possibility of loading Android onto my LG KU990 (Viewty) mobile phone, and I have some questions for all of you regarding this operation. Well, first of all, I'll start with the basics. I am on SFR in Paris. Would Android be able to utilize their GSM network? Would I be able to send SMS messages and make phone calls through their network? Secondly, the KU990 is a touchscreen phone. I know that Android supports touch screens, but would it require any specific modification or drivers to be installed with it? How exactly would I go about installing the OS onto my phone? Through the USB cable? Does Android come with a PC client for management of the device? At the moment, a google search doesn't seem to bring up any instances of people having installed Android on their KU990. With that being said, I've only performed a cursory search. I appreciate any and all help that you experts can offer. I know that my questions are probably pretty dumb, but I've been wondering about them for a while! Thanks, Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Drawing a path line
Not really. I just want to draw a straight line from point A to point B. --Valeriano On Wed, Nov 12, 2008 at 6:32 AM, Dennis Wilmsmann [EMAIL PROTECTED] wrote: Do you want to show driving directions? I think this isn't possible anymore without getting the information via HTTP vom Google Maps directly. The class com.google.googlenav.DrivingDirection isn't available anymore in the SDK 1.0. Dennis On 12 Nov., 01:47, Allan Valeriano [EMAIL PROTECTED] wrote: Hi all, I've been trying to draw a path line for a while, but had no success. I tried a dummy code just to see if it works, but couldn't make it draw anything. The code I'm using is: Path path = new Path(); Projection proj = mapView.getProjection(); GeoPoint point1 = new GeoPoint(37423157, -122085008); GeoPoint point2 = new GeoPoint(37495999, -122457508); Point p1 = new Point(); Point p2 = new Point(); proj.toPixels(point1, p1); proj.toPixels(point2, p2); path.moveTo(p1.x, p1.y); path.lineTo(p2.x, p2.y); this.pathPaint.setStrokeWidth(4); this.pathPaint.setARGB(100, 113, 105, 252); canvas.drawPath(path, pathPaint); This code is inside my overridden *draw* method, which is called every time my location, on the map, changes. I found an example ( http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t...) on how to do this, but it uses an old API that is not available anymore. Anybody knows what am I doing wrong here? --Valeriano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems with ListActivity
[EMAIL PROTECTED] wrote: Sorry, I didn't make it very clear. What I'm after is to have an Activiy composed of several views. One of them should be a View similar to the one of ListActivity. Ideally, I would have some layout defined in an XML file, reference that in my Java code, and based on some I/O operation, populate a View (like that one of ListActivity) and attached it to my main activity. Hope that's a bit clearer now. Just use a ListView. You do not need to use a ListActivity to use a ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: data communication between emulator and localhost
probably this may help you. http://www.anddev.org/unknown_socket_error_-1__http_socket_url_internet-t3016.html On Wed, Nov 12, 2008 at 9:49 AM, Isuru [EMAIL PROTECTED] wrote: i want to communicate data between localhost( as server) and emulator (as client). server program is written using java and its running on the java flatform. Client program is written using android.we use below code for the client. try { InetAddress serverAddr = InetAddress.getByName (localhost); Log.d(TCP, C: Connecting...); Socket socket = new Socket(serverAddr, 8080); String message = Hello from Client; try { Log.d(TCP, C: Sending: ' + message + '); PrintWriter out = new PrintWriter( new BufferedWriter ( new OutputStreamWriter(socket.getOutputStream())),true); out.println(message); Log.d(TCP, C: Sent.); Log.d(TCP, C: Done.); } catch(Exception e) { Log.e(TCP, S: Error, e); } finally { socket.close(); } } catch (Exception e) { Log.e(TCP, C: Error, e); } But it shows below error. 11-12 09:11:37.647: DEBUG/TCP(234): C: Connecting... 11-12 09:11:37.647: ERROR/OSNetworkSystem(234): unknown socket error -1 11-12 09:11:37.678: ERROR/TCP(234): C: Error 11-12 09:11:37.678: ERROR/TCP(234): java.net.SocketException: unknown error 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl (Native Method) 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket (OSNetworkSystem.java:79) 11-12 09:11:37.678: ERROR/TCP(234): at org.apache.harmony.luni.net.PlainSocketImpl2.create (PlainSocketImpl2.java:59) 11-12 09:11:37.678: ERROR/TCP(234): at java.net.Socket.startupSocket(Socket.java:668) 11-12 09:11:37.678: ERROR/TCP(234): at java.net.Socket.init (Socket.java:215) 11-12 09:11:37.678: ERROR/TCP(234): at mili.android.DataCom.TCPClient.run(TCPClient.java:20) 11-12 09:11:37.678: ERROR/TCP(234): at java.lang.Thread.run (Thread.java:935) 11-12 09:11:37.916: INFO/ActivityManager(50): Displayed activity mili.android.DataCom/.SocketTest: 913 ms 11-12 09:11:37.968: INFO/ARMAssembler(50): generated scanline__0077:03545404_0A04_ [ 29 ipp] (51 ins) at [0x23f4c0:0x23f58c] in 7832686 ns 11-12 09:11:43.007: DEBUG/dalvikvm(89): GC freed 2452 objects / 123016 bytes in 78ms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Where are the camera photos stored?
I tried taking photos with the G1 phone. I was able to click a couple of pics as desired.Now, I looked throughout the G1 phone and there was no way I could see my pics. Only when I opened the GMail app, was I able to select the pictures as an attachment. Isnt there some picture viewer facility? Or a way to access the photos without having to attach them to an email? -- - Sunit Katkar http://sunitkatkar.blogspot.com/ - Android OS Tutorials --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Pre-purchase concerns about the G1
On Nov 11, 2:37 pm, chrisdonia [EMAIL PROTECTED] wrote: I'm keen to get on the Android bandwagon early, feeling betrayed by Nokia's inability to keep up with the competitors. But I'm now worried that the things I use my phone for the most will not be provided by the G1. Hopefully somebody can give some answers to my main concerns: 1. No headphone socket; I can cope with this, BUT is it possible to charge the phone whilst having headphones plugged in? You would need to purchase an adapter like this one. http://www.onlyg1.com/htc3in1adapter.html 2. No stereo Bluetooth; Is this a hardware or software restriction? Is it possible that a later firmware might allow change, or are we stuck with it? This is a software restriction, there were security concerns with the bluetooth stack. They are working on getting A2DP working, we should see it soon. 3. No Flash; presumably Adobe will get around to releasing an Android- compatible Flash player? Yeah, need to wait on adobe for that one. Kinda surprised that there isnt a webkit version of flash 4. Media players; I listen to music and watch divx or flv files A LOT on third party applications. Is there something equivalent? Havent seen divx supported video player yet but im sure its just a matter of time. As for music there is a built in music player, along with wikitunes, probably more on the market. I'm terribly afraid I'm going to end up with a shiny G1 which I use for phone/internet and an iPod touch for the rest of my lifestyle, and this distresses me :( If you are in a 3g area check your local walmarts, I hear they are offering some nice deals on the G1. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: STL Standard Template Library Support
While the post may be better directed to one of the Android_porting lists, a similar discussion has erupted in our organization. We are trying to port Android onto a new set of hardware and are trying to re- utilize existing C++/STL-based code in porting the HAL to Android. Are you able to share some of the profiling that Google has done on STL? There is considerable pressure being generated to port an STL library to Android for use throughout the organization and would like to share any existing info that has generated decisions by the Android team. Thanks On Nov 12, 6:49 am, David Turner [EMAIL PROTECTED] wrote: First, please note that Android does *not* support native code development at the moment. Even the open source tree doesn't provide a real STL library at this point. While many parts of the system are written in C++, we profiled and avoided using STL there because it easily generates *very* large binaries that run very poorly on embedded CPUs like the ARM that have tiny instruction caches. We thus had to provide our own templatized containers instead. That doesn't mean you absolutely can't develop a native application, but: 1 - it will have to statically link to your own version of the STL 2 - it will not be easily installable to supported Android devices, like the G1 3 - don't expect it to be small or run very fast. We may provide native development support in the future, but I doubt this will include full STL support. On Wed, Nov 12, 2008 at 3:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Our organization just moved to Android and we have lot of legacy code that was built around STL Containers. I have been searching through blogs and android source trees but couldn't find support for STL in Android latest release. STL seems to be limited to pair and some basic string manipulation functions. I am curious if anyone has run into this issue and has found ways to get around it. Does android provide STL support including Container classes, Vector and std namespace. Thank You Sanjay- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] what Eclipse do i need ?
what IDE do need for supporting Android SDK ? i.e what should i download from here http://www.eclipse.org/downloads/ either Eclipse Java or C/C++ or J2EE ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] GL ES
I would like to write shaders on Android for GL ES. I thought shaders are supported with ES 2.0. I have been seeing documentation for GL ES 1.0, which means no shader support. Anyone know if there is GL ES 2.0 support or when shaders will be supported? stringa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: GL ES
Hi, The G1 hardware does not support OpenGL ES 2.0 so there is currently no support for shaders. A future Android phone might provide such support but there are no official plans for now. On Wed, Nov 12, 2008 at 3:16 PM, Sean Stringer [EMAIL PROTECTED] wrote: I would like to write shaders on Android for GL ES. I thought shaders are supported with ES 2.0. I have been seeing documentation for GL ES 1.0, which means no shader support. Anyone know if there is GL ES 2.0 support or when shaders will be supported? stringa -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Framework Diagram ?
Stringa, if this is what you refer as a framework diagram http://code.google.com/android/what-is-android.html Regards, K. Sean Stringer wrote: Is there a framework Diagram similar to that of .NET that comes with Visual Studio ? Being a C++ developer, this would be helpful for me. Thanks, stringa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Emulator to Emulator
I'm no expert, so I only have some leads for you. Check out the following for connecting two emulators via UDP: http://www.anddev.org/udp-networking_-_within_the_emulator-t280.html Also see: http://www.anddev.org/tiny-tut_-_communicating_between_two_emulators-t1183.html JIm On Nov 5, 5:32 pm, Thaw [EMAIL PROTECTED] wrote: Hi, ALL Android Loversss. Does emulator work with other emulator on different PC? How? Somebody advise to me how can i do that please... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to run multiple instances of the emulator concurrently?
Hi all how to run multiple instances of the emulator concurrently with eclipse? Thanks, Regards, Lei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] import android.graphics.OpenGLContext;
so, I'm trying to run some tutorials and get OpenGL up and running. Well, that library doesn't seem to exist. How the hell can i get GL up and running, Thanks stringa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---