[Q] Programing on Android - Android Q&A, Help & Troubleshooting

Is there any android app that can compile and especially debug C/C++ code? Thanks in advice
I have a Nexus 7 16 GB Wi-Fi if that helps and I also used C4droid but there is no debugger

Normally what people do is to use a simulator, it is much easier as you can debug and run on computer instead of the small phone.

albertjk3 said:
Normally what people do is to use a simulator, it is much easier as you can debug and run on computer instead of the small phone.
Click to expand...
Click to collapse
Ye I suppose. But I don't want to buy a laptop for work and I work just great on nexus and it would be awesome if there is. I heard that coderun.com has a debugger but it doesn't have C/C++.

valiro21 said:
Ye I suppose. But I don't want to buy a laptop for work and I work just great on nexus and it would be awesome if there is. I heard that coderun.com has a debugger but it doesn't have C/C++.
Click to expand...
Click to collapse
Check out my project, just load Linux within Android and then you have access to your normal C/C++ compilers and tools

you can use DosBox Turbo.... its a msdos emulator...
you can run the Turbo C++ inside it...
I've been using it until now..
it just like ur using a pc... XD

Related

[Q] How to display my Android screen on PC

My project group for our senior project is developing an Android app. We are pretty much done at this point, but we have to present our app on Friday. We have done a practice presentation with a demo on the emulator, but we would like to present it on my phone.
I was wondering what is the best/easiest way to put my Android display on a PC so we can do our presentation on my phone the way it was meant to be shown.
So it would be my phone connected to a laptop, laptop connected to projector, and laptop displaying my phone's display on the projector.
This way we can also use our GPS location and use the app to take pictures which are both important parts of our presentation.
Do you have a HDMI out port on your Android device? That would work nicely.
remote desktop android apps on market
mini_robot said:
remote desktop android apps on market
Click to expand...
Click to collapse
Any examples?
And no HDMI port, its a Droid 2.
Since you said you are developing apps, i assume you've done so using eclipse, and if not
then download it. install ADT plugin, make a bogus project,
OR if you already are working in eclipse, open your project, deploy on phone using Ctrl+F11 when your phone is in Debugging mode with ADB daemon running, open DDMS window in eclipse, on the top bar click on "Device" and then on capture screen.
oops, sorry thought you just needed pics for presentation. Remote ADB is your only way then
iDisplay. It works on Mac and PC according to there description. It cost $4.99 though...
Sent from my ADR6300 using Tapatalk
Rick_1995 said:
Since you said you are developing apps, i assume you've done so using eclipse, and if not
then download it. install ADT plugin, make a bogus project,
OR if you already are working in eclipse, open your project, deploy on phone using Ctrl+F11 when your phone is in Debugging mode with ADB daemon running, open DDMS window in eclipse, on the top bar click on "Device" and then on capture screen.
oops, sorry thought you just needed pics for presentation. Remote ADB is your only way then
Click to expand...
Click to collapse
Can you elaborate on Remote ADB? Thanks!
http://code.google.com/p/androidscreencast/
works pretty well, a little choppy but doesn't require any special apps.
billygoat32 said:
http://code.google.com/p/androidscreencast/
works pretty well, a little choppy but doesn't require any special apps.
Click to expand...
Click to collapse
Is this for PC or can it be used in Ubuntu also?
Sent from my ADR6300 using Tapatalk
I would say webkey is the best way to go. Its pretty amazing. Search it on the market
billygoat32 said:
http://code.google.com/p/androidscreencast/
works pretty well, a little choppy but doesn't require any special apps.
Click to expand...
Click to collapse
yep this works great, thanks!
eddysamson said:
yep this works great, thanks!
Click to expand...
Click to collapse
Cant even figure out how to get this installed.
Running Ubuntu. :/
http://forum.xda-developers.com/showthread.php?t=710805
This is VNC for android...best app so far for having the screen displayed on the pc.
Use this link to get VNC working over USB: http://forum.xda-developers.com/showthread.php?t=1005516
Greets
Rasa11 said:
Cant even figure out how to get this installed.
Running Ubuntu. :/
Click to expand...
Click to collapse
You don't need to install anything, it's just a java jar (executable)
regaw_leinad said:
You don't need to install anything, it's just a java jar (executable)
Click to expand...
Click to collapse
ohh duh! haha, thanks man.
I think USB data is the way. first the connect your android phone and your pc via USB data cable.
Android Development
Step by Step Process on how to Display (or Mirror) an Android Device Screen on PC
If you are in mobile app related business, you would have felt the need to display your phone/tablet screen on PC, especially when you wanted to give some presentation to clients.
Click here to see how to Display (or Mirror) an Android Device Screen on PC (No Root)
dmzilla.com/2014/07/21/how-to-display-or-mirror-an-android-device-screen-on-pc-no-root/
eddysamson said:
My project group for our senior project is developing an Android app. We are pretty much done at this point, but we have to present our app on Friday. We have done a practice presentation with a demo on the emulator, but we would like to present it on my phone.
I was wondering what is the best/easiest way to put my Android display on a PC so we can do our presentation on my phone the way it was meant to be shown.
So it would be my phone connected to a laptop, laptop connected to projector, and laptop displaying my phone's display on the projector.
This way we can also use our GPS location and use the app to take pictures which are both important parts of our presentation.
Click to expand...
Click to collapse
wildstang83 said:
iDisplay. It works on Mac and PC according to there description. It cost $4.99 though...
Sent from my ADR6300 using Tapatalk
Click to expand...
Click to collapse
Afaik the idisplay was meant to migrate your pc's entire screen onto your Android phones display?wasnt?
as an alternative monitor i say
i remember my LG p970 having a PC app called ' LG on screen phone '(LG OSP) that since i was(am) #### about Smartphones networking solutions, i tried installing it on my low-end toshiba laptop, and it was damn OK and working like a charm likely with 30Fps or more.
then after i ve tried many cross-platform apps like mobo made one for my Htc and sony devices,and neither of them could saticfy me with their stupid qiualities and low frame rate.
i yet have that application. But the question is whether can a dev handle some modification on it to be use on any kinda android devices?
huh... devs are asleep..

