[android-developers] Re: Linear Layout and Relative Layout
Normally by default it is Linear Layout (for me it is)...but there was some talk in last years Google I/O for promoting Relative Layout(is better)., May be because you are using the latest sdk it is creating a relative layout(Not sure). But you should not worry much, Relative seems to be better and if needed you can change to Linear manually. On Wednesday, July 11, 2012 9:39:16 AM UTC+5:30, Ocean wrote: Hello I hope you are fine. I am a newbie in Android Programming.By default when i open my XML in layout Folder it is in Relative Layout..Why not Linear Layout Please 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
Re: [android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style
Thanks for pointing to that. On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote: On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. Probably ListView. http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote: On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. Probably ListView. http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote: On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. Probably ListView. http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote: On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. Probably ListView. http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Inflate Exception -What can be the Cause?Error inflating class unknown
1. Trying to inlfate a XML file in the Activity class. 2. The XML file is stored in assets directory. 3. When calling the inflate method getting the Error inflating class unknown . 4. It shows the XML Tag(TableLayout or Linear Layout) with attributes. Any ideas? -- 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: Inflate Exception -What can be the Cause?Error inflating class unknown
This is the code View newView =(TableLayout)mLayoutInflater.inflate(xpp,null); //'xpp is the XM:Pullparse set with the XML file XML File: TableLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/myTableLayout android:gravity=center TableRow.../TableRow./TableLayout *Note: The same xml file works if i use inflate - mLayoutInflater.inflate(R.layout.tableLayout.xml,null); * * *On Thursday, July 12, 2012 4:44:55 PM UTC+5:30, maccoy wrote: 1. Trying to inlfate a XML file in the Activity class. 2. The XML file is stored in assets directory. 3. When calling the inflate method getting the Error inflating class unknown . 4. It shows the XML Tag(TableLayout or Linear Layout) with attributes. Any ideas? -- 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: Inflate Exception -What can be the Cause?Error inflating class unknown
*I am wondering is this because of this mentioned in the doc.:* *Important* For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime. On Thursday, July 12, 2012 4:44:55 PM UTC+5:30, maccoy wrote: 1. Trying to inlfate a XML file in the Activity class. 2. The XML file is stored in assets directory. 3. When calling the inflate method getting the Error inflating class unknown . 4. It shows the XML Tag(TableLayout or Linear Layout) with attributes. Any ideas? -- 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] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style
The formatting of the header and detail row is defined in layout.XML. In this case, is it good to use 1. Table Layout and create details views by inflating the layout.xml(so that formatting is available) 2. Or Create a Listview for the details and a Linear layout representing the Header. What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. I assume we need to write a adapetor for the TableLayout. -- 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] is the setStyle Method or similar available now..or still it is status quo?
Can i set a style from one TextView to another? -- 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: is the setStyle Method or similar available now..or still it is status quo?
What i am trying to do is newTextView =(TextView)getLayoutInflater().inflate(R.layout.styledtextvew1, null); I have xml like the following..when the style is applied the weight and gravity does not..is this the normal behaviour because I am trying to do it at runtime? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_weight=1 android:gravity=center style=@style/rowText0 / style name=rowText0 parent=@android:style/TextAppearance.Medium item name=android:textColor#FF/item item name=android:textSize14dip/item /style On Monday, July 9, 2012 11:47:01 AM UTC+5:30, maccoy wrote: Can i set a style from one TextView to another? -- 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: Use Object Oriented patterns in android application
GOF design pattern book is the best place to start..read the pattern which you want to apply and tailor to your needs. On Feb 13, 7:47 am, mojam dewan mojamc...@gmail.com wrote: Hello experts, I am new in android development. I want to use object oriented design pattern like Singleton, Factory, Factory Method, Abstract Factory, Builder, Prototype, Object Pool etc. to develop my android application. But I don't have any clear concept about it. Can anybody refer me any reach and good tutorial for android development with object oriented design pattern. Thanks in advance Mojammel -- 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] Is C2DM still the push option-after the discontinuance of google labs.
Can we rely on C2DM the push option for Android, as it seems it is discontinued along with google labs or is there any other options? -- 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] Web view performance
In one of our application we are using web view to show some html content(we have some css and so may not be able to use Textview). But it seems the loading of web view is very slow.(atleast when the first time we launch this page).is there any way we can optimise this or any other suggestion.. -- 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: startMethodTracing() can't open trace files
I faced similar probelem, removing the uses-sdk... from manifest solved it. try removing uses-sdk android:minSdkVersion=5 android:targetSdkVersion=8 / and check. On Mar 9, 5:50 am, Mark Murphy mmur...@commonsware.com wrote: Do not hardcode /sdcard, as that is wrong on most devices nowadays. Use Environment.getExternalStorageDirectory(). On Tue, Mar 8, 2011 at 7:44 PM, fadden fad...@android.com wrote: On Mar 8, 5:04 am, OldSkoolMark m...@sublimeslime.com wrote: I looked at the related posts, but my problem seems more basic. Full path, or no path, file extension or not, I get a Unable to open trace file '/sdcard/traceit.trace': Permission denied error when I run on the emulator. Do I need to 'prepare' the emulated sd card? Use adb shell to get a shell in the emulator. Type echo x / sdcard/foo, then cat /sdcard/foo. Does that 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training Worldwide:http://commonsware.com/training -- 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: Passing objects to new intents
why not class implementes Serializable myBundle.putSerializable( and get the class back?? is there a performance issue? On Dec 30 2010, 5:21 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao maomaosteven...@hotmail.com wrote: What you have said is the common way to pass arguments to an activity. Right. But my question is about how to pass an object of user defined class to an activity. Passing a user defined object to an Activity is not much different than passing, say, an int. Re-read this thread - that's exactly what was discussed. One guy said that it could be done by implementing some common functions for this activity and calling those functions to pass object to this activity, but how I can get the activity reference would be a problem. If you're referring to Neilz's post, the second part of that was that he uses static objects - no need to pass an Activity reference around. Each Activity, when active, would use itself to access the user-defined static objects. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Code analysis, anyone?
See my post under Ant Emma and JUnit, integrating all three On Jan 10, 11:45 pm, paladin quoti...@gmail.com wrote: Has anyone any experience with Klocworkcodeanalysisfor their Android apps? Is it any good? Or is there some other form ofanalysis that anyone has done? -- 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: Testing an Android App
u may also want to browse and check deviceanywhere.com On Jan 5, 9:08 pm, JamesT sa...@testing4success.com wrote: Has anyone here tried getting their Android App tested by an actual Android App testing company? I have googled and foundwww.testing4success.comwhich looks good, just wanted to get some other opinions before I go for it. Its my first Android App, and so I want to ensure its quality! :) -- 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: example on asynctask class..
Yes the code in the above link should get you started ...i have tried for myself...with little change On Dec 30, 12:55 am, Frank Weiss fewe...@gmail.com wrote: I'm assuming you've studied this article very carefully:http://developer.android.com/resources/articles/painless-threading.html Please ask a question about a specific problem you're having. -- 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: example on asynctask class..
yes.. Try with the sample code in in the site, i would suggest not to change anything..so that you can check it is working (including String... ) --the dots. You may have to try this inside your activity. On Dec 30, 2:26 pm, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: is it working for u?.. On Thu, Dec 30, 2010 at 2:54 PM, maccoy maccoy2...@gmail.com wrote: Yes the code in the above link should get you started ...i have tried for myself...with little change On Dec 30, 12:55 am, Frank Weiss fewe...@gmail.com wrote: I'm assuming you've studied this article very carefully: http://developer.android.com/resources/articles/painless-threading.html Please ask a question about a specific problem you're having. -- 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.comandroid-developers%2bunsubscr...@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: Testing in android
We are exploring the Android Junit, and trying to figure out to use Emma code coverage On Dec 29, 12:40 pm, oriharel ori.ha...@gmail.com wrote: Just a question - How many of you use the testing infrastructure provided by Android? -- 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] Ant Emma and JUnit, integrating all three
Is there a step by step guide to try 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ant Emma and JUnit, integrating all three
With some more study into the http://developer.android.com/guide/ developing/testing/testing_otheride.html able to generate code coverage.html for EMMA. 1.Initially i had created a project and Project test. 2.Used the command line Android - update project and update test project. 3.Then Run the Ant coverage.. it worked...it generated the coverage.html On Dec 29, 6:14 pm, maccoy maccoy2...@gmail.com wrote: Is there a step by step guide to try 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do I replace my entire Styles.xml with downloaded newStyles.xml?
I have declared a list of Style resources in my application and this s is built and deployed in the client device. Can i download another newStyles resources from a server and replace the oldStyles. Mainly i want to change the color, font ..etc.. in runtime or each time the application loads. I was thinking like, Get the new XML (the same format as the original) and replace it while the application starts.. so that the new styles are in effect. style name=OriginalStyle item name=android:textColor#FF00FF/item item name=android:typefacemonospace/item /style Download this : style name=OriginalStyle item name=android:textColornewColor/item item name=android:typefaceneeTypeFace/item /style Can i do this in a simple way? -- 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] Relace Style.xml or Strings.xml
How can i replace the style.xml or strings.xml in the res/ directory from the web, after the application is compiled and deployed. Can i use a webservice, load this file from a URL and replace these files, and still use.R are i have to do this manually in my code to reset the styles -- 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