4 Important Tools In An Android Application               Development WorkflowUnderstanding your Android application devel...
Quick Assistant ShortcutYou might be familiar with the Cmd-1 keyboard shortcut (Ctrl-1 in Windows). It allows you topull u...
Not only can you invoke quick assistant in the Java editor, it’s also very useful in the XML editor. This brings us to our...
Extract Style from Existing XML ElementIf you have visual parameters that you use often re-use, such as a header color, dr...
The extracted style will automatically be placed in the styles.xml file, and the tool willeven look for and replace other ...
Click on the “Name*” hyperlink and it will open up a New Java Class dialog, with Activityalready selected as a super class...
?                 1                 2                 3                 4                 5                 6             ...
About Xtreme Labs:Located in Toronto, Palo Alto, and New York City, Xtreme Labs is a leading mobileproduct development com...
For more information visithttp://www.xtremelabs.com           Thanks
4 Important Tools In An Android Application Development Workflow
Upcoming SlideShare
Loading in …5
×

4 Important Tools In An Android Application Development Workflow

1,564 views

Published on

Understanding your Android application development tools allow you to spend less time writing boilerplate code and solving the same problems over and over again.
Understanding your Android application development tools allow you to spend less time writing boilerplate code and solving the same problems over and over again. Here are 4 out of seven tools every Android application developer should familiarize themselves with to make their workflow more efficient and solve new problems.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,564
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

4 Important Tools In An Android Application Development Workflow

  1. 1. 4 Important Tools In An Android Application Development WorkflowUnderstanding your Android application development tools allow you to spend less timewriting boilerplate code and solving the same problems over and over again.Understanding your Android application development tools allow you to spend less timewriting boilerplate code and solving the same problems over and over again. Here are 4 outof seven tools every Android application developer should familiarize themselves with tomake their workflow more efficient and solve new problems
  2. 2. Quick Assistant ShortcutYou might be familiar with the Cmd-1 keyboard shortcut (Ctrl-1 in Windows). It allows you topull up quick-fix when you’re in the code editor:
  3. 3. Not only can you invoke quick assistant in the Java editor, it’s also very useful in the XML editor. This brings us to our second tip. Did you know that you can auto complete in other places as well. For example you can turn a Java string into an XML string resource: Not only can you invoke quick assistant in the Java editor, it’s also very useful in the XML editor. This brings us to our second tip.
  4. 4. Extract Style from Existing XML ElementIf you have visual parameters that you use often re-use, such as a header color, dropshadow, and text style, it’s best to reduce redundancy by creating a style that encapsulatesthese parameters. This Android application development tool makes this much easier to docorrectly. Just place the cursor on your view element and invoke quick assistance with Cmd-1:
  5. 5. The extracted style will automatically be placed in the styles.xml file, and the tool willeven look for and replace other instances of the same style parameters. As you cansee, quick assistance brings up other nice tool features besides extracting styleCreating New Activities using the Manifest EditorDuring the process of android application development, new activity classes need to becreated quite regularly. The Manifest Editor has made The next time you want to createa new Activity class in your, don’t use the Eclipse new class wizard. Instead, go to the“Application” tab of the manifest editor. At the bottom of the page, you’ll see a list ofapplication nodes, including existing services and activities. Click “Add…” and selectActivity. The new activity node does not yet have a name, when it’s selected theAttributes for Activity pane show up to the right:
  6. 6. Click on the “Name*” hyperlink and it will open up a New Java Class dialog, with Activityalready selected as a super class. If you always remember to create a new Activity thisway, not only is it faster, but you’ll never run into the problem where the you forget todeclare your activity in the manifest, or accidentally spell activity’s package nameincorrectly in the manifest. isInEditMode() Check for Custom ViewAfter creating a custom View of View Group and inserting it in your layout XML file, theAndroid layout preview editor often has a difficult time rendering the new View. Oneproblem could be that your custom view uses classes or methods available only whilerunning on the device, but not while being rendered in the editor (eg. disk and networkaccess). In the following snippet, a custom view uses isInEditMode to determinewhether or not it is being rendered inside the editor, and if so then loads test datainstead of real data.
  7. 7. ? 1 2 3 4 5 6 7 8 9public ChartView(Context context) { super(context); if (isInEditMode()) { addFakeChartData(); } else { readChartDataFromDisk(); } }
  8. 8. About Xtreme Labs:Located in Toronto, Palo Alto, and New York City, Xtreme Labs is a leading mobileproduct development company that deals in iphone app development, androidapplication development, blackberry applications development, custom applicationdevelopment, ios app development, ipad application development, windows mobiledevelopment and mobile application development. They have a proven track record ofsuccess in delivering innovative solutions across hundreds of global products. As expertsin mobile agile development, Xtreme Labs works with the worlds leading companies toplan and execute their mobile strategy.For more information visit http://www.xtremelabs.com
  9. 9. For more information visithttp://www.xtremelabs.com Thanks

×