Posts tagged eclipse
Learning Android : Why I moved away from Eclipse
0So, after a very long break, I started back with getting familiar with Android development… Felt happy seeing that Google has made a lot of improvements / features in the ADT. But, everything evaporated when I tried to debug an app on my machine, and got this error: “Android Packaging Problem: resources.ap_ does not exist”. I tried cleaning the project, restarted Eclipse, and re-creating the Eclipse project and this error didn’t go away… Googling it also didn’t help much… Then, I went to sleep….
The next day, to my surprise, there was no error and I was able to debug my app, at last… But, it didn’t last long… After 3 hours, the same error is back…. It looked like this ADT solves everything else (Resource Editors, WYSIWYG Editor etc.) but the basic task it is supposed to do (Basic compiling / packaging / debugging)…
Now that perfect mood is set to go hunting for a new and *reliable* IDE, I searched in stackoverflow.com for answers… Found some thread saying IntelliJ IDEA is good…. So, downloaded it, downloaded its dependencies (JSDK 1.6) and installed them… And there is no turning back… I don’t miss the resource.ap_ error at all…
The Pros of IDEA:
- Reliable (unlike ADT for Eclipse) at compiling and packaging…
- Supports the Android “Library” projects also… (Tried it with GreenDroid, and worked without a glitch)
- Import Eclipse projects directly…
- Integrated github support (and a few more Version Controls)
- Decent enough features, for Refactoring, Imports optimization, Code completion etc.
The Cons:
This could become a big list, but the reliability when compared to Eclipse beats everything in the below list combined..at least for me…
- Page Scrolling – Cannot use the Mouse Scroll.. Need to click on scrollbar and scroll it down..
- Logcat sucks!! The one in Eclipse is hell lot better.. Seriously needs Filter by Application, Colored text based on log level, and saved searches.. A simple textarea doesn’t justify such an important feature..
- The keyboard shortcuts are completely different from Eclipse.. Why doesn’t IDEs come with keyboard binding set of other IDEs that user can choose to use?
- Memory hogger, seems to be more than Eclipse.. Could it be because of Swing & Java?
- Basic XML Editor – There are no Android Resource Editors…. I prefer to write XML files by hand, though…
- Some code warnings may misguide you.. It keeps telling me that Cursor cannot be NULL, though I have personally seen cases where it will be…
In simpler words, IDEA may not be as good as Eclipse in general, but for Android development, it is certainly a better choice… at least for now..
Atleast, you’ll know you are frustrated not because of IDE… (Trust me, frustration because of an IDE, instead of logic/code isn’t even worth trying to know.. )
Debug PHP: Setup
0Okay! I forgot how to set up debug for my PHP, so I had trouble today trying to set it up today and had to spend about an hour to do so… So, I decided I should note it down for future reference and hence I’m here now!
Tools: PHPEclipse, PHP 5.3.3, XDebug
- Make a PHP file with content as <?php echo phpinfo(); ?> and browse the page on localhost.
- Copy the source of the above page from the browser and paste it in http://xdebug.org/find-binary.php and click “Analyze my phpinfo() output”. This step will give you tailored instructions on how to setup, especially points to the right DLL to use.
- Be careful with the editing php.ini file. Prefer to add the zend_extension line at the top of the file. (It doesn’t work if its the last line)
- And start debugging from the Eclipse IDE !!