Friday, November 25, 2011

Create android application with no application Icon

AIM: To create an app with no icon and run in background without any activity required.

Solution:

When you want to track the usage of the mobile or gather some data without user knowledge,this might help you.

Step1: Create an application with No icon.
 Normally,an activity is declared as follows in manifest.
   <activity
            android:label="@string/app_name"
            android:name="org.security.tracker.Tracker-activity" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
Remove the Category TAG ,you wont get app icon anymore.
Now,you don't need activity anymore. so remove this segment.
BUt you might think,how the app will run without any trigger or what is the starting point of the application.
This is the solution.

<!-- Start the Service if applicable on boot -->
        <receiver android:name="org.security.tracker.ServiceStarter" >
            <intent-filter >
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

THis triggers your code that written in Receiver there by you can run service to implement your thoughts.


  <service android:name="org.security.tracker.serviceCode" />

You need to add this permission,

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

Your code runs when the phone reboots only.

Step 2. Write your code

On Reboot,the recevier will fire ,there you can start your service.

class ServiceStarter extends BroadcastReceiver {

    @Override
    public void onReceive(Context _context, Intent _intent) {
       
        Intent i = new Intent("com.prac.test.MyPersistingService");
        i.setClass(_context, ServiceCode.class);
        _context.startService(i);
    }

}

Thats it.

THis enables the app runs in background and it wont have any app icon.the service always does its function..

Free Android apps for Online Meetings:Mikogo

Mikogo has released its iOS and Android apps enabling people to attend online meetings from their mobile phones or tablets. Designed for participating in web presentations or meetings, the apps are now available online as a free download.
BeamYourScreen has announced the release of its mobile apps for its desktop sharing software, Mikogo. Mikogo enables businesses to organize online meetings live over the Web and with this new release, now offers a solution for users to participate in meetings while on the go, direct from their mobile phones or tablets.
The apps are designed for participating in online meetings and presentations, specifically for those who cannot attend an online meeting from their desktop computer. When unable to make it to their laptop or desktop computer for an online meeting, a traveling businessperson can participate effortlessly and view all the meeting content in real-time on the screen of their mobile device.
Users simply download the free app to their phone or tablet. They are then ready to join a Mikogo online meeting from anywhere, assuming they have access to a wireless Internet or 3G network connection. From their laptop or desktop computer, the online meeting presenter then starts a Mikogo session and receives the unique Mikogo session ID. Meeting participants then enter this session ID into their mobile app and will be instantly joined to the online meeting. They can then view the screen of the presenter live from their mobile phone or tablet.

Both the iOS and Android apps are available: http://www.mikogo.com/download/mobile-download/

This post  is  a copy of post found at http://www.helloandroid.com/content/mobivention-turns-android-phones-pocket-mirrors.

Android Developers Blog

Ram's shared items