Back to project page capture-the-flag.
The source code is released under:
Copyright ? 2014 Microsoft Mobile Oy. All rights reserved. Microsoft is a registered trademark of Microsoft Corporation. Nokia and HERE are trademarks and/or registered trademarks of Nokia Corporati...
If you think the Android project capture-the-flag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Microsoft Mobile. All rights reserved. * See the license text file provided with this project for more information. *//* w w w . jav a 2s . c om*/ package com.nokia.example.capturetheflag.notifications; import android.content.Context; /** * Abstract base class for the Notifications Managers. */ public abstract class NotificationsManagerBase implements NotificationsManagerInterface { protected Context mContext; /** * Constructor * * @param context Context. */ public NotificationsManagerBase(Context context) { super(); mContext = context; } /** * Checks whether a stored registration id exists and is valid. * * @return <code>true</code> if registration is found and is valid, <code>false</code> if not. */ protected boolean hasRegistrationId() { final String registrationId = getRegistrationId(); return (registrationId != null) && !registrationId.isEmpty(); } }