Project work among multiple workstations - Android Studio

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.

Related

[Q] Making My Phone Compile Itself: JDK vs Apache Ant, other questions

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.

[Q] WP8 Noob Thinking about switching from android

I am a hardcore Google user. I have an android phone and tablet and lots of google stuff online. My phone is getting old, and I was thinking of trying out something new.
Couple questions:
1. Whats the equivalent of "rooting" on wp8, if any?
2. How would you go about "rooting" your phone.
3. Are there any recommend phones for general use+development?
Julian90090 said:
I am a hardcore Google user. I have an android phone and tablet and lots of google stuff online. My phone is getting old, and I was thinking of trying out something new.
Couple questions:
1. Whats the equivalent of "rooting" on wp8, if any?
2. How would you go about "rooting" your phone.
3. Are there any recommend phones for general use+development?
Click to expand...
Click to collapse
1. There is no equivalent of rooting at this time, as Windows Phone is much more locked down than Android (comparable to iOS) and there aren't as many devs working on it
2. Nothing yet, but its very easy to developer unlock it to side load custom made apps
3. You are probably best off getting a Nokia, either a cheap (~$100) Lumia 520 or a higher end like the Lumia 920/925/928 (I'd go with the 1020 if you can afford it). Windows Phone is very efficient, and runs almost as well on lower end hardware like the 520 as it does on higher end.
If you are really a hardcore Google user you are likely to find Windows Phone lacking as Google is intentionally keeping their programs and services off the platform (at least first party, nearly everything can be accessed through third party apps).
I made the switch, and I love it, but Windows Phone is not for people that want to constantly tweak everything because it is locked down. I used to love to tinker, now I love that I can't.
Yeah... WP7 was eventually broken wide open, but WP8's lockdown has been harder to bypass. There's a few devices (Huawei W1?) for which people have reported being able to edit the stock ROM somewhat, which is probably usable for "rooting" the phone, but none of the high-end devices have a known working exploit yet.
Developer-unlock, which will allow sideloading low-permission (no special capabilities, just the standard public ones) apps, is available for free, but you have to use PC tools to do it. Get the WP8 SDK from Microsoft (free, but a big download) and run the Windows Phone Developer Registration tool. Unless you pay for a developer account, there will be a very low limit on the number of apps you can sideload.
I'm actually personally pretty happy with the Samsung ATIV S phones; they have the best hardware in many ways (biggest battery, biggest and nearly highest-resolution displays, biggest internal storage that also has an SD card slot, best currently-available-in-WP8 CPUs) and you can install many of the Nokia apps anyhow (you can also install the Samsung apps on Nokia phones, same for HTC, etc.) using a proxy to modify the store requests. However, for a budget phone, the Nokia Lumia 52x line is hard to beat, and for camera quality, the Lumia 1020 is the best smartphone available, bar none.
There's plenty to do if you like to tinker with the phone... the problem is, you have to find it all yourself. There's not that much, aside from things like using a proxy to get apps intended for different OEMs' phones, that we've found to work so far. I've written a neat app that lets you browse the visible parts of the WP8 file system and registry from your PC (see my signature, it's the webserver app) which I hope will help people find something exploitable to get full Admin privileges on the phone, but so far, that hasn't happened. There's lots of other potential exploit vectors too; people just need to find them and make them usable!
Like GoodDayToDie said, it's NOT rootable. End of story.
As an experience goes, though, I switched iOS -> Android earlier this year because I was firmly in camp Google. I seemed to have problems that most other users did not, but all in all it was a miserable experience. After about 4mo switched to WP8.
For reference, on the phone; I use Google Maps, Google Voice, GMail, Contacts, Calendar, and search.
Contacts, Calendar, and mail all sync smoothly with built-in stuff. Search is an app, and it can't take Bing's place on the search button.
There's not an official Google Maps app, but there are apps in the Store that offer it. After about 6w now, I'm mostly using Nokia's Here stuff for mapping though.
Google Voice is available as a third party app. I was using Metrotalk. It was better than GV on iOS but inferior to GV on Android.
For what it's worth.
Except, you know, the part where it's nothing at all like a desktop OS.
No support for arbitrary applications or running as Admin. No file browser or registry editor. No command prompt or built-in scripting engine. No third-party background services (officially, at least; unofficially it's possible if you can work with the low permissions) or multiple windows at once. No task manager or management console. No device manager or third-party drivers. No user installer or recovery tools. No way to uninstall updates or make disk backups. No way to pass a file directly to another application (it must go through a registered extension handler, which the other app must be selected as the handler for). No multi-user support. None of the standard Windows power management tools. No OpenGL support, or ability to manually update the drivers. No support for external mice (or really for any mice, properly speaking). No support for USB host mode (that I can see, at least not in the base OS). No support for Windows networking or VPNs. No (built-in) support for remote desktop. No printing. The included version of Office is very limited compared to the full thing. No way to change the default web browser, email client, or several other such things. No support for installing new system media codecs or fonts. No way to choose what store a certificate is saved into, to export a saved cert, or to delete a saved cert.Browser has a limit of six tabs, no Flashplayer, and no Tracking Protection [Lists] feature.
Windows Phone 8 has about as much to do with Windows 8 as Android has to do with Ubuntu. In fact, it has significantly less, from the user's perspective.
some Noob's experience with WP8/ Nokia 928
Some other problemsthat i have stumbled on while trying WP8 for past 2 days, Nokia 928.
1. Ringtones and txt messages are changeable but notifications sounds for other programs are not (i.e. metrotalk - client)
2. Using public wifi that requires a comfirmatory click on their acceptable use page - Broken - works first time for me, then every time after it constantly loads up "w w w.msftncsi.com/nsci.txt" and the phone is constantly asking if I want to continue connecting to that wifi hotspot - Annoying.
3. Internet explorer is the builtin browser ( with some 3rd party UC browser, Surfcube 3D browser) but NO chrome nor firefox, - some pages load weird, especially if you choose desktop mode.
Images that appears in the browser search in IE 10 or UC browser, using bing or google comes back blurry, until you choose to open that one pic in full size image , but then you can't scroll through the result of images until you go back, at which time the images will sometimes not load, mind you this is on wifi.
4. No native Google voice apps - Metrotalk is good but you have to go through some hoops to setup push notification (ie having the app be able to notify you of txt and voicemail without actually having that app open), and you can't change the notification sound of Metrotalk as stated above
5. No file browsers
As I said, this is my experience with the phone and WP8 for the last 2 days, YMMV

Can I use Android Studio with libgdx?

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

Accessing Notes on PC

Hi Community,
does anyone have a idea how to access my notes taken with the notes app on my PC? I have setup syncing with my Samsung account but cannot find a web application. The Win10 notes app in the MS store is not compatible with my Dell. Ideas?
Thanks much
You can in a limited way, by sharing them as PDF.
I installed s-note and enabled sharing with evernote. That way I can use my webbased or pc based evernote app to access my apps on all my computers. I went back and forth with other apps and found this to be the easiest way. I also have a surface book with which I take notes and tried onenote for a while, but came back to evernote.
Google Keep would probably be the easiest solution. DL notebuddy and set it to auto-launch keep instead of stock app. I've been very satisfied with this setup.
Fast-T said:
Hi Community,
does anyone have a idea how to access my notes taken with the notes app on my PC? I have setup syncing with my Samsung account but cannot find a web application. The Win10 notes app in the MS store is not compatible with my Dell. Ideas?
Thanks much
Click to expand...
Click to collapse
Share and send to email
Sent from my SM-N950U using Tapatalk
tacticalhillbilly said:
Google Keep would probably be the easiest solution. DL notebuddy and set it to auto-launch keep instead of stock app. I've been very satisfied with this setup.
Click to expand...
Click to collapse
I find onenote to be very good for syncing between different devices (i have a laptop, an android tablet and the note 8, not to mention guest login to various other devices), it seamlessly syncs so no need to be messing around with exporting and importing data, it's free and the PC version can OCR your scribbles too. Its free (even the desktop version which is miles better than the metro version), only downside is you need a live account.
SteelPicori said:
I find onenote to be very good for syncing between different devices (i have a laptop, an android tablet and the note 8, not to mention guest login to various other devices), it seamlessly syncs so no need to be messing around with exporting and importing data, it's free and the PC version can OCR your scribbles too. Its free (even the desktop version which is miles better than the metro version), only downside is you need a live account.
Click to expand...
Click to collapse
I use OneNote for now but really like the Samsung Note app in terms of features. I often run I to situations where I accidentally touch the screen with my palm and OneNote is very sensitive to that. I end up in looking where I was noting things down. It's a distraction since I take a lot of notes during meetings. Samsung notes also let's me easily rearrange parts of my notes. I always keep action items on top so I see what still needs to be done in the notes overview screen.They expand while I add items and my notes move down along with that. It's the little things I guess.
Sent from my SM-N950U using Tapatalk
Fast-T said:
I use OneNote for now but really like the Samsung Note app in terms of features. I often run I to situations where I accidentally touch the screen with my palm and OneNote is very sensitive to that. I end up in looking where I was noting things down. It's a distraction since I take a lot of notes during meetings. Samsung notes also let's me easily rearrange parts of my notes. I always keep action items on top so I see what still needs to be done in the notes overview screen.They expand while I add items and my notes move down along with that. It's the little things I guess.
Sent from my SM-N950U using Tapatalk
Click to expand...
Click to collapse
I always find the palm rejection quite good, but you are right the composition and inking ability on the android version is frustrating, i just wished they would bring the android version closer in line with the desktop version (which does want your asking plus more), ultimately i end up cleaning up my notes on the PC version.
My workaround for the time being to use SideSync and access my Samsung notes via PC and a USB cable. A little cumbersome in setup but I can write directly into Samsung Notes. I just wish there would be clipboard sharing between my PC and the SideSync app.
Sent from my SM-N950U using Tapatalk
Google Keep usage instead of Samsung notes
johnwayne27 said:
Share and send to email
Sent from my SM-N950U using Tapatalk
Click to expand...
Click to collapse
HI, I am a fan of google keep, however, it has become so unstable that it crashes on all my devices in the middle of my work, only on my tablet works better, it too crashes but less frequently. I have tried all forums, could not find the answer except for rolling back, then I have stop autoupdate for all apps :crying:
Hi anyone still looking to do this
I've just found that Samsung Notes in the Windows Store works now
Finally I'm a happy man this was driving me nuts, no idea why it took them so long to sort it
Samsung Notes on Win 10
Fast-T said:
Hi Community,
does anyone have a idea how to access my notes taken with the notes app on my PC? I have setup syncing with my Samsung account but cannot find a web application. The Win10 notes app in the MS store is not compatible with my Dell. Ideas?
Thanks much
Click to expand...
Click to collapse
I have the same problem. It says Samsung notes for Win 10 and available on PC (among others). My build is much later than the minimum required - I have green ticks against all the requirements. Then it says "Not compatible with my device"!!!!!!!!!!!!!!!!!!
Hope someone who built the thing sees this and puts it right!
Seadart said:
I have the same problem. It says Samsung notes for Win 10 and available on PC (among others). My build is much later than the minimum required - I have green ticks against all the requirements. Then it says "Not compatible with my device"!!!!!!!!!!!!!!!!!!
Hope someone who built the thing sees this and puts it right!
Click to expand...
Click to collapse
I tired a few days ago and cannot install in it on my surfacebook or surface pro 3 and even the latest surface pro
I think it might just be meant for samsung laptops ???
Edit : I just tried on my old acer and voila it installs... Holy sh*t
Edit: Oops got it wrong.. It was S note and not samsung notes... Samsung notes need Arm architecture... Most of the pc's are intel based.
Samsung Notes does not need ARM, as it works perfectly on my Notebook 9 Pro, which has Intel processor...
OnnoJ said:
Samsung Notes does not need ARM, as it works perfectly on my Notebook 9 Pro, which has Intel processor...
Click to expand...
Click to collapse
I was looking at the requirement for the app in Microsoft store and for Samsung Notes it says ARM only...
S Note on the other hand needs x86 or x64
Are sure it is Samsung note and not s note?
Edit : it may be that it is a Samsung laptop... So I guess they can bypass the requirement
Sent from my SM-N950F using Tapatalk

[WP 8.1] HERE Maps Collections No Longer Sync on Lumia 822

Device: Nokia Lumia 822
OS: Windows Phone 8.1
HERE Maps: 3.14.186.1
HERE Drive: 4.9.216.1
Map Data: 8.30.116.157
I have not been able to sync my collections (bookmarked GPS points) within either HERE Maps or HERE Drive for 40 months now.
I am continuing to use the device as a dedicated satnav for vehicles because it is still capable of downloading the latest map data for these apps. However, I suspect the HERE.com sync API has since changed, leaving the sync API requests from my device, deprecated.
I've tried signing out and back in on all the available accounts but this does not resolve the syncing issue.
I've contacted HERE but had no response.
I want to retrieve all collections that have been saved the last sync to HERE.com. I'm assuming that those collections are saved within a file in the app directory. I would hope to migrate these saved collections to a more modern (Android) device, where they can be imported into a later version of the HERE Maps app to sync up to HERE.com.
I have heard of the Windows Phone Internals app which roots the device and gives the user more control, but I would like to know beforehand whether this will aid me in retrieving said collections. I was hoping WP users with more experience of WP internals or successfully retrieving HERE collections from an old Lumia device could provide some advice on how to achieve this.
*bump*
Maybe this is in the wrong thread topic. Maybe Windows Phone 8 General ?
Perhaps I can rephrase the question - will installing WP internals give me access to the file(s) that contain the HERE Maps collections stored locally on the device?
Maybe then I can copy these files to another, more modern device that has HERE Maps installed in the hope it could re-import them.
fdl_chris said:
*bump*
Maybe this is in the wrong thread topic. Maybe Windows Phone 8 General ?
Perhaps I can rephrase the question - will installing WP internals give me access to the file(s) that contain the HERE Maps collections stored locally on the device?
Maybe then I can copy these files to another, more modern device that has HERE Maps installed in the hope it could re-import them.
Click to expand...
Click to collapse
Hi, i noticed this issue recently. wpinternals 2.8 can switch to mass mode. I advise you to search in the Data partition then in /data/users/defapps/{31BB...}

Categories

Resources