Setting up Android SDK with Netbeans or Visual Studio? - android

I'd like to set up Android SDK with Netbeans or Visual Studio 2010. I am coming back to Windows programming after 3 months on Apple iMac (for iPhone programming).
Would somebody be able to explain how to set up the NetBeans environment so I can compile and test Android Apps directly form NetBeans.
I will be testing on a simulator, not a real device. My platform is Windows 7 Ultimate.
Thanks.
EDIT:
nbandroid is proving annoying to set up. It requires platforms. How do I install those?
It seems I can't use Eclipse even if I wanted to. It can't find the Java VM DLL... Help with that is appreciated.

You need to install the Android SDK and a NetBeans plugin called nbandroid. There are lots of instructions here.
I do recommend however using Eclipse because the plugin that you use on that is officially supported by Google, the Netbeans one is community developed I think, and a lot of the tools may be missing (like Allocation Tracker or Emulator controls. I don't know if they are in the netbeans plugin because I haven't used it but I'm guessing you wont have the full range of SDK tools available in the plugin).

Doesn't sound like nbAndroid is your problem. No matter how you develop you need to select the Android target platforms with the AVD Manager from the Android SDK.

You should download the 'ADT' plugin it allows to kickstart android development directly by using the eclipse exe in the zip file

Related

How to run Android Studio Emulator in Windows 10?

I am new to Android Studio and the purpose I use Android Studio is just for the emulator, not to develop apps etc. I am using the latest Android Studio version 3.6. I want to do mobile performance testing on LoadRunner, and I will use Android Studio Emulator instead of real device. The problem now is, I only can run the emulator in the Android Studio apps itself. The performance test tools will need the emulator exe path. May I know if I can run the emulator in a standalone apps? Such as run in Windows in exe file? So far I know, when I downloaded the Android SDK package, it doesn't include the emulator.exe file.
I tried searching and tried the suggested solutions already but not working. May I know what's the problem here?
Using emulation to record mobile applications
You do not have to use Android Studio
I would suggest something like genymotion for personal use.
https://www.genymotion.com/fun-zone/

Xamarin questions

I have a few questions and I'm hoping some people could explain it a bit more.
Recently Xamarin has been released to the public for free and you're able to download/install it for free.
Let me say first that I have Windows 7 and Visual Studio 2015 installed on my computer.
I have succesfully installed Xamarin and the Java/Androids SDKs and got it running.
But now I have the following 'problems':
When opening a new Xamarin Forms project I get the following message:
"A problem was encountered creating the sub project 'Projectname.Windows'. This project requires a Visual Studio update to load. Right-click on the project and choose "Download Update"."
Is this because of my OS?
When opening the new project, the 'ProjectName.UWP (Universal Windows)' subproject always give errormessages on everthing.
Reason?
If I want to run the .IOS subproject, is the only way by connection a IOS device? Is there no emulator for example an Iphone?
Thank you.
It's possible that you don't have the SDK / tooling installed for Windows Phone, so you will have to download the update as described in the error message - this should resolve the problem.
What error messages are you receiving?
You need to connect to a Mac over the network which will allow you to build and debug your apps. You can deploy apps to the iOS Simulator on your Mac, or to an iOS device connected to your Mac, from Visual Studio. For more information on using Xamarin.iOS with Visual Studio, I would suggest the following guide: Introduction to Xamarin.iOS for Visual Studio
Regarding your questions.
1. You should check you updates of the Visual Studio. There are a possibilities that the supporting packages can't locate. The error says that you need to download the updates. Nah, it's not about your OS. If you are done installing the visual studio, then your IDE is working properly. The problem persist is whenever you are lack of updates and packages in the give project.
2. The error could be your pc has no windows emulator to support the UWP to run properly. If you have one, uninstall it and install again.
3. You can use emulator, iOS Emulator but you still need a mac. There's a agreement between microsoft and mac regarding this thing. So far, until now, you can't run iOS simulator in Windows without Mac devices with XCODE
I hope it makes sense.
Answers to your Questions
1. it may be a visual studio update issue, try with latest.
2. i think UWP projects are not supporting with windows 7 OS(correct me if i am wrong), and also try with shared project structure,because portable has some problems with windows 7.
3. Yes currently there is no iOS emulator for Visual studio, if you want to run your app on ios simulator you have to connect your visual studio to Mac machine and then you can run.
Hope this will help
Answering your questions:
1- you might need to upgrade to windows 10. I have solved many issues when I upgraded to Windows 10. VS 2017 works very well with win10.
2- I would definitely recommend downloading the Visual Studio emulator which is a dedicated standalone application that has many emulators. It's much faster and reliable than android emulator. Also it has iPhone and windows emulator too.
3- in order to be able to use iPhone emulator, you must either do:
A) have a Mac device in the network to be able to connect VS with it. And it must have xcode installed on it.
B) you can also do a vmware virtual machine on any windows device and install on it xcode.
For detailed explanation on how tondo the above you can find them on YouTube.
Hope you have more luck.

