[Q] need answers. - Android Q&A, Help & Troubleshooting

1) Is it possible to run windows application on android? C#.
I want to build an app on C# and i want it to run on my Android Phone, is this possible?
2) How can I run Html files on my phone?
Sorry for my english.

I'm not very experienced, but I think you'll need to emulate windows. I cannot guarantee that this is correct though.

jhaz04 said:
1) Is it possible to run windows application on android? C#.
I want to build an app on C# and i want it to run on my Android Phone, is this possible?
2) How can I run Html files on my phone?
Sorry for my english.
Click to expand...
Click to collapse
Html will work with, but you need to do some porting. C# is what apple uses for their apps. As far as I know, our apps are mostly written in java.
Sent from my SGH-I777 using Tapatalk

You won't be able to run C# apps on an android phone. The big problem is that Android doesn't use C# code at all. Applications are typically written in Java, although developers have the option of writing in native code (C++) if they are willing to forego the use of APIs. The short answer is that any C# app will have to be totally rewritten for use on and android phone.
As for HTML, there are a number of excellent browser apps that either come pre-installed or are on the market. These apps can open HTML files. They can even handle web apps using HTML5, javascript, css and AJAX.
Hope that answers your question.

Related

Best Way to Develop A Simple App?

Hello,
I am a total novice. However, I'd like to develop a simple timecard app for Android, specifically targeted like the apps below.
http://www.appato.com/edward-pereira/wrap-time-time-card-for-film-crews/
http://www.crewtimecard.com/
These only exist for Apple products, though. What is the easiest, most straight-forward (Windows-based) software for creating such an app? I've heard of something called Eclipse...? Or there's some Google thing?
Thanks!
You need eclipse ide and android adt plugin for exclipse to code for android.Also you need android sdk for the api's.Googling "how to setup eclipse for android development" will give instructions for those from android developers website
Sent from my GT-N7000 using xda app-developers app
thanks vijai2011. Is Eclipse easy to learn? Is there something easier that may not be TOO basic, so that I can create a timecard app like the ones I linked to above?
You dont have to learn to use eclipse .All you you need to know is java and few things about android resources which you can find at android developer website.They will pretty much cover everything.
But without java,you cannot take even the first step of app coding.Heart of app coding is java.
Sent from my GT-N7000 using xda app-developers app
I see... so there really isn't something similar to Adobe Dreamweaver for android apps?
daniel178 said:
I see... so there really isn't something similar to Adobe Dreamweaver for android apps?
Click to expand...
Click to collapse
Like Adobe Dreamweaver lets you design your web layout pages with PHP coding ... Eclipse lets you design the App layout with java coding. Its pretty much similar.
You can even use Netbeans or similar IDE's, but most developers use Eclipse and its the one that's being recommended by Google, I guess.
Thanks... I am little intimidated by Eclipse. Is it mostly graphical? can I get by without any coding? You see the type of app I want to create....
Also, have you heard of Phonegap? Is this easier/better/more or less limiting?
Eclipse is fully gui.You go through a wizard to create a new project,adding app icon,creating main activit(ies),select lowest api and the api for app then you get into a screen like a text editor where you type java,then go to android manifest then added the created activity,give perm and export the app signed.Even the adb is included at the bottom toolbar for easy debugging in real time .
So its pretty much straight forward but it can take sometime for the first time.
Sent from my GT-N7000 using xda app-developers app
Hmm, sounds like there's some java (at least) coding involved. Can I get by without any manual coding at all?
Also, to create an app like the timecard things above, for Android, what version of Eclipse would be best (simplest, yet able to do the job well).?
Well....Its not some java...It 99% java the remaining 1% is for the look and feel that you put to your preference .That is why I said
But without java,you cannot take even the first step of app coding.Heart of app coding is java.
Click to expand...
Click to collapse
on post #4
No...you dont need any specific version of java.Take the latest eclipse IDE and the latest ADT plugin and code it.There is nothing you can do without manual work of typing java.You cannot do those web page design using dreamweaver here Here is my first app I wrote.There is also the source code attached at the bottom.See how long the code is just to invoke a activity of another app with a default argument.
This is how I set up eclipse:
You must have sdk pre-installed for this.Also sdk needs a 32bit java JDK to work.(you need 32bit irrespective of if u run 32 or 64bit.Dont know why is that so.SDK never recognized my 32bit JDK)
Install eclipse classic
follow this to install ADT
daniel178 said:
Hello,
I am a total novice. However, I'd like to develop a simple timecard app for Android, specifically targeted like the apps below.
http://www.appato.com/edward-pereira/wrap-time-time-card-for-film-crews/
http://www.crewtimecard.com/
These only exist for Apple products, though. What is the easiest, most straight-forward (Windows-based) software for creating such an app? I've heard of something called Eclipse...? Or there's some Google thing?
Thanks!
Click to expand...
Click to collapse
Checkout HELLS-KITCHEN. It's a great starting point. With this Distro and a million Tutorials on XDA, you should be able to find what your looking for.
what about Flash? I've watched a couple of video tutorials on using Flash 5.5 and up to create Android apps, and it seems pretty graphical-only (no or less coding -- keep in mind my app is very simple). Would this be a viable option?
What ever you try,The last and final destination is TO USE JAVA for app even if the app is a "Simple" Hello world app!You have to have a main activity,type in the codes etc....You dont get it out my clicking out on wizards like:
Do you want Android app?click next
Do you need it to be simple?click next
What features you need?Select them.
If you are too lazy to type out codes or dont know java,Why not just try any alternative in play store?It is more Graphical and is only few taps
Sent from my GT-N7000 using xda app-developers app
Alternatively you could try to use phonegap.com or usepropeller.com / simplr.mobi.

