[Q]WP7 App development questions - Windows Phone 7 Q&A, Help & Troubleshooting

hi I'm very very (very, very) inexperienced in WP7 app development, but so far I've used some tutorials to program simple WP7 apps.
I'm busy with a project now, the UI is quite done but I have a few questions, sorry if they are already asked, did search for answers, but im pretty stuck.
1) How can the time update automatically?
I used this code to display the time in 173x173 'tiles' (textBlock) but they only show the time the app loads.
Code:
timeBlock1.Text = DateTime.Now.ToString("hh");
timeBlock2.Text = DateTime.Now.ToString("mm");
2) Is it possible to filter certain calendars from the WP7 api to my app?
3) How can i use the Visual Studio tools to fill a form (textBox, checkBox, listPicker etc) on a website and to retrieve the results in a textBlock (if not, just show the webpage)?
These are just a few of the questions i have, but I'm not that far with coding and stuff.
Any help would be highly appreciated!!!

1) It doesn't update because the code is only called once, you need to use a timer to update the textBlocks on an interval.
Example:
Code:
//create the timer
DispatcherTimer timer = new DispatcherTimer();
//1 second interval, can be any valid TimeSpan
timer.Interval = TimeSpan.FromSeconds(1);
//method that gets run
timer.Tick += new EventHandler(timer_Tick);
//start the timer
timer.Start();
The Tick method:
Code:
private void timer_Tick(object sender, EventArgs e)
{
//can probably just use DateTime.Now.ToShortTimeString() instead.
timeBlock1.Text = DateTime.Now.ToString("hh");
timeBlock2.Text = DateTime.Now.ToString("mm");
}
2) I don't think there's an api for accessing calendar data for now.
3) U can't really do that from the VS tools directly, u would have to do in code either via the WebClient/WCF service. To display a webpage directly u can use the WebBrowser control.
I'd suggest running through some of the guides on AppHub. Or even picking a more general book on C# if your not already familiar with the language and then moving on to more WP7 specific stuff.

Thanks a million, yeah I'll have a look at C# code in general.
I only used some tutorials - which were very good to introduce in WP7 app development - but they were not enough to build full functional apps.

Gmic1000 said:
Thanks a million, yeah I'll have a look at C# code in general.
I only used some tutorials - which were very good to introduce in WP7 app development - but they were not enough to build full functional apps.
Click to expand...
Click to collapse
Yeah even though you're not going to understand everything at the start, it's very important to take the time to actually write the code yourself to get the fundamentals down.
As for keeping motivated, there's a free e-book Programming Windows Phone 7 by Charles Petzold which covers a lot of the basics regarding Silverlight/WP7 development that u could take a look at.
And there's also a ton of resources on the net like stackoverflow, AppHub forums and other .net/silverlight sites.

In addition to what was said before, you can also use MSDN
On this webpage you will not only find examples but if you actually navigate the page (or google search for some keywords) you will actually find detailed descriptions of all availble methods, namespaces etc with example code like here:
http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.sharelinktask.linkuri(v=VS.92).aspx
Maybe not so useful for an absolute beginner but at some point this website will be really helpful because it documents more or less everything available in C#/WP7 SDK.

slimshady322 said:
In addition to what was said before, you can also use MSDN
On this webpage you will not only find examples but if you actually navigate the page (or google search for some keywords) you will actually find detailed descriptions of all availble methods, namespaces etc with example code like here:
http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.sharelinktask.linkuri(v=VS.92).aspx
Maybe not so useful for an absolute beginner but at some point this website will be really helpful because it documents more or less everything available in C#/WP7 SDK.
Click to expand...
Click to collapse
Thanks, its kinda complicated that way, but its good to know the namespaces and classes.
I googled the webclient, man it's complicated...
Any advice for understanding the WP7 webclient?

Related

Where to start?

