Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Basic4android Getting started & Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4android Getting started & Tutorials Android development starts here. Please do not post questions in this sub-forum.

IDE Tips

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-08-2010, 07:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default IDE Tips

The IDE has several powerful features which can help you concentrate on writing your code and building your application.
I'm listing here some of the less obvious features:

- Ctrl + Space = auto complete

Pressing Ctrl + Space activates the auto complete feature which will then show you a list with the available keywords, variables, modules, methods, subs, properties and fields.
The list includes a description for most items.
Pressing Ctrl + Space after typing the first few letters will usually select the required item automatically.



- Tool tip information - while writing methods parameters, a tool tip will be opened with the method signature and description.
The tool tip might hide some important code that you now need.
You can hide it by pressing escape. You can also turn it almost invisible by pressing the ctrl key. Another press will return it to be fully opaque.





Logs - The Logs tab displays the device built-in logs. These logs are very useful for debugging. You can log messages with the Log keyword.
In order to start displaying the logs you press on the Connect button.
The logs can be filtered and then you only see messages generated by Basic4android or your application.



Note that if you have more than one device connected you can switch to a different device by pressing on the Connect button.

Designer generated members tool - This tool allows you to add the declaration code for the designer views and to add event subs.
Note that you only need to declare views that you intend to access by code.
Nothing will happen if you select an existing item (there will be no duplicated code).



To open this tool choose - Tools - Generate Members (from the designer form).

Background compilation - Pressing Alt + 3 will compile and install your application while keeping the IDE responsive. The status bar at the bottom of the screen displays the progress of the process and when the installation is completed.
A short sound will notify you if the process failed. In that case you may need to compile regularly (F5) in order to see the error message (it depends on the type of error).

Working with multiple connected devices - In many cases you have more than one device connected. For any operation that starts a connection you will be shown the list of connected device and you will choose the target device.
If you compile in the background the last device will be used again. This is usually more convenient than compiling in the foreground and selecting the target device each time.

Designer - Duplicate - You can duplicate any view by selecting the view and then choosing Tools - Duplicate View. If the view has child views then all its child views will be duplicated as well.

Export as zip - Export as zip option creates a zip file with all the required project files. This is useful when you want to share your project with others or create a backup. It is located under Files menu.

Clean Project / Clean Unused Files - Clean project deletes all generated files. These are files that are generated during compilation.
Clean unused files deletes files that are located in the Files folder but are not used by the project. A list of unused files with the option to cancel the deletion will appear.

Run AVD Manager - The AVD manager allows you to create and start emulators. This menu opens the manager. Note that there is no need to keep the AVD manager open after starting an emulator.
Reply With Quote
  #2 (permalink)  
Old 11-09-2010, 06:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Additional tips:
1. Events subs signatures - There is a special auto complete feature that can help you write the event subs signatures.
Start with writing Sub followed by a space:

A message will appear as in the image.
Press Tab key:


A list will be displayed with all the available types (that have at least one event). Choose the required type and press enter.



Choose the specific event.
Code similar to the following code will be generated:



The EventName string will be selected. Change it to match the object "EventName" value and press enter. That's it.

2. Designer top most property - The designer has a "top most" check box which you can use to keep the designer as the top most form. This is useful when working with the designer and the emulator on a small screen.

3. Find all references (F7) - This one is a must for larger projects. You can press on any variable or sub to immediately see a list with all the lines that reference this identifier (in all modules):



4. Find sub - Pressing Ctrl + E will open the "find sub" dialog. This dialog lets you quickly search for a sub in any module:

Reply With Quote
  #3 (permalink)  
Old 03-14-2012, 06:09 PM
Jost aus Soest's Avatar
Basic4ppc Veteran
 
Join Date: Mar 2012
Location: Soest, Germany
Posts: 222
Question debug

Where can I found the debug-option in Registered Version 1.80?
Reply With Quote
  #4 (permalink)  
Old 03-14-2012, 06:23 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,461
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

In the IDE on top in the Toolbox you find a dropdown list with:
- Debug.
- Release.
- Release obfuscated.

Beginner's Guide V2.0 chapter 4.2.11 Debugging page 62.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tips, Tricks And Usefull Apps List Cableguy Additional Libraries 2 07-20-2010 03:35 PM
Help/tips to make this app run faster J12345T Questions (Windows Mobile) 3 07-09-2007 11:06 PM


All times are GMT. The time now is 10:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0