Click here to Skip to main content
15,899,679 members
Home / Discussions / Android
   

Android

 
AnswerRe: proximity sensor Pin
Richard MacCutchan24-Jul-16 1:36
mveRichard MacCutchan24-Jul-16 1:36 
GeneralRe: proximity sensor Pin
pranjalisharma24-Jul-16 3:40
pranjalisharma24-Jul-16 3:40 
GeneralRe: proximity sensor Pin
Richard MacCutchan24-Jul-16 4:32
mveRichard MacCutchan24-Jul-16 4:32 
AnswerRe: proximity sensor Pin
David Crow25-Jul-16 4:31
David Crow25-Jul-16 4:31 
Questionandroid Pin
Member 1264808121-Jul-16 23:54
Member 1264808121-Jul-16 23:54 
SuggestionRe: android Pin
Richard MacCutchan22-Jul-16 0:29
mveRichard MacCutchan22-Jul-16 0:29 
AnswerRe: android Pin
Afzaal Ahmad Zeeshan22-Jul-16 1:23
professionalAfzaal Ahmad Zeeshan22-Jul-16 1:23 
QuestionAndroid developers: is there a better way to get timezon? Pin
Member 1250994720-Jul-16 9:30
Member 1250994720-Jul-16 9:30 
I wanna make Notification in Exact time "Working in background"Android App.

but that open Loop Take all the Battry lifetime !.. So I'm looking for New Way To make it ryt ,is there Better Way ?
Java
public void run() {
       BckGround",Toast.LENGTH_LONG).show();
        Calendar c = Calendar.getInstance();
        Notification notification=new Notification();
      notification.sound=      Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE+"://"+getPackageName()+"/row/a zan");
       // Toast.makeText(null, "start",Toast.LENGTH_LONG).show();
        int sec = c.get(Calendar.SECOND);
        int hours=  c.get(Calendar.HOUR_OF_DAY);
        int minites=c.get(MINUTE);
 
        int x,y,x2,y2,f,x3,y3,x4,x5,y4,y5;
        String Min,hou;
        x=19;y=1;
        x2=16;y2=1;
        x3=18;y3=1;
        x4=20;y4=1;
        x5=22;y5=1;
        f=0;
        //التاري
         int d,mo;
        d=18;
        mo=7;
        double Marroftime=720000;
        Calendar cn= Calendar.getInstance();
      int  day=cn.get(Calendar.DAY_OF_WEEK);
        int month=cn.get(Calendar.MONTH);
        while   (true) {
 
            c = Calendar.getInstance();
            hours = c.get(Calendar.HOUR_OF_DAY);
            minites = c.get(MINUTE);
            Min="M is: "+ minites;
            hou="H is: "+hours;
 
            if ((hours==x) && (minites==y)&&(f!=minites)){
                this.nb.setContentTitle("string");
                this.nb.setContentText("Another String");
                this.mn.notify(100, nb.build());
                f=minites;
                try {
                    Thread.sleep((long) Marroftime);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
 

            }
          else  if ((hours==x2) && (minites==y2)&&(f!=minites)){
                this.nb.setContentTitle("time");
                this.nb.setContentText("now is time");
                this.mn.notify(100, nb.build());
                f=minites;
                try {
                    Thread.sleep((long) Marroftime);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
          else  if ((hours==x3) && (minites==y3)&&(f!=minites)){
                this.nb.setContentTitle("now ");
                this.nb.setContentText("now is time");
                this.mn.notify(100, nb.build());
                f=minites;
                try {
                    Thread.sleep((long) Marroftime);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
         else   if ((hours==x4) && (minites==y4)&&(f!=minites)){
                this.nb.setContentTitle("String");
                this.nb.setContentText("String");
                this.mn.notify(100, nb.build());
                f=minites;
                try {
                    Thread.sleep((long) Marroftime);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
         else   if ((hours==x5) && (minites==y5)&&(f!=minites)){
                this.nb.setContentTitle("String");
                this.nb.setContentText("String NEw");
                this.mn.notify(100, nb.build());
                f=minites;
                try {
                    Thread.sleep((long) Marroftime);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
 
        }
    }
 

}

QuestionRe: Android developers: is there a better way to get timezon? Pin
David Crow20-Jul-16 15:04
David Crow20-Jul-16 15:04 
Rant[REPOST] Android developers: is there a better way to get timezon? Pin
Richard Deeming21-Jul-16 3:23
mveRichard Deeming21-Jul-16 3:23 
Questionhow to parse xml data in asmx service please help me Pin
Member 121887768-Jul-16 9:29
Member 121887768-Jul-16 9:29 
AnswerRe: how to parse xml data in asmx service please help me Pin
Super Lloyd10-Jul-16 16:21
Super Lloyd10-Jul-16 16:21 
Questionhow to change audio tempo? Pin
Nikolai Morozov8-Jul-16 9:23
Nikolai Morozov8-Jul-16 9:23 
AnswerRe: how to change audio tempo? Pin
Richard MacCutchan8-Jul-16 22:43
mveRichard MacCutchan8-Jul-16 22:43 
GeneralRe: how to change audio tempo? Pin
Nikolai Morozov9-Jul-16 7:10
Nikolai Morozov9-Jul-16 7:10 
QuestionHow to play swf file over API level 18. Pin
Nikolai Morozov3-Jul-16 9:01
Nikolai Morozov3-Jul-16 9:01 
AnswerRe: How to play swf file over API level 18. Pin
Richard MacCutchan3-Jul-16 22:12
mveRichard MacCutchan3-Jul-16 22:12 
GeneralRe: How to play swf file over API level 18. Pin
Nikolai Morozov4-Jul-16 8:30
Nikolai Morozov4-Jul-16 8:30 
GeneralRe: How to play swf file over API level 18. Pin
Richard MacCutchan4-Jul-16 21:16
mveRichard MacCutchan4-Jul-16 21:16 
QuestionReplacement of depracted interface in android Pin
aahamdan3-Jul-16 7:59
aahamdan3-Jul-16 7:59 
AnswerRe: Replacement of depracted interface in android Pin
Richard MacCutchan3-Jul-16 22:07
mveRichard MacCutchan3-Jul-16 22:07 
GeneralRe: Replacement of depracted interface in android Pin
aahamdan4-Jul-16 6:09
aahamdan4-Jul-16 6:09 
GeneralRe: Replacement of depracted interface in android Pin
Richard MacCutchan4-Jul-16 6:39
mveRichard MacCutchan4-Jul-16 6:39 
GeneralRe: Replacement of depracted interface in android Pin
aahamdan4-Jul-16 10:34
aahamdan4-Jul-16 10:34 
GeneralRe: Replacement of depracted interface in android Pin
David Crow4-Jul-16 15:51
David Crow4-Jul-16 15:51 

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.