tag:blogger.com,1999:blog-1474889468959966316.post5206182494196126461..comments2023-03-18T17:59:49.277+05:30Comments on Tech Droid: TextView with HTML content with ImagesAnonymoushttp://www.blogger.com/profile/16335275017896132892noreply@blogger.comBlogger52125tag:blogger.com,1999:blog-1474889468959966316.post-49605909122883049282012-08-13T22:57:38.030+05:302012-08-13T22:57:38.030+05:30What if i want to load multiple images and format ...What if i want to load multiple images and format them alternating with text for example<br />this is image 1:<br /><br />this is image 2:<br /><br /><br /><br /><br />thanksKristherhttps://www.blogger.com/profile/13472923276799799040noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-70669034822114892682012-02-29T19:40:48.434+05:302012-02-29T19:40:48.434+05:30How to create contact group and set ringtone for i...How to create contact group and set ringtone for it in android. Help meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-5106564921150020032012-01-07T14:34:39.312+05:302012-01-07T14:34:39.312+05:30Hi.I tried using this in an edit text but encounte...Hi.I tried using this in an edit text but encountered the following problems<br />1)When i try to enter a second image the first disappears.<br />2)The focus returns to the start of the edit text after inserting the imagevibhutihttps://www.blogger.com/profile/16691436427750651718noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-76170298071552099662011-11-18T20:40:12.240+05:302011-11-18T20:40:12.240+05:30Your getDrawable method should return the required...Your getDrawable method should return the required drawable. So, it doesn't really depend on how you create it, it can be from your resources as well.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-11592671149671485962011-11-18T20:36:49.209+05:302011-11-18T20:36:49.209+05:30Hi Bibek
I need to insert and image in textview an...Hi Bibek<br />I need to insert and image in textview and I need to access the image locally from res/raw directory. Can you explain?Gaurav Agarwalhttps://www.blogger.com/profile/08406066424945966625noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-65730913109169958012011-09-14T23:47:16.546+05:302011-09-14T23:47:16.546+05:30I don't think that's possible.I don't think that's possible.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-73177548110632064312011-09-11T14:22:02.090+05:302011-09-11T14:22:02.090+05:30how can i send image in email body in androidhow can i send image in email body in androidAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-34672813259404052462011-06-17T19:40:59.502+05:302011-06-17T19:40:59.502+05:30@m Aji: Thanks. That's already mentioned thoug...@m Aji: Thanks. That's already mentioned though in the post. For the example, I chose to download and save it before using it. :)Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-54735551682894688542011-06-17T09:26:03.773+05:302011-06-17T09:26:03.773+05:30you don't have to save the image locally first...you don't have to save the image locally first, you can use Drawable.createFromStream(inputStream, source) method, i have tried it, it works ! :D :D :Dm Ajihttp://mmadjie.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-30803238532668453362011-02-14T17:07:48.059+05:302011-02-14T17:07:48.059+05:30Hi Kumar,
It's working fine with TextView - b...Hi Kumar,<br /><br />It's working fine with TextView - but i would like to populate image in email body - any pointer on this would be greatly appriciated.<br /><br />Thanks<br />Ankit ShahAnkit Shahhttps://www.blogger.com/profile/17100720800439085178noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-29185005302754619792010-09-30T00:48:08.126+05:302010-09-30T00:48:08.126+05:30yeh .. it is working..
I have used
"Environm...yeh .. it is working..<br />I have used <br />"Environment.getDataDirectory().getAbsolutePath()+"/data/com.mypackage/test.jpg"<br /><br />Thanks a lot....Unknownhttps://www.blogger.com/profile/07090869560258612082noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-34636227685392641522010-09-30T00:35:28.147+05:302010-09-30T00:35:28.147+05:30java.io.FileNOTFountException: /mnt/sdcard/test.ji...java.io.FileNOTFountException: /mnt/sdcard/test.jif (Permission denied)Unknownhttps://www.blogger.com/profile/07090869560258612082noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-49237831526032359302010-09-30T00:33:38.859+05:302010-09-30T00:33:38.859+05:30Check the logcat for errors.Check the logcat for errors.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-75171615928209821452010-09-30T00:27:52.939+05:302010-09-30T00:27:52.939+05:30Now Only a blue icon image is coming. Not the real...Now Only a blue icon image is coming. Not the real image.Unknownhttps://www.blogger.com/profile/07090869560258612082noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-5213564415716733622010-09-29T23:44:25.845+05:302010-09-29T23:44:25.845+05:30Did you try running the example? If the example wo...Did you try running the example? If the example works, then probably you are doing something wrong. Do let me know the errors from the Logcat.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-12350764368491591232010-09-29T23:38:44.687+05:302010-09-29T23:38:44.687+05:30Hello, I tried with your code but it displayed onl...Hello, I tried with your code but it displayed only source in the text view! No image is displayed. why it is happened?<br /><br />Thanks.Unknownhttps://www.blogger.com/profile/07090869560258612082noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-48388576118756570922010-08-13T18:24:54.356+05:302010-08-13T18:24:54.356+05:30You cannot access system files like this. Your app...You cannot access system files like this. Your apps will not have access to these folders (system). Sorry.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-77232307430998300592010-08-13T18:22:23.596+05:302010-08-13T18:22:23.596+05:30Hi Kumar,
I want to get path of a file "accou...Hi Kumar,<br />I want to get path of a file "accounts.db" which exists at path "/data/system/accounts.db".<br /><br />can you please suggest how should i use getDataDirecoty() in this case. <br />i can hardcode till "/data" after that i want any function wich would search this file.<br /><br />any help wud be appreciable.Unknownhttps://www.blogger.com/profile/14952580178024220321noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-11675520159881946582010-08-05T22:57:06.293+05:302010-08-05T22:57:06.293+05:30Hello Kumar,
Thank you very much!!
Now I underst...Hello Kumar,<br /><br />Thank you very much!!<br /><br />Now I understand how it works. And also the code worked..<br />>File file = new >File(Environment.getDataDirectory().getAbsolutePath()+"/data/com.sample/test.jpg");<br /><br />Thank you again..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-46677751167679064752010-08-05T10:12:19.475+05:302010-08-05T10:12:19.475+05:30Ok, thanks, using webview is the worst method I us...Ok, thanks, using webview is the worst method I use to display image and text in a view, because I must reload all the data whenever I add new content. So that, thanks, I'm still finding out a way to display text and image. Thanks so much:Dronnybeanhttps://www.blogger.com/profile/11679166506468915307noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-58358841220118131752010-08-03T22:48:43.154+05:302010-08-03T22:48:43.154+05:30Well, emoticons are different. Except those, you c...Well, emoticons are different. Except those, you can show any HTML content on a TextView, of course, except videos. I have not done a performance comparison between the two, so I can't really comment if you are better off using TextView instead of WebView. You can ask your question on google groups, and someone will answer for sure.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-80943121726452030402010-08-03T21:57:21.786+05:302010-08-03T21:57:21.786+05:30Thanks so much, now I'm using webview to show ...Thanks so much, now I'm using webview to show picture and rich text data. But it turns out to be very slow whenever I append text, and reload all the html content. I still want to use textView with image, for example chat with emoticon, hix, how to do that? <br />Hope you can help me.ronnybeanhttps://www.blogger.com/profile/11679166506468915307noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-22865691129448475062010-07-31T13:15:24.568+05:302010-07-31T13:15:24.568+05:30You data directory would be /data/data/. This is t...You data directory would be /data/data/. This is the complete path to your packages data directory. So, yes, you will have to not only append /data, but also your package name. For example, if your package name is com.sample, then your code should be like this.<br /><br />File file = new File(Environment.getDataDirectory().getAbsolutePath()+"/data/com.sample/test.jpg");<br /><br />Try this, this should work.Anonymoushttps://www.blogger.com/profile/16335275017896132892noreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-19623035921478851372010-07-31T12:52:56.647+05:302010-07-31T12:52:56.647+05:30Hello Kumar,
Thanks for your quick reply..
> ...Hello Kumar,<br /><br />Thanks for your quick reply..<br /><br />> For access to your package's data directory, <br />> you have to append "/data/" to this path.<br /><br />File sampleDir = Environment.getDataDirectory();<br /><br />try { <br />audiofile = File.createTempFile("test", ".3gp", sampleDir);<br />}<br /><br />upon checking sampleDir is already equal to "/data" , do I still need to append "/data/" when calling createTempFile?<br /><br />If yes, I tried passing the following arguments instead <br />File.createTempFile("/data/test", ".3gp", sampleDir)<br /><br />and it still didn't work..<br /><br />upon checking both values of AudioFile is null..<br /><br />Sorry, but I'm still new to Android programming..<br />Thanks again.. Hope you can help me on this one.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1474889468959966316.post-76419646686203869002010-07-29T14:10:37.338+05:302010-07-29T14:10:37.338+05:30Hello long,
Here is a solution to set color for a...Hello long,<br /><br />Here is a solution to set color for a text in Html.fromHtml()<br /><br />http://www.androidpeople.com/android-html-view/sasikumarhttps://www.blogger.com/profile/05685406531472519345noreply@blogger.com