Since XDA-Developers has many users (Probably the most anywhere), I think it would be great to get a Programming section on the forum with Sub-forums on it for different languages so that we can ask for help and share snippets and codes and such.
The section can be like this:
Programming:
-Visual C# .NET
-Visual Basic .NET
-Visual C++ and VC++ .NET
-MortScript and NSBASIC
-FBA Creator And Basic4PPC
-Other Languages
Each forum can have a sticky in it that are the following:
-Freeware Resources
-Commercial Resources
-Code Snippets
-Official Announcements
And then the rest of the forum can be dedicated to questions users might have regarding the programming language, it can list releases in source code that users might want to share and more.
What do you guys think?
jdiperla said:
Since XDA-Developers has many users (Probably the most anywhere), I think it would be great to get a Programming section on the forum with Sub-forums on it for different languages so that we can ask for help and share snippets and codes and such.
The section can be like this:
Programming:
-Visual C# .NET
-Visual Basic .NET
-Visual C++ and VC++ .NET
-MortScript and NSBASIC
-FBA Creator And Basic4PPC
-Other Languages
...
Click to expand...
Click to collapse
I agree and have said the same, but I would make the suggestion that splitting C# and VB.Net is somewhat pointless given the drastic similarity. The same goes for VC++.Net. They are all just syntactically different with a few very minor feature differences (or just simply playing catch-up with c#).
In general, there probably shouldn't be a purely language based split, it should probably center a little more on technologies used (ie. java, netcf, scripting/mortscripting, etc). I think there should be at least one or two language agnostic sections for things like OpenGL ES which is obviously going to see a massive adoption in applications within a year.
speed_pour said:
In general, there probably shouldn't be a purely language based split, it should probably center a little more on technologies used (ie. java, netcf, scripting/mortscripting, etc).
Click to expand...
Click to collapse
Agreed. It might even be a good idea to split Java, since there are frameworks for both J2SE and J2ME, but then, Java (esp. SE) isn't that common on WM phones anyway...
So, I'd recommend those sub forums:
- Native code (C, C++)
- .NET (C#, VB/C++.NET)
- Java
- Other frameworks (old EVB, Basic4PPC, FBA Creator, ...)
- Scripting (MortScript, NScriptm, ...)
I think there should be at least one or two language agnostic sections for things like OpenGL ES which is obviously going to see a massive adoption in applications within a year.
Click to expand...
Click to collapse
Only if MS doesn't enforce DirectX 3D support and manufacturers aren't too lazy to support both DirectX and OpenGL. (Like the X1, where OpenGL demos don't run)
But yes, some generic sections might be good, also for COM objects, like used for e.g. accessing contact data, messages, WMP, ...
OK, I can see the .NET c++ and C# being combined. But to be honest, to me, VB.NET is a completely different language. And since thats what I program having it be in a separate forum would be better.
Any thought on this?
I have suggested some new forums that include WinMo and Android programming... but they are still under discussion.
Dave
I want to program simple applications, one or two screens, a few input boxes, simple graphics, display the output. Compile to an .exe. I "sorta" program, I can do a lot in Excel VBA, can't do C++ never tried Java or others.
Are there any easy to use programing languages (and environments) that would do what I need?
I look forward to you insight.
Nick
.net IDE
maybe get a copy of visual studio, it's pretty easy to create a simple forms app in VB.net or c# with it.
Thanks for the reply...
Do you need "Visual Studio"? Or will Visual Basic 2008 work?
Are there free Visual Studio versions? If so, I haven't found the right link yet.
Nick
C++ and Java are similar and easy to pick up, and java is even based off c++, personally I use codeblocks as my IDE, but there are many others to choose from
nkemp said:
I want to program simple applications, one or two screens, a few input boxes, simple graphics, display the output. Compile to an .exe. I "sorta" program, I can do a lot in Excel VBA, can't do C++ never tried Java or others.
Are there any easy to use programing languages (and environments) that would do what I need?
I look forward to you insight.
Nick
Click to expand...
Click to collapse
There has been a lot of question on how to program lately.
Before asking, please:
1) Do a search on the forums
2) Look at the sticky in the front of the forum. There is plenty of information on programming in the Wiki pages.
Good luck!
nkemp said:
Thanks for the reply...
Do you need "Visual Studio"? Or will Visual Basic 2008 work?
Are there free Visual Studio versions? If so, I haven't found the right link yet.
Nick
Click to expand...
Click to collapse
The free version is called Visual Studio Express
[Not allowed to insert links]
Go to: microsoft.com/express/Downloads
Search for Basic4PPC and try it. It has a similar interface to VS and much cheaper (there's a demo you can download so you can try out for yourself.) The language is similar to VB. The end result is an application written using Compact Net Framework.
Good luck
Thanks for the help folks ...
There area a lot of options listed in the sticky but the problem is that there is no evaluation of ease of use.
- I did download basic4ppc and it seems easy enough to use ... for a fee
- but you don't know that until you download (unless you click through to the wiki)
- I downloaded SharpDevelop but have not been able to figure out the code (poor documentation and dead links to things like the C# book)
- Next I'll try FBA Creator
Nick
Later ..... So I tried FBACreator and a lot simpler ... but no no way to graphically design the screen like basic4ppc or SharpDevelop.
Windows 8 Store App Development
being fresh and a new ecosystem lacks apps a Microsoft is trying ever bi the can to get developers into it and offering some great opportunities.
Why windows 8?????
#1 Its free:
Unlike other platforms which require you to pay to publish applications on there stores Windows on the other hand doesn't ask you a cent to publish your apps
#2 Multilingual(Script Wise) Support:
If you know web development technologies, you can develop a Windows Store app using HTML5, Cascading Style Sheets, Level 3 (CSS3), and JavaScript.
If you have developed .NET, Windows Presentation Foundation, or Microsoft Silverlight applications, you can develop a Windows Store app using XAML, with code-behind in C++, C#, or Visual Basic.
If you know DirectX, you can develop a DirectX Windows Store app using native C++ and HLSL to take full advantage of graphics hardware.
Lets get started:
Windows 8 introduces a new type of application: the Windows Store app. Windows Store apps have a brand new look and feel, run on a variety of devices, and you sell them on the Windows Store.
You can develop Windows Store apps in a variety of languages as mentioned above.
This guide tells you why you want to develop Windows Store apps, where to get the tools you need, and how to build your first app
Note: Windows Store Apps can only be developed on windows 8
Get The Tools:
To develop Windows Store apps, you need to install Windows 8 and some developer tools. They are available for free #GenrousMicrosoft
1. Download Windows 8
Important as windows 8 apps only run on windows 8
2. Download Developer Tools
These a the only tools required to build store apps #win8+1
Not to mention the need no setup just installation is need and NO ADDITIONAL CONFIGURATION.
This download gives you Microsoft Visual Studio Express 2012 for Windows 8, Blend for Microsoft Visual Studio 2012 for Windows 8, the Windows 8 software development kit (SDK), and project templates for creating new Windows Store apps.
Visual Studio gives you everything you need to create code, debug, localize, package, and deploy a Windows Store app.
Blend is another tool you can use to create Windows Store apps. It provides effective support for designing a great-looking user interface for your Windows Store app.
Visual Studio and Blend were designed to work together. You can move seamlessly back and forth between them to develop your app.
Getting a developer license
Microsoft was smart enough and to prevent illicit acts it does not allows sideloading apps with exception to developers who will find handy:good:.
To get your self approved as a developer you need to get a free developer licence which can be done via following methods.
Through Visual Studio
When you run Microsoft Visual Studio 2012 on your local machine for the first time, you are prompted to obtain a developer license. Read the license terms, and then click I Agree. In the User Account Control (UAC) dialog box, click Yes to continue.
After you install a license on a local machine, you won’t be prompted again on that machine unless the license expires (or you remove it) and you try to run an uncertified Windows Store app or create a project. You can run uncertified Windows Store apps on your local machine by pressing the F5 key in Microsoft Visual Studio or Blend for Microsoft Visual Studio 2012 for Windows 8.
Note If you choose not to acquire or renew a developer license, you'll receive an error (DEP0100) when you attempt to build or deploy a Windows Store app in Visual Studio.{Courtesy MSDN}
Getting a developer license at a command prompt
If you aren’t using Visual Studio 2012, you can get and manage developer licenses at a command prompt by running these commands in
Windows PowerShell:
Show-WindowsDeveloperLicenseRegistration. This command opens a dialog box from which you can get a developer license and install it on the local machine. To run this command, you must have a valid Microsoft account. You also must run this command in a command prompt with elevated permissions.
Get-WindowsDeveloperLicense. This command returns an object that has two properties: ExpirationTime and IsValid. ExpirationTime is a System.DateTime structure that contains the date and time when the license expires. IsValid is a System.Boolean that indicates whether the license is valid. You can run this command from either a non-elevated command prompt or a command prompt with elevated permissions.
Unregister-WindowsDeveloperLicense. This command warns you that some Windows Store apps will stop working if you remove the developer
license from the local machine. If you choose "Yes" (the default) to confirm that you want to remove the license, the license is removed from the local machine. You must run this command in a command prompt with elevated permissions.
Code:
C:\PS> Show-WindowsDeveloperLicenseRegistration
C:\PS> Get-WindowsDeveloperLicense
C:\PS> Unregister-WindowsDeveloperLicense
Read full detaild artile @MSDN also for TNC
Build Your First app!
Time to say hello to HELLO WORLD!
Using Javascript and HTML with CSS
Follow These Great Tutorials On MSDN JavaScript and HTML
Using C# or with XAMLVisual Basic
For Android or Java Developer I prefer C#
Follow These Great Tutorials On MSDN C# or Visual Basic and XAML
Using C++ with XAML
My favorite preference.
Follow These Great Tutorials On MSDN C++ with XAML
Using C++ and DirectX
DirectX i dont know anything about it
Dont expect support on this by me altopgh others might be able to help.
Follow These Great Tutorials On MSDN C++ with DirectX
Creating a project and choosing a template
When you create an app, the first thing you need to do is decide which language to use. You can choose JavaScript, Visual Basic, Visual C#, or Visual C++.
To create a project for a Windows Store app, click File > New Project (or press Ctrl+Shift+N).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You'll see the New Project dialog box.
Click one of the language nodes in the left pane. You'll see various app templates in the center pane. Some important templates, like Blank App, Grid App, and Split App, are shared between all four programming languages. A few templates are language-specific.When you create a project for a Windows Store app, Visual Studio creates a solution, which is a way of managing the various source elements of your project (code files, images, style sheets, settings, and so on). A solution container can contain multiple projects, and a project container typically contains multiple items that represent the references, folders, and files that you need to create your app.
Solution Explorer displays solutions, their projects, and the items in those projects. In Solution Explorer, you can open files for editing, add new files to a project, and view solution, project, and item properties. Here's what Solution Explorer looks like for a JavaScript project: courtesy MSDN
In addition to source code files appropriate to the language, each project also includes the package.appxmanifest file, which describes the app package for Windows. Each project also includes several image files, like splashscreen.png for the splash screen image and storelogo.png, which is used for Windows Store. A project source certificate (.pfx) file that's required for signing the package is also included in each project.
Designing a UI
When you plan your user interface, it's important to select the most appropriate Visual Studio project template for a starting point, and to learn about adding re-usable item templates such as Search contracts. You can develop your UI by writing code or by using a visual designer. A visual designer provides a designer-oriented interface for app design that includes a drag-and-drop interface for building the UI.
For Windows Store apps, you can use the visual designer provided in Blend for Microsoft Visual Studio 2012 for Windows 8. You can open a Visual Studio project in Blend by right-clicking the project in Solution Explorer and clicking Open in Blend. Alternatively, open the solution file (.sln) from within Blend.
image courtesy MSDN:
Updating the app manifest
unlike android working on mainfest of win 8 apps is a breeze
You can use the Manifest Designer in Visual Studio to edit the app manifest file that describes your app package. The app manifest file is present in Windows Store apps written in all languages.
The Manifest Designer has five tabs:
Application UI. Configure UI settings, including the logo, splash screen, and initial orientation.
Capabilities. Specify system features or devices that your app can use, such as Internet access, current location, and music library access.
Declarations. Add declarations for app contracts, like search and share target contracts, and specify their properties.
Content URIs. Specify URIs that your app either can or can't access. This tab appears only for JavaScript projects.
Packaging. Set properties that identify and describe your package when it is deployed.
To open the Manifest Designer, double-click the package.appxmanifest file in Solution Explorer, or right-click the file and click View Designer. The Capabilities tab of the Manifest Designer is shown here:
image courtesy MSDN:
Writing code
Visual Studio Express 2012 for Windows 8 includes full-featured editors for the following languages: JavaScript, HTML/XML/XAML, CSS, C#, Visual Basic, C++, HLSL. The editors provide many language-specific features that you can customize to help create your app:
IntelliSense, which provides features such as statement completion and parameter Help as you type code. This illustration shows a member list in the C# Code Editor. Note that the list also displays a Quick Info box for the selected item.
image courtesy MSDN:
Using inellisense:
Code snippet insertion, available by right-clicking in a code file and clicking Insert Snippet.
Navigation aids like Go To Definition, Bookmarks, and Navigate To.
The Go To Definition command enables you to find the definition of a class or function by right-clicking the identifier and clicking Go To Definition. (Visual Basic and Visual C++ use the Object Browser to display information about Windows Runtime types.)
This illustration shows options like Go To Definition and Insert Snippet in the JavaScript Code Editor:
You can customize the behavior of the Code Editors, and enable or disable features like indentation, word wrap, and statement completion. To customize the behavior of the Code Editors, click Tools > Options, expand Text Editor, expand the appropriate Code Editor to configure, and then select the appropriate category of options.
Building an app
To build an app, click Build Solution (or press F7) or Rebuild Solution (or press Ctrl+Alt+F7) on the Build menu. You'll see the results of the build process in the Output window.
Debugging
Read The MSDN article
Design Using Blend for VisualStudio 2012
Blend for Visual Studio 2012 helps you design and build user interfaces by providing you with an accurate design surface and tools that let you visually create and edit Windows Store applications. These new design tools take advantage of Windows 8 technologies to create dynamic applications that run on a wide variety of Windows-based hardware. You can choose to design your user interface using HTML or XAML.
image courtesy MSDN:
Designing in HTML
A Windows Store app built using HTML uses the same technology that a web site uses. However, a Windows Store app is not deployed page-by-page from a web server. Instead, it is installed locally on the user's computer. Like any native Windows application, a Windows Store app built using HTML has direct access to the underlying platform and is able to share information with other applications.
Visual design Visually edit HTML, CSS, and Microsoft design style controls. What you see in Blend is what users will see in Windows 8.
Interactive Mode Design your app in states that would otherwise be available only at run time, without having to endlessly compile and run.
App building Drag and drop Windows app controls onto the design surface, set their properties, and style them.
Powerful code generation When you add a new style or element to an app, Blend takes care of all the syntax and generates concise, reliable, and predictable code.
Debugging Visual Studio can debug JavaScript, but only Blend lets you visually debug HTML and CSS. The Winning Properties virtual rule shows you the CSS cascade for any element. The Computed Values virtual rule shows you how Windows 8 will compute CSS property values for each element. The Live DOM panel updates to display run-time changes.
learn more @MSDN
Designing in XAML
A Windows Store app built using XAML gives you more control over the styling and animating of controls. Visual Studio also provides a XAML Designer. Much like Blend, the XAML Designer in Visual Studio provides a main design surface and a toolbox to drag-and-drop controls.
Animation Use the Objects and Timeline and States panels to create complex animations for your app. The visual state design features in Blend also enable you to work with the new Windows 8 theme animations.
Visual States Use the States and Device panels to create a Windows app UI that takes advantage of view states and orientations supported in Windows 8.
Transitions Add pre-defined or create custom transitions for your app by using the States panel.
Styles and GroupStyles Customize the default control styles by the comprehensive styling and editing features available in Blend. You can also customize Windows 8 GroupStyles.
Template editing Edit control templates by using the Objects and Timeline panel or the Breadcrumb bar. While in template editing mode, you can add Windows 8 theme animations by using the States panel.
Data Binding Data binding tools support the following binding types: DataContext, DataSource, ElementName, RelativeSource Self, RelativeSource TemplatedParent, and StaticResource.
Layout Create Windows app layouts using built-in layout containers such as GridView, ListView, StackPanel, WrapGrid, and more, all of which can be customized to suit your needs.
Control creation Create controls on the artboard quickly and easily by using the Tools and Assets panels.
Property editing Modify and edit objects quickly and easily by using the Properties panel.
learn more @MSDN
The Last Word
A few Handy Links:
*Selling Apps
*Concepts and Architecture
*API Reference
*Language Reference
*Samples
Credits:
MSDN For amazing article and helping me to dev on win8.
Microsoft for their beautiful OS
Visual Studio Amazing IDE
Click to expand...
Click to collapse
Support My work:
Hit the thanks button in the op and/or all the posts you find useful.
Rate give 5* rating to this thread
great guide..
publishing in windows is free??
will start it today...
thanks for the guide:good:
mysticsaver said:
publishing in windows is free??
will start it today...
thanks for the guide:good:
Click to expand...
Click to collapse
It's FREE 100% NO HIDDEN COSTS
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
It's FREE 100% NO HIDDEN COSTS
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
is it just like publishing in google play??
can we publish them as paid apps???
mysticsaver said:
is it just like publishing in google play??
can we publish them as paid apps???
Click to expand...
Click to collapse
For paid apps I don't know but I ll let you know soon
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
For paid apps I don't know but I ll let you know soon
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
okie will be waiting
mysticsaver said:
okie will be waiting
Click to expand...
Click to collapse
So so sorry for being absent here but the answer to your query :
Yes Yes its free they'll charge you a small amount which will be refunded this is just to confirm that your payment source is authentic
More on this here.
Must the host machine i use to develop be on win8? Or i can use win7 to develop
sianzb0i said:
Must the host machine i use to develop be on win8? Or i can use win7 to develop
Click to expand...
Click to collapse
Only win8 machine can be used can't dev on win7
Sent from my GT-S5302 using Tapatalk 2
Just wanted to say thank you for all this great info!
jackrabbit72380 said:
Just wanted to say thank you for all this great info!
Click to expand...
Click to collapse
Your welcome
Sent from my GT-S5302 using Tapatalk 2
thank you very much, just started to make some windows 8 apps and this was very helpfull
WarBorg said:
thank you very much, just started to make some windows 8 apps and this was very helpfull
Click to expand...
Click to collapse
You're welcome
Sent from my GT-S5302 using Tapatalk 2
I've just started using Phonegap to develop Android apps and found it ridiculously easy (for simple stuff). I've got a background in Windows development for many years, and also a long-standing history of web development, both client and server-side, so for me Phonegap is an answer to many prayers.
I thought this would be an ideal place to share ideas and thrash out problems for anyone that's developing using Phonegap.
If you're not familiar with it but you have web development skills then you really need to look into it...
http://phonegap.com/
I also currently use adobe builder at to build my apps...
https://build.phonegap.com/
That will change when I start integrating my own plugins, using Java and Eclipse, but for now it's awesome as it builds my app for 6 different platforms, including Android, iOS and WP.
I'm new to this so I'm hoping this will be a good place for us to learn together and pick up any tips from each other. There's also the most awesome stack overflow where help can be garnered, as they have a phonegap tag for asking questions. Between there and here we should be covered
I may also use phonegap for my next project. It's either that or Xamarin/Mono. I'd be more comfortable out of the box with the latter, but it's probably more "useful" for me to start prodding HTML5.
Have you taken a look at VSNomad? Lets you work in Visual Studio if you're already familiar with that.
jmbillings said:
I may also use phonegap for my next project. It's either that or Xamarin/Mono. I'd be more comfortable out of the box with the latter, but it's probably more "useful" for me to start prodding HTML5.
Have you taken a look at VSNomad? Lets you work in Visual Studio if you're already familiar with that.
Click to expand...
Click to collapse
I just had a look at VSNomad and it does look very interesting, but it's damn pricey! I'm certainly not used to paying subscription costs to develop software.
Some of the tools and tech I use to develop phonegap app
APTANA 3
GIT GUI
bootstrap.js
ADT
Dreamweaver CS 6
AppLaud - Mobile Developer Solutions
Best of all and universal tools to develop.
some other useful tools with phonegap
I usually develop applications with PhoneGap using the following tools:
Eclipse
ant scripts for packaging and javascript compression
jasmine for javascript module testing
karma for test in real time
I found very useful to use the last tool for testing on multiple browsers and mobile emulators because it allows to detect possible errors in real-time.
salamanred said:
I usually develop applications with PhoneGap using the following tools:
Eclipse
ant scripts for packaging and javascript compression
jasmine for javascript module testing
karma for test in real time
I found very useful to use the last tool for testing on multiple browsers and mobile emulators because it allows to detect possible errors in real-time.
Click to expand...
Click to collapse
Karma sounds great for compatibility and debugging. I searched online and there are tons of results. Could you share more info so I can find it?
I currently use Eclipse with the Phonegap plugin and Firefox for basic debugging until I near final production.
Hey!
I am starting with a project to develop a multiplatform app with phonegap. I have minimal experience about webapp development and I have been searching for an editor especially for phonegap projects. So far I have been getting suggestions between notepad++ to eclipse, but none has satisfied me so far. It would be nice to be able to open the project and browse the structure from the editor. Also something like ctrl-clicking to jump to javascript codes etc. Hopefully you get the idea what I am looking for.
These are some editors I have found so far:
- Brackets
- Chrome dev tools
- Intel XDK
I mainly am looking for something to edit the sources. Building and debugging can be done separately. These things are a good thing to have, but not necessary:
+ WYSIWYG
+ Possibility to build the project
+ Possibility to launch the project in a device
+ Device emulator
+ Debugging possibility
+ Free
Edit:
+ SVN
I am used to something like eclipse/netbeans for coding. What editors do you usually use for PhoneGap/web app projects? I am also taking suggestions for debugging environments.
Intel XDK is pretty neat IDE for Web App development.
You should try Ionic Framework (Build and manage project)
+ Ionic View App (Launch project in device)
+ Ionic Lab (Basic WYSIWYG/Building/Deployment)
Personally I use Notepad++ +CMD btw ....It suits my style...
Also I don't use any emulators. Testing in View or on live device.
Emulators are just painful ,though I have heard good stuff about genymotion.
Use Chrome dev tools for debugging...
I suggest you to try Atom Editor or Visual Studio code. Both are free.
I forgot to mention that I have to start working with an already existing project. I think Ionic does not work for this. It seems like I would use it for my personal projects however. I should add subversion feature to plusses also.
Atom Editor and Visual Studio code are maybe the best editors I have tried so far.
VilleI said:
I forgot to mention that I have to start working with an already existing project. I think Ionic does not work for this. It seems like I would use it for my personal projects however. I should add subversion feature to plusses also.
Atom Editor and Visual Studio code are maybe the best editors I have tried so far.
Click to expand...
Click to collapse
Have you tried phonegap for netbeans ?
https://netbeans.org/kb/docs/webclient/cordova-gettingstarted.html
karandpr said:
Have you tried phonegap for netbeans ?
https://netbeans.org/kb/docs/webclient/cordova-gettingstarted.html
Click to expand...
Click to collapse
Wow, I don't know why I did not realize there is a plugin for Netbeans for this. This is awesome.
I worked cordova (same with phonegap) in visual studio and netbeans. netbeans is better in autocomplete but visual studio is more feature than. All of them are both good ide.
Netbeans can run in linux, mac, visual studio code version can too.
Hi,
Visual Studio Code or Atom or WebStorm