Programming question: Scheduling events in code - General Questions and Answers

So I'm trying to write an application that changes the volume of my phone at given points in time. I know that there is atleast one application that already does exactly this, but where's the fun in downloading (and paying for) it? I want to do it myself
The only part of the application that is missing is that I want it to be able to schedule these events somehow. I don't want it running in the background eating extra battery/cpu power. My phone runs Windows Mobile 6.1 Professional. I'm writing the app in C#, but it doesn't really matter what language you answer in.
So does anyone here know how to do this or maybe has a suggestion on where I could look for an answer?
Any help is greatly appreciated!
/Json84

Related

Replacing/Manipulating SmsManager class

Hi there,
I want to write an app that does some user defined manipulation on outgoing SMS. This should be something like text manipulation but it should also be possible to disallow android to send the sms so that it can be sent by some other way like the internet.
First I thought of an own SMS application but thats some sort of overhead for such a simple thing to do.
So my second thought was "What if I could just register an alternative SmsManager class for the whole system?". A look into the sources of android told me that the getDefault() function of SmsManager just creates a instance of its own so I cannot implement a new SmsManager and set it as default.
Any idea how that could be done?
Because the only other way that comes into my mind is to re-write the SmsManager class, find out in which Jar package on the system it is and replace the original with my own. But in my opinion that is a dirty hack and is not the be used for an application which I wanted to make public...
Well, anyone here who has an idea how to do that? Just implementing a function which absorbs the SMS which should be sent an manipulates it seems not be the way how it could be done...
Thanks for sharing your ideas!
PS: Well, actually, my phone doesnt start. It says something like 'you're a noob, don't use this'. Any ideas?
Sorry, had to make this joke about the not working phone

auto-capitalization override request ($$)

greetings, all.
I am seeking to hire someone to develop an app or something of that nature which I can run/install on my phone to override the built-in auto-capitalization function. the reasons I want this are numerous, but I will not bore anyone with them here, because they really don't matter. I simply want this done, and I am willing to pay handsomely whoever does it for me (at least $100, easily more if it turns out to be a monumental undertaking).
my only conditions for the app/alteration/whatever are [1] that it be in the form of a CAB or other self-extracting file so I can save it and run it on my phone again in the future whenever I have to do a hard-reset, [2] that it be entirely invisible and run in the background (if it turns out the only way to do this is through a process that always runs), and [3] that it forces my phone to auto-capitalize nothing, anywhere, ever (currently it auto-capitalizes everything, everywhere, at all times - even when renaming files and entering my username into an app [eg: Facebook Mobile, Windows Live, etc]).
if anyone wants to take me up on this, please respond here so that it is public knowledge that my request has been accepted, because I don't want to have to write back to a lot of people (via PM) to tell them "sorry, someone else already beat you to it."
oh, and my phone is a Samsung SCH-i220 with Windows Mobile 6.5 (factory ROM).

[Q] Best SIMPLE & FREE time-based profile changer?

Hi there,
I'm looking for a SIMPLE tool for WM6.5 (HTC TD2) for automatic changes of profile based on time (say, Silent from 11 PM to 6 AM, otherwise Normal). I'd prefer the application to be as simple as possible to ensure its memory and battery footprints are as small as possible. Also, I'd like it to be free.
I know of many apps that can do this, but most of them contain lots of other functionalities and usually are paid (PhoneAlarm, G-Profile, PhoneWeaver, ...). So, is there any simple and free tool that would do just the switching?
Thanks for any tips.
nvx
Try this:
http://www.freewarepocketpc.net/ppc-download-tprofiler-1-10.html
After some more searching I found exactly what I needed: TProfiler (http://forum.xda-developers.com/showthread.php?t=629507).
nvx
fighter7139 said:
Try this:
http://www.freewarepocketpc.net/ppc-download-tprofiler-1-10.html
Click to expand...
Click to collapse
Oh, I guess I should have refreshed the page before replying to see if there are any new posts...
Anyway, thanks a lot for the tip!
One more thing: I've been wondering about the way this app works, since it seems it doesn't need to run in background. Does WM6.5 contain something like scheduled tasks known from desktop version of Windows?
nvx

help with creating windows phone app

hello
i am in the middle of developing an app, nothing special. just a converter for my use.
my main page has three buttons on it, but i want to link them to another page in my application
eg MainPage.xaml to page1.xaml.
i am using visual basic, and when i create windows applications i use
either:
me.visible = false
page1.visible = true
or
MainPage.visible=false
Page1.visible = true.
but this is not the same for windows phone coding, and its really confused me, i should also state i am a beginner in coding for windows phone, as this is my first decent app
if anyone can help, that would be amazing!!
I think this is what you're gonna want to use:
http://msdn.microsoft.com/en-us/library/ms591053.aspx
For C# you could do something like this:
Uri nav = new Uri("page1.xaml");
NavigationService.Navigate(nav);
but I don't really know about VB.
thanks
i dont really know anything about C# as i am still in school, and the language we learn there is VB.
if i were to add this, would i put this in the mainpage.xaml or would it go somewhere else?
i have just looked over the URL and it makes sense, but its just making it harder than it needs to be, i dont see why Microsoft couldnt keep the same language like your creating an application for windows 7. ahh well, i shall be trying this when i get home as right now im babysitting ;D
i want to complete my app by next friday as i am going abroad and want to test it out in a real life situation
Can someone help me, i cant progress with my app without this knowledge.
a fast reply will be good. thanks SlimShady322, but i dont really get it, can someone explain how to do it
Put these lines in a click event of a button:
Code:
Dim nav As New Uri("page1.xaml")
NavigationService.Navigate(nav)

[Q] Is it possible to use MS.Internal somehow in a normal app?

Is it possible to somehow use classes from the MS.Internal namespace, things like MS.Internal.TextBoxView which is the type of a sub-object of the ContentControl of a textbox?
I mean use them in a "normal" app on a locked end-user phone, and getting away with it as far as certification is concerned so it can appear normally in the Marketplace?
The Visual Studio debugger is able to display information about such objects somehow, that's where I got the knowledge of the existence of this TextBoxView class in the first place, but of course that does not mean that a normal app can do likewise.
Googling for "WP7 reflection" showed me hits in other places like StackOverflow with info that probably this will just run into security exceptions anyway, because MS does not want devs to use "undocumented APIs", but I am curious whether somebody here has tried to "hack" this and can report first-hand.
rbrunner7 said:
Is it possible to somehow use classes from the MS.Internal namespace, things like MS.Internal.TextBoxView which is the type of a sub-object of the ContentControl of a textbox?
I mean use them in a "normal" app on a locked end-user phone, and getting away with it as far as certification is concerned so it can appear normally in the Marketplace?
The Visual Studio debugger is able to display information about such objects somehow, that's where I got the knowledge of the existence of this TextBoxView class in the first place, but of course that does not mean that a normal app can do likewise.
Googling for "WP7 reflection" showed me hits in other places like StackOverflow with info that probably this will just run into security exceptions anyway, because MS does not want devs to use "undocumented APIs", but I am curious whether somebody here has tried to "hack" this and can report first-hand.
Click to expand...
Click to collapse
I highly doubt.. more towards no for this. Microsoft pretty much will deny anything in the low level APIs from being accepted in the Marketplace. A way to check this is to use the Marketplace Test Kit in VS 2010 (Project -> Open Marketplace Test Kit). It will tell you if something you're using will fail as it does the same type of quick test that happens when you upload a XAP for submission.

Categories

Resources