Eclipse and Android SDK - Android Software Development

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?

Related

[Q] Adb.exe has stopped working.

Win7 64bit.
Latest drivers/adb/sdk.
Using appinventor
I searched and found only this forum (which was obv of no help):
'ADB Magically Stopped Working" (Can't link it because it's a new account)
Ok, now that the required infomation is out let me get to the question.
I am using googles appinventor to make a small app for a game (read FOR a game NOT a game).
While it does have quite a few pictures included in the app, it doesn't have anymore than similar apps on the market.
It wasn't until I started adding the extra pictures (~15-45kbs each) that I got the error: "adb.exe has stopped working".
The logcat for it is attached.
What I am wondering, is that because it has started to crash when I added more images, is there some sort of -notimeout command for ADB that I can use?
If not does anyone see anything that could possibly help?
Thanks a bunch!
It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?
mstorer3772 said:
It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?
Click to expand...
Click to collapse
On both. At first it was my G1. Then I tried connected it to the emulator and it was doing the same thing.
Thanks for the response.

Linux?

Is ubuntu possible on our u8800?
http://www.youtube.com/watch?v=xN4c61ETCWg maybe, try it
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
sebgus said:
Without having seen the youtube vid that d3xtr0 linked, I'll post this link:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Click to expand...
Click to collapse
lit's the same source
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
I had no time to try it, maybe later in the week.
skifyr123 said:
It will probably work if this device supports "loop devices" whatever that is? anyone know or tried it succsessfully?
Click to expand...
Click to collapse
It supports loop device. I just tried to mount a loop device with a loop image and it worked.
EDIT: With flibblesan's r5 kernel but it should be supported by stock kernel anyway
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
XphX said:
You are aware that ubuntu has no proper support for touchscreens; even if it runs you won't gain anything by doing that. When I installed a linux a few months ago on another device it worked, then I was fascinated about one minute and then I decided that there is no use for it an deleted it eventually.
I just do not understand why it is so important to get a desktop-os running on a smartphone. Battery drains fast, no support for the radio etc.
Click to expand...
Click to collapse
Its not important, but funny and cool if it works (on this device). How did you do it?
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
How about using linux programs? i think that it may be quite useful sometimes... Put honestly... it is just for funright now... but it may be helpful if we could dual boot.... maybe in the future
I got this working, it isn't that slow as you could imagine, firefox takes around 30 sec to start and load the front page. That said, the keyboard works but is way off and impossible to use (I push "d" and "f" shows up and so on).
if anyone understand this the keyboard will be fixed:
In VNC’s xstartup file: $HOME/.vnc/xstartup
You have to add the line export XKL_XMODMAP_DISABLE=1 before
/etc/X11/Xsession or gnome-session (in case you use GNOME)
Screenshot actually taken with an ubuntu tool, I have set the resolution to 1200*800 in the virtual enviriment.
Here is a video with Huawei Ideos X5 running Ubuntu: http://www.youtube.com/watch?v=8SaoneDtNqA&feature=BFp&list=WL01C152CD7D31A7C8&index=1
Will try this later tonight and let you guys know if it works. Just have to work first >.<
The significance of linux running is to have a backup operating system to use on the phone if the Oracle / Google dispute over Java begins to really disrupt the market.
Think also freedombox.org, your own personal, secure and anonymous cloud system as a refuge if a dictatorship emerges or particularly nasty rise of corporatism occurs.
At heart, our U8800's can easily be linux box server with up to 32Gb of onboard storage with wi-fi AND gsm network connections. Being battery operated, if the thought police decend upon your community, you could take it to another place, unknown to the nasty guys, and re-establish mesh network connection to get reports of civil rights abuses out to the rest of the world.
Reason enough to have the capability to run Ubuntu Server edition (or any other Linux Server flavour)?
If you're interested to see what's already possible, even within Android (Linux will deliver more power), install "File Expert" from the market to get your very own web file server, right there in your phone.
-- wrong post just ignore --
XphX said:
Until recently I still had my old samsung-omnia-winmo6.5-phone. There was an app for linux available; you just had to install an imagefile to the sd-card. The fun did last for a minute and then I realized I cannot do anything with this small screen and that it was pretty much useless.
I think that a lot of people here will just read the topic and think "omg this is amazing, now I can have my desktop-os on the phone, great" and later they realize how much time they just wasted.
If it really is fun for you guys, I won't try and stop you
Click to expand...
Click to collapse
You didn't Found a better ubuntu boot-file, x5 faster, keyboard works, WIFI, pre-installed with many programs ( Open Office for work.. etc) easy to use with touch screen. here is how it works: http://www.youtube.com/watch?v=KUG9aC_tH5s
And the files/instructions: http://forum.xda-developers.com/showthread.php?t=962023

