Click here to Skip to main content
15,877,246 members
Home / Discussions / Android
   

Android

 
GeneralRe: full source code for doctor appointment app Pin
Member 1437349415-May-19 21:50
Member 1437349415-May-19 21:50 
Questionsimpe doctor appointment app Pin
Member 1292829230-Dec-16 1:26
Member 1292829230-Dec-16 1:26 
AnswerRe: simpe doctor appointment app Pin
Peter Leow30-Dec-16 1:48
professionalPeter Leow30-Dec-16 1:48 
AnswerRe: simpe doctor appointment app Pin
Ravi Bhavnani30-Dec-16 6:56
professionalRavi Bhavnani30-Dec-16 6:56 
AnswerRe: simpe doctor appointment app Pin
Member 149880838-May-21 13:55
Member 149880838-May-21 13:55 
QuestionActivity Not opening from the notification bar Pin
Shanmugapriya D12-Dec-16 23:48
Shanmugapriya D12-Dec-16 23:48 
QuestionRe: Activity Not opening from the notification bar Pin
Richard MacCutchan13-Dec-16 0:06
mveRichard MacCutchan13-Dec-16 0:06 
AnswerRe: Activity Not opening from the notification bar Pin
Shanmugapriya D13-Dec-16 0:41
Shanmugapriya D13-Dec-16 0:41 
when the button click the activity not opening from notifcation bar at second time.

problem is here

Java
 @Override
protected boolean onNotificationOpened(@NonNull Context context, @NonNull NotificationInfo notificationInfo, @NonNull ActionButtonInfo actionButtonInfo) {
    Log.i(TAG, "Notification action button opened. Button ID: " + actionButtonInfo.getButtonId() + ". NotificationId: " + notificationInfo.getNotificationId());
    Toast.makeText(context.getApplicationContext(),"Button Click",Toast.LENGTH_LONG).show();
    Log.e("@@@@@@@ID", String.valueOf(notificationInfo.getNotificationId()));
    Log.e("$$", String.valueOf(notificationInfo.getMessage().getAlert()));
    Log.e("eGSSSHKJHSHJS", (String) notificationInfo.getMessage().getPushBundle().get("AlarmJson"));
    String pushjson=(String) notificationInfo.getMessage().getPushBundle().get("AlarmJson");
    if(actionButtonInfo.getButtonId()!=null && actionButtonInfo.getButtonId().equalsIgnoreCase("Graph")) {
        Log.e("Graph","You clicked Graph");
        Toast.makeText(context.getApplicationContext(),"Graph Click",Toast.LENGTH_LONG).show();
        Intent i = new Intent(context.getApplicationContext(), **ResultActivity**.class);
        i.putExtra("From", "from@@#graphicViewRoute");
        i.putExtra("Pushjson","json@@"+pushjson);
        //i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        i.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK |Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_SINGLE_TOP);


        context.startActivity(i);

        return true;

    }
    else if(actionButtonInfo.getButtonId()!=null && actionButtonInfo.getButtonId().equalsIgnoreCase("DD"))
    {
        Log.e("DD","You clicked DD");
        Intent i = new Intent(context.getApplicationContext(), **ResultActivity**.class);
        i.putExtra("From", "from@@#ddviewRoute");
        i.putExtra("Pushjson","json@@"+pushjson);
        i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
        i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
        i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(i);

        return true;

    }

    // Return false here to allow Urban Airship to auto launch the launcher
    // activity for foreground notification action buttons
    return false;
}

GeneralRe: Activity Not opening from the notification bar Pin
Richard MacCutchan13-Dec-16 5:46
mveRichard MacCutchan13-Dec-16 5:46 
QuestionSpeech to text notepad Pin
Member 108502537-Dec-16 15:30
Member 108502537-Dec-16 15:30 
AnswerRe: Speech to text notepad Pin
Richard MacCutchan7-Dec-16 22:02
mveRichard MacCutchan7-Dec-16 22:02 
QuestionRemote Desktop Mobile app Pin
Member 127953594-Dec-16 2:49
Member 127953594-Dec-16 2:49 
AnswerRe: Remote Desktop Mobile app Pin
Afzaal Ahmad Zeeshan4-Dec-16 3:29
professionalAfzaal Ahmad Zeeshan4-Dec-16 3:29 
QuestionDrawing App CustomView Pin
Member 1065435022-Nov-16 6:58
Member 1065435022-Nov-16 6:58 
AnswerRe: Drawing App CustomView Pin
Richard MacCutchan22-Nov-16 8:36
mveRichard MacCutchan22-Nov-16 8:36 
AnswerRe: Drawing App CustomView Pin
David Crow22-Nov-16 12:51
David Crow22-Nov-16 12:51 
GeneralRe: Drawing App CustomView Pin
Member 1065435022-Nov-16 15:27
Member 1065435022-Nov-16 15:27 
Questionhelp Pin
Karan Malik10-Nov-16 18:34
Karan Malik10-Nov-16 18:34 
AnswerRe: help Pin
Richard MacCutchan10-Nov-16 22:01
mveRichard MacCutchan10-Nov-16 22:01 
AnswerRe: help Pin
ZurdoDev17-Nov-16 0:58
professionalZurdoDev17-Nov-16 0:58 
Questionandroid Pin
Member 128402858-Nov-16 18:52
Member 128402858-Nov-16 18:52 
AnswerRe: android Pin
Richard MacCutchan8-Nov-16 22:42
mveRichard MacCutchan8-Nov-16 22:42 
AnswerRe: android Pin
Rou199730-Nov-16 14:22
Rou199730-Nov-16 14:22 
QuestionI want to make an android application to add custom place and show on google map Pin
Member 128386578-Nov-16 0:54
Member 128386578-Nov-16 0:54 
QuestionRe: I want to make an android application to add custom place and show on google map Pin
David Crow8-Nov-16 2:19
David Crow8-Nov-16 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.