How to test game created w/ LibGDX and Android Studio on iOS

I have made a game using LibGDX and Android Studio on windows but I want to test it on iOS, I know I need a Mac to do this so I am currently using VirtualBox to emulate this. I have downloaded eclipse but I am having problems importing the project. It is looking for the SDK in the same location as Windows and I presume this is because of the android studio properties files. Anyways, how would I test this game on an iOS device and if it is via eclipse on mac, how can I import my android studio game into eclipse?
THANK YOU!
As far as I know what you are looking for is something like RoboVM. LibGDX supports RoboVM to build apps for iOS. I actually used once on Eclipse but looks like they released a plugin for Android Studio too. Check this out: RoboVM Android Studio Plugin

Cross-platform iOS and Android using Visual Studio 2013

I'm building an app for android and iOS. I have decided to use Xamarin to do this, however my macbook is too slow to run Xamarin Studio efficiently and is having trouble with the iPhone/Android emulators. So I am using my Windows PC with Core i7 and 8gb ram.
I installed Xamarin Studio and noticed there is no option for iOS development.
It seems the only option is to get Visual Studio 2013 and use the "Shared project reference manager" extension instead of the old "Project Linker" extension.
I can't seem to find any tutorials online showing how to set this up and how to create cross-platform apps using this.
Would anyone be able to provide me with a quick explanation on how to set this up so I can do cross-platform development (Android & iOS) on Visual Studio 2013?
Are there any links to tutorials on how to actually create the cross-platform apps this way? I can only find tutorials on Xamarin Studio and the "Project Linker" extension, not the "Shared project reference manager".
Would I be better off getting an older version of Visual Studio and using "Project Linker"?
In most cases there is no significant difference switching from Xamarin Studio to Visual Studio, but Xamarin does maintain some articles specific to VS,
http://developer.xamarin.com/guides/cross-platform/windows/visual-studio/
In order to do iOS development from Visual Studio, you NEED a Mac to act as your build host. Your build host can be a different physical Mac, or alternatively (which works much better in my opinion), use a physical Mac that runs a Windows VM for Visual Studio. Either way, a Mac is required.
http://developer.xamarin.com/guides/ios/getting_started/installation/windows/introduction_to_xamarin_ios_for_visual_studio/

Can I develop for Android Phones and Tablets using the same plugin?

I'm new to mobile development and am a little confused. I've downloaded and installed the Android Eclipse plugin and the JDK.
I want to develop Android tablet apps as well as Android phone apps.
Can I do this with the same plugin? That is to say is development for both devices done through the same Eclipse IDE or do I need something else?
Yes, development for both devices is done through the eclipse IDE.
You will also have to install the SDK Starter Package.
Once this is installed from Android SDK and AVD Manager you will be able to install the platforms you require (in your case SDK 11 for tablet development). See Step 4 on this page.
When you create a new android project in Eclipse you select the version of the SDK you want to develop for. All you have to do is select a version supported by the tablet you want to develop your application for.
Because of the way android works, an application is not developed either for a phone or a tablet, but simply for android. An application written for Andriod 2.2 will for instance run on the Galaxy Tab, with to changes.
uvesten is right. If you want to start programming Android, here is what you need to see https://stackoverflow.com/questions/2869338/where-to-start-to-learn-android
ohh you changed the question title and its description. my answer is not at all true now.

Categories

Resources