Windows phone 8 multitasking?

So after searching google and pretty much everywhere, I STILL haven't been able to find a clear answer on multitasking.
In wp7 I hated the fact that every single time I would open an app, it would restart from the beginning. Yes, I know you could hold the back button and then click on an app to go back to where you were, but I don't like doing that. I'm used to android where I can just click on any app from the home screen and it'll take me right back to where I left off.
A month ago I tried the lumia 900 and took it back after 2 days because of this. In WP8, I heard they brought real multitasking, but I still haven't been able to find a clear answer to my question...if I'm in an app, go back to homescreen, and then click on the app from the homescreen again, will it restart the app (where it looks like you opened it for the first time after a reboot), or will it put me right back where I left off?
Also, is there a good google voice or youtube app yet? I was using govoice but hated the fact that I actually had to open the app to see if I had any new messages.
Thanks.
I believe apps can be coded to fast resume from the home screen. I think the Facebook app does this but I havent tried it. Apps would need to be updated to add this support tho
from what ive read its possible but the current apps that are out have to be updated to add that feature
It depends on the app.
There is really no way around it.
The Android multitasking is unnatural. In windows/linux/whatever, when you press the icon of an application, it usually opens a new window.
WP8 has a feature Fast App resume, the app needs to be updated to make this feature work, you can read about it here
http://mindre.net/Article/Windows_Phone_8_Fast_app_resume
There is no true multitasking in WP8 except for Navigational apps AFAIK.
Well then, no wp8 for me. Thanks guys.
DirectX games also do not stop updating in the background.
Never seen the fuss around multitasking. The multitasking model works as far as I can see on most devices. You background a music player and it carries on playing.
iOS's system used to annoy, double clicking, touch and hold followed by repeatedly closing apps.
On Windows Mobile people used to complain about the close button not closing the application (it would run in the background). Now when you do close an application people are moaning it doesn't run in the background.
deadwrong03 said:
from what ive read its possible but the current apps that are out have to be updated to add that feature
Click to expand...
Click to collapse
this confused me... why does the app need any update, when its the OS that does all the fore/back ground stuff? did I misunderstand you?
I'll agree with the op , Microsoft needs to clarify what its new OS does in the commercials instead of a dance routine.
ohgood said:
this confused me... why does the app need any update, when its the OS that does all the fore/back ground stuff? did I misunderstand you?
I'll agree with the op , Microsoft needs to clarify what its new OS does in the commercials instead of a dance routine.
Click to expand...
Click to collapse
Simple, a phone is a battery operated device which needs a more careful considered approach to multitasking.
When you background a game that is running what should happen? (a) it carries on running, (b) it pauses or (c) it saves its state and closes down.
You have to ask yourself these sort of questions when building the application for a phone, the OS can't make that decision since it doesn't know what is the correct answer. So profiles are added to the OS and the developer of the OS selects one of these profiles.
So a downloading tool would continue to download, a music player would play music in the background, a game would pause or save state and an IM client would either carry on being connected or switch to push notification.
ohgood said:
this confused me... why does the app need any update, when its the OS that does all the fore/back ground stuff? did I misunderstand you?
I'll agree with the op , Microsoft needs to clarify what its new OS does in the commercials instead of a dance routine.
Click to expand...
Click to collapse
One of the reason you are even considering the WP vs Android fight is due to multitasking.
Android has "real multitasking" and that makes it unstable, prone to random crashes, and generally not as smooth as WP.
On top of that, the WP environment does not allow for applications to do things behind your back. Your privacy is more secure with WP than it is with Android, and i like that.
mcosmin222 said:
Android has "real multitasking" and that makes it unstable, prone to random crashes, and generally not as smooth as WP.
Click to expand...
Click to collapse
Do people still actually believe this?
Sent from my iPhone using Tapatalk
vetvito said:
Do people still actually believe this?
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
Those who have a clue...yes.
The correct answer is "both"
Regarding the question about resume vs relaunch, to the best of my recollection from reading the WP8 SDK notes 12 days ago, the answer is as follows:
1. Existing apps written for WP7 will continue to work as-is. That is, launching the app tosses away the app's back stack and gives the user a "fresh" copy of the app.
2. Apps written for WP8 can indicate that they support resume on relaunch in their "manifest" file. When this is NOT indicated, the WP8 app behaves as the WP7 apps do: launching an app launches a fresh copy; backing into an app reconnects you to that app's back stack/history.
3. When a WP8 app indicates that it can handle resume on relaunch, the already running app is brought to the front, reconnected to its back stack, and has the main page of the app pushed on to the back stack. It is up to the developer of the app to decide which of three things happen at this point:
3a. Blow away the previous back stack (to simulate WP7 behavior);
3b. Pop off the "main page" item that the OS just pushed onto the back stack to effectively return the user to the last viewed page in the app;
3c. Neither, leaving a fresh copy of the main page in screen and the old back stack still present. This is a bad idea because it looks like the user restarted, but the old context is still there.
I'm at an airport now and don't have access to my dev box or SDK docs. Someone with such access can likley find the information in the WP8 SDK documentation (although not on the "What's New" page).
thanks manicotti.. that's the best explanation yet.
that other guy that above that wanted to argue about stuff... I just don't know what to say.
Look here...
http://mindre.net/Article/Windows_Phone_8_Fast_app_resume
This might be the answer to you're question
Sent from my HTC Titan on Deepshining 2.0 Rom using Board Express
gilesjuk said:
On Windows Mobile people used to complain about the close button not closing the application (it would run in the background). Now when you do close an application people are moaning it doesn't run in the background.
Click to expand...
Click to collapse
So true, so true.... I can still hear the HD2 user pool complaining...those were the golden days...
Side note: the "fast app resume" when launched from Start was actually possible on WP7, but its use wasn't permitted in the Marketplace (it's an option in one of the manifest files). Apparently that restriction is now lifted for WP8, but Marketplace apps that want to use it will need to be updated (very simple change, though) to set that option.

