android: No Launcher activity found

Error:

[2005-01-06 19:56:38 - my_Android] No Launcher activity found!
[2005-01-06 19:56:38 - my_Android] The launch will only sync the application package on the device!
Usually this is happening by the AndroidManifest.xml. You need to specify the MAIN and LAUNCHER in the the intent filter for the activity you want to start on launch.

<application android:name="MainApplication" android:debuggable="true">
<activity android:name=".MainActivity" android:launchMode="singleInstance"
    android:label="@string/app_name" android:icon="@drawable/icon">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
                    <action android:name="org.onaips.vnc.ACTIVITY_UPDATE" />
    </intent-filter> 
</activity>
</application>
Here the action tag detail should be like as it is .Because through the activity tag we aretelling to android which is the main Activity and Launcher.

Hide and Show Mac Files using Terminal


Viewing hidden files on a Mac is useful for accessing the hidden UNIX directories or for recovering Music from an iPod. Additionally, by prefixing the name of a folder with a '.', you can create a folder that is seemingly hidden from prying eyes.
To view hidden folders:
  1. Open the Terminal (located in /Applications/Utilities/)
  2. At the command prompt type
    defaults write com.apple.finder AppleShowAllFiles -bool true
  3. Press return to execute the command.
  4. For the changes to take effect, either log out then log back in again, or relaunch Finder (this can be done from the Force Quit Window or by typing 'killall Finder' in a Terminal window).
To hide the hidden files again:
  1. Open the Terminal
  2. At the command prompt type
    defaults write com.apple.finder AppleShowAllFiles -bool false
  3. then press return to execute the command.
  4. Log out then back in again, or relaunch Finder (explained above).

Reference : http://guides.macrumors.com/

Remove login/username from menu bar

One of my first customization after installing Mac OS X Lion was to remove the annoying login – username option from the top menu bar. And to explain “annoying”, I find it quite too long displaying my Name Surname, and an option that I would never need to use, as there’s only a single user on my Mac.
Removing it is quite easy: hold command button and drag it off the menu bar.



If you really want to keep it, you can reduce its length to the username or to an icon:

System Preferences -> Users & Groups -> Login Options -> (Click on the bottom left lock if everything is greyed-out) -> Show fast switching user menu as… -> Check/uncheck to show/hide it, or use the drop-down menu for the various options.

Setup Android SDK in 64 bit Ubuntu 12.04 virtual machine


Needed Applications for Build Android Environment in Linux 

Here we are going to build Android Environment in 64-bit linux .Normally the android SDK was not support to 64-bit linux So we have add a library to run SDK on linux . First of all we have to download some application from Android developer site.

Step 1
Install the Java Virtual machine (JDK) with required version it can be 64bit or 32 bit
To check java version :

If you don't install JDK the download is from oracle and install it click

OR

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

Step 2
Extract the download android SDK and NDK in any location in side of your home directory and follow the instruction http://developer.android.com/sdk/installing.html#Installing in this link

using tar -xvf android-sdk-(version) to extract

After the installation you have to install the platform for your android virtual environment
Follow the link this will good instruction to install


Note: if you are dealing with native layer also then extract the android NDK file as well And to change the permission of a folder
 chmod -R 777 for android-sdk-linux_x86, platform-tools and adb. to change 

Step 3
Install 32 bit supported library for 64 bit linux machine

sudo apt-get update
sudo apt-get install ia32-libs

Step 4
install the Eclipse from the Eclipse . Note Don't install the eclipse  from ubuntu market because it was customised one.Therefore use the latest version from eclipse .
Here we have to install android ADT tool in eclipse for that we need to add the specific link to new installation path


If you faced any problem with installation like bellow

"Software being installed: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819)

Missing requirement: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found".

Then this is happening because it don't have the supported versions file .So for that we have to do some procedures  like bellow


  1. Go to Help/"Install New Software..."
  2. Click on "Available Sofware Sites"
  3. Search "http://download.eclipse.org/releases/indigo and enable it
  4. Search "http://download.eclipse.org/tools/cdt/releases/indigo and enable it
  5. Come back to Help/"Install New Software..."
  6. Check "Contact all update sites during install to find requiered sofware"
  7. Install ADT Plugin
  8. IT MUST WORK!!!
After this process continue with your installation .

Step 5
setup the android SDK path using terminal
First of go in to your admin user profile in terminal then 
 -> sudo gedit ~/.bash_profile and don't use gedit /.bashrc and enter the below path depend on your folder path 
# Android tools
export PATH=${PATH}:~/android-sdk-linux_x86/tools
export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools

export ANDROID_SDK_HOME=~/android-sdk-linux_x86/tools
export PATH=$PATH:$ANDROID_SDK_HOME


Uncover mountain lion 43 wall papers