I have experience with a lot of embedded devices and software and am interested in getting involved with Android modding. I'm just looking for some good documentation (if it exists) on the basics or even more advanced details. Are there any good resources that go over the architecture of Android and what have you?
I apologize if this is a repost or a common question, but I tried searching but couldn't find anything similar.
+1
Too short. Huh. Well, me too.
Well looks like I'm just going to have to dive head first into the source code lol.
I've only just begun looking at android app development myself, but I can recommend looking at the android notepad tutorial (should be among the first hits on google). Ti's a very basic tutorial but at least it introduces you to some android concepts.
Other than that, there are a few books around that you could take a look at, and ofc the all-mighty internet has virtually endless resources.
Happy coding!
It's best to have a good working knowledge of the Linux operating system / command line as well as a good understanding of Java.
Start with http://developer.android.com or www.helloandroid.com to familiarize yourself with Android's structure.
From there, check out http://source.android.com to get more into the source code and Android framework.
Google gives you pretty much everything you need.
chrisinaz said:
It's best to have a good working knowledge of the Linux operating system / command line as well as a good understanding of Java.
Start with http://developer.android.com or www.helloandroid.com to familiarize yourself with Android's structure.
From there, check out http://source.android.com to get more into the source code and Android framework.
Google gives you pretty much everything you need.
Click to expand...
Click to collapse
Thanks! This is exactly the type of information I was looking for.
Hello fellow Newbie! (this is my first ever post on xda!)
If you go to hackaday website there is a four-part tutorial. Sorry I could not post links:
"To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed."
Hope you enjoy these (if you find them), and find them useful! Also, keep an eye out for part 5!
Regards,
Zelka
Zelka said:
Hello fellow Newbie! (this is my first ever post on xda!)
If you go to hackaday website there is a four-part tutorial. Sorry I could not post links:
"To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed."
Hope you enjoy these (if you find them), and find them useful! Also, keep an eye out for part 5!
Regards,
Zelka
Click to expand...
Click to collapse
For the convenience of others:
Part 1
Part 2
Part 3
Part 4
+1.
I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. I just got Eclipse (Helios) setup with the ADT plugin and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better? I have my first little app up and running in the VAD emulator. I found out that you need Eclipse 3.5 (not 3.6) and the JRE 1.6 for everything to be happy. Now where to go from here....
frankencat said:
+1.
I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. I just got Eclipse (Helios) setup with the ADT plugin and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better? I have my first little app up and running in the VAD emulator. I found out that you need Eclipse 3.5 (not 3.6) and the JRE 1.6 for everything to be happy. Now where to go from here....
Click to expand...
Click to collapse
You can either use the Emulator or a physical device for debugging (granted the device has usb debugging enabled). I would just look over samples and try to make more complicated application from here, it seems like you have all the prep work done.
Ok here's a good one...when I use the keyboard in the emulator I get Japanese characters instead of English even though I have all the settings I can think of set to US English. Anyone know how to change that?

How to make an app?