Something weird happening to my ADT

Ok so yesterday I was making a android app. Nothing to fancy, just making a splash screen appear when the user launches my app. I saved it and runned it with the emulator. Was working great. I then started linking the buttons that were on my app to the xml layouts and java files etc. I then saved it and then a message came up saying something (I can really remember what it said but it showed the things that were in queue and I clicked on the red square button next it, I presumed it meant stop the current action). I then runned it using the emulator and it didn't compile my latest save, only the save I did with the splashscreen.
So today, I deleted EVERYTHING including my projects. I re-installed the SDK. Started fresh, made a splash screen again (this time with a different picture) and to my surprise, when i runned it, it loaded the splash screen that I made yesterday... I deleted THE WHOLE project so how does that work out??? I even checked where I saved the picture for the splash screen (which was on the drawable folders), and the picture that comes up whenever I run the app is not even in those folders...
In a way I'm glad that this is happening as it gives me more time to strengthen my android skills but if Im going to be making a real android app and this happens, I will be pissed.
So any of you know whats happening and why my emulator is not currently compiling my latest project but instead of my old project which I deleted...
EDIT = nevermind, figured out whats wrong. But the message is now appearing, Ive attached the dialog box that keeps on popping up. I wanted to closse the ADT but that messages keeps on coming up despite me pressing the red square button to cancel the actions....

Some way of getting cron on the Nook Simple Touch?

I've got Nook Manager and have repurposed my simple touch into a slideshow style picture frame. I use an app called Electric Sign that points to a server on my network that continually changes the pictures. Everything works great until at some point the app has built up too much in its webview cache folder. Then the setup is stuck on a blank screen, when I clear the folder it immediately works again. Is there any way to set up a cron command to automatically delete the contents daily? I've tried an early version of Tasker, but the version that works for Android 2.1 isn't available to purchase anymore and every version I can download expires after a week... Are there any other inventive solutions out there?
jamesroodney said:
I've got Nook Manager and have repurposed my simple touch into a slideshow style picture frame. I use an app called Electric Sign that points to a server on my network that continually changes the pictures. Everything works great until at some point the app has built up too much in its webview cache folder. Then the setup is stuck on a blank screen, when I clear the folder it immediately works again. Is there any way to set up a cron command to automatically delete the contents daily? I've tried an early version of Tasker, but the version that works for Android 2.1 isn't available to purchase anymore and every version I can download expires after a week... Are there any other inventive solutions out there?
Click to expand...
Click to collapse
See https://forum.xda-developers.com/showthread.php?t=2090284
He specifically mentions one phone running GB, so there's no knowing. Make a backup first, if you want to try it.
Also here https://forum.xda-developers.com/showthread.php?t=1127373
That's an older thread with a straightforward app. Might see if it will install.
Thanks for the suggestions, I'm actually just giving the cron app a try! It installed correctly and has enough options for me to customize the rm rule so I'm hopeful this will work.

Categories

Resources