User Profile
Collapse
-
no it ain't there anymore. So fixed that one too. -
I've solved my problem. Surrounded the whole retrieve location part with a while loop. And then just interrupted the loop.Leave a comment:
-
@r035198x, I did that and it seems that this line of code:
Code:locMan.removeUpdates(myLocListener);
Leave a comment:
-
The screen just freezes, then turns black. And then it says that the application has stopped working.Leave a comment:
-
stopping location service
Hello all,
I am trying to write a location service which can run on an interval. But somehow when I press the stop button and call on the onDestroy method, it crashes. And I just can't figure out why.
Code:package com.example.locationservice; import java.util.Timer; import java.util.TimerTask; import android.app.Service; import android.content.Context; import android.content.Intent;
-
method must have a return type
Hello all,
I am trying to get a program which can retrieve the serial key of Windows from the Registry. I've found the source code on this website, but I can't seem to get it working.
This is the source code as I have it right now.
Code://first byte offset const int start = 52; //last byte offset const int end = start + 15; //decoded key length const
-
-
Thanks a lot, it seemed that I've made the big mistake by trying to convert the path to the RegistryKey to a date. Instead of converting its value.Leave a comment:
-
Oke nevermind. This is my check now:
Code:if (Convert.ToDateTime(openKey) < current)
Leave a comment:
-
Oke so afther all the problem was very easy to solve. But thanks Rabbit, your solution solved it.Leave a comment:
-
-
The reason why it fails, is because I've saved a date in a registrykey. But when I want to open it, I want to check if that date is older then date right now.
For that reason I've used an "if" statement like the following one:
Code:if (openKey.GetValue("StartTrialDate") > current) { }
Leave a comment:
-
Compare date in Registry with local time
Hello everyone,
Can you guys please help me with the following problem. The first time my application opens up, it should get the local date out of the System and store this in a registry key. But the second time it should get the date stored in that registryKey and compare it to the date right now.
And there is where I am stuck, I just don't know how to get the date out of that key and compare it to the date right now.
... -
-
Or just use this one:
Code:label1.text = DateTime.Now.ToShortDateString();
Leave a comment:
-
The best way display a webapp
Hello all,
I am trying to create an Android and a iPhone app for a webapp of my company. But can you guys please tell me, what is the easiest and fastest way to let the apps display the content of the website?
I was thinking about a html parser or a more difficult way, using a api (if available). Do you guys have any suggestions?
NB: I am not asking for code, just a suggestion or some advice what the easiest and... -
I've tried your solution, but I think I did something wrong.
Code://first byte offset const int start = 52; //last byte offset const int end = start + 15; //decoded key length const int length = 29; //decoded key in byte form const int decoded = 15; private void btnGetKey_Click(object sender, EventArgs e) {
Leave a comment:
-
Thanks it solved the problem, I have no idea why but it's solved now. So Thanks a lotLeave a comment:
-
Problem with executing cmd commands in C#
Hello all,
I've got the code as shown below:
Code:Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.FileName = "cmd.exe"; startInfo.Arguments = "shutdown /r"; process.StartInfo = startInfo; Process.Sta
-
No activity results to display
Show More
Leave a comment: