[Q] Could someone test this app for me? - Android Software Development

I'm doing a little bluetooth serial connection to a PCB I've done for my thesys. It should work, since it is based on the one posted at anddev, and I've only added an xml interface and now it connects and send a msg using 2 buttons.
Problem is I don't have an Android phone right now, and I need to test it. PC emulator doesn't support BT, and using VirtualBox doesn't work for my laptop either.
When I run the app, an error appears, and application is forced to shutdown. Can anyone test it to see if this error is due to not having bluetooth at the emulator or some code error?
If you have a look at the code and make some suggestions I won't complain. I have attached the Eclipse project
(I hope this is allowed at this forum)

ill check it out, but without the PCB you have i dont think i could test any functionality. you want me to just check for any FCs while pressing buttons and what not?

The apk in the bin/ folder of your eclipse project won't install. Error parsing package
Ill try to compile when I get home but try to just post an apk
From something awesome

I just realised that I was using a virtual machine running 2.1 for an app using 3.0 libraries. I'm fixing it, but anyway I'd love you to have a look at the app, just for getting the bluetooth running, even without connecting

Related

Eclipse and Android SDK

Hey all, i am starting to find out about creating apps. I have started with creating a simple webview app that shows a website.
What i am having trouble with is after editing the files in eclipse i hit run an in the SDK emulator all i get is a black screen wit android write on it.
Any ideas?
NOTE: i am very new to this
Be patient it takes like 10 mins or more for the emulator to load
Novice here.
Yes, it will take sometime. Here it starts quickly (core i5 notebook). But it may take a long long time.
You can also use your phone to debug and deploy. It's very very quick, takes virtually no time to load, like the emulator. At least here.
Good luck!
Thanks all it did take a while was juts me being inpatient.
Follow-up question: When debugging an app in eclipse, if you change your source during a debug session, it should restart my app/activity/whatsis, right?
Yeah.. not getting that at all, and my current dev box leaves something to be desired in the horsepower department. Those emulator restarts are killing my interest in working on this pet project of mine.
I found a link that should let me use my Evo directly, hopefully that will do the trick.
--Mark
Sent from my PC36100(Evo) using XDA App
Update:
Grr. I installed the HTC Sync 2.blah, so I can actually connect to my Evo now from within Eclipse but I'm still running into problems. Eclipse still isn't automagically updating my app when I change-n-save. Am I just expecting too much here?
Oddly enough, it DID update the changed app when I unplugged my evo from my laptop and plugged it back in. This took several seconds to catch up, but it beats the hell out of waiting for a new emulator to boot. Ouch. We need some way to freeze/save the emulator state so we can relaunch it with it's memory and so forth already in place.
I'd mangled my first hand-rolled "hello world" app (started monkeying with stuff without knowing what did what), so it no longer ran. Note To Self: "Test Only" flag seems to mean "emulator only". That was a snag.
So I whipped up a demo app (the "Skeleton App" for 2.1) project. Installed and ran fine. I changed a couple buttons to Log.d(...) instead of What They Did, and after the unplug-plugin trick, the app updated. The buttons no longer performed their original tasks... instead they now do what looks like NOTHING! LogCat isn't showing my debug messages at all (which wasn't a problem previously when I was just using the emulator).
Am I just missing the boat here or what?

Webtop: Working Ubuntu programs plus small guide

