[TIMOB-2686] Android: 2.3, Android services never start
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M04 |
Components | Android |
Labels | android, regression, release-1.6.0, reported-1.5.1, services |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:27:02.000+0000 |
Updated | 2011-04-17T01:59:48.000+0000 |
Description
1.5.1 + hvga skinned 2.3 emulator
1.Platform >android services
2.click strat service, then check if its running by way "check to
see if service is running"
3.start via "createservice" and check it as well
results: in both cases, the service did not start
I'm not able to reproduce the problem under 1.5.1 or 1.6.0. Service runs fine in my tests. Can you reproduce still at will?
man, what am I doing wrong? I can accept its my issue, maybe I forgot how to run this test - in todays 1.5.2 and 1.6.0. Happens in all devices/emulators (not 2.3 specific as erroneously reported)
1.Tap "start service via start service"
results": see output of "starting service via start service"
2.tap "check to see if test service is running"
results:Servie is NOT running.
same when using the other start button. Hopei am not wasting everyones time here.
Anything interesting in logcat?
Also, how do you typically start KS? Here's exactly what I did just now (and it's working):
Then I run KS on the phone, go straight to Platform - Android services and test it there.
I'm worried maybe you're uncovering some kind of build-time bug that I'm not seeing, just because of the differences there might be in the way we build and start Kitchen Sink.
Hey Bill - I'm sorry its taken me so long to respond. I followed your steps above and see this:
I/TiAPI ( 3710): (kroll$65) [1901,783069] SERVICE TEST: Starting via startService
W/ActivityManager( 1088): Unable to start service Intent { cmp=com.appcelerator.pushtest/.TestserviceService (has extras) }: not found
I/TiAPI ( 3710): (kroll$65) [6621,789690] SERVICE TEST: Service is NOT running
KS 1.5.1 works as expected, 1.6.0 fails. I'm going to try to delete my local directory and do a clone after this pass is over.
ok, I have a device with a previous version of KS 1.5.1 and the test works there. I republished KS on the same device using 1.5.1 and the test now fails - meaning its media related and not sdk related.
There still could be something wrong with our build/packaging process that maybe you're uncovering by some interesting set of circumstances.
When you do a build/release which then fails, can you upload the build/android/bin/app-unsigned.apk file here? I wanna see what's in it. Maybe the service JS file is really not getting packaged for some reason.
All is well with a clone today. closing against [INFO] Titanium SDK version: 1.6.0 (01/19/11 08:23 aa8c451) N1 (2.2.1) G1 (1.6) and sim 2.3.