₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,026 members, 8,448,260 topics. Date: Monday, 20 July 2026 at 06:06 AM

Toggle theme

Solacong's Posts

Nairaland ForumSolacong's ProfileSolacong's Posts

1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 (of 19 pages)

CelebritiesRe: Mr Ibu Meets Peter Obi At An Event (photos) by solacong:
shocked shocked shocked shocked


Mr Mumu!
PhonesRe: Col. Umar To Sue MTN Over Fraudulent Deductions by solacong: 11:47am On Nov 14, 2016
I have learnt my lessons, any time you received such unfair deduction, don't bother calling the customer agent crap, many of them don't know anything, just send them mail, you can abuse them join sef, they will refund your money shap shap.

at least i don collect my money back like that up to 3 times
CelebritiesRe: Makeup Totally Transformed This Lady's Face by solacong: 2:30am On Nov 12, 2016
Abasiekeme!
NYSCRe: Pre-Wedding Photos Of Two UNILAG Corpers Set To Wed In December by solacong: 8:55pm On Oct 25, 2016
bettercreature:
grin grin grin grin grin Misplaced priority i don't know why they are in hurry
I AM sure they dont have a job
Quote me and go to hell fire

Jokes EtcRe: How Many Of You Did This Back Then In School (picture) by solacong: 8:27am On Oct 21, 2016
smiley
PoliticsRe: Aisha Buhari In N1.2million Cape Dress (Photo) by solacong: 7:47pm On Oct 18, 2016
smiley
EducationRe: Promise Mmadubuobu Bags First Class Honours In The Nigeria Law School by solacong: 1:19pm On Oct 15, 2016
Our Unizik! Our unizik!
Where we learn,Discipline!
Self reliance and Excellence
Great Unizik!
We do hail you
Christianity EtcRe: Joyce Meyer Death Is A Canard! by solacong: 4:20pm On Oct 07, 2016
another Hoax!
ProgrammingRe: Help Revolved Error In Android Program by solacong(op): 12:32pm On Oct 06, 2016
[quote author=seunthomas post=49927647][/quote]AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.learncode.testnofication">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.learncode.testnofication.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.learncode.testnofication.Notificate"></activity>

<!-- [START firebase_service] -->
<service
android:name=".MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<!-- [END firebase_service] -->
<!-- [START firebase_iid_service] -->
<service
android:name=".MyFirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<!-- [END firebase_iid_service] -->
</application>

</manifest>


activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.learncode.testnofication.MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Main Page"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>


activity_notificate.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.learncode.testnofication.Notificate">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Notificate"
android:id="@+id/textView"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
ProgrammingRe: Help Revolved Error In Android Program by solacong(op): 12:24pm On Oct 06, 2016
seunthomas:
I checked your zipped code on google drive and am very curious how the code is working.

Can you upload the entire project.

From your code posted here, you are in order.

The issue may therefore be something else thats hidden in your project.
MainActivity.java


package com.learncode.testnofication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}

MyFirebaseInstanceIDService.java



package com.learncode.testnofication;

import android.util.Log;

import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;


public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {

private static final String TAG = "MyFirebaseIIDService";

/**
* Called if InstanceID token is updated. This may occur if the security of
* the previous token had been compromised. Note that this is called when the InstanceID token
* is initially generated so this is where you would retrieve the token.
*/
// [START refresh_token]
@Override
public void onTokenRefresh() {
// Get updated InstanceID token.
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
Log.d(TAG, "Refreshed token: " + refreshedToken);

// If you want to send messages to this application instance or
// manage this apps subscriptions on the server side, send the
// Instance ID token to your app server.
sendRegistrationToServer(refreshedToken);
}
// [END refresh_token]

/**
* Persist token to third-party servers.
*
* Modify this method to associate the user's FCM InstanceID token with any server-side account
* maintained by your application.
*
* @param token The new token.
*/
private void sendRegistrationToServer(String token) {
// TODO: Implement this method to send token to your app server.
}
}


MyFirebaseMessagingService.java



package com.learncode.testnofication;

import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.app.NotificationCompat;
import android.util.Log;

import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;

public class MyFirebaseMessagingService extends FirebaseMessagingService {

private static final String TAG = "MyFirebaseMsgService";

/**
* Called when message is received.
*
* @param remoteMessage Object representing the message received from Firebase Cloud Messaging.
*/
// [START receive_message]
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {


// TODO(developer): Handle FCM messages here.
// Not getting messages here? See why this may be: https:///39bRNJ
Log.d(TAG, "From: " + remoteMessage.getFrom());

// Check if message contains a data payload.
if (remoteMessage.getData().size() > 0) {
Log.d(TAG, "Message data payload: " + remoteMessage.getData());
}

// Check if message contains a notification payload.
if (remoteMessage.getNotification() != null) {
Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody());
}

// Also if you intend on generating your own notifications as a result of a received FCM
// message, here is where that should be initiated. See sendNotification method below.
}
// [END receive_message]