Linux explanation.

I want to install a Linux OS on my pc but last time I did I bricked it, but eventually got a Ubuntu version to work. Is operating it similar to adb for our device? Last time I recall I couldnt even install flash because it involved folder creations and command prompt. Im really interested in it but im not cmd friendly but am willing to learn.
I Haz 3D!
I want to learn as well, the first step would be to forcing yourself to use Ubuntu for your every day use. slowly you will get into the command prompts. also buy a book and read it, like linux for dummies
Its a little difficult at first. Once you find an app to install, most have a command prompt to just copy and past in the terminal. If not, you can usually find it in the Ubuntu software center. I've been using Ubuntu 11.04 since it came out and finally just completely got rid of Windows on my laptop. Only thing I can't figure out how to do is get my webcam working on Linux, lol.
Sent from my PG86100 using XDA Premium App
jayharper08 said:
Its a little difficult at first. Once you find an app to install, most have a command prompt to just copy and past in the terminal. If not, you can usually find it in the Ubuntu software center. I've been using Ubuntu 11.04 since it came out and finally just completely got rid of Windows on my laptop. Only thing I can't figure out how to do is get my webcam working on Linux, lol.
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
Im installing that through wubi and seeing if I will be able to understand it a little bit.
I Haz 3D!
knowledge561 said:
Im installing that through wubi and seeing if I will be able to understand it a little bit.
I Haz 3D!
Click to expand...
Click to collapse
Yea that is the way to go. Only thing I can really say I truly miss is Netflix. You can run it with a VB but it runs my 4 yr old comp hot :/
Sent from my PG86100 using XDA Premium App
jayharper08 said:
Its a little difficult at first. Once you find an app to install, most have a command prompt to just copy and past in the terminal. If not, you can usually find it in the Ubuntu software center. I've been using Ubuntu 11.04 since it came out and finally just completely got rid of Windows on my laptop. Only thing I can't figure out how to do is get my webcam working on Linux, lol.
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
Hey jay, what's up man. What are you having trouble doing with your webcam? I'm also on natty and haven't had trouble with the webcam. It works fine with Skype. I had to install an app, I think its called say cheese photo booth or something like that, in order to use the web cam for taking self photos and what not. When I get home I'll see what that program is called.
Sent from my PG86100 using XDA App
Lol any linux distro has nothing to do with adb at all; adb is only relevant to your android phone.
Installing Ubuntu will be fine. I suggest you use 10.04 since it is a long-term release meaning it's quite stable and is backed up by a large number of users. You won't run into as many problems on 10.04 as on 10.10, 11.04 or 11.10.
Installing programs are simple and I love the way it works. Ubuntu uses aptitude, a system that searches repositories for your package name. The big and important repositories already come bundled into your default desktop but you could always add more if a specific program you're looking for is in a certain repository that you don't already have saved.
So if you're looking for Skype, you open a terminal and type sudo apt-get install skype, and it automatically downloads it for you. If you don't like that, you can use a graphical user-interface through the Ubuntu Software Center, or go to www.skype.com and download the .deb package (which, once downloaded, you just double click it and it installs automatically).
It won't be hard to adjust if all of your drivers work fine under Ubuntu, but I'm telling you, I strongly suggest going with 10.04 no matter what anybody else says.
k2buckley said:
Hey jay, what's up man. What are you having trouble doing with your webcam? I'm also on natty and haven't had trouble with the webcam. It works fine with Skype. I had to install an app, I think its called say cheese photo booth or something like that, in order to use the web cam for taking self photos and what not. When I get home I'll see what that program is called.
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
How ya been Kyle? Ya I ran that cheese app but it still couldn't locate it. Got my driver list and can't even find the right device driver for it. Like it's not even there :/ I haven't tried Skype, but I tried a couple others, including hangout from Google+ and still no luck. I've searched for about 3 hrs and gave all kind of command prompts and finally just gave up, lol.
Sent from my PG86100 using XDA Premium App
armoguy94 said:
Lol any linux distro has nothing to do with adb at all; adb is only relevant to your android phone.
Installing Ubuntu will be fine. I suggest you use 10.04 since it is a long-term release meaning it's quite stable and is backed up by a large number of users. You won't run into as many problems on 10.04 as on 10.10, 11.04 or 11.10.
Installing programs are simple and I love the way it works. Ubuntu uses aptitude, a system that searches repositories for your package name. The big and important repositories already come bundled into your default desktop but you could always add more if a specific program you're looking for is in a certain repository that you don't already have saved.
So if you're looking for Skype, you open a terminal and type sudo apt-get install skype, and it automatically downloads it for you. If you don't like that, you can use a graphical user-interface through the Ubuntu Software Center, or go to www.skype.com and download the .deb package (which, once downloaded, you just double click it and it installs automatically).
It won't be hard to adjust if all of your drivers work fine under Ubuntu, but I'm telling you, I strongly suggest going with 10.04 no matter what anybody else says.
Click to expand...
Click to collapse
This is what I should have done. I ran 10.04 for a while and loved it. Everything worked perfect. Then erase my hard drive, start over, and downloaded Natty. I've gone too far and installed too much stuff to start back over tho, lol.
Sent from my PG86100 using XDA Premium App
So I installed it thru wubi and I cant even boot into it because it says my password is incorrect. Talk about brilliant.
I Haz 3D!
knowledge561 said:
So I installed it thru wubi and I cant even boot into it because it says my password is incorrect. Talk about brilliant.
I Haz 3D!
Click to expand...
Click to collapse
I don't remember having a pw when I first started dual booting :/
Sent from my PG86100 using XDA Premium App
Wubi is making me put a password so im reinstalling again with another password since I couldnt boot in.
I Haz 3D!
Does anyone have a Toshiba satellite? I am trying to get opensuse fully operational because I have fallen in love with gnome 3! ( for some reason when I try to install the ppa version on ubuntu 11.04 the graphics are to messed up) my only problem with opensuse and fedora is my WiFi can't connect because i don't have the right drivers installed. I know I need the RTL8191SE driver but I have yet to get it properly installed. Any help?
Sent from my PG86100 using XDA Premium App
So i have the google chrome deb but double clicking doesnt install it. How do I install it through command?
I Haz 3D!
knowledge561 said:
So i have the google chrome deb but double clicking doesnt install it. How do I install it through command?
I Haz 3D!
Click to expand...
Click to collapse
sudo dpkg -i packagename.deb
knowledge561 said:
Is operating it similar to adb for our device?
Click to expand...
Click to collapse
Not entirely. ADB allows you to interface with your android device, if you were to type "adb shell", it will drop you into a command shell, which is similar to your terminal in linux.
While Ubuntu is a good place to start for learning how Linux differs a good bit from Windows, if you are honestly interested in learning linux, I would recommend installing virtualbox, or getting a disposable netbook or similar device, and then installing other distributions, as there are several distros out there that fit various needs.
I personally would recommend installing and learning ArchLinux. It is probably going to be a very rough learning experience, but you will come out better around the edges in regards to knowing where things are and how things work in most linux environments than you would be in Ubuntu. They have an excellent wiki, and a good community (As long as you are willing to try yourself first, before asking for help)
Also (And I mean no offense by this, it is simply the environment of the forums), but this isn't the best place to look for help on learning Linux/Ubuntu, as these forums are centered around the EVO 3D, and many of the users probably aren't using Linux. I would recommend the Ubuntu forums (http://ubuntuforums.org/). They even have a forum specifically for absolute beginners.
knowledge561 said:
So i have the google chrome deb but double clicking doesnt install it. How do I install it through command?
Click to expand...
Click to collapse
Always install through the system's package manager - and Ubuntu has a very excellent forum.
dpkg (mentioned in previous post) is a a command, which does install that file; but will actuall installation may sometimes fail if the package within that file has other dependencies. Therefore, you may be better off using "aptitude".
Ubuntu forums are at ubuntuforums dot org.
I personally use Debian though. Have been on it for past 10 years. With debian "stable" you know that something does not work for you because you misconfigured it, or the hardware is not supported, or some device package is not installed. IMHO, Debian "unstable" aka sid is more stable that Ubuntu. Use Ubuntu as a stepping stone towards GNU/LInux though.
Again, if you are an absolute newbie to linux, I suggest you (or anybody new to Linux) to try out "live bootable CDs". Most distros (Ubuntu, Debian, Fedora, etc) have such live DVD/cds. You have to pop the disk into the drive and boot from the drive (you will have to change the BIOS settings to boot from the CD drive). USe a live cd for few hours - it will be slow - and once you are comfortable with the apps, simply install from the LIve CD's "install to hard disk" option.
You can access manuals for almost every "commandline command" on a LInux PC if you run the command "man <commandline> from the command line. GUI apps of course would have the F1 option, if the proper documentation package is installed.
Rayne Jarre said:
sudo dpkg -i packagename.deb
Click to expand...
Click to collapse
See above - dpkg may not resolve dependencies. Use apt-get or aptitude for dependency resolving.
Also, for Ubuntu / Debian and almost every Linux distro, you can "add repositories" for the distro, and use the package manager to fetch, install, and configure the relevant applications over the net, automatically.
For Debian/ Ubuntu, /etc/apt/sources.list is the file you will need to edit to add another repository. (key word to search the net for is "adding repositories in <distro name>).

[Q] Devs, what OS do you use for Android development?

I was just wondering. I know that Eclipse is the way to go, at least per the Android SDK website. But, I was curious what OS do most of you use? Windows or Linux? I'm currently setting up a Linux box and was going to use that to start learning Android development. I'm getting bored of doing .NET development at work and want to learn Android programming in my spare time (of what I have) and possibly to start developing apps.
What are some of the pros and cons of developing between the two OSes?
Thanks!
I stopped using Winblows when i randomly lost the ability to SBF with it.
Go Linux and never look back.
besides, virtualbox runs windows under linux better than windows runs by itself.
I used windows because it was my main OS and I used Ubuntu studio for audio recording. Windows has a lot of good tools available..like 5:1 with Linux.... Linux is good because you can Dev from source better/easier.
Now I main Ubuntu because I can play wow on it now...
Tapin' the Talk on the xSquared
Cheapxj said:
I stopped using Winblows when i randomly lost the ability to SBF with it.
Go Linux and never look back.
besides, virtualbox runs windows under linux better than windows runs by itself.
Click to expand...
Click to collapse
I used to run Linux all the time, then when my kids got older and wanted to play various educational games from the library, I had to go to Winblows.
I do like Win 7 and now, with the kids tapped into technology at school, it's almost a given that I have to have Windows at home.
But, on my other machine (it's a p4 2ghz - ouch), I'm installing Linux and wanting to do some work on that machine so I don't have to dual-boot between Windows and Linux. Plus, I have WAY too many games (like Skyrim, Fallout, etc) on my Windows PC that I can't run Windows in a virtual machine, even though that machine is a quad-core with 8gbs of RAM and a high-end video card.
Anyways, as long as I can also SBF from Linux (which I googled and found out I can), it sounds like I'm going in the right direction in regards to using Linux for my programming Android apps.
Arch Linux, though I don't really do Android development, mostly because of the webapps I'm working on.
Gentoo/Funtoo are quite nice as well.
Sent from my MB870 using Tapatalk
I've been doing everything with Linux since I first installed Red Hat 5.2 back in '98. Today, I run either Ubuntu, for whom I developed and bug tracked, and Debian, because I'm still a purist at heart..
Sent from my Motorola Android Device using Tapatalk.

Full Debian w/o Android on Z2?

Hi guys,
I had the idea to fully replace my Android OS with Debian.
I'm using Debian at home all day and wouldn't use anything else
Well is it possible to use functions on the phone (like Dialing Numbers / contacts / whatsapp) via debian?
Then I would install it on my Z2. I mean it got 3GB of RAM (more then Debian needs to run) and yeah ^^
I also took a look at https://wiki.debian.org/Mobile
Debian can run on 600MB, i run a debian based OS on my server
(server idles around 400ish)
Lets see if someone wants to pick this up
It'd be nice to have something like so on our device
Envious_Data said:
Debian can run on 600MB, i run a debian based OS on my server
(server idles around 400ish)
Lets see if someone wants to pick this up
It'd be nice to have something like so on our device
Click to expand...
Click to collapse
Well yeah Debian is also able to get controlled via Touch so I may gonna try this out tomorrow.
I run debian desktop via Linux Deploy and access the UI via vnc
That'd be nice to hear how this goes
Envious_Data said:
I run debian desktop via Linux Deploy and access the UI via vnc
That'd be nice to hear how this goes
Click to expand...
Click to collapse
Same here, but with Kali Linux. I use it for stealing passwords on-the go I couldn't make it run through the framebuffer. If someone figures it out, it would be amazing!
P.S. Setting it up is a real pain. A VNC client on the PC wit mouse and kb is a lot easier than touch screen(for typing in the terminal)
BlAckXpeRia said:
Same here, but with Kali Linux. I use it for stealing passwords on-the go I couldn't make it run through the framebuffer. If someone figures it out, it would be amazing!
P.S. Setting it up is a real pain. A VNC client on the PC wit mouse and kb is a lot easier than touch screen(for typing in the terminal)
Click to expand...
Click to collapse
I use RealVNC both on my laptop and my phone, for desktop it is just a simple exe that requires no install where as phone its a fairly simple app
localhost on my phone and my internal network ip on my laptop unless im not at home then i just use localhost from my phone.
i mostly use debain desktop just for random stuff aka accessing desktop pages or using a desktop OS torrent manager or downloading files through a webbrowser

Can we install Windows 10 on the Galaxy Tab S7/S7+?

Can we install Windows 10 on the S7/S7+?
LMFAO
Please tell me you're kidding?
Yes we can.
FAQ
It's not as stupid of a question as you guys make it seem. Windows 10 ARM version exists (but there is no way to get a legal license and/or installation media for it) for the Surface Pro X and a few other devices. Of course there would most likely be no drivers, but in theory Win 10 COULD be possibly.. but yea in reality it's not at the moment.
Is anybody able to use a windows emulator? I tried Linux on it but wondering if there's a better way to use Windows apps if I need to other than remoting into my PC
T
IFNg said:
Is anybody able to use a windows emulator? I tried Linux on it but wondering if there's a better way to use Windows apps if I need to other than remoting into my PCi highly appreciate your factual statement, thankyou for elaboration, i wasn't aware of much of the info.
Click to expand...
Click to collapse
I've found a few solutions to this. Ibochs works but is basically unusable. TeamViewer allows you to wake up your home PC and control it. This works surprisingly well if you have a good connection. Microsoft also has an app called Azure that lets you use a virtual desktop for less than $.01/hr if you can't wake up your home PC over ip for some reason
I'm going to go out on a limb here and use a throwback analogy... Much like a free ride from a partner with an STD... Just because you can do something doesn't mean you should... LOL

Categories

Resources