[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?
The original post is about an sdcard image, so I guess this is emulator related. An emulator sdcard is a FAT32 filesystem so you should be able to mount it using mount under linux if you have a fat32 support module. Under Windows or Mac there are probably ways to do that too. As Marco said you can't access the sdcard image or device from 2 different locations, e.g. emulator and host can't access it at the same time, unless you want to corrupt it. There's no mount/umount UI in the emulator so you'd have to quit it and restart it. adb push/pull or ddms explorer might be a better choice. R/ On Sat, May 9, 2009 at 3:59 PM, Marco Nelissen marc...@android.com wrote: I should add: while the sd card is mounted on your computer, it won't be accessible to the phone, so it's probably not really going to be more any more convenient than using adb push/pull. On Sat, May 9, 2009 at 3:57 PM, Marco Nelissen marc...@android.com wrote: When the phone is plugged in to your computer, open the USB notification (drag down the status bar, select USB connected), then choose mount. On Fri, May 8, 2009 at 10:30 PM, Mark Carter m...@carter.name wrote: Is it possible to access the filesystem of an sdcard image through something like Windows Explorer? i.e. mount the sdcard as a drive or web folder or something. I have some xml files stored on my sdcard image which I frequently want to edit. Ideally I would like to be able to edit these files directly using my fave xml editor (either through the filesystem or webdav)... But is this possible? If not, is the only alternative to pull the xml file from the sdcard to the dev machine filesystem, edit and the push it back? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Add my application in Share menu gallery or others application
Hi all, I would like that users using Pictures application or an other app can launch my application directly. Two ways apparently exist: - add directly a menu in the other application (exemple: I use share menu in Gallery app and I can share by sms, email...or my app) - each application can be replaced by another: exemple when I installed aHome application changing the standard home application, a popup is displayed to choose app that I want launch How can I do these two methods? Thanks a lot for all your answers Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Assets on device
Hi, Just for my information...when i create an APK, all ressources are inside. When I install the application on a device or emulator, my application has its own space /data/data/mypackage. This folder doesn't contain dex files or all ressources - assets, images... Does Somebody know the unpackaging process and where files are placed? Thank you for your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to show two or more fields to list(Notepad Tutorial)?
Hey, You have to make a new TextView in your xml file from your layout. Than you can do something like this: String[] from = new String[]{NotesDbAdapter.KEY_TITLE, NotedDbAdapter.KEY_NAME}; int[] to = new int[]{R.id.text1, R.id.text2}; text 2 is the name from your new created TextView and KEY_NAME is an example from a field from your database! It's so easy as this to add more fields! If this isn't clear, feel free to ask! Wouter On May 10, 10:36 am, daehoon jeondaeh...@gmail.com wrote: Here is code of Notepad Tutorial . It only display title in the list. I want to display two or more fields of DB to the list. anyone help? private void fillData() { Cursor notesCursor = mDbHelper.fetchAllNotes(); startManagingCursor(notesCursor); // Create an array to specify the fields we want to display in the list (only TITLE) String[] from = new String[]{NotesDbAdapter.KEY_TITLE}; int[] to = new int[]{R.id.text1}; SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.notes_row, notesCursor, from, to); setListAdapter(notes); } --~--~-~--~~~---~--~~ 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: Marker Info Window
Does nodody has an idea how to do this? On May 6, 4:35 pm, Wouter wouterg...@gmail.com wrote: Hey, How can I make such a info bubble like you see at this image http://www.lifeaware.net/images/screenshots/locatefriend.png I'm looking for it for very long! Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] 3G Call Handing API integration with Opencore 3G-324M Video Telephony
Hi, I would like to know the integration of 3G stack modem API integration with 3G-324M stack. I havent seen the clear abstraction to use the 3G Modem API in the stack. VT stack need to get the socket incase of incoming call either from Application or directly from call handling application. Please let me know is there any such a abstraction already available? If not What is the plan for this requirement interms of 3G-324M in android. Thanks Regards, Chandra --~--~-~--~~~---~--~~ 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] Starting Understand the Source: Prerequisite
Asslam-u-alikum, and Hi to All, I am not new to android, I am a Android Developer. I want to ask this genius community about the prerequisites of exploring and understanding the Android source/ internals. Thank You. Abdul Mateen --~--~-~--~~~---~--~~ 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: Marker Info Window
This page makes a start and should give you some ideas. http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/ The code for the one the image shows would be very useful but I've yet to come across a fully featured pop-up yet On May 10, 10:18 am, Wouter wouterg...@gmail.com wrote: Does nodody has an idea how to do this? On May 6, 4:35 pm, Wouter wouterg...@gmail.com wrote: Hey, How can I make such a info bubble like you see at this image http://www.lifeaware.net/images/screenshots/locatefriend.png I'm looking for it for very long! Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Starting Understand the Source: Prerequisite
I mean what are the subjects to study before getting into Android Source. On Sun, May 10, 2009 at 3:17 PM, mateen abmat...@gmail.com wrote: Asslam-u-alikum, and Hi to All, I am not new to android, I am a Android Developer. I want to ask this genius community about the prerequisites of exploring and understanding the Android source/ internals. Thank You. Abdul Mateen --~--~-~--~~~---~--~~ 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: Ideas behind Android's task concept
If you press back and arrive at the same activity you started on, I think that's a bug that I've only seen when using Eclipse to develop. I think if you press back as far as you can possibly go, until you reach the home screen, then run the app from the phone (not from eclipse) it will behave normally. Running the app from the IDE seems to screw around with the task stack for some reason. On May 9, 3:49 pm, Mariano Kamp mariano.k...@gmail.com wrote: I still don't get it ;-( I have the top level activity, let's call it A, that is used by the launcher and have the android:clearTaskOnLaunch attribute set to true. A drills down to B and B to C. Now when I am on activity C and switch to Gmail and back to my app/task then C is up. If I launch the task activity A is displayed not C, which is what I want. But when pressing Back on A I get to A again. That doesn't seem right to me. Shouldn't A have been cleared too, so that Back would return me to the launch screen? On Fri, May 8, 2009 at 5:08 PM, Mariano Kamp mariano.k...@gmail.com wrote: Isn't that the same model that is used on the Desktop?Launching an app usually puts you in a clean state, but switching back to a running instance (Alt/Cmd+Tab) brings you to the screen of the app you were most recently on.That makes perfect sense to me. Actually now that I learned about android:clearTaskOnLaunch [use in contactshttp://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;...] here, I can finally try to get my app to behave like I would expect it to. This discussion is very enlightening. Dianne that would be a great topic for a blog post of yours, wouldn't it? ;-) On Fri, May 8, 2009 at 3:07 PM, Mike Hearn mh.in.engl...@gmail.comwrote: As far as contacts goes, though, this is actually intentional -- some apps (like contacts and settings) want to put the user back to their front door when relaunched from home, so they set the option to do that. This is actually a desired inconsistency. Right, I realise it's intentional. What I'm unclear on is, why these apps are special? I presume usability testing revealed this is the behavior users expected. In which case why not reset task stacks for every app? --~--~-~--~~~---~--~~ 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] Uploading an image in a multipart message - sample code
I'm starting a new thread, in response to a request over here: http://bit.ly/E1Qqm This is some sample code for uploading an image to the web, as part of a multipart message. It assumes that the photo is stored on the SD card as photo.jpg. You'll need to download and add a couple of jar files to the project's built path - commons-httpclient.jar and httpcomponents-client-4.0-alpha4. It is working on my device. However (big caveats here) - it's much slower than I would like, and much slower than other applications I've installed that upload photos. It also feels hacky - e.g. the way the background thread communicates problems with the upload to the main thread using variables. I'm sure there must be a neater way to do it. If you figure out a way to improve the code, please post suggestions here! cheers, Anna - private static final int LOCATION_NOT_FOUND = 1; private static final int UPLOAD_ERROR = 2; final Runnable mUpdateResults = new Runnable() { public void run() { pd.dismiss(); updateResultsInUi(); } }; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.home); // do some stuff and then, when you want to upload a photo uploadToWeb(); } // ** // uploadToWeb: uploads details, handled via a background thread // ** private void uploadToWeb() { Log.d(LOG_TAG, uploadToWeb); pd = ProgressDialog .show( this, Uploading, please wait..., Uploading. This can take several seconds, depending on your connection speed. Please be patient!, true, false); Thread t = new Thread() { public void run() { doUploadinBackground(); mHandler.post(mUpdateResults); } }; t.start(); } private void updateResultsInUi() { if (globalStatus == UPLOAD_ERROR) { showDialog(UPLOAD_ERROR); } else if (globalStatus == LOCATION_NOT_FOUND) { showDialog(LOCATION_NOT_FOUND); } else if (globalStatus == PHOTO_NOT_FOUND) { showDialog(PHOTO_NOT_FOUND); } else { // Success! - Proceed to the success activity! Intent i = new Intent(Home.this, Success.class); startActivity(i); } } // ** // onCreateDialog: Dialog warnings // ** @Override protected Dialog onCreateDialog(int id) { switch (id) { case UPLOAD_ERROR: return new AlertDialog.Builder(Home.this) .setTitle(Upload error) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .setMessage( Sorry, there was an error uploading. Please try again later.) .create(); case LOCATION_NOT_FOUND: return new AlertDialog.Builder(Home.this) .setTitle(Location problem) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .setMessage(
[android-developers] how to use jarsigner
Hi everyone, I want to sign my app and keytool is working fine, but jarsigner doesn ´t. If I tap this command in the command line: jarsigner -verbose -keystore my-release-key.keystore PhoneTester.apk alias_name then I have to enter the password but then there appears this error message: jarsigner error java.lang.RuntimeException: keystore load C:\Dokumente und Einstellungen\Administrator.BEHLAU\my-release-key.keystore Das System kann die angebene Datei nicht finden Do you know what I have to do to repair it??? Thanks in regards Viktor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to use jarsigner
On May 10, 2:09 pm, Nox v.beh...@googlemail.com wrote: If I tap this command in the command line: jarsigner -verbose -keystore my-release-key.keystore PhoneTester.apk alias_name then I have to enter the password but then there appears this error message: jarsigner error java.lang.RuntimeException: keystore load C:\Dokumente und Einstellungen\Administrator.BEHLAU\my-release-key.keystore Das System kann die angebene Datei nicht finden Have you navigated (using the 'cd' command) to the directory that contains your keystore file and apk? -- Jon --~--~-~--~~~---~--~~ 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] Soft Keyboard Question
I have a class that extends ImageView, which also handles keyboard input, currently via OnKeyListener, which works great with the 1.1 sdk, but how do I port this to the 1.5 sdk? How do I get the soft keyboard to load for this View? I haven't found a ton of documentation regarding the new input framework. Any nudge in the right direction would be great. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ScrollView and Programmatically Scrolling
Same problem here... On May 6, 6:14 am, Kaka clipse.z...@gmail.com wrote: any solution now? I have to implement the same function too. On Apr 20, 2:32 am, Arnaud Weber arnaud...@gmail.com wrote: Ok, i've found some kind of weird solution... It seems that fullScroll is inversed. As i wanted to go to the top of my view i need to call scrollView.fullScroll( ScrollView.FOCUS_DOWN); and to go to the bottom : scrollView.fullScroll( ScrollView.FOCUS_UP); ... weird... but that's working... Arnaudweb 2009/4/19 Arnaudweb arnaud...@gmail.com Hello, I've the same problem. my scrollView contains a LinearLayout that is almost empty at the beginning. Then i fill it with other views and try immediately after to use scrollView.fullScroll(ScrollView.FOCUS_UP); This is not working... I'm guessing my fullScroll setting is executed before that my scrollView take my changes with its child in account. Has someone faced the same pbm? Do you have any solution with that? Thanks On 3 avr, 19:04, droozen droozenr...@gmail.com wrote: So, I have aScrollViewwith a single TextView inside it. Upon initial startup I set the text of the text view to an internally stored string and try: ScrollViewmyScroll = (ScrollView) findViewById(R.id.my_scroll_id); myScroll.fullScroll(ScrollView.FOCUS_DOWN); No scrolling happens. (The string is long. I want to show the end of it. Instead, at this point, view remains at the top.) Now I append a few more lines to the text, set the TextView's text to the new text, and perform the samefullScroll(ScrollView.FOCUS_DOWN) function. It now scrolls, but to the end. For example, if the last part of the text is: 5 + 5 = 10 After programmatically scrollingdownI see: 5 + I have to manually scroll to see the end. Am I doing something wrong? How can I reliably get the scroll to show the end of the text? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Alternatives to Android Market
Anyway, if you want to check/test another flashlight for Android (cupcake only), feel free to take a look at it on my blog: http://bit.ly/lXA34 -- José de Paula Eufrásio Júnior (coredump) MCSO, GRC Professional http://core.eti.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Change ListView Row Font Colour on Highlight
Hey, quick question... How could one change the font colour of a TextView in a ListView row when the row is highlighted? I load each row of the ListView from a given row.xml file. I would like to have a black font colour when NOT highlighted and a white font colour when the row IS highlighted. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bluetooth
Nick Pelly wrote: Mark summed it up pretty well. We don't have support in the SDK for Bluetooth right now. Getting some Bluetooth API's published in the SDK is a priority for the Android Bluetooth team. I can't wait to see the apps you guys come up with! I assume there is not much point to have a vote on what profiles we would like to see supported, but speaking for myself, the thing that stops me from developing the application my employer (and his customers) wants is the lack of ability to receive a file via OBEX (OPP). For our J2ME implementation we have been forced to receive the file on a a special (high) port since it is not allowed to access the normal inbox (the native Symbian can do it either way). Some customers appear to prefer that approach from a security perspective so to me it doesn't really matter which approach becomes available. Any kind of hint as to whether such functionality is months or years away would be much appreciated. The iPhone info was not very clear as to whether this would be possible in the next release (my personal interpretation is that it will not be). Obviously, I'd really want to be able to offer this on the Android platform first - the high profile customers appear likely to run with whichever platform offers it and stay there. Just my 0.02 EUR / Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Uploading an image in a multipart message - sample code
Awesome, thanks for sharing the code. :) Does it need a specific version of HttpClient, different than the one that comes with the platform? And for communicating status and progress back up to a UI thread, AsyncTask in 1.5 would be perfect. Also, what license is this code snippet released under? Thanks again for sharing! :) j On Sun, May 10, 2009 at 5:04 AM, Anna PS annapowellsm...@googlemail.com wrote: I'm starting a new thread, in response to a request over here: http://bit.ly/E1Qqm This is some sample code for uploading an image to the web, as part of a multipart message. It assumes that the photo is stored on the SD card as photo.jpg. You'll need to download and add a couple of jar files to the project's built path - commons-httpclient.jar and httpcomponents-client-4.0-alpha4. It is working on my device. However (big caveats here) - it's much slower than I would like, and much slower than other applications I've installed that upload photos. It also feels hacky - e.g. the way the background thread communicates problems with the upload to the main thread using variables. I'm sure there must be a neater way to do it. If you figure out a way to improve the code, please post suggestions here! cheers, Anna - private static final int LOCATION_NOT_FOUND = 1; private static final int UPLOAD_ERROR = 2; final Runnable mUpdateResults = new Runnable() { public void run() { pd.dismiss(); updateResultsInUi(); } }; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.home); // do some stuff and then, when you want to upload a photo uploadToWeb(); } // ** // uploadToWeb: uploads details, handled via a background thread // ** private void uploadToWeb() { Log.d(LOG_TAG, uploadToWeb); pd = ProgressDialog .show( this, Uploading, please wait..., Uploading. This can take several seconds, depending on your connection speed. Please be patient!, true, false); Thread t = new Thread() { public void run() { doUploadinBackground(); mHandler.post(mUpdateResults); } }; t.start(); } private void updateResultsInUi() { if (globalStatus == UPLOAD_ERROR) { showDialog(UPLOAD_ERROR); } else if (globalStatus == LOCATION_NOT_FOUND) { showDialog(LOCATION_NOT_FOUND); } else if (globalStatus == PHOTO_NOT_FOUND) { showDialog(PHOTO_NOT_FOUND); } else { // Success! - Proceed to the success activity! Intent i = new Intent(Home.this, Success.class); startActivity(i); } } // ** // onCreateDialog: Dialog warnings // ** �...@override protected Dialog onCreateDialog(int id) { switch (id) { case UPLOAD_ERROR: return new AlertDialog.Builder(Home.this) .setTitle(Upload error) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .setMessage( Sorry, there was an error uploading. Please try again later.) .create(); case LOCATION_NOT_FOUND: return new AlertDialog.Builder(Home.this) .setTitle(Location problem) .setPositiveButton(OK,
[android-developers] Re: Add my application in Share menu gallery or others application
You would need to register your activity for Intent.ACTION_SEND, with the mime-type that you would like to support, in case of pictures, I would recommend image/* When in the Gallery user clicks on share, it scans the system for any activities that are registered to handle ACTION_SEND with picture's mime-type, and displays a dialog to the user, with the names of those activities. Google ACTION_SEND for samples on how to implement your activity. -Alexey Krasnoriadtsev On May 10, 1:38 am, arnouf arnaud.far...@gmail.com wrote: Hi all, I would like that users using Pictures application or an other app can launch my application directly. Two ways apparently exist: - add directly a menu in the other application (exemple: I use share menu in Gallery app and I can share by sms, email...or my app) - each application can be replaced by another: exemple when I installed aHome application changing the standard home application, a popup is displayed to choose app that I want launch How can I do these two methods? Thanks a lot for all your answers Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Add my application in Share menu gallery or others application
Hi, Thank you Alexey... I tried something like that but it should be wrong, cause it didn't work. I'll do a small google search to understand my mistake. Thank you On 10 mai, 19:59, Alexey Krasnoriadtsev ale...@agilefusion.com wrote: You would need to register your activity for Intent.ACTION_SEND, with the mime-type that you would like to support, in case of pictures, I would recommend image/* When in the Gallery user clicks on share, it scans the system for any activities that are registered to handle ACTION_SEND with picture's mime-type, and displays a dialog to the user, with the names of those activities. Google ACTION_SEND for samples on how to implement your activity. -Alexey Krasnoriadtsev On May 10, 1:38 am, arnouf arnaud.far...@gmail.com wrote: Hi all, I would like that users using Pictures application or an other app can launch my application directly. Two ways apparently exist: - add directly a menu in the other application (exemple: I use share menu in Gallery app and I can share by sms, email...or my app) - each application can be replaced by another: exemple when I installed aHome application changing the standard home application, a popup is displayed to choose app that I want launch How can I do these two methods? Thanks a lot for all your answers Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] New phones are selling with FW 1.5?
Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: New phones are selling with FW 1.5?
Hello, Android 1.5 has been send to Dev Phone... If you want install it on your G1, you can...but it's not really legal because you have to pass your G1 in root mode and install a cupcake version (you could find information with Google Search G1+cupacke +root) In France, we have a first model using Cupcake HTC Magic G2 and some others country in Europe too. Arnaud On May 10, 8:42 pm, Keith Wiley kbwi...@gmail.com wrote: Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: New phones are selling with FW 1.5?
I don't think this guy was a developer. I think he just bought a G1 with 1.5 on it. Sigh. Customers seem to be getting it on new phones before the update is pushed to owners of existing phones. That doesn't make life easy for developers...unless I have missed something. On May 10, 12:15 pm, arnouf arnaud.far...@gmail.com wrote: Hello, Android 1.5 has been send to Dev Phone... If you want install it on your G1, you can...but it's not really legal because you have to pass your G1 in root mode and install a cupcake version (you could find information with Google Search G1+cupacke +root) In France, we have a first model using Cupcake HTC Magic G2 and some others country in Europe too. Arnaud On May 10, 8:42 pm, Keith Wiley kbwi...@gmail.com wrote: Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] UTF 8 show chars on screen
Hi I have a string in UTF 8 and I want it to show it on the screen. When I have 'special' chars like from Indian, Arabic, Hebrew ,etc. chars I see squares on the screen and not the real characters. Is there any way to show the characters? Thanks Daniel --~--~-~--~~~---~--~~ 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] install unsuccessful on my g1 with 1.5 sdk
Today I tried to install my app with the the apk created with the 1.5 sdk and I keep getting install unsuccessful. It worked fine under the 1.1 sdk. The only thing I can think would cause a problem is the new minsdkversion which I have tried values 1 and 2 (my g1 has US rc33). The 1.5 sdk emulator has no problem installing my app. Any ideas what the problem may be? --~--~-~--~~~---~--~~ 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: Assets on device
It isn't unpacked; data is read directly from the .apk as neeed. (One exception is the .dex files which are extracted and optimized at install time.) On Sun, May 10, 2009 at 1:56 AM, arnouf arnaud.far...@gmail.com wrote: Hi, Just for my information...when i create an APK, all ressources are inside. When I install the application on a device or emulator, my application has its own space /data/data/mypackage. This folder doesn't contain dex files or all ressources - assets, images... Does Somebody know the unpackaging process and where files are placed? Thank you for your help -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to control composing text more flexibly in Android 1.5 IMF.
On Sat, May 9, 2009 at 10:39 PM, Paranoia zheny...@gmail.com wrote: i want to draw the compoing text and the cursor by myself. but i do not find how to implement this. You can't. You can deliver the composing text with style information, however. i also want to set the cursor position into the composing text when i call setComposingText. seems it's impossible. Yes because the application may do filtering or other modification of the text. And i found an issue that. setComposingText is also insert the composing text to a fixed position. the following code does not work. InputConnection ic = getCurrentInputConnection(); ic.setSelection(xxx, yyy); ic.setComposingText(composingtext, 1); Any one can tell me why? Thanks! The composing text is placed at the current cursor location. I'd need to have a full sample code to know what you are trying to do and what is not happening how you want. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: New phones are selling with FW 1.5?
On Sun, May 10, 2009 at 12:53 PM, Keith Wiley kbwi...@gmail.com wrote: I don't think this guy was a developer. I think he just bought a G1 with 1.5 on it. Sigh. Customers seem to be getting it on new phones before the update is pushed to owners of existing phones. That doesn't make life easy for developers...unless I have missed something. Which market/countries are you talking about? R/ On May 10, 12:15 pm, arnouf arnaud.far...@gmail.com wrote: Hello, Android 1.5 has been send to Dev Phone... If you want install it on your G1, you can...but it's not really legal because you have to pass your G1 in root mode and install a cupcake version (you could find information with Google Search G1+cupacke +root) In France, we have a first model using Cupcake HTC Magic G2 and some others country in Europe too. Arnaud On May 10, 8:42 pm, Keith Wiley kbwi...@gmail.com wrote: Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?
On May 10, 8:20 am, Raphael r...@android.com wrote: The original post is about an sdcard image, so I guess this is emulator related. An emulator sdcard is a FAT32 filesystem so you should be able to mount it using mount under linux if you have a fat32 support module. Under Windows or Mac there are probably ways to do that too. In Linux: $ mkdir /tmp/sdcard; sudo mount -o loop sdcard.img /tmp/sdcard --~--~-~--~~~---~--~~ 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: New phones are selling with FW 1.5?
I didn't ask him explicitly by email, but I found his transaction in my purchase history and he's U.S. On May 10, 2:20 pm, Raphael r...@android.com wrote: On Sun, May 10, 2009 at 12:53 PM, Keith Wiley kbwi...@gmail.com wrote: I don't think this guy was a developer. I think he just bought a G1 with 1.5 on it. Sigh. Customers seem to be getting it on new phones before the update is pushed to owners of existing phones. That doesn't make life easy for developers...unless I have missed something. Which market/countries are you talking about? R/ On May 10, 12:15 pm, arnouf arnaud.far...@gmail.com wrote: Hello, Android 1.5 has been send to Dev Phone... If you want install it on your G1, you can...but it's not really legal because you have to pass your G1 in root mode and install a cupcake version (you could find information with Google Search G1+cupacke +root) In France, we have a first model using Cupcake HTC Magic G2 and some others country in Europe too. Arnaud On May 10, 8:42 pm, Keith Wiley kbwi...@gmail.com wrote: Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] BulletML : Source Code
Hi everybody, I have ported Kenta Chos BulletML demo code to the Android platform here: http://code.google.com/p/netthreads-for-android/ From his site BulletML is the Bullet Markup Language. BulletML can describe the barrage of bullets in shooting games I thought a few game designers would be interested. The plan is to use this in a game application I am working on. I have ported his game Noiz2 to Android but it's not quite ready yet. Al. --~--~-~--~~~---~--~~ 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] SDCard error
I have moved my development to a Vista x64 system and I have the emulator and Eclipse running but I can't seem to get the sdcard image to mount. The emulator loads and a notification appears that states: Removed SD Card. The SD has been removed. Insert a new SD card. Has anyone seen this and how do you work around it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why supports Typeface.createFromAsset only?
Hi. The Typeface can not read a TTF font from external file. I just want to know why. Why this feature is denied even in 1.5r1? And have any plan to open the feature? --~--~-~--~~~---~--~~ 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: SDCard error
I believe I have found my problem. When I created the AVD I gave it an sdcard image to use but I also provide a -sdcard parameter in the eclipse run option. This cause the previous sdcard image to be removed and the new one to be added (but fails). Removing the -sdcard parameter from the run configuration in eclipse has soveled the problem On May 10, 3:02 pm, nwmotog...@gmail.com nwmotog...@gmail.com wrote: I have moved my development to a Vista x64 system and I have the emulator and Eclipse running but I can't seem to get the sdcard image to mount. The emulator loads and a notification appears that states: Removed SD Card. The SD has been removed. Insert a new SD card. Has anyone seen this and how do you work around it? --~--~-~--~~~---~--~~ 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: New phones are selling with FW 1.5?
Legal? I don't think that word means what you think it means. On Sun, May 10, 2009 at 3:15 PM, arnouf arnaud.far...@gmail.com wrote: Hello, Android 1.5 has been send to Dev Phone... If you want install it on your G1, you can...but it's not really legal because you have to pass your G1 in root mode and install a cupcake version (you could find information with Google Search G1+cupacke +root) In France, we have a first model using Cupcake HTC Magic G2 and some others country in Europe too. Arnaud On May 10, 8:42 pm, Keith Wiley kbwi...@gmail.com wrote: Is this correct? A user has reported this to me. I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet. I thought it would be end of May, but people already have it apparently. Furthermore, even if I download the 1.5 SDK, is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone...and when will that be anyway? I was surprised to have a user report that his new G1 was using 1.5. Does this not come as a surprise to others? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Programatically selection of 3G network connection in G1
Hi Folks, I'm working on some data transmission program and current it works alright on WIFI connection. However, I understand that if I am in an environment where there are both 3G and WIFI coverage... the phone will (by default) be turned onto the WIFI network connection. However, if for some reasons, I wish to be connected directly to 3G (e.g. 3G is more stable in public WIFI area) is it possible to do so programatically on the Android phone? If i'm not wrong, it's possible using the ConnectionManager API, am I right? May i ask if anyone has done something like that and don't mind sharing the code snippets to do so , or point me to the right direction for this? Many Thanks in Advance! Joseph --~--~-~--~~~---~--~~ 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: Why supports Typeface.createFromAsset only?
I don't know, but it could be just that nobody had time to do it. You could contribute a patch if you strongly want it. On Sun, May 10, 2009 at 4:11 PM, freeanderson freeander...@gmail.comwrote: Hi. The Typeface can not read a TTF font from external file. I just want to know why. Why this feature is denied even in 1.5r1? And have any plan to open the feature? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I get Unable to resolve static field error
Bonsoir tout le monde, I investigated more and I notice that. If I create a project, named Project1 with one Activiy and with a class name A that have a Uri pulic static field and if I create another project named Project2 that reference Project1, if in Project2 I try to assign A.myuri to an Uri variable, Project2 failed at running. Why? Project1 - public class A { public static Uri myuri = Uri.parse(test); } package com.project1; public class Project1 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } --- Project2 -- package com.project2; import com.project1.A; public class TestDuplicatedField extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Uri uri = A.myuri; } } Regards On 8 mai, 22:29, Rakoun regis.geromegn...@gmail.com wrote: I have to project in my eclipse IDE: - my android application, where I defined a content provider, - a junit project base on a article from My life with android blog (http://tinyurl.com/q7v3o5) where I test my content provider. Before I update to 1.5 the junit project work well for my test case. Since I passed to 1.5 sdk the junit test case failed for my test case but work for all test case define in the article of My life with android (http://tinyurl.com/q7v3o5). I compile my junit project in 1.1 and try to test it on a 1.1 avd and 1.5 avd but it still not works. Can anybody help me? Here is the error I get: --- -- 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY:unabletoresolvestatic field 50 (CONTENT_URI) in Lcom/rakoun/boutsdechandelles/ contentprovider/BDCProviderShop$Shops; 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejecting opcode 0x62 at 0x0009 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejected Laexp/junit/ BoutsDeChandellesProviderTest;.testDeleteShop ()V 05-09 02:02:43.743: WARN/dalvikvm(1318): Verifier rejected class Laexp/ junit/BoutsDeChandellesProviderTest; 05-09 02:02:57.724: WARN/dalvikvm(1318): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) 05-09 02:02:57.724: ERROR/AndroidRuntime(1318): Uncaught handler: thread Thread-9 exiting due to uncaught exception 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): java.lang.VerifyError: aexp.junit.BoutsDeChandellesProviderTest 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getDeclaredConstructors(Native Method) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getConstructor(Class.java:484) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.getTestConstructor(TestSuite.java:177) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.init(TestSuite.java:59) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.addTestSuite(TestSuite.java:101) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.ExampleSuite.init(ExampleSuite.java:9) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.TestRunner.run(JUnit.java:144) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Thread.run(Thread.java:1058) --- -- Rakoun /°\ --~--~-~--~~~---~--~~ 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] Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]
Hi all, I am attempting to integrate some previous libraries that we have within my new android project. I have made several attempts including: Importing the code as sub-projects (that are built using the android.jar) Importing the code as jar files (from the built code) Adding the files directly as part of my project Reordering the dependencies However for each one of these scenarios I keep getting the following exception thrown by the davlik compiler. It is always picking the first class in the package (ie if I remove that class, it picks the next and so on). It would appear to me that this is a compiler bug - somehow it's getting it's dependencies in a twist. Anyone else experienced this? And/or have any ideas on how to get around this one? Cheers, Peter. [2009-05-11 12:13:01 - Android] UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lau/com/skytechnologies/ecssdk/comm/CommException; [2009-05-11 12:13:01 - Android] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123) [2009-05-11 12:13:01 - Android] at com.android.dx.dex.file.DexFile.add(DexFile.java:143) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.processClass(Main.java:299) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.access$100(Main.java:56) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228) [2009-05-11 12:13:01 - Android] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener. java:245) [2009-05-11 12:13:01 - Android] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java :130) [2009-05-11 12:13:01 - Android] at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpene r.java:190) [2009-05-11 12:13:01 - Android] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java :122) [2009-05-11 12:13:01 - Android] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:10 8) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.processOne(Main.java:245) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183) [2009-05-11 12:13:01 - Android] at com.android.dx.command.dexer.Main.run(Main.java:139) [2009-05-11 12:13:01 - Android] at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) [2009-05-11 12:13:01 - Android] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [2009-05-11 12:13:01 - Android] at java.lang.reflect.Method.invoke(Unknown Source) [2009-05-11 12:13:01 - Android] at com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source) [2009-05-11 12:13:01 - Android] at com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source) [2009-05-11 12:13:01 - Android] at com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:63 3) [2009-05-11 12:13:01 - Android] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja va:170) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja va:201) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:25 3) [2009-05-11 12:13:01 - Android] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.ja va:256) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManage r.java:309) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:34 1) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java: 140) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238) [2009-05-11 12:13:01 - Android] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [2009-05-11 12:13:01 - Android] 1 error; aborting [2009-05-11 12:13:01 - Android] Conversion to Dalvik format failed with error 1 --~--~-~--~~~---~--~~ 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
[android-developers] Re: I get Unable to resolve static field error
Bonsoir tout le monde, I investigated more and I notice that. If I create a project, named Project1 with one Activiy and with a class name A that have a Uri pulic static field and if I create another project named Project2 that reference Project1, if in Project2 I try to assign A.myuri to an Uri variable, Project2 failed at running. Why? Project1 - public class A { public static Uri myuri = Uri.parse(test); } package com.project1; public class Project1 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } --- Project2 -- package com.project2; import com.project1.A; public class Project2 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Uri uri = A.myuri; } } Regards On 8 mai, 22:29, Rakoun regis.geromegn...@gmail.com wrote: I have to project in my eclipse IDE: - my android application, where I defined a content provider, - a junit project base on a article from My life with android blog (http://tinyurl.com/q7v3o5) where I test my content provider. Before I update to 1.5 the junit project work well for my test case. Since I passed to 1.5 sdk the junit test case failed for my test case but work for all test case define in the article of My life with android (http://tinyurl.com/q7v3o5). I compile my junit project in 1.1 and try to test it on a 1.1 avd and 1.5 avd but it still not works. Can anybody help me? Here is the error I get: --- -- 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY:unabletoresolvestatic field 50 (CONTENT_URI) in Lcom/rakoun/boutsdechandelles/ contentprovider/BDCProviderShop$Shops; 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejecting opcode 0x62 at 0x0009 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejected Laexp/junit/ BoutsDeChandellesProviderTest;.testDeleteShop ()V 05-09 02:02:43.743: WARN/dalvikvm(1318): Verifier rejected class Laexp/ junit/BoutsDeChandellesProviderTest; 05-09 02:02:57.724: WARN/dalvikvm(1318): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) 05-09 02:02:57.724: ERROR/AndroidRuntime(1318): Uncaught handler: thread Thread-9 exiting due to uncaught exception 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): java.lang.VerifyError: aexp.junit.BoutsDeChandellesProviderTest 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getDeclaredConstructors(Native Method) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getConstructor(Class.java:484) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.getTestConstructor(TestSuite.java:177) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.init(TestSuite.java:59) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.addTestSuite(TestSuite.java:101) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.ExampleSuite.init(ExampleSuite.java:9) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.TestRunner.run(JUnit.java:144) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Thread.run(Thread.java:1058) --- -- Rakoun /°\ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] About PinyinIME in android-1.5
Hi, When I get code with following repo init command to get the official android 1.5 code, I can't find the PinyinIME project, but it is in the cupcake code(-b cupcake). Why it is dropped in the official version? Is this because license issue or something else? Thanks repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.5 Regards, Moontain --~--~-~--~~~---~--~~ 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] bug in android.intent.action.PHONE_STATE
according to the document: http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED There should be a constant: Constant Value: android.intent.action.PHONE_STATE But I can't find it. I used the eclipse IDE to modify AndroidManifest.xml but adding an intent filter and the above constant value does not exist. Is this a bug in code or document? There're some articles online explaining the usage of the constant but I think they're no longer applicable? Could anyone share an working example for sdk 1.5 on catching a incoming call using TelephoneManager and PhoneStateListener? Thanks, Zhao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Uploading an image in a multipart message - sample code
I do something very similar to this but not with images, but rather with torrent files. I don't have a 'bytes from file' method though, probably works because torrent files are just text. Anyway, thanks for sharing. On May 10, 10:31 am, Jeff Sharkey jshar...@android.com wrote: Awesome, thanks for sharing the code. :) Does it need a specific version of HttpClient, different than the one that comes with the platform? And for communicating status and progress back up to a UI thread, AsyncTask in 1.5 would be perfect. Also, what license is this code snippet released under? Thanks again for sharing! :) j On Sun, May 10, 2009 at 5:04 AM, Anna PS annapowellsm...@googlemail.com wrote: I'm starting a new thread, in response to a request over here: http://bit.ly/E1Qqm This is some sample code for uploading an image to the web, as part of a multipart message. It assumes that the photo is stored on the SD card as photo.jpg. You'll need to download and add a couple of jar files to the project's built path - commons-httpclient.jar and httpcomponents-client-4.0-alpha4. It is working on my device. However (big caveats here) - it's much slower than I would like, and much slower than other applications I've installed that upload photos. It also feels hacky - e.g. the way the background thread communicates problems with the upload to the main thread using variables. I'm sure there must be a neater way to do it. If you figure out a way to improve the code, please post suggestions here! cheers, Anna - private static final int LOCATION_NOT_FOUND = 1; private static final int UPLOAD_ERROR = 2; final Runnable mUpdateResults = new Runnable() { public void run() { pd.dismiss(); updateResultsInUi(); } }; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.home); // do some stuff and then, when you want to upload a photo uploadToWeb(); } // ** // uploadToWeb: uploads details, handled via a background thread // ** private void uploadToWeb() { Log.d(LOG_TAG, uploadToWeb); pd = ProgressDialog .show( this, Uploading, please wait..., Uploading. This can take several seconds, depending on your connection speed. Please be patient!, true, false); Thread t = new Thread() { public void run() { doUploadinBackground(); mHandler.post(mUpdateResults); } }; t.start(); } private void updateResultsInUi() { if (globalStatus == UPLOAD_ERROR) { showDialog(UPLOAD_ERROR); } else if (globalStatus == LOCATION_NOT_FOUND) { showDialog(LOCATION_NOT_FOUND); } else if (globalStatus == PHOTO_NOT_FOUND) { showDialog(PHOTO_NOT_FOUND); } else { // Success! - Proceed to the success activity! Intent i = new Intent(Home.this, Success.class); startActivity(i); } } // ** // onCreateDialog: Dialog warnings // ** �...@override protected Dialog onCreateDialog(int id) { switch (id) { case UPLOAD_ERROR: return new AlertDialog.Builder(Home.this) .setTitle(Upload error) .setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }) .setMessage( Sorry, there
[android-developers] Re: Why supports Typeface.createFromAsset only?
just cause of time? i guess it seems to be intended. it doesn't make a sense. I've saw JNI source of Android. FileInputStream is much easier than extracting from assets resources. On May 11, 11:15 am, Dianne Hackborn hack...@android.com wrote: I don't know, but it could be just that nobody had time to do it. You could contribute a patch if you strongly want it. On Sun, May 10, 2009 at 4:11 PM, freeanderson freeander...@gmail.comwrote: Hi. The Typeface can not read a TTF font from external file. I just want to know why. Why this feature is denied even in 1.5r1? And have any plan to open the feature? -- 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] How can I listen for MApView page load completed event Options
Hi In my application to load the map its taking time so how can I detect when the map got loaded completely plz help me ?? --~--~-~--~~~---~--~~ 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] XML schema validation Android
Hi, I have created an XML and i want to validate with schema i.e, xsd file but there are no direct classes provided by android for the same if i am not wrong . and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? which has the classes schema factory and validator which does the validation stuff ..Is there an other option available . Any help would be appreciated . desperately searching for the ans.. --~--~-~--~~~---~--~~ 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 access items in an included layout
Let's say I have a list of included layouts and I want to access the widgets in the included layouts...how do I do that? ParentLayout -- merge xmlns:android=http://schemas.android.com/apk/res/android; LinearLayout android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical include android:id=@+id/include02 android:layout_width=wrap_content android:layout_height=wrap_content layout=@layout/textcombolayout/include include android:id=@+id/include03 android:layout_width=wrap_content android:layout_height=wrap_content layout=@layout/textcombolayout/include include android:id=@+id/include04 android:layout_width=wrap_content android:layout_height=wrap_content layout=@layout/textcombolayout/include /LinearLayout /merge SubLayout -- RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=wrap_content android:layout_height=wrap_content android:padding=6dip TextView android:text=TextView01 android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentLeft=true / Spinner android:id=@+id/Spinner01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true / /RelativeLayout --~--~-~--~~~---~--~~ 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] Fwd: Looking for bride,Latest jobs in Dubai,and Internships
http://www.weeklyjobs.tk - COMMERCIAL SUPERVISOR , Dubaihttp://jobsweek.blogspot.com/2009/05/commercial-supervisor-dubai.html - MANAGER OF OPERATIONS, Gulfhttp://jobsweek.blogspot.com/2009/05/manager-of-operations-gulf.html - PROFESSIONAL SERVICE ENGINEERS , Dubaihttp://jobsweek.blogspot.com/2009/05/professional-service-engineers-dubai.html - PARTS SERVICES MARKETING MANAGER , Dubahttp://jobsweek.blogspot.com/2009/05/parts-services-marketing-manager-duba.html - Electrician , Dubaihttp://jobsweek.blogspot.com/2009/05/electrician-dubai.html - Oracle Database Administratorhttp://jobsweek.blogspot.com/2009/05/oracle-database-administrator.html - SEO Article writerhttp://jobsweek.blogspot.com/2009/05/seo-article-writer.html - Web/Graphic Designerhttp://jobsweek.blogspot.com/2009/05/webgraphic-designer.html - Jobs @ Engro Foodshttp://jobsweek.blogspot.com/2009/05/jobs-engro-foods.html - ORACLE Developerhttp://jobsweek.blogspot.com/2009/05/oracle-developer.html - JOB OPENINGS @ Palmchiphttp://jobsweek.blogspot.com/2009/05/job-openings-palmchip.html - Intern @ CAST http://jobsweek.blogspot.com/2009/05/intern-cast.html - INTERNSHIPS @ NADRAhttp://jobsweek.blogspot.com/2009/05/internships-nadra.html - Jobs In Dubai http://jobsweek.blogspot.com/2009/05/jobs-in-dubai.html - NASA http://jobsweek.blogspot.com/2009/05/nasa.html - Internship Opportunities @ Green Belthttp://jobsweek.blogspot.com/2009/05/internship-opportunities-green-belt.html - Branch Manager - Rental Solutions Serviceshttp://jobsweek.blogspot.com/2009/05/branch-manager-rental-solutions.html - Manager Electricalhttp://jobsweek.blogspot.com/2009/05/manager-electrical.html - Jobs in HPL : Engineer Vacancies in Hindustan Pref...http://jobsweek.blogspot.com/2009/05/jobs-in-hpl-engineer-vacancies-in.html - Jobs in ARMY : Engineer Vacancies in INDIA ARMYhttp://jobsweek.blogspot.com/2009/05/jobs-in-army-engineer-vacancies-in.html - Youth Internship Programhttp://jobsweek.blogspot.com/2009/05/youth-internship-program.html Apnay Classified Ads - Good Condition Flat For Salehttp://apnayads.blogspot.com/2009/05/good-condition-flat-for-sale.html - Apartment For Renthttp://apnayads.blogspot.com/2009/05/apartment-for-rent.html - Marriage http://apnayads.blogspot.com/2009/05/marriage.html - Looking for a Groomhttp://apnayads.blogspot.com/2009/05/looking-for-groom.html - Looking for wifehttp://apnayads.blogspot.com/2009/05/looking-for-wife.html - LOOKING FOR BRIDEhttp://apnayads.blogspot.com/2009/05/looking-for-bride.html - HOME TUTIONS http://apnayads.blogspot.com/2009/05/home-tutions.html - yamha 100 endorohttp://apnayads.blogspot.com/2009/05/yamha-100-endoro.html - Charade 1984,91 for sale Pkr 150,000http://apnayads.blogspot.com/2009/05/charade-198491-for-sale-pkr-15.html - TOYOTA STARLET 1000 CC.1979 MODELhttp://apnayads.blogspot.com/2009/05/toyota-starlet-1000-cc1979-model.html - Cool chiller/ fridge Pkr15,000http://apnayads.blogspot.com/2009/05/cool-chiller-fridge-pkr15000.html - Radio Controlled Aeroplanehttp://apnayads.blogspot.com/2009/05/radio-controlled-aeroplane.html - FOR SALE LG KG-288http://apnayads.blogspot.com/2009/05/for-sale-lg-kg-288.html - Need a tutor for matrichttp://apnayads.blogspot.com/2009/05/need-tutor-for-matric.html - Tutor available in North Nazimabad Townhttp://apnayads.blogspot.com/2009/05/tutor-available-in-north-nazimabad-town.html - CAR FOR SALE http://apnayads.blogspot.com/2009/05/car-for-sale.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: Video streaming error in SDK 1.5
Hi... I tried a video .mp4.. It contains mdat atom... I am streaming though local server... While running on browser it works fine... While running on emulator it displays the message like Cannot play the video.. Can any one Help me...? Thank You Nithin N V --~--~-~--~~~---~--~~ 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: XML schema validation Android
and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? How did you attempt to use this external JAR? How did you determine there was a bytecode issue? Assuming you are correct about the bytecode issue, you may need the source code for your XML schema validator, so you can recompile it. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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 access items in an included layout
Let's say I have a list of included layouts and I want to access the widgets in the included layouts...how do I do that? The way you have it written, you probably cannot access the widgets in the included layouts, since they are all named the same. Either: 1. Use three different included layouts and use different IDs for each widget, or 2. Turn your included widgets into actual View classes, with each View responsible for inflating its own contents, in which case the View can give you its widgets -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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: XML schema validation Android
Hi, In eclipse i just did a right click on project then properties and then java build path and then Add external jar . I am not sure about the bytecode issue just wanted to confirm If i decide not to use any external jar is it still possible to validate the xml with schema because thru ANT i am getting the same issue so i thougt not to use any external jar for this purpose ..is it possible in Android in build API's may need the source code for your XML schema validator .. not understood the meaning of this sentence. On May 11, 9:48 am, Mark Murphy mmur...@commonsware.com wrote: and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? How did you attempt to use this external JAR? How did you determine there was a bytecode issue? Assuming you are correct about the bytecode issue, you may need the source code for your XML schema validator, so you can recompile it. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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: XML schema validation Android
If i decide not to use any external jar is it still possible to validate the xml with schema because thru ANT i am getting the same issue I do not know what you mean by thru ANT i am getting the same issue. However, as far as I know, there are no XML schema validators in the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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: XML schema validation Android
Hi, There is an dx tool which converts the class and jar files in the android compatible but i am not getting any proper example regarding dx so i can proceed .or thru Ant we have to change the build.xml file with some dx commands still not luck with that also .what exactly changes i have to make the folloing is the code i have added in build.xml target name=dex depends=compile exec executable=${dx} failonerror=true arg value=-JXmx384M / arg value=--dex / arg value=--output=${basedir}/${intermediate-dex} / arg value=--locals=full / arg value=--positions=lines / arg path=${basedir}/${outdir-classes} / arg path= C:/Users/chetan.gorde/Downloads/Android/android-sdk- windows-1.5_r1/android-sdk-windows-1.5_r1/tools/TestProject/libs/jaxp- api-1.3.jar/ /exec /target On May 11, 9:58 am, Sam csgo...@gmail.com wrote: Hi, In eclipse i just did a right click on project then properties and then java build path and then Add external jar . I am not sure about the bytecode issue just wanted to confirm If i decide not to use any external jar is it still possible to validate the xml with schema because thru ANT i am getting the same issue so i thougt not to use any external jar for this purpose ..is it possible in Android in build API's may need the source code for your XML schema validator .. not understood the meaning of this sentence. On May 11, 9:48 am, Mark Murphy mmur...@commonsware.com wrote: and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? How did you attempt to use this external JAR? How did you determine there was a bytecode issue? Assuming you are correct about the bytecode issue, you may need the source code for your XML schema validator, so you can recompile it. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: XML schema validation Android
There is an dx tool which converts the class and jar files in the android compatible You should never have to run this yourself by hand. Eclipse or Ant will do that for you. or thru Ant we have to change the build.xml file with some dx commands No, you do not. Put the JAR in the libs/ directory, and Ant will take care of it for you. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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] Localizing the assets folder
The instructions for my app are in HTML format in my assets so I can display them with proper formatting and hyperlinks in a WebView. Given that they're in the assets folder, not res, I can't properly localize them (i.e. something like assets-de wouldn't work). What's the proper way to localize embedded HTML files? -Mike --~--~-~--~~~---~--~~ 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: XML schema validation Android
Hi, There are two ways to compile one is directly thru eclipse and second is thru command prompt by setting the class path of java and ANT and going to the project folder we can compile the code by giving ant debug command we can compile the code which uses the build.xml file . On May 11, 10:19 am, Sam csgo...@gmail.com wrote: Hi, There is an dx tool which converts the class and jar files in the android compatible but i am not getting any proper example regarding dx so i can proceed .or thru Ant we have to change the build.xml file with some dx commands still not luck with that also .what exactly changes i have to make the folloing is the code i have added in build.xml target name=dex depends=compile exec executable=${dx} failonerror=true arg value=-JXmx384M / arg value=--dex / arg value=--output=${basedir}/${intermediate-dex} / arg value=--locals=full / arg value=--positions=lines / arg path=${basedir}/${outdir-classes} / arg path= C:/Users/chetan.gorde/Downloads/Android/android-sdk- windows-1.5_r1/android-sdk-windows-1.5_r1/tools/TestProject/libs/jaxp- api-1.3.jar/ /exec /target On May 11, 9:58 am, Sam csgo...@gmail.com wrote: Hi, In eclipse i just did a right click on project then properties and then java build path and then Add external jar . I am not sure about the bytecode issue just wanted to confirm If i decide not to use any external jar is it still possible to validate the xml with schema because thru ANT i am getting the same issue so i thougt not to use any external jar for this purpose ..is it possible in Android in build API's may need the source code for your XML schema validator .. not understood the meaning of this sentence. On May 11, 9:48 am, Mark Murphy mmur...@commonsware.com wrote: and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? How did you attempt to use this external JAR? How did you determine there was a bytecode issue? Assuming you are correct about the bytecode issue, you may need the source code for your XML schema validator, so you can recompile it. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem installing application onto HTC Magic
Hi Raphael, Thanks for your reply. Build number : 2.14.720.1 146733 CL#24595 Carrier : AIRTEL On Sun, May 10, 2009 at 3:37 AM, Raphael r...@android.com wrote: On Fri, May 8, 2009 at 10:31 PM, Android Users androidmai...@gmail.com wrote: Hi all, I am not able to install any map related application onto my HTC magic Before we can help you, you'd have to tell us what build your magic is running: home settings about phone build number. From which carrier did you get it? device. it is giving the a exception saying INSTALL_FAILED_MISSING_SHARED_LIBRARY. I have built the application onto Target 3 (Google APIs). Am i missing something while creating a map application in android 1.5? Any suggestions to resolve this issue? Also the device doesn't have the default Maps application which was present in G1 device. The error message is pretty obvious: missing shared library. And you add that your device doesn't have maps. A+B=you're trying to use maps on a device that doesn't have maps, so it doesn't work. Thus my initial question: what build is that? R/ --~--~-~--~~~---~--~~ 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: XML schema validation Android
Hi, if i have to do validation of xml with schema can u plz suggest any other right option for that as i am struggling with this issue ,desperately to find an answer. plz help . On May 11, 10:29 am, Sam csgo...@gmail.com wrote: Hi, There are two ways to compile one is directly thru eclipse and second is thru command prompt by setting the class path of java and ANT and going to the project folder we can compile the code by giving ant debug command we can compile the code which uses the build.xml file . On May 11, 10:19 am, Sam csgo...@gmail.com wrote: Hi, There is an dx tool which converts the class and jar files in the android compatible but i am not getting any proper example regarding dx so i can proceed .or thru Ant we have to change the build.xml file with some dx commands still not luck with that also .what exactly changes i have to make the folloing is the code i have added in build.xml target name=dex depends=compile exec executable=${dx} failonerror=true arg value=-JXmx384M / arg value=--dex / arg value=--output=${basedir}/${intermediate-dex} / arg value=--locals=full / arg value=--positions=lines / arg path=${basedir}/${outdir-classes} / arg path= C:/Users/chetan.gorde/Downloads/Android/android-sdk- windows-1.5_r1/android-sdk-windows-1.5_r1/tools/TestProject/libs/jaxp- api-1.3.jar/ /exec /target On May 11, 9:58 am, Sam csgo...@gmail.com wrote: Hi, In eclipse i just did a right click on project then properties and then java build path and then Add external jar . I am not sure about the bytecode issue just wanted to confirm If i decide not to use any external jar is it still possible to validate the xml with schema because thru ANT i am getting the same issue so i thougt not to use any external jar for this purpose ..is it possible in Android in build API's may need the source code for your XML schema validator .. not understood the meaning of this sentence. On May 11, 9:48 am, Mark Murphy mmur...@commonsware.com wrote: and there is an external jar named jaxp1.3 which doesnt allow me to compile the code is it because the bytecode of desktop and android are different? How did you attempt to use this external JAR? How did you determine there was a bytecode issue? Assuming you are correct about the bytecode issue, you may need the source code for your XML schema validator, so you can recompile it. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem installing application onto HTC Magic
Hi Raphael, Build number : 2.14.720.1 146733 CL#24595 Carrir : AiIRTE On Sun, May 10, 2009 at 3:37 AM, Raphael r...@android.com wrote: On Fri, May 8, 2009 at 10:31 PM, Android Users androidmai...@gmail.com wrote: Hi all, I am not able to install any map related application onto my HTC magic Before we can help you, you'd have to tell us what build your magic is running: home settings about phone build number. From which carrier did you get it? device. it is giving the a exception saying INSTALL_FAILED_MISSING_SHARED_LIBRARY. I have built the application onto Target 3 (Google APIs). Am i missing something while creating a map application in android 1.5? Any suggestions to resolve this issue? Also the device doesn't have the default Maps application which was present in G1 device. The error message is pretty obvious: missing shared library. And you add that your device doesn't have maps. A+B=you're trying to use maps on a device that doesn't have maps, so it doesn't work. Thus my initial question: what build is that? R/ --~--~-~--~~~---~--~~ 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: XML schema validation Android
if i have to do validation of xml with schema can u plz suggest any other right option for that as i am struggling with this issue ,desperately to find an answer. plz help . Why are you attempting to validate XML against a schema...using a cell phone? I would expect that it is somebody else's job to validate the XML against the schema. That being said, here are a list of Java open source XML parsers, some of which support schema validation: http://java-source.net/open-source/xml-parsers -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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: XML schema validation Android
Hi, Thnx for the reply i will check with these options of xml parsers and surely let u know . On May 11, 10:41 am, Mark Murphy mmur...@commonsware.com wrote: if i have to do validation of xml with schema can u plz suggest any other right option for that as i am struggling with this issue ,desperately to find an answer. plz help . Why are you attempting to validate XML against a schema...using a cell phone? I would expect that it is somebody else's job to validate the XML against the schema. That being said, here are a list of Java open source XML parsers, some of which support schema validation: http://java-source.net/open-source/xml-parsers -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---