/**
* Create and show a simple notification containing the received FCM message.
*
* @param messageBody FCM message body received.
*/
private void sendNotification(String messageBody) {
Intent intent = new Intent(this, Notificate.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,
PendingIntent.FLAG_ONE_SHOT);

Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("FCM Message" )
.setContentText(messageBody)
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());
}
}


Notificate.java


package com.learncode.testnofication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Notificate extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_notificate);
}
}
ProgrammingRe: Help Revolved Error In Android Program by solacong(op): 6:25am On Oct 05, 2016
DonaldGenes:
It is a complex work if iMust add. That involves more coding on the JSOn file that you u must have added on your graddle file
If you are talking about the Json file from FCM, i have done that already, in fact if i send push notification from firebase console, am getting it on my phone, but i just want the notification when clicked to open another activity i called "notify.class" not the "MainActivity"
ProgrammingRe: Help Revolved Error In Android Program by solacong(op): 3:16pm On Oct 04, 2016
i have not check, cos i don't know how to use the log, but i will find out
ProgrammingRe: Help Revolved Error In Android Program by solacong(op): 7:15am On Oct 04, 2016
Thanks dhtml18,

i think my problems is from the PendingIntent >> notify.class, but am not sure, at least it should open that activity (notify.class) when one clicked on the push notification




package com.new.testnotification;

import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.app.NotificationCompat;
import android.util.Log;

import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;

public class MyFirebaseMessagingService extends FirebaseMessagingService {

private static final String TAG = "MyFirebaseMsgService";

@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);


Log.d(TAG, "From: " + remoteMessage.getFrom());

// Check if message contains a data payload.
if (remoteMessage.getData().size() > 0) {
Log.d(TAG, "Message data payload: " + remoteMessage.getData());
}

// Check if message contains a notification payload.
if (remoteMessage.getNotification() != null) {
Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody());
}


}

private void sendNotification(String messageBody) {
Intent intent = new Intent(this, notify.class);
intent.putExtra("p", messageBody);

intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
PendingIntent.FLAG_ONE_SHOT);

Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("FCM Message"wink
.setContentText(messageBody)
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0 , notificationBuilder.build());
}
}
ProgrammingHelp Revolved Error In Android Program by solacong(op):
HEllo NLs


Am trying to learn Android programming, though new to programming but i want to learn. Am trying to do an App such that when i send a push notification, and when user click on the notification, it should open an activity with the content of the message sent from FCM.

I have been able to set up push noyication using FCM an it working, but when i clicked on the notification, it always opens "MainActivity.class" even when i have changed the activity in the PendingIntent to the new activity say "Notify.class".

see my code below, please help me out


i have uploaded to google drive



please help, have been on this for weeks
ProgrammingRe: Android Development by solacong(op): 8:36pm On Sep 17, 2016
humnsikan:
You need to start by learning Java. I'm in Abuja presently, though from Akwa Ibom.
Have you programmed before?
Yes, have also learnt some stuff on Android as well, just felt i need to gear up with speed, and also someone to mentor
ProgrammingAndroid Development by solacong(op):
Hello NLander,

I want to Learn Android Development, i need someone to train and mentor me in Eket.

If you know where one can get trained, you can also post the address here.


Thanks
WebmastersRe: Are You On Skype? Give Me Your Skype ID, I Have Micro Jobs For You by solacong: 11:16am On Aug 06, 2016
weirdestbruv:
We still need more people to join us, drop your Skype ID and you'll be added. Have a nice day!
add id is mxiexie
Jobs/VacanciesHigh Value Relationship Officer at Airtel by solacong(op): 6:56am On Jul 19, 2016
Application Closing Date: 25th July, 2016.

Airtel Nigeria (Airtel Networks Limited), a leading mobile telecommunication services provider in Nigeria and a member of Airtel Africa Group, is committed to providing innovative, exciting, affordable and quality mobile services to Nigerians, giving them the freedom to communicate, rise above their daily challenges and drive economic and social development.

A truly innovative company, Airtel has showed resilience, charting new paths in meeting the demands and needs of its esteemed stakeholders and enhancing distribution as well as providing affordable services to empower more Nigerians.

We are recruiting to fill the position below:

Job Title: High Value Relationship Officer

Location: Nigeria


Job Descriptions
The successful candidate will be the primary contact person responsible for the servicing of all aspects of the HV customer needs for the pre-paid and post-paid high value customers - VIP, Diamond & Platinum
The relationship manager MUST be customer centric and focused on maintaining high-quality of customer service; developing strong relationships with high value customers, ensuring adequate sensitivity to their needs, concerns, and emerging requirements, and be readily available to attend to pressing customer challenges at any point in time.
Delivery of business key performance indicators like financials, customer experience, revenue generation and process compliance are critical to this role.

Duties and Responsibilities

Customer Complaint Management:
Log/Track all premier customer complaints and enquiries to ensure closure and proper documentation
Maintain tracker to provide MIS on all Premier customer complaints and closures
Ensure every premier customer is communicated to on receipt of issue within specified timelines
Resolution of all Premier customer complaints within SLA
Close looping of all Premier customer complaints within SLA of resolution