I'm putting my theming project aside for now and get onto creating an app that I've always wanted to create that I do not see ANYWHERE in the market, forums, android websites, etc.
I've been reading and reading and reading different threads, instructions, etc. But no clue where to start. I've been reading on App Inventor but realized that it is very limited and I have my high doubts that App Inventor will not be able to achieve what I have in mind to make.
I've got the latest SDK and AVD Manager, JDK, Java, and have been using my emulator to test edited APKs. I'm pretty sure I'll be using my emulator to see how my app progress is coming along and see possible FCs and other issues and correct them as well as adding more to the app to make it even better.
But right now I'm stuck at where to begin here. Right when I was about to create this thread, I was making the name of the Title of this thread and was given threads relating to my title name and saw one thread that was sort of mentioning what I'm asking here.
I read the link provided in that thread ( http://developer.android.com/guide/topics/fundamentals.html ) and got some clues but just not enough to get me started here. I just need that push to get me going and eventually push it out to the market and make some money as a side project and learn from that and possibly make more useful apps. I cannot disclose my ideas here because then someone else (who has experience making apps) could take those ideas from me and go make it.
Is anyone willing to work with me here to get me started? I've helped countless people so it would be nice for a change for someone to help me out here.
There are so much Android development books on the market that I suggest to start with one of them. It's the best way to get some knowledge of the design principles used by the Android development framework.
Another method is to start with some examples found on the web. Just search for Android examples or something like that and you get tons of links
Another method is just to create something, get stuck and try to search for a solution (the most pragmatic method )
Yeah I know. That's why I'm constantly researching. I'm seeing some similarities between Java coding and building scripts in IRC (which I used to do, nothing big, just really small stuff). But my main problem is knowing what exactly are the main tools I need. I've had Eclipse for awhile but never used it. It has a lot of stuff in it and I get lost after a couple executions.
I'm just anxious to get started somewhere and get the momentum rolling for starters.
Could someone point me to a good book/ebook ? There are many out there but I'm sure that are some better than others...
If any french-speaker knows one in Voltaire's language, I'm in too. But English is fine...
DannyBiker said:
Could someone point me to a good book/ebook ? There are many out there but I'm sure that are some better than others...
If any french-speaker knows one in Voltaire's language, I'm in too. But English is fine...
Click to expand...
Click to collapse
Yeah, a good book (english) would be great. Can anyone recommend one?
You don't have to buy books but they do contain a lot more info in one book and would be better to have than trying to scour the internet and pull a bunch of infos together and try to put it together to understand step by step on how to get started and everything else.
Here's a link to a lot of android development books:
http://www.amazon.com/s/ref=nb_sb_s...pment&sprefix=android+application+development
Here's a link to some more info to getting started that is also useful:
http://developer.android.com/guide/basics/what-is-android.html
You may also need to get a Java coding book to help you put codes together properly and understand what each coding does, and tweaking them to work better.
Here's the link to Java coding for Android stuff for beginners:
http://www.amazon.com/s/ref=nb_sb_s...x=java+for+dummies&rh=n:283155,k:android+java
I just bought 2 books for Android application development and looking around for a good Java coding for beginners.
mdonova33 said:
Yeah, a good book (english) would be great. Can anyone recommend one?
Click to expand...
Click to collapse
professional android 2 application development by Reto Meier: http://www.wrox.com/WileyCDA/WroxTi...ication-Development.productCd-0470565527.html
Or, the Busy Coder's guide to android development by Mark L Murphy: http://commonsware.com/Android/
Last one is more written in a "let's get dirty" style. Really like that
TheSwaggeR said:
...
I just bought 2 books for Android application development and looking around for a good Java coding for beginners.
Click to expand...
Click to collapse
I think any java book will do, as long as it covers the principles of object oriented design and the data structures used by Java. You don't need any info about GUI programming in Java because that's all covered by the Android application framework.
The best Java books are the ones written by James Gosling et al, the designers of Java. But that may also be over the top for Android application development. Just some basic Java will do to get you started. The algorithms needed for basic apps aren't that complex.
App Inventor is a great tool to develop your android app. It simplifies the development and the editor is very intuitive.
Check out my blog on App Inventor and AppToMarket and a Workshop
http://Amerkashi.Wordpress.com

[Q] How to make an Android app?

Hello people
I've wanted to make a Android app for a while now but I don't know where to start.
Can someone give me some pointers on where to start.
If it involves coding then be warmed I'm a complete novice at that.
No coding method: search Google for Android app inventor.
Coding and better method: Android apps use JAVA. Take some basic online courses, then learn the Android sdk. (functions that are specific to android)
Option b is better, and if you have a little patience it won't be too hard.
Sent from my ADR6400L using Tapatalk
alex ainsley said:
Hello people
I've wanted to make a Android app for a while now but I don't know where to start.
Can someone give me some pointers on where to start.
If it involves coding then be warmed I'm a complete novice at that.
Click to expand...
Click to collapse
If you want to get somewhere forget the app inventor and invest some time.
Start by using google on terms like "android tutorial" "android hello world".
Download eclipse and the android sdk (google has all the info and tutorial on how to do that).
The sdk has ALOT of very good example apps. From 3D drawing to system infos and interface layouts.
AAAAAAAAAAAAAAAHHHHHHHHHHHHHHHH Google app inventor is doing my head in.
if anyone is reading this on a scale from 1 to 10 how hard/complicated is making a app using coding?
Depends entirely on what you want the app to do unfortunately. If you can give some basic ideas of what you want it to do it will be easier to say how hard it will be.
well all id like my first app to do is when it starts up to show a picture with text then link you to a web page.
Nothing hard
Thats not too difficult, you could patch work something out of existing tutorials/example.
But its always relative saying how difficult something is.
It depends on the person...
Well sorry that's not helping much. I'm still at a loss on what to do.
Basically all you need to do is copy and paste the code from some tutorial examples, or you could even use the app inventor as you need barely any code to do this, for example:
http://developer.android.com/guide/topics/graphics/index.html
http://developer.android.com/guide/webapps/webview.html
Putting it all together and making it into an application shouldn't take you more than half an hour once you have gone through the starter tutorials to understand how and what it is you are using.
Ok I'll try that.
Click Here is the link for a LIVE remote workshop / presentation
-Cheers
omg
i really wanna learn, so i went to purchase course and
DescriptionsAmount
Diploma in Java Programming.Diploma in Java Programming.
$1,695.00Item price: $1,695.00
$1,695
are you serious??
Well if you are really determined to learn it, you can manage doing it on your own too, with the help of free online resources. Search for a tutorial series on youtube. Here's one I had found useful when I was learning:
http://www.youtube.com/watch?v=Hl-zzrqQoSE
You should also buy a good book on Java programming and read it. That would help a lot too.
read android developers guide
You can check android developers official site it has lot of tutorials and resources.
You can go to next university library and borrow any Android book. It will not include the latest version of OS, but it will have lot of fundamental information in one place, written by one person. Tutorails often show you how to solve single problem only.
Thank you
Also great video
You're Welcome! Yes it is a great video. That guy really does explain it nicely.
Is App Inventor still working?
Look also at cornboyz tutorial on youtube. Same guy, slightly different tuts

How to become a developer?

I would like to become a developer. Obviously, that means learning code, but which one? Also, I don't have a PC with Linux OS, so will that be any problem? What tutorials or ebooks or stuff like that do you recommend to start me learning?
King-V said:
I would like to become a developer. Obviously, that means learning code, but which one? Also, I don't have a PC with Linux OS, so will that be any problem? What tutorials or ebooks or stuff like that do you recommend to start me learning?
Click to expand...
Click to collapse
Yes, that's right. To become a developer means learning to write code and apply those while creating a software.
Question on which one? is completely upto you because you need to know what are you aiming for. If you're looking for web application development, you may have to study any languages like PHP, DotNet, Java - J2EE/EJB etc.
If you're looking for Android application development, first step is to study Java, because its the main language used for programming apps. Then you can move over to Tutorials on Android development, and it will be easy. If its iOS app/ Mac specific app development, Objective C it is.
Not having PC with Linux OS won't be any problem, because you can do these in Windows platforms or in a Mac.
Tutorials = Google my friend. It has almost everything in the universe. Also in Youtube, you get the video tutorials.
Some which I could recommend is, for Java Oracle docs is good and "Java - The Complete reference" by Herbert Schildt is a good book too. For Android, you can find all resources in the App development forums.
You can try out the freepascal with a good IDE (codetyphoon), simple to make windows or linux graphical apps, or the visual studio express with c#.
coolsandie said:
Yes, that's right. To become a developer means learning to write code and apply those while creating a software.
Question on which one? is completely upto you because you need to know what are you aiming for. If you're looking for web application development, you may have to study any languages like PHP, DotNet, Java - J2EE/EJB etc.
If you're looking for Android application development, first step is to study Java, because its the main language used for programming apps. Then you can move over to Tutorials on Android development, and it will be easy. If its iOS app/ Mac specific app development, Objective C it is.
Not having PC with Linux OS won't be any problem, because you can do these in Windows platforms or in a Mac.
Tutorials = Google my friend. It has almost everything in the universe. Also in Youtube, you get the video tutorials.
Some which I could recommend is, for Java Oracle docs is good and "Java - The Complete reference" by Herbert Schildt is a good book too. For Android, you can find all resources in the App development forums.
Click to expand...
Click to collapse
Thanks a lot. That surely will get me started.
Also, if you wouldn't mind, I'd add that green glowing gif of your signature to mine.
King-V said:
Thanks a lot. That surely will get me started.
Also, if you wouldn't mind, I'd add that green glowing gif of your signature to mine.
Click to expand...
Click to collapse
Sure, I wouldn't mind. :good:
Start Android Application Development
Hii..
If You Want to become android Developer best video tutorial series on Internet Is
Link
http://youtube.com/playlist?list=SP2F07DBCDCC01493A&hl=en-GB&gl=IN&client=mv-google&guid=
And Android ADT is ready made available on their website just download and start developing android apps.
Link: Android ADT
http://developer.android.com/tools/index.html
Best Of Luck....
Press Thanks Button ( Left corner of this post ) if I helped You
Sent from my GT-S6102 using xda app-developers app

Nowhere Else to Turn

Hello everyone,
Im very new to this site, just registered a few moments ago. im not a bot, or a troll, so please bare with me if this post is in the incorrect place within the forum, or if some of my questions seem ignorant.... because i am sure they will (haha).
My development background:
0 ... i have none. Lol. In fact, ive barely begun to learn even the basics of source coding. So again, please bare with me on any of my ignorance.
Why I chose XDA forums:
Dealing with various issues on my Android device, i have googled my problems, and often-times found myself here to find the answers. I believe this forum has some of the highest intelligence this genre has to offer. Easily understandable advice put in a way the ignorant like myself can understand, goes a long way to helping others, and i believe i have found that here.
My Current issue:
I am tired of being an employee. I am tired of waking up and going to work to make someone elses dreams come true. At the age of 32 i believe its past the time i make steps to create something I can pass down to my sons. I have also noticed that the world of business has become vastly technological. Apps are needed for everything. So.... i want to know how to make apps. From the very beginning of it all, to the final production stages, and everything in between.
Where do i start?
Can i make one completely from my Android?
Where can i find app blueprints?
Do i need app blueprints?
These are just some examples of questions I have running through my head. I want to be an Andriloid game developer, I believe i could make the next big thing like AngryBirds, but i do not have the mental know-how, on the technological aspect on all of this. If any of you can help me it would be greatly appreciated. I am also open to the idea of a partnership in creating my first app.
Thank you very much for your time everyone.
-M04RT3
Hi there, I'm a relatively recent beginner as well, having churned out only 1 app so far.
In terms of getting started from the ground up, I found the free online tutorial series from TheNewBoston pretty helpful. In particular, you'd want to look at the Java one and the Android Application Development one
Java
https://thenewboston.com/videos.php?cat=31
Android Development (may be using an outdated Android Studio by now, but overall still handy imo)
https://thenewboston.com/videos.php?cat=6
You need to do the Java one first, because you'll be writing Java code to make Android apps.
There are quite a bit of videos, especially for the Android one. You can pick and choose which you need based on the app you have in mind, like if you don't need voice recognition or drawing 3D objects, you can just skip over those.
Good luck!
a_w_li said:
Hi there, I'm a relatively recent beginner as well, having churned out only 1 app so far.
In terms of getting started from the ground up, I found the free online tutorial series from TheNewBoston pretty helpful. In particular, you'd want to look at the Java one and the Android Application Development one
Java
https://thenewboston.com/videos.php?cat=31
Android Development (may be using an outdated Android Studio by now, but overall still handy imo)
https://thenewboston.com/videos.php?cat=6
You need to do the Java one first, because you'll be writing Java code to make Android apps.
There are quite a bit of videos, especially for the Android one. You can pick and choose which you need based on the app you have in mind, like if you don't need voice recognition or drawing 3D objects, you can just skip over those.
Good luck!
Click to expand...
Click to collapse
Brother youre a life saver. These tutorials are awesome for beginners like me. Funny its called "NewBoston" as thats where i live too lol. But again, thanks for this.
Everything starts with Ideation. All mobile app developers follow the design guidelines during the design phase. The best method would be to make your first app relatively simple and to focus on creating something. Next step would be deciding on the wireframe for the app. Choose the IDE (everything needed to develop your apps), programming language and set it. Since you are using Android Studio and Java, you should know the basics of Java. Create and acquire images, build the layout and write the code. Add more functionality specific to your app and do extra polishing by running your app on different devices. Finally, publish your app. Check this article on how to make android app development easy https://www.fingent.com/blog/how-to-make-android-app-development-easy .

Categories

Resources