[android-developers] Re: Mime type on download file
I am having problems with this too. I can't seem to generate an intent by browsing to a file that I want my application to open. I am using a html file (have tried both .html and .myapp file extensions) with this: head meta http-equiv=Content-Type content=application/myapp /head Is there anything else I have to do to tag this file as having a certain mime type? My intent filter in the manifest is like this: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:mimeType=application/myapp android:scheme=http / /intent-filter Is there anything else this needs? Thanks Ben --~--~-~--~~~---~--~~ 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: Intent to handle files opened in browser ending .droid.txt
I am having trouble with this too. I have tried using a html file with a new mime type for my application: ... head meta http-equiv=Content-Type content=application/myapp /head ... I have tried using .html and .myapp file extensions. My intent filters are something like this: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:mimeType=application/myapp android:scheme=http / /intent-filter But my application is not started. I have found a few different suggestions for this problem but none have worked so far. Has anyone gotten this to work? --~--~-~--~~~---~--~~ 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] Share data between tabbed intents
I need to share an id key (int) between three ListActivities hosted in a TabActivity. I have a TabActivity with three tabs that each start ListActivities via intents like this: ... tabHost.addTab(tabHost.newTabSpec(tab1) .setIndicator(Recipes) .setContent(new Intent(this, RecipeList.class))); tabHost.addTab(tabHost.newTabSpec(tab2) .setIndicator(Ingredients) .setContent(new Intent(this, IngredientList.class))); tabHost.addTab(tabHost.newTabSpec(tab3) .setIndicator(Method) .setContent(new Intent(this, MethodList.class))); ... These three activities use a content provider with three normalised tables: RecipeList uses the Recipes table: | _ID | RecipeName | IngredientList uses the Ingredients table: | _ID | RecipeID | IngredientText | MethodList uses the Methods table: | _ID | RecipeID | MethodText | The RecipeID column in the Ingredients and Methods tables refers to the _ID column of the Recipes Table, thus linking ingredients and methods to the relevant recipe. So what I plan to do is when a row is selected in the RecipeList tab, store the _ID somewhere accesible by IngredientList and MethodList activities. Then when IngredientList or MethodList tabs are selected a cursor query is made using the stored id in a where statement, thus only displaying ingredients/methods that have a RecipeID value matching the _ID of the selected recipe on RecipeList. The only real solution I have come up with so far is using a static int in the tabhost activity that the other activities can all read, but this seems very messy and would require that only one instance of any of the activities is created. I'm sure there must be a neat way to do this with intents or something, does anyone have any advice or examples? --~--~-~--~~~---~--~~ 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: Story about interesting Android apps
Hi Vas, My project Bites is a recipe and ingredients organiser for household cooks. The project homepage is at http://bites-android.googlecode.com/ Bites creates relationships between your recipes, ingredients you have in the cupboard and and meals you plan to make. This data is used to automatically create a shopping list based on what ingredients are needed to make your planned meals, and ingredients that you are running out of. A scenario - you are on the train home from work and decide you are going to make your favourite fish curry, and while your are at it invite a few friends over. You just grab your phone, enter fish curry for 4 people and see what extra ingredients you'll need to pick up from the shop on the way home. When you've made your curry, just grab your phone again and confirm that you've made that curry for 4 people and the ingredients you used will automatically be taken out of the cupboard. A future release of bites will include the ability to share recipes with other Bites users, either via bluetooth or through a central recipe web site. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Share XML files
Thanks for your replies. Looking at the rfcomm link above it looks like the easiest way to send data is by writing a byte array to an OutputStream on the RfcommSocket. So it looks like it will just be a case of forming an xml string from a query on my content provider, converting it into a byte array and sending it. Sounds easy! On Mar 28, 8:38 am, Diego Pino [EMAIL PROTECTED] wrote: Never used the bluetooth API, although regarding your other question you can write down data to a file. Files are stored under folder files/ in your application home directory (usually, data/data/package- name/ If you are going to use a ContenProvider (most likely a sqlite database) I would skip the XML serialize step. Maybe you could read your data from your ContentProvider and componse XML output on-the- fly, then send it to your peer. For parsing XML I used SAX and works fine, I did not try any DOM API, do not even know if there is any delivered together with Android. br On Mar 27, 7:56 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi, It is possible to send data via bluetooth using the RFCOMM class. Please check out the documentation at: http://code.google.com/android/reference/org/bluez/RfcommSocket.html Thanks, Megha On Wed, Mar 26, 2008 at 10:36 PM, CaptainFanatic [EMAIL PROTECTED] wrote: I want to share data between two android phones, preferably by sending XML files, and I'm hoping for some feedback on what is the best way to do this. The reason I want to use XML is to keep things loosely coupled - this data could then be shared with apps on other platforms etc. One method I'm considering is (assuming there will be a standard bluetooth application for sharing files) to dump data from the SQL backend of my application into an XML file, that can then be sent in the same manner as any other file over bluetooth to another phone. I see that android has methods to write to a file, but where will this file live and will I be able to access it from a bluetooth app to then send it? I look forward to hearing any thoughts on this- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Share XML files
I want to share data between two android phones, preferably by sending XML files, and I'm hoping for some feedback on what is the best way to do this. The reason I want to use XML is to keep things loosely coupled - this data could then be shared with apps on other platforms etc. One method I'm considering is (assuming there will be a standard bluetooth application for sharing files) to dump data from the SQL backend of my application into an XML file, that can then be sent in the same manner as any other file over bluetooth to another phone. I see that android has methods to write to a file, but where will this file live and will I be able to access it from a bluetooth app to then send it? I look forward to hearing any thoughts on this --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---