help with creating windows phone app - Windows Phone 7 Q&A, Help & Troubleshooting

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)

Related

Programming question: Scheduling events in code

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

Possible convert my iPhone-app to Android?

Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
porting your iphone add to android
hi there,
i'm a android programmer and did many games already. you can see my games at:
not sure you still need help to port your iphone app to android. may be you can send me the source code. i can do it for you. very easy for me.
Tony Chan
[email protected]
Android uses java syntax and java libraries
so if you like java, then you would probably like android
layouts are done in XML
chingy1788 said:
Android uses java syntax and java libraries
so if you like java, then you would probably like android
layouts are done in XML
Click to expand...
Click to collapse
hehe well said
I don't think anybody can tell you what you need to do. Just start by reading through all of this: http://developer.android.com/guide/topics/fundamentals.html and you should be able to handle this.
Note: your application appears to be trivial.
One thing that I suggest is that you forget about locally-stored web pages and just rewrite those pages in Android/Java. The reason I suggest this is that unlike apple, you can't make any assumptions about what browser the user has installed (if any), or what rendering engine their browser happens to have, or javascript engine, etc. There are AT LEAST three different rendering engines in use on Android, including khtml, gecko, and presto. There are at LEAST two different JAVASCRIPT engines, including SquirrelFish and V8, and soon you will be able to add SpiderMonkey to this list (when Firefox launches). And no, you can't force your application to call on a particular browser since this would violate the modularity designed into the platform.
DANNEMAN101 said:
Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
Click to expand...
Click to collapse
look at the NDK
Freedomcaller said:
look at the NDK
Click to expand...
Click to collapse
The NDK is *NOT APPLICABLE*.
Why don't you create a converter from iPhone to Android? There are few Italian app.. only this is better than Android for Italian user.. but I love Android!
I have an app that has been created for android, and I need help creating it for the iphone. I'll share the source code if someone will create the app for me please.
DANNEMAN101 said:
Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
Click to expand...
Click to collapse
Is it possible to post this in the Q&A and not development section?
sparksco said:
Is it possible to post this in the Q&A and not development section?
Click to expand...
Click to collapse
This is from the first half of 2009, I highly doubt that they care where it should be posted (now).
Converting iPhone app to Android will be greate.
I would like to have All My Recipes iphone app in my Galaxy Tab
It was be great if somebody can port the secret of mana game from iphone to android ! =)

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

Gesture programming question

What is the easiest way to program a gesture so it can launch an application?
If you understand VB.net
take a look here:
http://forum.xda-developers.com/showthread.php?t=375294
I just take the position of the mouse cursor, and then the next position after some time (or mouseMove event). then I can Get the direction/speed/length of the move, out of every direction you can create a string for example L=Left, R=Right, U=Up, D=Down
just compare the string with one you have saved.
I would like to create a config app for my tool, but due to lack of time and my Fuel Blaster this will come not in the next time
http://www.ftouchsl.com/
@style1: thx but i wanna make my own application
It is rather easy, was not my idea, i think I have found it in C# somewhere in the forum, maybe you find it, but It should be difficult to change it from vb to c#.
You will just to find a way to get the mousemove/-up/-down events of the screen even when you app isnt in the foreground, maybe the api can help you
Moved to Questions & Answers forum.
"i think I have found it in C# somewhere in the forum, maybe you find it, but It should be difficult to change it from vb to c#."
not at all one got all the same options in vb.net as in c#.net
vb.net just have a horrid syntax
Rudegar said:
"i think I have found it in C# somewhere in the forum, maybe you find it, but It should be difficult to change it from vb to c#."
not at all one got all the same options in vb.net as in c#.net
vb.net just have a horrid syntax
Click to expand...
Click to collapse
I wanted to say that it isnt be difficult

Editting the hardware keyboard layout

Hey guys,
does someone know a way how to change the layout of the hardware keyboard? I'm not talking about changing the hardware keys, i'm talking about editting a config file or something like this..
For example i want to change my QWERTY-keyboard in a QWERTZ one.
In addition, does someone know how to stop writing a capital latter after a dot. for example something like this: "blub. Blabla" to "blub. blabla"
Thank you very much
try:
http://forum.xda-developers.com/showthread.php?t=1113863
that might be a good place to get started with, searching for things along those lines may yield the result you are looking for.
Edit:
http://forum.xda-developers.com/showthread.php?t=982341
That post will probably be the beginning of your quest. We don't have CM7 on our phones, however it's apparently in development, so this should be easy to apply once that hits.
Meantime, though, you could probably take what they've done and figure out how to make it work for you, now that we have everything we need from HTC to actually work with this device.
I am interested in helping support other countries and languages, germanic languages being my foremost interest, so as I get the time i'd love to try to help you with this.
ty very much. are there any other suggestions?

Categories

Resources