1

I've got Android app which runs on various devices, but not Amazon Kindle Fire HD. It stops after start and what I see in the logs is following:

08:42:16.940    201 #201    WARN    ActivityManager Unable to start service Intent { act=com.amazon.client.metrics.bind }: not found
08:42:17.104    201 #201    WARN    ActivityManager   Force finishing activity com.example/.MyActivity

Anybody knows what this could be and if those two warnings are related?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
MartinC
  • 546
  • 11
  • 26
  • hm, so I made a simple Hello world test project and targeted it to Amazon platform and run it. It works, but I see the same warning in logs about not able to start service Intent, so that makes me think that those two are not in relation and there is something else wrong in the app. – MartinC Jul 31 '13 at 07:08
  • another thing, I don't even see my logs from onCreate, so app seems to be finished very early. – MartinC Jul 31 '13 at 07:20
  • swapping existing activity with some simple Hello World activity helps, so there must something fishy in code or layout what Amazon device doesn't like. I'll post my findings when I get to it. – MartinC Jul 31 '13 at 08:13
  • Amazon has modified something :) – yushulx Jul 31 '13 at 08:21
  • OK, so the problem is deprecated class KeyguardLock and calling lock.disableKeyguard(); which makes the app stop. Deprecated since API 13. – MartinC Jul 31 '13 at 11:37

2 Answers2

1

I guess this is the correct answer how to solve this issue: http://developer.android.com/reference/android/app/KeyguardManager.KeyguardLock.html

MartinC
  • 546
  • 11
  • 26
0

and it is not only deprecated, it is not supported by Amazon. To comply with Amazon requirements, please read this page: https://developer.amazon.com/sdk/fire/specifications.html#AppFeature

MartinC
  • 546
  • 11
  • 26