[android-developers] Partition confusion
Hello, would someone from Google mind explaining the current strategy behind the various partitions? I'm a little bit confused. - In the beginning /sdcard was used for external storage, but since you could not rely on the mount point across vendors, the proper way to access it was the Environment class (or the convenience methods in Context). - Since 3.x an increasing number of devices use /sdcard for an additional internal storage that can not be removed. The docs have been reworded and tell me I now have to think about external storage in a different way. The Environment class only knows about the primary external partition. - Some devices still come with a real SD card. That seems to be mounted as /mnt/sdcard2. Some even support USB Host and /mnt/usbdrive. Now my questions: - What it the proper way to access non-primary external partitions? Should I rely on the above mount points? - What are those non-primary partitions actually used for? Can I only access them with a file manager? Are they scanned by the media service? - Is there a plan to add a proper API that helps me deal with them? Cheers Joerg -- 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: Trouble: Windows XP detecting Nexus One by USB
Same problem here. XP32 SP3. Here's what I did/see: - I took same care to make sure no instances of older driver files were on my computer. - I then manually installed the new R3 driver that was downloaded by the SDK Manager. - I plugged in both my ADP1 and my Nexus One. Both have USB Debugging enabled. - In the Windows Device Manager I see 2 x Android Composite ADB interface - adb shell lists the ADP1, but not the Nexus One. - When mounting the SD card, I can see files on the ADP1, but not on the Nexus One. On Feb 11, 7:31 pm, DonFrench dcfre...@gmail.com wrote: Are you by any chance using XP-64? If there is a way to make the phone visible on that platform I haven't found it but I have no problems on Windows 7. On Feb 10, 7:10 pm, Coltin ultran...@gmail.com wrote: 'adb devices' returns 'List of devices attached' followed by nothing, and eclipse doesn't pick up myNexusOne. I've installed the drivers for 'Android Composite ADB Interface'. I've set myNexusOneto 'Development:USBdebugging'. I've connected the device to my computer. It's listed under the 'Safely removed' devices interface, but still nothing. Am I missing something? I used this to set up theUSBdriver:http://d.android.com/sdk/win-usb.html And I followed instructions here:http://d.android.com/guide/developing/device.html I can access the SD Card easily enough, but I'm looking to test my app with eclipse. I've been looking for an answer for a couple of hours, but I haven't had any luck. -- 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: JDBC Driver for SQLiteDatabase
Hi Kris, yes, this is the general bugtracker for the Android open-source project. Please use it. I think it is adequate also for documentation issues or feature requests. I don't know about your specific issue, but the issues are being looked at by the Android team (mostly Google guys) and worked on. For instance, I filed a small feature request for DDMS, and the feature is now part of the SDK. Cheers, Joerg On 10 Dez., 17:13, kristianlm kristianl...@gmail.com wrote: Ok. Thanks a lot Joerg! I wanna create a ticket, but I don't know where to turn Is this where I'm supposed to post:http://code.google.com/p/android/issues/list It seems to be only for bugs though, is it? Anyhow, I commited a bug there half a year ago and it still hasn't been looked at, is anyone dealing with those issues at all? K On Dec 9, 7:41 am, Joerg Pleumann joerg.pleum...@gmail.com wrote: I agree the existence of the driver should be mentioned at least in theJDBCpackage docs. Would you mind creating a ticket for this? JDBCis somewhat of a second-class citizen in the Android world, since Android has its own database API (that is actually not too far away fromJDBC, but has much better integration with the UI framework). I guess this is why the docs don't encourage you to useJDBC. Still, JDBCis usable, and - as you already noticed - it is possible to install additional drivers. Regarding android.jar, I never checked but I could imagine that it contains only the public API classes and might even have the actual bytecode erased. Nothing is ever run against it. It is just there to make Javac or Eclipse happy (somebody please correct me if I'm wrong). On the device, the driver should be part of /system/framework/ core.jar. Cheers, Joerg On 8 Dez., 21:56, kristianlm kristianl...@gmail.com wrote: I see. I still think the documents are lacking! Am I the only one who'd want a comment on theJDBC support in the dev-guide documents? There seems to be a fair share of confused people out there ... On Dec 8, 8:33 pm, jotobjects jotobje...@gmail.com wrote: On Dec 8, 11:02 am, kristianlm kristianl...@gmail.com wrote: I cant believe this though - there's already a driver available? I can't find that in the docs anywhere! Which java.sql online manual are you looking at? I'm athttp://developer.android.com/reference/java/sql/package-summary.html http://dev.android.com/reference/java/sql/package-summary.html That'sJDBC- the Connection object uses aJDBCdriver for SQLite. Try Connection.getMetaData().getDriverName() and see what you get. Probably it will be SQLite.JDBCDriver -- 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: JDBC Driver for SQLiteDatabase
There is JDBC support in Android (see online reference for package java.sql). There is also a built-in, though somewhat limited JDBC driver for SQLite. Try this inside an Activity: try { String db = jdbc:sqlite: + getFilesDir() + /test.db; Class.forName(SQLite.JDBCDriver); Connection conn = DriverManager.getConnection(db); Statement stat = conn.createStatement(); stat.executeUpdate(create table primes (number int);); stat.executeUpdate(insert into primes values (2);); stat.executeUpdate(insert into primes values (3);); stat.executeUpdate(insert into primes values (5);); stat.executeUpdate(insert into primes values (7);); ResultSet rs = stat.executeQuery(select * from primes); boolean b = rs.first(); while (b) { Log.d(JDBC, Prime= + rs.getInt(1)); b = rs.next(); } conn.close(); } catch (Exception e) { Log.e(JDBC, Error, e); } Unless you really need to write or maintain portable code, I'd still recommend using the SQLite interface in the android.database package, because it's nicely integrated with the UI classes (ListActivity and the like). Cheers, Joerg On 8 Dez., 16:00, Mark Murphy mmur...@commonsware.com wrote: Why is no such JDBC driver already included in Android? Android does not support JDBC. Am I missing the big picture here? Android is designed to be used on devices with limited RAM, limited CPU, limited storage space for application code, and limited electricity (battery), to connect to local databases. JDBC is designed to be used on devices with lots of RAM, lots of CPU speed, comparatively unlimited storage space for application code, full-time AC power, to connect to local databases and database servers. Why would you not want to interface the built-in SQLite engine through JDBC? You lose performance, battery life, and on-board storage space, all of which are in short supply in an Android device. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- 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: JDBC Driver for SQLiteDatabase
I agree the existence of the driver should be mentioned at least in the JDBC package docs. Would you mind creating a ticket for this? JDBC is somewhat of a second-class citizen in the Android world, since Android has its own database API (that is actually not too far away from JDBC, but has much better integration with the UI framework). I guess this is why the docs don't encourage you to use JDBC. Still, JDBC is usable, and - as you already noticed - it is possible to install additional drivers. Regarding android.jar, I never checked but I could imagine that it contains only the public API classes and might even have the actual bytecode erased. Nothing is ever run against it. It is just there to make Javac or Eclipse happy (somebody please correct me if I'm wrong). On the device, the driver should be part of /system/framework/ core.jar. Cheers, Joerg On 8 Dez., 21:56, kristianlm kristianl...@gmail.com wrote: I see. I still think the documents are lacking! Am I the only one who'd want a comment on the JDBC support in the dev-guide documents? There seems to be a fair share of confused people out there ... On Dec 8, 8:33 pm, jotobjects jotobje...@gmail.com wrote: On Dec 8, 11:02 am, kristianlm kristianl...@gmail.com wrote: I cant believe this though - there's already a driver available? I can't find that in the docs anywhere! Which java.sql online manual are you looking at? I'm athttp://developer.android.com/reference/java/sql/package-summary.html http://dev.android.com/reference/java/sql/package-summary.html That's JDBC - the Connection object uses a JDBC driver for SQLite. Try Connection.getMetaData().getDriverName() and see what you get. Probably it will be SQLite.JDBCDriver -- 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] ListActivity style question
Hello, I want to create a ListActivity that looks like the ones in the settings application (two-line items, separators, inverse section titles). Can I inherit these styles from something built into android.R (and can I rely on these style names being stable across versions?). I tried referring to style=@android:style/TextAppearance_WindowTitle in my XML, but the Eclipse plugin doesn't like it. Doing it in Java code would also be fine, as long as it's a way that keeps up with future or different versions of the framework. Thanks, Joerg --~--~-~--~~~---~--~~ 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] Noser Academy for Android
Hello everybody, I'd like to invite you to joining the first incarnation of the Noser Academy for Android. It will take place September 3-4 2009 in Zurich, Switzerland. The event is meant to be a Commercialization Boot Camp and, as the name implies, mainly targeted at companies that want to use Android in a commercial context. Topics include application and service development as well as porting and customizing Android. The schedule and the list of speakers are not totally set in stone. We have some additional OHA speakers that we will announce soon, and we also welcome other companies to contribute talks to the event. You can find the Academy website here http://www.noseracademy.comhttps://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae799113758167dcURL=http%3a%2f%2fwww.noseracademy.com and the official press release here http://www.nosertomarket.com/press/NoserAcademy09June2009FINAL.pdfhttps://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae799113758167dcURL=http%3a%2f%2fwww.nosertomarket.com%2fpress%2fNoserAcademy09June2009FINAL.pdf Looking forward to seeing you in Zurich this fall! Best regards from Switzerland, Joerg -- Joerg Pleumann Head of Android Development Noser Engineering AG Switzerland --~--~-~--~~~---~--~~ 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: Noser Academy for Android
Hmm, seems the links got broken somehow. Sorry for that. The URLs should look like this: http://www.noseracademy.com http://www.nosertomarket.com/press/NoserAcademy09June2009FINAL.pdf Cheers, Joerg -- Joerg Pleumann Head of Android Development Noser Engineering AG Switzerland On Jun 24, 4:00 pm, Joerg Pleumann joerg.pleum...@gmail.com wrote: Hello everybody, I'd like to invite you to joining the first incarnation of the Noser Academy for Android. It will take place September 3-4 2009 in Zurich, Switzerland. The event is meant to be a Commercialization Boot Camp and, as the name implies, mainly targeted at companies that want to use Android in a commercial context. Topics include application and service development as well as porting and customizing Android. The schedule and the list of speakers are not totally set in stone. We have some additional OHA speakers that we will announce soon, and we also welcome other companies to contribute talks to the event. You can find the Academy website here http://www.noseracademy.comhttps://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae79911375... and the official press release here http://www.nosertomarket.com/press/NoserAcademy09June2009FINAL.pdfhttps://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae79911375... Looking forward to seeing you in Zurich this fall! Best regards from Switzerland, Joerg -- Joerg Pleumann Head of Android Development Noser Engineering AG Switzerland --~--~-~--~~~---~--~~ 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 enforce the soft keyboard
Hi Dianne, thanks for the response. I'm more interested in having it appear automatically, though. Maybe I am doing something wrong, but it seems that stateAlwaysVisible doesn't have any effect. I still have to tap into an entry field. Cheers, Joerg On 12 Mai, 03:18, Dianne Hackborn hack...@android.com wrote: The user always has the option to dismiss it. On Sun, May 10, 2009 at 10:48 AM, Joerg Pleumann joerg.pleum...@gmail.comwrote: Hello, is there a way to enforce the soft keyboard throughout the lifetime of an Activity? I tried setting stateAlwaysVisible in the Manifest.xml as well as the counterpart WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE at runtime, but to no avail. Cheers, Joerg -- 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] Layout broken on Cupcake device
Hello, I have a rather simple XML layout that contains a TextView, an EditText and three Buttons. It worked fine on 1.0 and 1.1. It still works fine for Cupcake when launched in the 1.5 SDK emulator. If I install the application on an ADP1 device with Cupcake, though, the text in one of the buttons is suddenly considered too long and, as a result, wrapped into two lines. I can easily fix this by changing the text or the padding around my layout, but I still find it curious why the behavior is not consistent across versions, emulator and device. Is this interesting for the framework guys? If so, I can post (or mail) my XML layout. It's not too much. Cheers, Joerg --~--~-~--~~~---~--~~ 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 enforce the soft keyboard
Hello, is there a way to enforce the soft keyboard throughout the lifetime of an Activity? I tried setting stateAlwaysVisible in the Manifest.xml as well as the counterpart WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE at runtime, but to no avail. Cheers, Joerg --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---