Customer Inactivity Management:
Daily health check on assigned customers
Communicate promotions and changes to customers in a timely way
Alert premier customers to new or improved products and services
Visit a specific premier customer per quarter
Daily inactivity tracking of >2 days customers

Customer Engagement:
Implement one DYK campaign monthly to assigned premier customers
100% onboarding of new entrants into Airtel premier
Email capture assigned premier customers
Anniversary greetings to all premier customers (Birthdays, Weddings etc)
Driving customer experience; ensure customer is locked into the Airtel as a brand

Customer Collections & Operations:
Ensure collection of 99% of monthly invoices on allocated premier accounts
Ensure 60% of due date collections on all allocated premier accounts
Ensure >1% of bad debt premier accounts
Execution of assigned premier operational tasks
Execution of assigned premier process improvement initiatives and projects within the Airtel premier and HV space.

Relevant Skill and Experience
A recognized university degree
Customer management / service experience post NYSC (no less than 2 years)
Understanding of the principles of CRM and Customer Management
Customer Management skills
Surveys and research and Trending skills
Strong Interpersonal Skills & People Centric
Strong numeric ability
Excellent Communication skills
Report writing
Understand CRM-CEM, Usage and Retention principles
Presentation making
Selling and negotiation
People management
Eye for details
Environmental Knowledge particularly of Corporates
Result orientation
Ability to travel in the course of work requirements
Good with people - calm mien, good at building relationships
Sociable
Well spoken
Appearance - formal/customer facing always.

http://infomejobs..com.ng/2016/07/high-value-relationship-officer.html
FoodRe: I Found This When I Opened Blue Band by solacong: 4:01pm On Jul 07, 2016
Hahahahah
Awon Aye ti Lo mbe
Awon aroso ma ba le
Jokes EtcRe: When You Have Too Much Swags by solacong: 10:28am On Jul 07, 2016
Tahhhhhhhhhhhh


Falling Angels
Science/TechnologyRe: JSS3 Student In Anambra Manufactures Keke by solacong: 10:49pm On Jun 26, 2016
Utchgirl:
I check d name and i wzn't dissappoited.

D light of d nation !

We will keep shining.

Kudos 2 Igwe Ifeanyi....4 making us proud.


Some peeps wil nt like dis.
Abi Home for all including mad people
RomanceRe: Man Collapses After Hanging Out With Babe In The Club by solacong: 7:51am On Jun 26, 2016
chubbygal:
Me too I beg to differ
Babe you hash o huh huh huh huh huh huh huh huh
Christianity EtcRe: Question To The Atheists! by solacong: 9:52pm On Jun 20, 2016
Seun:
Cold reading and hot reading. See my full answer to that here: https://www.nairaland.com/3176325/salvation-plan/2#46753773

They can't. But they can create the impression that they are raising the dead and healing the sick. Here's Benny Hinn's case:

https://www.youtube.com/watch?v=ZlNTALOChRc

Clever tricks.

Evolution and natural selection.
Oga tell yourself small Truth na, these your response make me laugh o
BusinessRe: Scammer Beware by solacong: 4:56pm On Jun 16, 2016
Here is another number they are using 08146740348 to send thier dubious message . I still wonder what our law enforcement agency, CID, NCC and other related bodies are doing concerning this, in this day and age stuffs like this are not suppose to fly, and i doubt they are doing anything about it, because if they are, the owner of this line 08132673937 should have been track down by now. They have used this particular number to defraud so many people
PoliticsRe: Chidiogo Akunyili Mimics Her Mother, Dora Akunyili's Posture by solacong: 2:18pm On Jun 07, 2016
Good name is better than Gold
PoliticsRe: ASUU And Non-Academic Staff Of UNIZIK Protest - Photos by solacong: 4:56pm On May 19, 2016
Gone at the days when Unizik don't join stuff like this, Chai

Hail Unizik!
Pride of the state and our nation
Fountain of knowledge and of wisdom
Source of our hope and confidence
Where freedom through,education we gain
With reverence,
We honour you

Our Unizik! Our unizik!
Where we learn,discipline!
Self reliance and excellence
Great Unizik!
We do hail you
We do hail you!
PhonesRe: Whatsapp Introduces A Desktop App For Windows And Mac by solacong: 11:37am On May 11, 2016
Its not a big deal since it will still require my phone to be powered on, I would rather use the web than installing what will just occupy space like matter
EducationRe: Primary 1 To S.S.3- Did You Recieve Up To 400 Strokes Of Cane? by solacong: 8:15am On May 11, 2016
are you a cow?
FoodRe: Olajumoke The Breadseller At It Again by solacong: 3:21pm On May 10, 2016
@Sahara Report, please Epp him with Jumoke's phone number cool cool cool
Jokes EtcRe: She Is Going 'HIRE'.... by solacong: 3:00pm On May 10, 2016
wink

1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 (of 19 pages)