Hello,
I have used the Eclipse IDE for starting an Android Service but i have one
problem with my AndroidManifest.xml file on the line of the service tag.
Here is my AndroidManifest.xml :
package="com.OrangeLabs.gbaAndroid.BootstrapService">
<application>
<activity class=".BootstrapService" android:label="@string/app_name">
<intent-filter>
<action android:value="android.intent.action.MAIN" />
<category android:value="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service class=”.BootstrapService”/> --> my problem is here !!
</application>
</manifest>
And my Service skeleton :
package com.OrangeLabs.gbaAndroid.BootstrapService;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.Parcel;
import android.widget.Toast;
//Need the following import to get access to the app resources, since this
//class is in a sub-package.
import com.OrangeLabs.gbaAndroid.BootstrapService.R;
// @brief Main class for the BootstrapService Android service
public class BootstrapService extends Service
{
// Actions to perform when service is started.
@Override
public void onStart(Intent intent, int startId)
{
// Test the TelephonyManager API (can we have an access to the
authenfication
// function buildin the sim/usim card
// Create the shared memory used between the bootstrap client and the
// application in link with a NAF server
// Check and wait until the WIFI become usable
} // onStart
// Initialize variables, get references to GUI objects
@Override
public void onCreate()
{
} // onCreate
@Override
public IBinder onBind(Intent intent)
{
return null;
} // onBind
} // BootstrapService
Is there a place where i can view / download some services sample ?
Regards
Thierry GAYET
NextInnovation.org
+33(0)663.849.589
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---