What is the best language for developement?

Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Sent from my HTC A310e using xda app-developers app
cyber-terrorist said:
Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Click to expand...
Click to collapse
The biggest thing to pick up is object orientation (if you want to actually be a *good* developer ). I know php can be OO, but that doesn't mean you do have any experience of it as it doesn't have to be.
Java really is the way to go if you're starting from scratch with Android app development. You'll already be familiar with the C style syntax from javascript and PHP, but not enough for me to recommend using C/C++.
Have a look here...
http://developer.android.com/training/basics/firstapp/index.html
That's where I started, purely because it covers setting up the development environment and making simple apps.
Other than that, head over to stackoverflow.com (http://stackoverflow.com/questions/tagged/android+java). It is invaluable as a developer.
Have fun
Edit: Actually, I forgot one major option for someone with your skills...
http://phonegap.com/
It allows you to create apps using web development skills and builds for Android, iOS, BB, WP and a few others, all from the same code. I've used it to create a couple of small apps and it's pretty impressive.
Hi,
Thanks for your guidence,
Now I can start to learn java, but... Could u plz help me what to use to code?
I have eclipse but I dont know how it works as it is like windows command prompt which I do NOT have any expreince in such an environment.
By the way, can I use java programming language to code a windows software or a linux one?
Cause i need both pc app developement and mobile app development.
Thanks in advance.
The best.
Sent from my HTC A310e
No eclipse is not like that. I tried it months ago when trying to learn Java. It's likely MVS. You can find many guides about how to do it. You have to download eclipse and ADT and android SDK in order to begin your developments. Since I have some experiences using it, if you got a problem whenever you set-up it, just pm me. I will try to help you.
Good Luck n Happy Coding.
java or c, read the demo code,step by step, u ll get it, good luck.
Sent from my GT-I9100 using xda app-developers app
Language info
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
SnakeEyesNinja said:
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
Click to expand...
Click to collapse
Ehm, sorry I haven't learn Java. But I guess there are many things you can do with Java + C++
Yeah java is a cery good lang for dev.
Combination of java and c++ that sounds More interesting.
Sent from my WT19i using xda premium
SnakeEyesNinja said:
Hey Guys,
I am new here,i know C and C++ language.
Currently Learning .net But i am interested to learn java on my own..with the help of
google development
My Question is
IF Someone Learns it from there can he create cool apps and start generating revenues through it
and how much time period it will take to completly learn and start earning through android app
Click to expand...
Click to collapse
Not sure about mobile apps, but if you are good Java or .Net developer your earnings are guaranteed.
cyber-terrorist said:
Hi,
I am new to app developing world.
I dont know about app developement languages for android which are now used.
Gonna start to learn a language to develope?
Which is the best one to learn as a first language?
And plz guid me what i need to do right here right now.
By the way, I know html, css, javascript, jquery, php... I work as a web developer but wanna get into app developement.
Thanks
Sent from my HTC A310e using xda app-developers app
Click to expand...
Click to collapse
For the devlopment of androind apps you need to learn JAVA because most of apps are devloped in JAVA. But, to understand JAVA, you need to learn the concept of OOP (Object Oriented Programming). The Best Way to learn the concept of OOP you should concentrate to C++, that's where the concept of OOP starts. JAVA is used for the logical operations in the app. for designing part you should lean XML.
To View the Basic of android app devlopment. download AIDE {Android Integrated Devlopment Environment} this is a SDK for application devlopment.
vishjoshi said:
For the devlopment of androind apps you need to learn JAVA because most of apps are devloped in JAVA. But, to understand JAVA, you need to learn the concept of OOP (Object Oriented Programming). The Best Way to learn the concept of OOP you should concentrate to C++, that's where the concept of OOP starts. JAVA is used for the logical operations in the app. for designing part you should lean XML.
To View the Basic of android app devlopment. download AIDE {Android Integrated Devlopment Environment} this is a SDK for application devlopment.
Click to expand...
Click to collapse
And i guess to work for NDK layer you still need c.
Thanks,
Amit
amit.rai said:
And i guess to work for NDK layer you still need c.
Click to expand...
Click to collapse
No, C is an Procedure Oreinted Programming Language. You need C++ to work for NDK. To learn C++ you have to learn C language to know the basic concepts of language.NDK is based on command-line tools and requires invoking them manually to build, deploy and debug the apps
Thank You,
Vishal Joshi.
vishjoshi said:
No, C is an Procedure Oreinted Programming Language. You need C++ to work for NDK. To learn C++ you have to learn C language to know the basic concepts of language.NDK is based on command-line tools and requires invoking them manually to build, deploy and debug the apps
Thank You,
Vishal Joshi.
Click to expand...
Click to collapse
Does this means i cannot write a .so library in NDK using c ? i mean do i necessary need Class and cpp files ? are you sure ?
Thanks,
Amit
amit.rai said:
Does this means i cannot write a .so library in NDK using c ? i mean do i necessary need Class and cpp files ? are you sure ?
Thanks,
Amit
Click to expand...
Click to collapse
Don't worry, you can write your libs in C with the NDK.
svdree said:
Don't worry, you can write your libs in C with the NDK.
Click to expand...
Click to collapse
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
amit.rai said:
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
Click to expand...
Click to collapse
Sorry Amit, I didn't knew about C, I saw in wikipedia, u can write in C, As per my knowladge it was in my mind that we cannot use C languase as it is a procedure oriented language. C & C++ both can be used. bt check out this link. This Shows that NDK will not benifit most of the apps.
http://developer.android.com/tools/sdk/ndk/index.html
amit.rai said:
Hi svdree,
Thanks for confirming it. I was trying to correct vishal, as i dont find any restriction to use c++ in android, as few of my middleware are written in c only, and infact running example is openssl is properly compiled and ported which is written in c.
~Amit
Click to expand...
Click to collapse
Only restriction is that programming in C/C++ in Android adds much overhead proportionally to the amount of communication Java<->C/C++ So really take that into consideration.

language for android app development

Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Emmm....I think python won't help. By the way what languages do you know? If you like you can continue your project with Mono Android. Which is compatible with Microsoft Visual Studio and you can do many things easier with it. In that case you have to know C#. Here's the thread with many links. http://forum.xda-developers.com/showthread.php?t=2223114
Sent from my SonyX8 using Tapatalk 2
---------- Post added at 11:57 AM ---------- Previous post was at 11:55 AM ----------
Here's the thread for setup Mono Android. http://forum.xda-developers.com/showthread.php?t=2223010
Btw if you would like to go on this, pm me problems you have, I will help you as I can. Good luck.
Sent from my SonyX8 using Tapatalk 2
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
JAVA is the most used language to make apps for Android but there are alternatives and the biggest I see is Mono fro Android which uses C# as a programming language
const_char said:
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
Click to expand...
Click to collapse
I second that. Android is mostly designed around C and Java. Even if you code C/C++, you sometimes have to use JNI to call back into Java, because some functionality is only exposed in a Java package, not in native code.
So Java is the best way to make full use of the Android platform, and gives you the best compatibility. Most tools, documentation and other resources are also aimed at Java development.
Java is default android development language
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
you can develop android app with python but maybe your released app size is so big
because your app must statically have python interpreter.
it is not easy stuff, if you have not many experience of android development.
python is not too far from java or c/c++ so it may help anyway, but now you should go to java ...
but the most important is now to know how to use the Android framework
Nowadays, Java is the most useful language to create application for android, but I will prefer mono for C# as a programming language.
yeah...man u should use java it would really help u.....i m 14 i too wanna develop apps...so i learn JAVA it's the best ....
By the way gud luck with ur project
Sent from my IRIS402 using xda app-developers app

[Q] Development of an App?

I need to create an app from scratch for my local school. I have some experience in Python. What do I need to learn and how can I go about making this app?
It also needs to be able to support all types of devices, such as Windows and Apple.
Each platform (android, iOs, WindowsPhone) needs an own app. So you have to code same app three times.
But there are some frameworks like PhoneGap which creates all three apps out of one code.
If you want to use PhoneGap ur App must be coded in Html, & JavaScript.
If you want to code native Apps, you have to use Object-c for iOs, Java for Android and C# or C++ for WindowsPhone.
Regards
I cant program an app in C for Android. I didn't know that.
Sent from my SHV-E300S using xda app-developers app
EmptinessFiller said:
Each platform (android, iOs, WindowsPhone) needs an own app. So you have to code same app three times.
But there are some frameworks like PhoneGap which creates all three apps out of one code.
If you want to use PhoneGap ur App must be coded in Html, & JavaScript.
If you want to code native Apps, you have to use Object-c for iOs, Java for Android and C# or C++ for WindowsPhone.
Regards
Click to expand...
Click to collapse
Which is better to learn? Html or Java? I have plenty of time to learn the language, just need to know where to start. I would moest likely use PhoneGap.
there is no comparison of both the languges but if you are asking for development then you must go with java :thumbup:
Sent from my GT-S5830 using xda app-developers app
Depending of the complexity of the App, the time you have it for delivery it and other factors, you can choose from make a native App or a Hybrid App.
Native App: You need to use the native languague of each platform, which means that you need codify the same app for each platform on their native languge.
Hybrid App: One code for all platforms, in this case you codify the app with web technologies like HTML and JavaScript using frameworks like PhoneGap, Appcelerator and many others you can find in the web.
Other thing that is important when you are choosing between those two approach is that the performance of the native App will be always better, but for simple Apps, the hybrid approach offers a good overall performance.
Best regards!

Writing in C++ for Android

Hello,
I'm looking for an easy way to write android apps in C++. I'm a begineer and I would apriciate a simple, easy to use metod. How can I do it? (Note: I don't know Java).
Regards,
Igor
Anybody?
You should start doing tutorials first if you have no programming experience. There are a lot of good resources available on YouTube. Search for Bucky and C++. Once you get the hang of it, you can try making some simple stuff.
Put coding programs for android to the side for a bit. Just try to master the language of c++. And then figure out how to code the grograms
Maybe you can start by developing with Qt on pc and then progressively switch to their Android framework .
Phurkus said:
Put coding programs for android to the side for a bit. Just try to master the language of c++. And then figure out how to code the grograms
Click to expand...
Click to collapse
Like this person said OP. Just master it first
In addition of what had been say and which is true, if you're targeting Android specifically, you should learn Java.
If you're going to dev, the language is not really important, when you master three language or more, you should be able to quickly master other needed languages. You should also read a bit about Algorithmic and Objects.
hi
First you need to know JNI,How to call function from c on java and opposite and Java is require !!!
go here : qt.io
windows , android , ios , osx , Linux and more
Definitely take a look at JNI. And this https://developer.android.com/tools/sdk/ndk/index.html
Sent from my XT1254
Is there some kinda ebook for it? ?
Dhruvam said:
Is there some kinda ebook for it? ?
Click to expand...
Click to collapse
Probably, there are ebooks for all sorts of things. Just be sure to understand you won't be able to write Android application in C++ (ok, you will be, but the struggle to call JNI won't be worth the effort). So do you want to learn C++ or to write an Android app?

Categories

Resources