Click here to Skip to main content
15,921,203 members
Home / Discussions / Java
   

Java

 
GeneralRe: Which language is best for developing sms api java Or .net ? Pin
ReolusTechnologies12-Nov-19 3:08
professionalReolusTechnologies12-Nov-19 3:08 
QuestionRestaurant Reservation java code Pin
Member 1456547721-Aug-19 22:12
Member 1456547721-Aug-19 22:12 
AnswerRe: Restaurant Reservation java code Pin
Richard MacCutchan21-Aug-19 22:18
mveRichard MacCutchan21-Aug-19 22:18 
QuestionRecommendation: Learn from GITHUB project Pin
Anisul Huq7-Aug-19 18:20
Anisul Huq7-Aug-19 18:20 
AnswerRe: Recommendation: Learn from GITHUB project Pin
Richard MacCutchan7-Aug-19 22:04
mveRichard MacCutchan7-Aug-19 22:04 
AnswerRe: Recommendation: Learn from GITHUB project Pin
Wishe199129-Sep-19 23:29
Wishe199129-Sep-19 23:29 
QuestionLearning from GITHUB projects Pin
Anisul Huq6-Aug-19 13:13
Anisul Huq6-Aug-19 13:13 
Questionhow to use class for sending notification in android? Pin
Member 145520336-Aug-19 2:53
Member 145520336-Aug-19 2:53 
I wanna create a library for sending notification to my android app but i don't know how it works and what kind of data i should give to the function in the class. this is my code for sending notification but i don't know how to put it in the class for using in another sections of the app. This code works in MainActivity


Java
Intent intent = new Intent(context, MainActivity.class);
               PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);

               NotificationCompat.Builder b = new NotificationCompat.Builder(context);

               b.setAutoCancel(true)
                       .setDefaults(Notification.DEFAULT_ALL)
                       .setWhen(System.currentTimeMillis())
                       .setSmallIcon(R.drawable.ic_launcher_background)
                       .setTicker("Hearty365")
                       .setContentTitle("Default notification")
                       .setContentText("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
                       .setDefaults(Notification.DEFAULT_LIGHTS | Notification.DEFAULT_SOUND)
                       .setContentIntent(contentIntent)
                       .setContentInfo("Info");


               NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
               notificationManager.notify(1, b.build());

QuestionMy Simple servlet is called twice, i dont know why. Pin
yinallier15-Aug-19 20:27
yinallier15-Aug-19 20:27 
AnswerRe: My Simple servlet is called twice, i dont know why. Pin
Gerry Schmitz6-Aug-19 5:50
mveGerry Schmitz6-Aug-19 5:50 
QuestionMessage Removed Pin
2-Aug-19 23:03
Valentinor2-Aug-19 23:03 
QuestionJava Derby Database Pin
Gregory Guy30-Jul-19 20:16
Gregory Guy30-Jul-19 20:16 
AnswerRe: Java Derby Database Pin
Richard MacCutchan30-Jul-19 21:16
mveRichard MacCutchan30-Jul-19 21:16 
AnswerRe: Java Derby Database Pin
Wishe199129-Sep-19 23:28
Wishe199129-Sep-19 23:28 
QuestionAnnotation Processing - Generating Files at Each Round vs at Last Round Pin
Abbas A. Ali3-Jul-19 19:44
professionalAbbas A. Ali3-Jul-19 19:44 
QuestionBasic Calculator Write a program that works as a simple calculator. 1.It reads a character (ch) 2.If ch is among '+', '-', '*', '/' or '%' it furthur takes two numbers (N1 and N2 as input). It then performs appropriate appropriate operation between n Pin
Member 1450000613-Jun-19 22:55
Member 1450000613-Jun-19 22:55 
AnswerRe: Basic Calculator Write a program that works as a simple calculator. 1.It reads a character (ch) 2.If ch is among '+', '-', '*', '/' or '%' it furthur takes two numbers (N1 and N2 as input). It then performs appropriate appropriate operation betwe Pin
Richard Deeming14-Jun-19 0:55
mveRichard Deeming14-Jun-19 0:55 
AnswerRe: Basic Calculator Write a program that works as a simple calculator. 1.It reads a character (ch) 2.If ch is among '+', '-', '*', '/' or '%' it furthur takes two numbers (N1 and N2 as input). It then performs appropriate appropriate operation betwe Pin
Richard MacCutchan14-Jun-19 1:06
mveRichard MacCutchan14-Jun-19 1:06 
QuestionFailed to grab focus on a Jtextfield Pin
User 1409759122-May-19 4:06
User 1409759122-May-19 4:06 
SuggestionRe: Failed to grab focus on a Jtextfield Pin
Richard MacCutchan22-May-19 21:32
mveRichard MacCutchan22-May-19 21:32 
GeneralRe: Failed to grab focus on a Jtextfield Pin
User 1409759123-May-19 1:07
User 1409759123-May-19 1:07 
GeneralRe: Failed to grab focus on a Jtextfield Pin
Richard MacCutchan23-May-19 1:44
mveRichard MacCutchan23-May-19 1:44 
GeneralRe: Failed to grab focus on a Jtextfield Pin
Teressa Pirtle26-Dec-19 8:05
Teressa Pirtle26-Dec-19 8:05 
Questioncloudsim algorithm Genitic Pin
Member 1423906220-May-19 8:20
Member 1423906220-May-19 8:20 
AnswerRe: cloudsim algorithm Genitic Pin
Richard MacCutchan20-May-19 22:09
mveRichard MacCutchan20-May-19 22:09 

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.