OS X Mountain Lion has a semi-secret directory stuffed full of beautiful wallpapers, including photos from National Geographic and images taken with the Hubble Space Telescope. Luckily, they're easy to find and use. You just have to know where to look.
This tip comes to us from the folks at OS X Daily. To uncover these hidden wallpapers, press ⌘ + Shift + G from your desktop to bring up the "Go to folder" dialog. Then paste this in and press enter:
/System/Library/Frameworks/ScreenSaver.Framework/Versions/A/Resources/Default Collections/
Enjoy the hidden mountain wall papers :)

Mac OS Host setup for cracked applications


Use ⌘ + space  
Type “terminal” and open it! 
Enter  “ sudo nano /private/etc/hosts “ to enter the blocking servers 
Enter your password to access the hi level 
Copy and paste the blocking servers in that hosts listed in CMD  
Finally:
⌘ +x to exit. Press Y to save.
Example: Sample blocking IP's  
127.0.0.1 activate.wip.adobe.com
127.0.0.1 activate.wip1.adobe.com
127.0.0.1 activate.wip2.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 activate.wip4.adobe.com
127.0.0.1 adobe-dns-1.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
127.0.0.1 adobe-dns-3.adobe.com
Cool now you can rock with cracked applications.

Php include and require

we are using include and require for add or call other php classes and function in to another file .Something like extending.Therefore we can reuse the previous codes to our new file or function.
Say in java we are using import to get a jar file for extensions similarly we are using include in php.

Include –> This will produce only warnings if we have an error and script will continue (E_COMPILE_ERROR)

<html>
<body>
<?php include 'Needed.php'; ?>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>
</body>
</html>

 

Require –> This will produce fatal error then it will stop the script (E_WARNING)

<html>
<body>
<?php require 'Needed.php'; ?>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>
</body>
</html>

 



If you want the execution to go on and show users the output, even if the include file is missing, use include. Otherwise, in case of Framework, CMS or a complex PHP application coding, always use require to include a key file to the flow of execution. This will help avoid compromising your application's security and integrity, just in-case one key file is accidentally missing.

Including files saves a lot of work. This means that you can create a standard header, footer, or menu file for all your web pages. Then, when the header needs to be updated, you can only update the header include file.

Tab Indexing for Accessibility

No more mouse moves .The tab index is used to define the content  flow when we traverse the webpage through tab key.by default the tab index order according to the source order.but some time’s we need to change the order of the tab flow. For that we are using tab indexing.

we are adding a tag like tabindex attribute.It can start at 0 and increment to any value.simply 1,2,3,4,5…. but the Recommended way is to use the tabindex like bellow 10,20,30,40…. because sometimes you may use to add any links or button to your page So you need some unwritten indexes for that .Simply you can inject other controls.And main advantage is we don’t need to re index if we use above technic.

If a tabindex of "-1" is used, the element it’s applied to will no longer be keyboard focusable.Therefore if you want your webpage contain web accessibility then try to avoid marking tab index as –1. by default the tabindex will start from the lowest value incase where ever you placed the code.It will increment until it reach the maximum.

Also tab index only support for specific elements like bellow,

  • a <a/>
  • area <area />
  • button <button tabindex="value" name="" value="" id="" />
  • input <input tabindex="value" name="" value="" id="" />
  • object <object tabindex="value" name="" value="" id="" />
  • select <select tabindex="value" name="" value="" id="" ></select>
  • textarea <textarea tabindex="value" cols="" rows=""></textarea>

Php Repository and Code Editor

Smart Git

We are using smart Git repository based application to Store and review code Based on Version Control.Also it use to switch between multiple repositories .This is the best practice for team based projects

Here we have many function like

->Commit
-> Stage
->Unstage
->Sync
->Pull
->Push

Smart Git – Pull

it’s use to get the files from server to your local machine.If you want to commit

Smart Git – Commit Button (“Commit is only save the changes on your local machine”)

if you want to fix a bug then you have to commit a file through smart Git.When you click on commit then it will ask what that you want to commit description.Also Before performing a commit, you often want to review your or others  changes in order to catch any errors.

Smart Git offers several ways of doing this:

Review mode – Screen switcher  :

  • This mode allow you to review the code changes in each file one by one .
  • compare window used to compare current and past code changes based on commitments.
  • Index editor is basically a combination of two difference.A difference between repository and the Git index 
  • Also if we find any error on our last commit then we can recommit from our last index to restore.
  • ADD is use to do further changes by selecting commit .

Smart Git – Push

After finishing the Changes if you want to upload the files to server you can access that through Push button.

Smart Git – Log

Inspecting the History :

Clicking by the Log button on the main dock we can view the history of our or others  past and present changes on specific file .

Zend Development Environment

This is a Php Editor use to Debug Php code and compare files through version Control.Which has debug,code review option like visual studio.

Conclusion :

Smart Git and Zend both application are integrated with each other therefore we can do version control through smart and editing through Zend.