1

My android app work on my samsung galaxy 2, and many others samsung devices. Then my friend tried HTC, installed correctly but when i turn on this app after 1 sec of white screen it turns off. Looks like program dont work same way on HTC. This happen on every HTC i tried. Any reasons what can cause this ?

Permissions needed : GPS, network localization and read external

storage minSDKv.: 8

targetSDKv.: 16

ProjectBuildTarget: 21(i tried lower still no working)

(installed correctly so i think its not API problem)

Community
  • 1
  • 1

2 Answers2

0

You should check again your @style declarations. Sometimes the preinstalled theme in some distributions simple don't allow basic things like translucent bar etc.

ares777
  • 3,590
  • 1
  • 22
  • 23
  • in styles : _______________________________________________________________ manifest: android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" – Bowerick Wowbagger Apr 08 '15 at 19:38
  • yes, again, check your friend htc theme. Should be the bone for your lesson. You don't know how producers (htc) can spoil over your work "just because we embed a theme" inside our devices. For now, just comment your *light theme reference. It will work. – ares777 Apr 08 '15 at 19:45
  • do not say they have android 4.x, just take over the theme element. – ares777 Apr 08 '15 at 19:53
  • i didnt defined this theme in all values foldes. Waiting till friendc come online to test it but think this will fix it. Found this when start focus on styles. http://stackoverflow.com/questions/4947720/android-theme-not-being-set – Bowerick Wowbagger Apr 08 '15 at 20:02
  • i still cant get it What should i have in styles.xml ? delete all my custom styles but still error style contains key with bad entry – Bowerick Wowbagger Apr 09 '15 at 00:00
0

OLD:
style name="AppBaseTheme" parent="Theme.AppCompat.Light"
NEW:
style name="AppBaseTheme" parent="android:Theme"