[android-developers] Re: Fragment communication in android
On Tuesday, April 5, 2016 at 2:31:25 PM UTC+5:30, RAMA KRISHNA wrote: > > Hi to all > > I have two fragments and one main activity in drag gable panel > in that top-fragment i have video view and bottom fragment having list > view > when ever i click list item in bottom fragment change video view like you tube you have any idea about that > > thanks in advice > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/91464653-bffd-44a7-a39a-dfb987286a12%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Fragment communication in android
Hi to all I have two fragments and one main activity in drag gable panel in that top-fragment i have video view and bottom fragment having list view when ever i click list item in bottom fragment change video view thanks in advice -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e2b684fe-dc8d-4b34-88a8-2fc4e29207e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Question regarding screen orientation change
Share your Manifest fle code snippet where you have locked ? -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: 2 different text size in a text view
Try with The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3_r2.1/android/text/style/MetricAffectingSpan.java/ search in android official blog and SO posts. On Monday, October 28, 2013 2:36:43 PM UTC+5:30, Amit Mangal wrote: is it possible to give 2 different text size in a single text view? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Unique ANDROID_ID for each User in Android 4.2 (bug or feature)?
It's feature. Your family members can use a single device. You can restrict On Thursday, November 15, 2012 1:19:11 AM UTC+5:30, Matthew Insko wrote: According to the documentation at http://developer.android.com/about/versions/android-4.2.html: Beware that if your app requests one of the hardware device identifiers (such as the WiFi MAC address, the SERIALhttp://developer.android.com/reference/android/os/Build.html#SERIALnumber, or the ANDROID_IDhttp://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_IDnumber), they will provide the same value for each user because these identifiers are tied to the hardware and not the user. On my nexus 7, running 4.2, each user has his/her own ANDROID_ID. Does Android 4.2 have a Bug, or is documentation wrong? -- 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 to Android App Development need Advice in Designing UI
Hello Aadi, Have you tried with compatible jar for fragments and action bar. The compatible jar works well with version 2.3 API level 10. FYI. On Tuesday, October 9, 2012 12:39:08 PM UTC+5:30, Aadi Rockzz wrote: Hi Everyone, I'm going to develop an application for Android2.2 platform. I have some doubts while started creating UI Screen for my application. - In my one UI i have 10 Text Views and 10 edit-text and i wanted to accommodate One List View also in my UI but i felt difficulty while adding ListView in my UI. Please Help me by giving suggestions. Thanks in Advance. Aadi -- 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: RecoverySystem.install ERROR message /cache/recovery/command (Permission denied)
I am also facing same issue on ICS 4.0.3. What is the solution? On Saturday, April 14, 2012 1:16:22 PM UTC-4, bor...@gmail.com wrote: Hi Gugs: I try to use RecoverySystem.installPackage method to update system, but got a error message /cache/recovery/command (Permission denied). permissions: uses-permission android:name=android.permission.ACCESS_CACHE_FILESYSTEM / uses-permission android:name=android.permission.REBOOT / Simple APK Code: public void romUpdate(Context context) { File SDCardRoot = Environment.getExternalStorageDirectory(); File packageFile = new File(/sdcard/update.zip); try { RecoverySystem.installPackage(context, packageFile); } catch (IOException e) { Log.v(TAG, e.getMessage()); e.printStackTrace(); } } Error Message: W/RecoverySystem( 7845): !!! REBOOTING TO INSTALL /mnt/sdcard/update.zip !!! V/RomUpdateActivity( 7845): /cache/recovery/command (Permission denied) W/System.err( 7845): java.io.FileNotFoundException: /cache/recovery/command (Permission denied) W/System.err( 7845): at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) W/System.err( 7845): at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:239) W/System.err( 7845): at java.io.FileOutputStream.init(FileOutputStream.java:101) W/System.err( 7845): at java.io.FileOutputStream.init(FileOutputStream.java:77) W/System.err( 7845): at java.io.FileWriter.init(FileWriter.java:42) W/System.err( 7845): at android.os.RecoverySystem.bootCommand(RecoverySystem.java:394) W/System.err( 7845): at android.os.RecoverySystem.installPackage(RecoverySystem.java:326) W/System.err( 7845): at com.kvbian.romupdate.RomUpdateActivity.romUpdate(RomUpdateActivity.java:64) W/System.err( 7845): at com.kvbian.romupdate.RomUpdateActivity.onCreate(RomUpdateActivity.java:48) W/System.err( 7845): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050) W/System.err( 7845): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1782) W/System.err( 7845): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1834) W/System.err( 7845): at android.app.ActivityThread.access$500(ActivityThread.java:122) W/System.err( 7845): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1027) W/System.err( 7845): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 7845): at android.os.Looper.loop(Looper.java:132) W/System.err( 7845): at android.app.ActivityThread.main(ActivityThread.java:4126) W/System.err( 7845): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 7845): at java.lang.reflect.Method.invoke(Method.java:491) W/System.err( 7845): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844) W/System.err( 7845): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) W/System.err( 7845): at dalvik.system.NativeStart.main(Native Method) D/WindowManager( 287): addWindowToListInOrder() : current mSkipWidgetFocus='true' Thanks -- Jiang Bian http://www.wifihack.net/ http://golang-china.org/ -- 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: Getting started with Android. Love the overall system architecture and SDK except for one thing...
Nice comments Man. Yes, it should be true, I heared from many android learners that books adds value and fill the gaps in android official documentation. But for me developer.android.co, official android blog, googling (stack over flow, other forums) helped me when I was learning. The official documentation is my first reference point. Based on real-time experience, I felt iOS documentation has also gaps, I there is no information samplecode for playing media from url (an audio stream) my iOS team struggled to find solution while android team(me and others) already finished the coding. My iOS team googled and find better solution. (it was almost a year ago). I think it's good to post our experience with the android ... any gaps, suggestions,work arounds etc. (Android UI development using Ecplise... I felt it is really good with eclipse and same time using some command line utilities...UI development or application development). One can't compare with iOS w.r.t. xml UI in android...android is meant for multiple devices and hence drag and drop is not always good with android while developing commercial applications. Let's say you want to develop a personal application for your android device..then it may be good to use absolute layout and you simply drag and drop the UI widgets according to UI layout based on your personal requirement. Please note that absolute layout is not recommended to use because the x,y coordinates are absolute and fixed, it will not fit in other device. regards Mek's Sree Rama On Wednesday, August 22, 2012 5:21:08 AM UTC+5:30, Indicator Veritatis wrote: Google's approach to documentation has its frustrating points, and to be sure, finding the right XML name for the concept/class/value you find in the API documentation has always been a frustrating experience. But it should not be THAT frustrating. Also, some of the gaps in concept presentation you complain about in the online docs and tutorials are better addressed by the better books on Android. My favorite has long been the Manning Press Unlocking Android (with slightly different names in different editions), but there are other good books, too. Mark Murphy's is quite good too, as is anything by Reto Meier. If you are reluctant to spend $40 or more on a book you are not sure is the right one for your needs, Safari Bookshelf now offers many of them through your local public library. And Murphy's in older editions (dated, but still valuable) are available for free download. For that matter, if you have the patience to read undocumented code, most of these books have the code downloadable for free. You do not have to buy the book to find and download the code. But of course, the code is explained only in the text, with very sparse comments in the code itself. The suggestion about ApiDemo is also good, but those tend to demonstrate only the very basic elements of how to use the APIs, they leave out a lot of details only some of which are in the API documents. Not so long ago, people answered questions about such details in all seriousness with read the source code:( But really: how is all this any worse than in iOS? When I did a small iOS project, I had to learn iOS from scratch. At first, I was in awe of how the iOS documentation covered important aspects Google had left out of Android, but when I actually started trying to apply what I learned there, I found out that they too left out a lot of important info. A typical problem I found, for example, was that Apple still offers as their most uptodate sample code, code that was written under the 3.2 version of Xcode, using old APIs no longer recommended, workarounds no longer needed and not even using storyboards. Sure, you can let Xcode convert it to a 4.1 project, but then what are you learning from the sample code? Certainly not how to design the connections between storyboard and callbacks. So at this point in time, I am convinced that Apple's support of iOS and Google's of Android are about equally frustrating. It is just that the particular problems are different, such as not having to wait for approval before your app goes on the market in Android, but facing arbitrary delays with Apple. On Sunday, August 19, 2012 9:17:51 AM UTC-7, rmz76 wrote: ... I hate the way UI is handled. Perhaps I will love it once I get my head around it, but as of now, I really prefer the way iOS development handles this. My background is predominately Web so I'm no stranger to mockup languages. In general with the Android SDK I found everything to be well documented and to just makes sense until I got to the XML driven layout aspect of Android. I understand everything is a View. That concept is easy to grasp, but what's difficult is to find a really good reference for all my available controls with contextual (and visual) examples of their use. There are sites
[android-developers] Re: Getting started with Android. Love the overall system architecture and SDK except for one thing...
Google is doing good to help UI deveopment. And that's one important thing in Android Jelly Bean. Hey, man nothing is crap as you mentioned, my sincere advise is get some experience in android development after that start giving feedback without using crap language. I know there are some good things with iOS UI development, but be serious and learn fragments, etc after that give your feedback; probably your feedback helps Google android team. Please focus your learning and best way to start android learning is developer.android.com...it seems that you want learn in short time,..do not waste time on other resources...because official documentation is better for UI development. Use other IDEs if you do not like Eclipse. If you have come to android means you want do some thing or great things that would be possible with android. thanks Mek' Sree Rama. On Sunday, August 19, 2012 9:47:51 PM UTC+5:30, rmz76 wrote: ... I hate the way UI is handled. Perhaps I will love it once I get my head around it, but as of now, I really prefer the way iOS development handles this. My background is predominately Web so I'm no stranger to mockup languages. In general with the Android SDK I found everything to be well documented and to just makes sense until I got to the XML driven layout aspect of Android. I understand everything is a View. That concept is easy to grasp, but what's difficult is to find a really good reference for all my available controls with contextual (and visual) examples of their use. There are sites that demonstrate use patterns but these are missing code samples. This puts the the developer in a situation where they go on a goose chase. Don't tell me they are built into the visual design tool for Eclipse, it's crap and I refuse to use it. A reference should exist outside the visual editor and that's what I'm looking for. Also do not point me to the general SDK API documentation for views. I don't want to sort through hundreds of classes trying to extract TextView, Button, etc (what an incredible time sink that is). My process has been working like this. 1. See interesting UI pattern implemented in popular apps: x and y 2. Go to Internet trying to track down possible Android UI components to implement feature seen in apps x,y 3. Try to find source examples of implementing controls I am inferring are being used (this is usually a try and repeat cycle taking hours) 4. After much trial, frustration and anger finally retreat to something else. I'll give an example of such a feature: Horizontal view swiping. From the official Android Play store to the CNN App, this is probably the most common navigation we're seeing for dealing with menus on Android. It's beautiful, it's also a pain in ass to implement. After much searching I found an article on this on the official site http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html I can open the source example and understand what's going on but my question is why does it take pages and pages of foundation code to implement something that should be core? IMO this is where Android development is much more complex than it needs to be and frankly it's where the weak point is. Yes, we need the power of doing things at the lower level like this, but we need a nice abstraction layer on top do knock these things out quickly as well. If you've done iOS development you know what I mean. View transitions are another good example. Let's say I want my view to fade in or out or that I want it to rotate in 3D (just do a simple flip or slide in and out). I don't understand why the developer has to go so low level to accomplish these sort of task. I'm hoping perhaps I missed something and that there are wrappers for common transforms, etc... Overall I'm just very frustrated with what the Android SDK offers to the UI developer. It seems some more abstraction for common patterns should be baked in and it's not. To bring this around so that my first post to this group is not just a rant, I'd looking for community recommendations for a masters course/book on Android UI. I want to know the best source you've found on programming Android UI. I don't have weeks to spend just tinkering with it trying to get my head around the common patterns. Is Google doing anything to help? Thanks, RMZ On Sunday, August 19, 2012 9:47:51 PM UTC+5:30, rmz76 wrote: ... I hate the way UI is handled. Perhaps I will love it once I get my head around it, but as of now, I really prefer the way iOS development handles this. My background is predominately Web so I'm no stranger to mockup languages. In general with the Android SDK I found everything to be well documented and to just makes sense until I got to the XML driven layout aspect of Android. I understand everything is a View. That concept is easy to grasp
[android-developers] Re: Gif image not display properly in android
The .gif file format is discouraged. Consider using .png (preferred) or .jpg (acceptable) instead. http://developer.android.com/guide/topics/resources/drawable-resource.html#Bitmap On Monday, July 9, 2012 11:46:06 PM UTC+5:30, arunkumar wrote: Hello all, I have loading gif image. i am extract frames and the use frame by frame by animation. But sometimes the gif image is struck and is not animating. anybody please help regarding this issue. -- WITH REGARDS ARUN KUMAR P D +91-9994794759 -- 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: .apk upgradtion
(*)The correct approach: change the version in manifest manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.mek.amr.amrradio android:versionCode=1 android:versionName=1.1 (*)It's not mandatory to uninstall in the device but On Tuesday, July 10, 2012 11:47:55 AM UTC+5:30, rahul kaushik wrote: i have my first android mobile app(version 2.3.3) and i email it to the user, he installed on his mobile and now he wants some changes in it. i have done the desired changes am ready with updated .apk file nothing changed in manifest file, Some Field name changes only in one activity Doubts 1.Before installing updated apk on his mobile,do user have to unistall earlier apk to get new changes??? 2.is this right way to upgrade apk ?? RK -- 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
Re: [android-developers] Best books for learning Android
Hello Kristopher, Could you tell me what is best in Mark Murphy's books. Hello Jason Hsu Yes, official document is always the first choice to learn from basics to advanced. Follow the developers blog for latest updates and useful points for practical implementations,etc. Books would help us for immediate quick reference, for review of thoery concetps. regards sree ramakrishna On Monday, July 2, 2012 8:01:23 AM UTC+5:30, Kristopher Micinski wrote: Buy a subscription to Mark Murphy's books. Hands down, the fastest and easiest way to both learn the platform and keep up to date on new developments. In the quick paced Android ecosystem, dead trees are stale by the time they're printed. To be completely honest, I don't see why people feel they need books to learn this stuff, because it's really basic programming, and the documentation is a straightforward read. I can see, however, that you might want a book to supplement the documentation with some examples explaining the sticker parts, and maybe some explanation as to UI stuff (i.e., since most people who write apps have never taken an HCI course, a book might highlight some important points).. kris On Sun, Jul 1, 2012 at 10:12 PM, Jason Hsu jhsu802...@gmail.com wrote: I'm considering purchasing an Android development book. The fact that I have published my first Android app (Upgrade Your Cereal, available at https://play.google.com/store/apps/details?id=com.jasonhsu.upgradeyourcereal) certifies that I understand the very basics. At the same time, I have just barely scratched the surface. I've been finding that most of the tutorials out there miss critical details needed to make the apps work properly. I need to move well beyond the Hello World stage. What Android development books would you recommend? I'm considering the purchase of _Android in Practice_. It has great reviews on Amazon, and it sounds very practical. -- 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 -- 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: C2DM is deprecated from june26th
can you share the news from Google android or send the link if it is posted in Google's android blog.?? On Thursday, June 28, 2012 2:46:47 PM UTC+5:30, SIDHU wrote: Hi guys C2DM was deprecated and GCM came into existance plz notify this to every one -- 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: C2DM is deprecated from june26th
okay, I see the https://developers.google.com/android/c2dm/ *Important:* C2DM has been officially deprecated as of June 26, 2012. At that time C2DM stopped accepting new users and quota requests. C2DM has been replaced byGoogle Cloud Messaging for Androidhttp://developer.android.com/guide/google/gcm/index.html (GCM). The C2DM service will continue to be maintained in the short term, but developers must use GCM for new development. We also encourage developers to move existing C2DM applications to GCM to take advantage of GCM features. See the C2DM-to-GCM Migrationhttp://developer.android.com/guide/google/gcm/c2dm.html document for more information On Saturday, June 30, 2012 10:57:55 AM UTC+5:30, Mek Rama wrote: can you share the news from Google android or send the link if it is posted in Google's android blog.?? On Thursday, June 28, 2012 2:46:47 PM UTC+5:30, SIDHU wrote: Hi guys C2DM was deprecated and GCM came into existance plz notify this to every one -- 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: Splitting screen area
Fragments seems to be better fit for your requirement. Use of hidden layouts is not recommended. On Monday, May 28, 2012 4:33:48 PM UTC+5:30, gayathri r wrote: Hi All, How is it possible to split a screen into say 3 or 4 sections?I want to basically have different colour option to be given for different sections in a screen. Shall be thankful for your responses. 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: XML parseing working in android 2.2 but not in android 4.0
Hello Bhaumik Thaker, You need execute the code in a thread. For example use asynctask and update the UI thread if required. You may need to use Handler on main thread to execute async task so that it works in 4.x version and lower versions. regards On Wednesday, May 16, 2012 3:54:29 PM UTC+5:30, Bhaumik Thaker wrote: Hello All, i have a problem i have parse the data using DOM parser in android 2.2 but it will not work in higher version of 2.2. I have use the khop to fetch the response from webservice... It will write the code as follows... DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); //factory.setCoalescing(true); try{ //InputStream is = new ByteArrayInputStream(sb.toString().getBytes()); //sb.toString() is the Data which is comes from the webserver as a response InputSource instream = new InputSource(); instream.setEncoding(UTF-8); String strnm = sb.toString(); //instream.setByteStream(new ByteArrayInputStream(tableuid250/uid/table)); instream.setCharacterStream(new StringReader(strnm)); DocumentBuilder db = factory.newDocumentBuilder(); Document doc = db.parse(instream); } it will throws an error at following. Document doc = db.parse(instream); This will work fine in android 2.2 but not in 2.3 or higher version... Help me to solve this issue... Thanks, -- Bhaumik Thaker -- 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 parseing working in android 2.2 but not in android 4.0
Hello Bhaumik Thaker, You need execute the code in a thread. For example use asynctask and update the UI thread if required. You may need to use Handler on main thread to execute async task so that it works in 4.x version and lower versions. regards On Wednesday, May 16, 2012 3:54:29 PM UTC+5:30, Bhaumik Thaker wrote: Hello All, i have a problem i have parse the data using DOM parser in android 2.2 but it will not work in higher version of 2.2. I have use the khop to fetch the response from webservice... It will write the code as follows... DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); //factory.setCoalescing(true); try{ //InputStream is = new ByteArrayInputStream(sb.toString().getBytes()); //sb.toString() is the Data which is comes from the webserver as a response InputSource instream = new InputSource(); instream.setEncoding(UTF-8); String strnm = sb.toString(); //instream.setByteStream(new ByteArrayInputStream(tableuid250/uid/table)); instream.setCharacterStream(new StringReader(strnm)); DocumentBuilder db = factory.newDocumentBuilder(); Document doc = db.parse(instream); } it will throws an error at following. Document doc = db.parse(instream); This will work fine in android 2.2 but not in 2.3 or higher version... Help me to solve this issue... Thanks, -- Bhaumik Thaker -- 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: ICS don't give you a real multitasking.
Yes, Fragments helps a lot. I did multi tasking using activities, Asyctask, hidden layouts in a Relative lout,etc. But Fragments is the best solution, I believe.Not sure about compatible jars of fragments that works in lower versions, but heard that it works equally good. I think every knows that some UI features still very in iPhone, we can easily overlay a screen on another without coding effort or less coding. But Android certainly gives the rich ness and User friendly experience with fragments that are better than iPhone in some scenarios. regards On Wednesday, May 16, 2012 8:13:12 PM UTC+5:30, Streets Of Boston wrote: from your talking it seems that in your mind the app needs to store every user's move in database and restore it in every onCreate(), hey, have you every programmed an android app? If you write an app that allows the user to change an Activity's data and state (that is not backed by input fields such as EditText, etc), you'd need to persist this data when the activity (and application) is restarted. However, you don't need to implement you own database/persistence/storage for this. Just implement the callback method onSaveInstanceState correctly (save the data/state into the provided bundle) and read the data from this bundle in the onCreate. Easy peasy. Or use a (hidden) Fragment. Even more easier peasier. And yes, I have programmed an Android app On Wednesday, May 16, 2012 10:01:35 AM UTC-4, sblantipodi wrote: As the graph I posted explain the app is not restarted, but the latest activity is. If the activity is restarted, user needs to reinput the input it submitted, variables needs to be re-populated, etc. from your talking it seems that in your mind the app needs to store every user's move in database and restore it in every onCreate(), hey, have you every programmed an android app? On May 16, 3:51 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, May 16, 2012 at 10:43 PM, sblantipodi perini.dav...@dpsoftware.org wrote: don't try to justify a broken system, please. Take a fresh new galaxy nexus, install on it three small apps, choose you the apps and start them, now open two tabs on your browser, choose you the site, now come back at the first apps opened, you will see that the activity has been restarted, now open the other two apps, now return to browser, the page needs a refresh on every tabs. Even if you are right, what is the problem with the apps being restarted? If they have been implemented properly it shouldn't matter. If they haven't, well, get whoever wrote them to fix them. This is obviously a broken multitasking system. Really? Define a non-broken multitasking system then. -- 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: Listview with multiple layout
Layout: Two layout xml files: 1)one layout for listview 2)another layout for list items. use two textview widget and arrange it one below other. Layout: 1)linear layout 2)relative layout or use combination of relative and linear application code: use i)SimpleCursorAdapter ii)custom adapter that fits your requirement Referece : http://developer.android.com/reference/android/app/ListActivity.html Use list adapter similar to examles in listing 4 and 14 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List4.html On Friday, May 18, 2012 11:39:48 AM UTC+5:30, Jovish P wrote: In our app we have to show a screen just like below. The data is in a hash map with key value pairs. We want to show the keys of hashmap as header item of Listview and values for that keys as item layout under that key. Please help us how to implement this. Regards, Jovish -- 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
Re: [android-developers] How to load web page in background
Thanks Lucas, Have a small question on the following, entity.consumeContent(); if (entity != null) { entity.consumeContent(); } after consuming, why should we again check for null and consume again ? Can we use SerializableEntity instead of HttpEntity? Please share, If you have any link to sample android program. Thanks Rk On 27 March 2012 19:33, Lucas Diego diegoluc...@gmail.com wrote: I think u could use HttpClient from http://hc.apache.org/httpclient-3.x/ if you try something like this, it might be useful: * HttpGet httpget = new HttpGet(http://www.your_url.com ); HttpResponse response = httpClient.execute(httpget); HttpEntity entity = response.getEntity(); entity.consumeContent(); if (entity != null) { entity.consumeContent(); }* I hope it helps you! On Tue, Mar 27, 2012 at 10:54 AM, rk ramakrishnar...@gmail.com wrote: How to load web page in background ? As part of my application, Im supposed to present a web-page to the user. The webpage is about .5M (has lot of images and js), so i cant fire an activity, as user has to see the page loading for considerable amount of time, if user is on slow network connection. Is there any way that I can load it in background and show the activity, when the loading is complete? 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 -- 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 -- 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] I have make application for video recording but video is recording but sound is not coming
I have make application for video recording but video is recording but sound is not coming -- 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] Hai 2 all..
How to set the required position's string item name in Spinners when shows display.. generally it shows 0 th position by default,but i want N th position.. please resolve my problem..! -- 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] Android version upgrade
Dear All Q1.Can anyone explain how the android updates happens? Is it using Fastboot or recovery with Key combination? Q2:Is their any method to update without key combination.I have created update.zip file and kept in sdcard.Is it possible to apply update.zip without key combination and fastboot or hboot I have seen in nexus one it downloads the patch and applys it and after rebooting the system will be updated.They have not used any keys or USB.Can any one explain Regards Rama -- 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 know when an ougoing call has been answered
Hi all, I'm trying to develop an application in Android whose functionality is to disconnect all outgoing calls and dial a modified number. My problem is I need to send the actual dialed number to the modified dialed number as DTMF tones, once after the call has been answered by the modified number. How to get the status of the answered call ? Right now I'm using telephony that gives CALL_STATE_OFFHOOK (dialing / active / hold) states. I need to differentiate between these states. Any help will be greatly appreciated. -- 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] Codec Support in Android
Hi Does Android support Windows Media Video(i.e WMV format) codec. Regards Rama --~--~-~--~~~---~--~~ 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: Need help on supporting IGMP protocol on android
Hi Thanks for your reply.Do you have any idea when google is going to release the Android source code Thanks in advance Rama On 6/12/08, Justin (Google Employee) [EMAIL PROTECTED] wrote: Disclaimer: I have no experience with IGMP. Possibly you could port it to Java and Android as a Service. Android has support for Java sockets, so I assume this would provide the basic networking functionality you need. The alternative is adding it as native code and then exposing Java bindings in Android. This is currently not possible, but once the Android code is open sourced I would imagine this would be possible. Cheers, Justin Android Team @ Google On Jun 9, 10:13 pm, Rama [EMAIL PROTECTED] wrote: Hi I have ported IGMP v3.0 on Linux. I want to expose IGMP API's (like join and leave)to the android application which is written in Java Please suggest how to do this? Regards Rama --~--~-~--~~~---~--~~ 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] Need help on supporting IGMP protocol on android
Hi I have ported IGMP v3.0 on Linux. I want to expose IGMP API's (like join and leave)to the android application which is written in Java Please suggest how to do this? Regards Rama --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---