Let me start off by saying I am not a developer. And Im not too familiar with Linux either. Just goes to show that this isnt too difficult
To get ubuntu on the Atrix please go here first:
[MOD] Full Linux (Debian) inside WebTop! v0.2.6 [2011/07/07] [14.15 GMT+2:00] - xda-developers
Follow the steps. Must have CMW installed, rooted etc.
I was unsuccessful with webtop2sd. You might have good results with it, but for me it didnt.
Once you flash this cmw file, reboot you phone and enter into webtop (if you need the HDMI hack, you will find that on XDA). You will now see 3 new icons. Leafpad, Lxterminal, and a penguin. Click on the penguin, and you it will say found image. Click ok.
If your unfamiluar with linux, this will look french to you. Once it launches (the first time after reboot will take some time, be patient). Hit enter, enter again and scroll down to Shells, then hit enter on Bash. Now this is where the fun begins.
Enter synaptic. If that doesnt work you might need to install it. apt-get install synaptic. After thats opened search for gnome-panel, right click and select "mark for installation". Hit apply and go for a coffee. This will take a long time, and make sure your on wifi. This is a huge download.
Here is a list of working applications so far :
Epiphany web browser
Epiphany IM
Evolution Mail
Iceweasle
AbiWord
GNU image manipulation
All of the games
Im working on getting usb-to-ethernet dongle working.I can see it, just cant get access to it.
Almost all of the pre-installed applications with gnome work. EXCEPT sound. This is driving me nuts. I am unable to find a sound driver (gstreamer) that works. If anyone here figures it out let me know. And if anyone out there have programs that work let me know. I can always add it to the list. Im very green to Linux, and just playing around at this point. Im no developer, and most of your questions can be answered on XDA forums.
I have the same setup, and you can add openoffice.org and geany packages to the "functional" list. I use openoffice's writer every day and have found no missing functions. Geany is working, but does not build and compile, so it's basically a color-coded text editor (still useful for note-taking my language classes). I did NOT use synaptic to get these. I simply used the bash script (in the same manner you described for your synaptic install) to apt-get install openoffice.org and geany respectively. Nice thread,
-omni
Where you able to get sound working??
g2tegg said:
Where you able to get sound working??
Click to expand...
Click to collapse
My sound through the Webtop is functional, yes. I'm not sure if you were talking about gnome-specific apps (I wouldn't know, because I'm not using gnome panel), but anything through mobile view or iceweasel (not including flash) plays stereo through the Webtop. I didn't do anything special to get it working, it always just has. I hope you figure out your problem.
-omni
With epiphany did you encounter a problem where it uses xulrunner-1.9.2 instead of xulrunner-1.9 and fails to start the gecko engine? The epiphany version that is available through synaptic after fixing apt-get dependencies and sources uses xul1.9 once and works right then uses xul1.9.2 every time after that and fails. Epiphany lists both xul versions as deps so i, unsuccessfully, tried to lock xul1.9 and install a fake xul1.9.2. Any help would be awesome.
I did manage to make Webtop2SD work after I created a 4 GB partition on my ExtSD through Webtop2sd partitioning tool.
Here's what I got working (installed through Synaptic):
XFCE4 (full suite)
OpenOffice
GIMP
EPDFViewer
Fillezilla FTP client
VLC Media Player (marginal results)
Ristretto Image viewer
ABE's Amazing Adventure (game with full working sound)
I was hoping to have some sort of ScummVM, MAME and SNES emulator to run, but unfortunately they don't even after a successfull install.
Cheers!
Rayan
Sent from my Atrix using Tapatalk
@ g2tegg
I know it's a bit late for commenting lol. And probably my post may be off-topic. But was your issue the <no sound coming from HDTV via HDMI> one?
I also had this issue in webtop going on for like 3 months (like flashing and reflashing webtop to no end), until I stumbled upon this Motorola forum:
h**p://supportforums.motorola.com/message/330591#330591
(had to mod link because I didn't reach the minimum amounts of posts to allow links -_-)
Basically, if you switch display resolution to anything other than 1280x720, sound will not redirect to HDTV. And as for me, after switching to 1280x720, I had to reboot my Atrix in order to finally have sound . No need to find for drivers.
My sound would work within the Webtop apps from Motorola. But if I wanted to use a Linux MP3 player, watch a video etc there would be no sound. Kept getting a gstreamer error.
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Got it working !!
katlimaal said:
Hi g2tegg,
I have Atrix with iBlur ROM. I installed the WebTopMOD zip file using CWM and have the folder with linux image in sdcard-ext. But when I reboot the phone and plg it in Atrix Lapdock I don't see the icons like: penguin etc.
Could you please help.
Click to expand...
Click to collapse
Try to reflash the webtop and then the mod again. There is a thread in the developers area I believe called webtop mod v1 or something like that. When I get the chance I will try to dig it up. Driving in a snowstorm at the moment slightly hinders my searchability haha. Good ol Ontario I tell ya
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
V DidDy 210 said:
quick question: are these persistent? can I make a desktop icon for these or do I have to apt-get them everytime?
seems counter intuitive to not be able to "hard" install the applications
Click to expand...
Click to collapse
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
g2tegg said:
You dont have to apt-get everytime. The installed applications are on either the phones hard drive or the SD card. Only thing you will have to do is start the gnome panel every session, which is easy enough.
Click to expand...
Click to collapse
Yeah after tinkering with them for enough time I figured that out!
only question is how do I figure out where they are located on my phone? I can't find a DEBIAN folder anywhere on my device (sd or sd-ext) my webtopmod folder is on my internal storage btw
thanks for the response!
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Mgamerz said:
If you use webtopmod's debian chroot (the white shell) they'll be in the linuxdisk file, as it's actualy a filesystem in itself. You won't be able to 'directly' access them. I recommend switching to webtop2SD. I didnt' want to, but everything is native that way and most things run better anyways, I installed xfce4 and got rid of that stupid awn dock at the bottom and put in a little bar. Now it feels like linux!
My apps so far:
OpenOffice 3
XChat
rdesktop (doesn't work, keymap doesn't work)
gimp (not used yet)
Any other useful ones people know of? I don't need an email client... the phone's gmail app is sufficient enough, and if I need more support I'll just use gmail. Kind of wish I could get an updated firefox, or a tun/tap module so i could use hamachi.
Click to expand...
Click to collapse
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
^yeah after using it exclusively for the past day or so it's quite capable but I can also see the limitations of debian through chroot. I'd ideally like to get rid of the webtop all together and just have kde or gnome (i'm not picky, xcfe4 would work for me too)
but I'm assuming if I do webtop2sd I can have ubuntu with gnome installed no problem?
I went through the process of putting all of my gnuSTEP icons on the webtop and it's very much like my current gnuSTEP machine (supremely capable btw when using a debian core) I haven't run into any real problems using the chroot method, save for not being able to put shortcuts on the AWN bar and the occasional, but when I get my lapdock in the mail and start exclusively using this when I'm out and about I'll look into doing webtop2sd. I need to get a bigger sd card too, I have a 16 but I'd rather have a 32 external only for webtop and the 10 or so internal for android I don't listen to music on my android (I own a zune) so 10 should be plenty to just have apps and android
---------- Post added at 02:23 AM ---------- Previous post was at 02:20 AM ----------
Alcapone263 said:
I installed chromium, and it's running smoother than firefox ever did. Haven't really had a reason to install anything else, but i think i'm gonna get fxce4 because the current dock at the bottom annoys me
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
Did you use the jaunty hack to get chromium working?
I successfully installed chromium but every page loads for a second and then crashes. I didn't really look into the chromium hack (I don't think I use jaunty for anything and synaptic/apt-get can get all the repositories I need) but it seemed intensive especially to get flash.
I've found that while firefox has FANTASTIC flash support (like, really good and speedy, no chops) I just end up using konqueror for regular internet tasks. I can't seem to get it to install flash (I don't know how to install .deb packages) but it's speedy for other things and makes an excellent file manager
If you could get chromium without 2.3.5 i'd get it... but 2.3.5 offers what appear to be no benefits at all, correct?
Just kinda scared to have to rebuild from a bricked phone.
Trolling from my ATRIX 4G's XDA premium app, still on the gold medal winner of worst customer satisfaction for the second year in a row! Congrats!
I upgraded to 2.3.5 it has the new firefox, it runs fine from what I've seen
I'm trying to install synaptic by "apt-get install synaptic", but it shows several "Failed to fetch http://ftp.debian.org/debian/......" messages.
How can I fix this?

Native ubuntu/chroot jail free? no vnc

Hello All,
Another ubuntu project here..
its a chroot jail free looped native framebuffered something?
one folder on sdcard called linux /sdcard/linux with the .img
your mount point..i use /data/local/mnt/linux
the scripts i use /data/local/mnt
simple you will need to edit the scripts if u edit ur paths..
ill share my stuffs if theres any interest in this.
dunno if this has been done on sgs2 using just scripts but yh
ive managed to get ubuntu13.04 running with full multitouch support using mtrack i use lxde/2d-unity
this approach uses android framebuffer instead of using a vncserver.
Concept/Goal: use android hardware to run linux without vnc and full hardware support...its christmas soon!
so we go a safe way and mount a img file and loop and chroot and mount necessary android stuff i.e /dev /proc /tmp-to help speed up system! and mount all sdcards.
then we kill android-the-framebuffer-hog
and start our xsession,
anyone interested in helping me?
i have the scripts and image, just need more nuerons!
to do is (alot)
Working:
Framebuffer >> full gamma and .mhz settings safe
Wifi
Bluetooth
Reboot to andoid and umount rootfs on log out
Mouse
Multitouch tap is click, double tap is ?grab window to move it, two fingers for right click, three to scroll
Screenshots
Charging
Sdcard
MicroSd
Keyboard >> virtual
Theres alot but its hard to summerise lol
Not Working (WIP)
get sound working completely (evrythings working except last output part) alsamixer, pulseaudio all work..just the last bit..so no sound.
figure out why system_bus_socket connection refused?
why dbus isnt being used but starting ok?
Landscape mode mouse axis. (i can rotate the display but the mouse axis are wrong.. up=right down=left) (portrait is fine)
camara
gpio-keys (hardware buttons)
calls
text messaging.
OTG USB (i made one so im assuming its that that doesnt work simply tweak to the xorg.conf to swap from touch to mouse..)
DRI & DRI2
GL_OES_EGL_image for 3d
have to use a virtual keyboard until running android apps in linux is figured out--ahem (i use matchbox-keyboard)
logon screen works but the keyboard is a issue. (virtual keyboard only starts once logged in. so no logon yet just auto logon)
you can still use ssh and vncserver if you wanted to..
any interest ill share my scripts...
as i said im not the only person to chroot imgs, but i havent seen a thread on getting it running natively on sgs2 without uboot or repartioning anything.
unless u completely recompile the linux os whilst inside of it, i.e adding vmlinux.img should be safe enough. works for me
anyway been a busy with this and im not a pro developer just a seasoned addict, thus the call for arms!
peace!
some screenshots
and you expect me to share my work when none of you have any input..phhhhhaaa
EDIT >> i was how you say suffering from a spot of pink eye! Strange strange thought patterns = WEIRD REMARKS lol
Sent from my GT-I9100 using xda app-developers app
Wow, erm.......awkward!
I wish you success in your endeavors.
Sent from my GT-I9100 using xda premium
Interesting.
May I ask what are you using for? I mean, which killer app in Ubuntu you can't replace with an Android one?
Moreover, I have noticed an X server on the Play Store (https://play.google.com/store/apps/details?id=au.com.darkside.XServer)
Using it, instead of killing Android, may allow some more integration with the Android environment (e.g. you could still receive calls while using your ubuntu stuff).
Another improvement would be to use multiple consoles (you know, Ctrl-Alt-Fx stuff) to have both environments running
Just my 2ç
Z
zavorrax said:
Interesting.
May I ask what are you using for? I mean, which killer app in Ubuntu you can't replace with an Android one?
Moreover, I have noticed an X server on the Play Store (https://play.google.com/store/apps/details?id=au.com.darkside.XServer)
Using it, instead of killing Android, may allow some more integration with the Android environment (e.g. you could still receive calls while using your ubuntu stuff).
Another improvement would be to use multiple consoles (you know, Ctrl-Alt-Fx stuff) to have both environments running
Just my 2ç
Z
Click to expand...
Click to collapse
lol
i mean to free up surfaceflinger and the framebuffer and send android into a slumber?so we can use it for our xsession. not KILL PERMANETLY
its like a chroot jail free no vnc something??
using vnc will allow u to still have android on in the background for calls and what not but thats chrooting a image to a mount point and running a app. awsome but i got bored with that..much perfere native input.
Search for linuxonandroid by zachthespack hes been dealing with chrooting linux for a long time and has a good application and a healthy stock of img files for you to use, plus a good how to. http://www.linuxonandroid.org Download from play store.. search 4 linuxonandroid
...thats not a bad idea zavorrax about the X11 app..
although running a third party app to use the framebuffer seems pointless when u can use the devices one!
wouldnt u rather have a true linux os in your pocket rather then a clever spin off of it, dont get me wrong i love android and its easy moddding.. linux is far better though.. this project im doing is after all, on a android device.
android root is always 0 ... root = / .... android apps are the users...if that makes sense?
linux uses users who log in..so root still has the initial setup of the os incase a user messes up, root can reset it with relative ease.
so in order to use linux for a vnc free linux, (root is in my opinion just like a programme.) needs to also be 0
thus, night night android..
its hard to explain, its linux and android?
basically the only way i can explain this is its the same as a chroot of a distro BUT instead of using vnc/X11 apks as the only way of having a GUI, we can optionally use the android framebuffer..fb0...
this thread wasnt ment to be a how-to just to see if theres any intrerest out here.
ill make a proper how to with all the basics needed.
as i said theres alot of these projects across the android platform, people trying too turn android back to linux/running linux.
u can pretty much use any img used for vnc or create your own for this.
theres a lot ubuntu/arch/debian/kali/backtrack..etc..etc
i initially add a file to my new img and apt-get a few things, run a few commands to change the img for my device then only need to execute my script,on the fly, hello linux desktop why not!
theres alot of debugging thats why im seeing if anyone is interested in this and would like to help/participate
i initially started using vnc years ago but got fed up with having to run a handful of scripts in this app and then find and add my ports and set passwords in another app, all using important cpu and power, so i thought why not make it all into one easy script.sh.......can of worms...
fruition was glimpsed so i continued.
just use it bcos i can
oh yeah and i say kill/sleep android, its all there..just not emulated/running a instance..sort of packed away in a box.(sleeping lol)
until i/someone can debug compatability for things like phone or proximity sensor then inside the linux GUI theres no support because it hasnt been setup/coded
thanks.
mckeowngoo said:
Wow, erm.......awkward!
I wish you success in your endeavors.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
i to was a search and download kinda guy, now i find coding and debugging for myself interesting/rewarding.
its such a burden having hobbies!
Wow, erm.......awkward!
lol
cheers
If you're not going to share your work, why are you posting about it on XDA?
Thread closed. OP if you decide to share this then contact me when you have links ready and I will reopen this thread.

PLEASE I need the name of this app to get info off phone, touch screen not responding

I haven't been using my HD2 in quite awhile & when I went to use it last the touch screen stopped responding. I use to have this app you install on Windows where you would run the app & it would connect to your phone. Can anyone please tell me what that is called? There are a ton of people that use it I just can't recall what it was. I want to download it again so that I can connect my phone to it & get my pics & stuff off it. I wish I could give you a better description but all I can remember is it had tons of features to it. It is a windows program you install on your computer so that you can connect your phone & see everything on your computer. I think you could do debugging, move folders, install stuff to certain locations, maybe it even had a emulator with it but I am not sure on that 1. It would be very useful so that I can get this stuff. Thanks for any help.
It is not the Android SDK but I think it may have had Android in the name.
Never mind, I found it. It was called Droid Explorer.

How to remote debug android via network with screen casting?

Hi guys,
One of our tester is working in other city( long distance from us). while testing our apps, his devices raise some strange bugs often,
and we have to send our new debug apk to let him install and test every time, then we have to wait for his feedback( sometime need screencap or screenrecord etc.)
it lose us much time.
can we have a solution to find a way that remote debug a android device via network( optative with screencast to our PC ), not via wifi?
Like he connect his android device to his PC, and install some software, and our developers can using their eclipse to remote debug the tester's devices?
Thx so much.
if no solution , find a way to remote logcat is also ok

Categories

Resources