Can I open the android version of a libgdx project inside android studio and make my game from there or do I have to use another java IDE like eclipse??
har88 said:
Can I open the android version of a libgdx project inside android studio and make my game from there or do I have to use another java IDE like eclipse??
Click to expand...
Click to collapse
You can use Android Studio to open Libgdx projects, yes. In the future, you could just try it.
Thanks.
Also, how do I use the normal android APIs inside the Game.java file?
(Specifically, I want to use the Log API)
EDIT:
I think I wasn't clear enough so I'll reword my question.
All the Game logic is done in the core, platform independent java class.
But I want to get messages on logcat about various events and methods etc.
How do I import those classes into the core class?
deleted
Related
I'm undertaking a stupid project and would like to ask some questions of some more experienced developers. Yes I know there's no practical reason for this, and no you cannot talk me out of it.
I would like to create a sort of "super nerd" adaptation of CyanogenMod for command line Linux junkies, or at least for Comp Sci grad students like myself. I want my phone to be able to recompile and reinstall nearly everything it runs. Yes I know that's a painful and slow operation: I did "emerge tightvnc" on a chroot Gentoo install and the command took about 18 hours. I remain undeterred.
Questions:
Sun JDK is apparently not available for arm7a. Am I reading the docs correctly, and one can indeed use Apache Ant to compile Android? Or is Ant not what I think it is? I'm not opposed to creating a small Bochs VM that boots, mounts a network filesystem, executes some JDK task, and then signals to terminate. I'd rather not if I can help it though.
How much access does the radio hardware get to the rest of the system? If I were to store something personal in an encrypted loopback partition, could someone abuse direct memory access to read from memory without the host OS knowing about it?
Has anyone played with adapting the Android boot process to use System V type init scripts? I'd like to make it easy for Tasker to say "we're running out of memory -- go from init level 5 to something arbitrary, say 7, which stops some services. Oops, still low, go init level 8, which disables more services.
I definitely plan on sharing my work. What do you guys think of the name CyanoGentoo?
Thanks all.
Apparently Apache Ant is not what I thought it is.
How about this then: does anyone know where I might find a community for people interested in general purpose computing on an Android phone?
Michael Spencer said:
Apparently Apache Ant is not what I thought it is.
How about this then: does anyone know where I might find a community for people interested in general purpose computing on an Android phone?
Click to expand...
Click to collapse
Don't know if you're still around but I'm very interested in helping and believe I may already have some solutions for you. If you're still running chroot or another form of ARM Linux distro (Debian based is what I'm coding for at the moment) then check my github
https://github.com/S0AndS0/Debian-Kit-Mods
The readme file has directions on how to clone and run the main modding script which curently has at least one if not two options that'll peek your interest for sure.
One set of options will download and install Java's JDK (either hard float or soft float) and another will download and install jMonkey (a user friendly programing SDK built on eclips) which will get you one step closer to compiling things on an Android device for Android devices. However, I've yet to crack running "Android SDK" because they have yet to reliece an ARM compatible source and "wine" (a Linux package for emulating other CPU's) is still under heavy development, so building Android from source and such is still out of the scope of what I've been able to script up for easy use.
On a side note; a quick google search of my user name and the key words guide, linux, jdk, arm and xda will result in links of what I've written up on enteracting with Linux on Android if you get stuck anywhere.
And if you search "raspberry pi android adb similar:xda" you'll find what I'll likely be working on bringing to Android; after debugging the script I'm working on to set up a Brendle (one of many methods of "cloud computing" availible for ARM) node/network through all availible network interfaces (bluetooth, 3G/4G, wifi) on Android.
Sent from my SPH-D700 using xda app-developers app
I am still around, and when I get a chance I'll take a look. I think I'm mostly satisfied with AIDE and chroot Ubuntu.
And those worried about dma exploits via radio hardware need only use a wifi-only device with a portable hotspot, I've concluded. No way to prevent these exploits otherwise.
Thanks again.
Michael Spencer said:
I am still around, and when I get a chance I'll take a look. I think I'm mostly satisfied with AIDE and chroot Ubuntu.
And those worried about dma exploits via radio hardware need only use a wifi-only device with a portable hotspot, I've concluded. No way to prevent these exploits otherwise.
Thanks again.
Click to expand...
Click to collapse
Indeed AIDE has been a fantastic tool for me as well.
Heh dma was indeed a concern of mine among other security issues with running Linux over 3/4G but its to bad there's no solution yet. I'm using old phones and tablets for most tests but try as I might I can't break into them from out side my hotspot network... even though I can connect to the divice running the hotspot remotely if it is running Linux too.
hmm, I'm working on a new script of examples for networking now, lots of building blocks to my latest project, which may help new scripters with some networking tedium of finding and assigning specific IP's to variables so they can be shared or saved or modified into other commands quickly. This will upon compleation will be one of the references for other scripts I'm working on for getting openstack and MPI running on multiple devices swiftly.
Speaking of MPI; the installer for Bramble on Android now works (install option 2 within for Debian Kit users) for getting that software package installed and all that is left to work on is the setup for machine files and sshkeys for multi-node quick set-up.
Two questions; seeing as how you have AIDE, perhaps you might be able to help with my other project that I'm working on? I've another github repo where I'm working to incorporate a; soft/hard float Linux installer, terminal emulator, rdp/vnc client, scripter, and forwarding of Linux GUI to a second device and/or Chromecast of a specific desktop or Linux window with x11... Currently stuck on the terminal but still very new to Java for Android.
or because that's a bit much to ask; perhaps some help with Android scripting for installing Linux on Android that uses Debian Kit's methods to provide hard float or soft float?
I'll be around and have modified my sig for easier tracking and will be pushing more updates to github today, hopefully by the end of the day have a sshkey passer script for quickly setting up passwordless remote login. After that will be some work on setting up bridges between USB, Bluetooth, Wifi, and any other network interface available for faster transfer of large data sets.
Edit 03192014
Michael Spencer said:
Has anyone played with adapting the Android boot process to use System V type init scripts? I'd like to make it easy for Tasker to say "we're running out of memory -- go from init level 5 to something arbitrary, say 7, which stops some services. Oops, still low, go init level 8, which disables more services.
Click to expand...
Click to collapse
Check out the Debian Kit app, from what I have found it exposes all of the Linux processes and file system to Android and if running as root user on Linux then the full Android file system is exposed too. Debian Kit doesn't use chroot to run Linux so it's "possible" to run a chroot environment at the same time. And running "ps" commands on Android or Linux terminals, produce nearly identical output, of both Linux and Android processes happily running meaning that if Tasker can't see these processes then a script can run the "ps" command and run a command to shut down Linux processes; likely it's a bit more complex because re-starting those services or even suspending some could cause un-wanted behavior. Still though with testing and time it is possible to have the memory better managed.
Update 03312014- Back on making your phone compile itself subject; I'm working on using(/scripting an installer for) OpenStack on Android, which has QEMU for emulating CPU processors which will eventually allow us to install Android SDK on Android(s) running Linux. I'm using OpenStack because to emulate a normal PC processor one even a quad core ARM processor is really slow (use to be an app for this called Limbo PC emulator but last I searched the market place this app was gone) so using OpenStack will allow us to throw what ever extra Android phones into a pool of sharable CPU power; essentially I'll be creating a 7 or 8 (virtual) core processor out of networked Android phones and then emulate a 2 or 4 core x86 processor within and install the tool kits for android that have CPU requirements.
I've other plans for OpenStack too but those will require that I incorporate mesh networking and google translate. So that users anywhere can build a cloud of shared processing power.
Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro
Linux Install guide for Android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Or
https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
And my script pack for installing; Java's JDK, node.js and more to your Linux OS
https://github.com/S0AndS0/Debian-Kit-Mods
Note: if you're new to Linux/scripting/command line; check readme file for instructions.
http://www.timelesssky.com/blog/building-android-sdk-build-tools-aapt-for-debian-arm
http://www.timelesssky.com/blog/develop-app-on-android-with-android-sdk
Hey all found the ^answer^ if you've not already found this blog then you all are in for a treat dig around on that above site and you'll find some other really cool stuff for Linux Android systems.
Sent from: SPH-D700 or myTouch3Gs or Sero 7 Pro
Linux Install guide for Android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Or
https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
And my script pack for installing; Java's JDK, node.js and more to your Linux OS
https://github.com/S0AndS0/Debian-Kit-Mods
Note: if you're new to Linux/scripting/command line; check readme file for instructions.
Hello, I need to encrypt a string with a public key (or certificate) obtained from a REST service. I have these in base64 format. The question is: how can I do on Windows Phone 8.1? There's no X509Certificate, X509Certificate2 or RsaCryptoServiceProvider available..
I'm using Visual Studio 2013 Update 2..
diego.stamigni said:
Hello, I need to encrypt a string with a public key (or certificate) obtained from a REST service. I have these in base64 format. The question is: how can I do on Windows Phone 8.1? There's no X509Certificate, X509Certificate2 or RsaCryptoServiceProvider available..
I'm using Visual Studio 2013 Update 2..
Click to expand...
Click to collapse
I think you are now using non-Silverlight apps in visual studio.
Try Silverlight application
ngame said:
I think you are now using non-Silverlight apps in visual studio.
Try Silverlight application
Click to expand...
Click to collapse
Yep but I'm developing a universal library. I'll probably try Bouncy Castle (PCL) in order to do what I need.
Universal libraries are extremely crippled. Many features are unavailable for universal libs, even things that can be done (in different ways) across all the different platforms you are targeting.
BouncyCastle is a decent option though, as long as you don't need native performance.
Hi, I just started college (software engineering).
I'm interested in learning Android Programming, more specifically the XPOSED stuff. (Not really interested in making apps for the PlayStore yet)
I would like to contribute to fixing XPOSED each time a new version of android is released.
After a quick google search, it seems I would have to learn: SDK stuff, ADB, Java, Github before I can even get close to coding for XPOSED .
At the moment I know nothing besides some basic Java that is being taught in college.
It seems I will have to use online video tutorials(e.g Lynda, YouTube) and PDFs for self-learning.
Can you guys suggest some resources or a recommended path: Numbered learning order from where to start and what to move on to next and so on, so that I can get to the XPOSED related stuff as soon as possible ?
If you want to learn github and adb, you are barking up the wrong tree. They aren't programming languages, and for that matter neither is an sdk. Maybe wait till you graduate before trying your hand at this...
It might be good to start with a POSIX-type operating system, like Linux or Unix or BSD, as well as Java. I like C and/or C++ as well, but it may not directly apply.
Hi everyone,
I'm studying Java and Android Development and would like to be able to pick up where I've left off when going from laptop to desktop and back. For instance with note taking I use Evernote which keeps the notes in sync between the two. Is there a way to continuously sync code in projects in Android Studio between the two machines?
Thanks
RipStorm said:
Hi everyone,
I'm studying Java and Android Development and would like to be able to pick up where I've left off when going from laptop to desktop and back. For instance with note taking I use Evernote which keeps the notes in sync between the two. Is there a way to continuously sync code in projects in Android Studio between the two machines?
Thanks
Click to expand...
Click to collapse
I just thought about it, I guess it's possible to switch the storage location of Google drive. So may try that so that the location on each machine is exactly the same. I know the filepath differences can cause some issues but if I put them in a root folder with the same name on both machines that might work...
You may try with services like Dropbox or Google Drive, but I think the best option would be to use version control system like GIT. It will not automaticly sync your code, but it gives a great control of code, possibility to revert older versions etc. Also it's fully supported by Android Studio.
Hi, i am currently developing a back-end for my android app in PHP and i need somewhere to test it and deploy it. Is there somewhere i can test my back-end for free? I am willing to rewrite it in a other language if necessary. I have looked at app engine, AWS and azure but i do not have a credit card of my own.
Any suggestions?
Running and testing API backends locally
To test the backend, you'll use the API Explorer, which is a tool that lets you test APIs interactively without using a client app. This tool is automatically run for you when you navigate to your backend API's subdirectory /_ah/api/explorer as we'll describe in the instructions below.
for more information plz follow this link -> https://cloud.google.com/appengine/docs/java/endpoints/test_deploy
damponting44 said:
Running and testing API backends locally
To test the backend, you'll use the API Explorer, which is a tool that lets you test APIs interactively without using a client app. This tool is automatically run for you when you navigate to your backend API's subdirectory /_ah/api/explorer as we'll describe in the instructions below.
for more information plz follow this link -> https://cloud.google.com/appengine/docs/java/endpoints/test_deploy
Click to expand...
Click to collapse
Thank you! Do i need to be enrolled with app engine to use it?
Adding an App Engine Java Servlet Modulec -
This page shows you how to add an App Engine Java Servlet module to your project in Android Studio.
To add the module:
Start Android Studio and open the project for the Android app that needs the new backend.
If you have not installed Android Studio or set up your environment yet, see the Quickstart for details.
Right-click on your project and select New > Module.
Select Google Cloud Module from the list and then click Next.
Select App Engine Java Servlet Module, and then supply the remaining information in the New Google Cloud Module form:
Enter module parameters
Supply a module name for your backend; this name will be displayed and used in your Android Studio project.
Supply a package name. This package name will be used for all classes imported from this template.
Select the client module (containing your Android app) in this project. This module will be automatically set up to have the right compile and build dependencies to be able to call your newly generated backend.
Click Finish to generate the new backend.
Select Tools > Android > Sync Project with Gradle Files to sync the project.
scottyaim said:
Hi, i am currently developing a back-end for my android app in PHP and i need somewhere to test it and deploy it. Is there somewhere i can test my back-end for free? I am willing to rewrite it in a other language if necessary. I have looked at app engine, AWS and azure but i do not have a credit card of my own.
Any suggestions?
Click to expand...
Click to collapse
Hello, I have recently added a few features for Webhook Relay com project (google it, don't want to post link) such as bidirectional tunnels for exactly this reason - test your application backend without deploying. You can just spin up a java/php/python/go/whatever server on your laptop and use relay agent to expose it to the internet. I hope it helps.