Académique Documents
Professionnel Documents
Culture Documents
FEATURE_NO_TITLE); //this we
will use for not showing action bar on loading screen of app
while splash screen do not put intent for mainactivity.java
in splash screen put
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"
/>
</intent-filter>
import android.content.Context;
import com.google.android.gcm.GCMBroadcastReceiver;
public class PushLibraryBroadcastReceiver extends GCMBroadcastReceiver
{
/**
* Gets the class name of the intent service that will handle GCM messages.
*/
@Override
protected String getGCMIntentServiceClassName(Context context) {
return "com.androidhive.pushnotifications.GCMIntentService";
}
}
Then in Manifest For Receiver do this ----->
<receiver
android:name="com.androidhive.pushnotifications.PushLibraryBroa
dcastReceiver"
/>
Then in java file add these lines
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
}
}.start();
Validation