i have two problems with my wear application on the Moto 360.
It's working fine on other wear watches.
the application rotated 90° left
(for information i have android:screenOrientation="portrait" in my manifiest, i don't know if it can be related)
The application get translated up (my layout is plain blue, there shouldn't be a white area above the chin. It's seems that the app gets translated to compensate for the chin ???
As you can see in this picture:
I hope you will have ideas to help me solve this problem because it prevents my app from being accepted as a Wear App by google...
i found out that is was caused my setting android:screenOrientation="portrait" in my wear manifest
Related
I'm trying to create an android app with a fixed landscape orientation so I updated the manifest to include the following
activity android:name=".MainActivity"
android:screenOrientation="sensorLandscape"
This worked perfectly on a Pixel 2 phone, but when I opened the app on a Nexus 9 Tablet the orientation matched the rotation of the device as if I had done nothing.
Why is this happening and what can I do to resolve the issue?
I'm fairly novice, so please keep things simple.
cheers
Try adding
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
to your OnCreate method and see what happens
I noticed that the Samsung apps have a specific shape; for example, the Gallery, Camera, Phone, Messages and Internet app icons below.
Is there a way to specify an icon for Samsung devices only? Something similar to how the new Google Pixel uses the android:roundIcon attribute in the manifest?
I tried looking for something in the Samsung Developer documentation, but there does not seem to be anything on the topic.
The devices do have a way of recognizing the Samsung apps, considering the Icons with backgrounds setting [Settings > Display > Icon backgrounds] enables a similarly shaped background for all other apps. For example, the Google Play Store icon below.
But I am unsure if this is a publicly-available option.
This question would be inconsequential if Samsung adopts Android Oreo's new adaptive icons; but as far as I know they haven't yet.
You can disable TouchWiz to surround your application icon in a rounded square frame by setting
<application>
<meta-data android:name="com.samsung.android.icon_container.has_icon_container" android:value="true"/>
</application>
to your AndroidManifest.xml
To detected if you are running in a Samsung device is easy:
android.os.Build.MANUFACTURER == "samsung"
More info here
So after you have defined that you are running in a Samsung device, you could change your app to change the app icon programatically when running in Samsung devices. But unfortunately android doesn't provide a way of doing it.
There are some work arounds to change de app icon, you can check here, here and here
If you really need to change your icon, you can try the workarouds, but if is just to keep in standard with the non-standard samsung icons, them I would not do it ;)
i have created an application which is only work on potrait mode, Samsung screening review give a issue application work on landspace mode on Mid-end Galaxy (LQVGA), They also give video for same to identify, i found they are right, My app show in landscape mode for that device, but i am not able to find the reason, Why this is happen, because except that device my app work fine on all device, i also find device name is Galaxy M pro , i am attaching file screen shot of issue, please suggest me any way to resolve this issue, i already added android:screenOrientation="portrait" that in all activity of manifest.xml file
I am noticing strange blue markings when I visit certain webpages on Samsung galaxy note 10.1 is running android 4.1.2. This is only happening on one website and not the other. I have attached screenshots of both. I think it could be due to certain CSS or JS. Not sure what is is. Please help.
http://i.stack.imgur.com/rxPFO.png
http://i.stack.imgur.com/25cNO.png
It looks like you may have an advertising blocker running. Could there be a banner add that should be showing where those blue images are?
Actually my problem is the same as the question posted in :
the same problem
But there is no answer yet..
Here is the problem I got :
I've just built an application using sencha touch & phone gap. It runs well on my galaxy tab but when I rotate it to portrait or landscape, it is going crash.
I have added :
android:configChanges="orientation|keyboardHidden"
on my manifest file but it is still going crash when I rotate it.
I don't know how could this happen.
Could someone help me?
Note :
I'm using
- Galaxy tab
- Sencha-touch 1.1
- Phone gap 1.2
You should have
android:configChanges="keyboardHidden|orientation|screenLayout"
instead of
android:configChanges="orientation|keyboardHidden"
to your activity in the manifest
Might be a bit late... but since I've recently been trying this, I found that specifying
android:configChanges="orientation|screenSize|keyboardHidden"
works where as
android:configChanges="keyboardHidden|orientation|screenLayout"
does NOT.
I'm using cordova 2.0.0.