|
|
Break your problem down into a handful of smaller problems. Work on them individually. Then you can slowly bring them all together into a unified app. Trying to do ALL of this as a beginner is only going to frustrate you (and whoever you ask for help).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
how i find coding in xml file
|
|
|
|
|
Sorry, but your question makes no sense. Please edit your post and try explaining exactly what problem you are trying to solve.
|
|
|
|
|
XML files are readable files. The codes in XML files are available in the Android Studio and you can edit them right away.
If I understand correctly, your problem is viewing the XML code instead of the Design tab. For that, look at the bottom[^] of your editor, there are two options:
- Design
- Text
You can use these options to alter the states of drag-and-drop design or text-based editing of the views.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
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 ?
public void run() {
BckGround",Toast.LENGTH_LONG).show();
Calendar c = Calendar.getInstance();
Notification notification=new Notification();
notification.sound= Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE+":
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();
}
}
}
}
}
|
|
|
|
|
Member 12509947 wrote: I wanna make Notification in Exact time "Working in background"Android App. What exactly does this mean, and how does it relate to the subject?
As far as the TZ goes, see here. Among other things, you can get the name of your timezone and/or it's offset from UTC.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
POST /WSVistaWebClient/LoyaltyService.asmx HTTP/1.1
Host: api.vista.co.nz
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://vista.co.nz/services/WSVistaWebClient.ServiceContracts/1/CreateMember"
="1.0"="utf-8"
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateMemberRequest xmlns="http://vista.co.nz/services/WSVistaWebClient.DataTypes/1/">
<LoyaltyMember>
<MemberId>string</MemberId>
<FirstName>string</FirstName>
<LastName>string</LastName>
<FullName>string</FullName>
<CardNumber>string</CardNumber>
<MobilePhone>string</MobilePhone>
<HomePhone>string</HomePhone>
<Email>string</Email>
<ClubID>string</ClubID>
</LoyaltyMember>
|
|
|
|
|
I am confused.. it looks like a server side question.. What is it doing here?
Anyhow, I would go ahead, assume it's a mistake and give you a server side answer.
There are 2 answers which comes to my mind to that server side question:
- You should write a nice C# service class, here is how to get started with Web Services with ASP.NET
- You can always, if you so choose, pare the XML yourself with the like of XmlElement Class (System.Xml)[^]
|
|
|
|
|
I want to change audio tempo using programming code below Android API 5.0.
Help me!
|
|
|
|
|
|
Thank you for your answer!
Do you have sample code?
Please help me.
|
|
|
|
|
I have to create an app to play an swf/flash file.
But setPluginState method in webview was deprecated in API level 18.
|
|
|
|
|
|
I used "setPluginState(WebSettings.PluginState.ON)" already.
But after running, app display "Can't load plugin" message in WebView.
is there demo code? Help me!!!
|
|
|
|
|
Quote from the documentation: Plugins will not be supported in future, and should not be used .
|
|
|
|
|
Hi Experts,
I am a new to the android, and I am trying to work on Tab Action bar, but I find the below interface was deprecated , so what is the replacement, and what happen if I use deprecated interface?
ActionBar.TabListener
public static interface ActionBar.TabListener
android.support.v7.app.ActionBar.TabListener
|
|
|
|
|
|
Thank you,
But I checked the link common navigation pattern in the same page, but I didn't find any code, it is just an information.
Regards,
|
|
|
|
|
Yes, because it is just suggested patterns. You are expected to decide what you wish to implement and write the code yourself.
|
|
|
|
|
I would like to use Tab bar, so if I use deprecated interface, is there any problem?
|
|
|
|
|
aahamdan wrote: so if I use deprecated interface, is there any problem? I would assume it means you can't develop for Android 5 (API 21) or newer. If your target audience is older than that, you should have no problem.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
aahamdan wrote: is there any problem? There is only one way to find out.
|
|
|
|
|
Hello,
Can someone assist me with codes that I manipulates an android phone to take a vehicle number plate picture then extract the texts and maps it to the details of the registered owner.
Thanks in advance.
|
|
|
|