My application breaks phone or some other apps' Notification Icon, Android - android

I have an interesting problem, my phone model is LGP800 and Android 4.1.2.
I'm developing an application and i'm using camera in this application. When I capture any photo for post, my phone behaves abnormally and other signs (notification icons of apps) also get broke sometimes. I can't find problem like this that nobody hasn't confronted it before. An example secreenshot
Like this picture, my application shows some weird screen or even phone's other apps' notification icon get broke by my application. Example; my wi-fi icon on the tab bar was broken.
Can anyone help, any help is appreciated.!
And also when I capture any picture, it is taken like that;
İt is taken broke, too.

Related

Notification icon is greyed out sometimes but works sometime

I am working on an Android application in which I face an issue in Android push notification icon.
The notification icon does not display its content instead displaying in grey colour.
After the research, I could understand that there is a change required in icon for adding transparent and/or white backgrounds since the Android version 5.0
But, my problem now is that I am unable to strongly convey my client about this issue as he shared a screenshot of his Realme X2 Pro device.
It seems that sometimes the device displays in right manner but sometimes not. Please help me find out the solution.

How to implement the same Launcher icon on all Android Devices?

Recently, I am implementing the adaptive launcher icon in my android application. I have successfully implemented it.
I ran my application on some Gionee mobile( mostly i run my application on Stock Android) running on customized Android 6.0 like mi or Huawei. I found out that there is some kind of ugly mask the manufacturer has embedded in the customized Android which makes the App Icons ugly.
So, I downloaded other apps and found out that other apps also have this ugly mask but apps like Google Tez, Google PlayStore, and many other Google apps are somehow defying this ugly mask thing making their icons like the original. How are they doing it?
I thought by putting their launcher icons into mine could put an end to my misery and I will somehow get the insight of making the launcher icon more compatible.
Here is the result of putting Tez icon in my resource file.
As you can see there is that ugly mask in my icon on the left of google chrome and the right one is the original Tez app icon. How are they doing it?

Disable Notification Tray appearing android when pulled down

A little background first. I'm developing an application for corporate devices running on the Android platform. It won't be distributed on the Play store and thus, is unavailable to the general public. The devices are owned by the company and its only purpose is to run this application. So accessing the home screen/notifications/application history/ app drawer are unnecessary and in fact we want to focus the user experience directly on this application.
The current problem I'm facing is preventing access to the notification tray. Simply making the application full screen is not a solution. We do actually need to see the status bar. It's the easiest way to provide network,gps and battery status information to the user.
So far my research has only turned up one solution, which is to go full screen (again, not a solution for this problem, I need the status bar to be visible).
Can anyone help me out !!

While selecting an image the app restarts on S3

I am developing an app that need to upload images to the server using WebView. But when user clicks on File Chooser button and selects Gallery or Camera to select the photo. My app restarts.
This is surely a memory issue, because if I restart my mobile phone, it starts working fine.
This issue is only seen on S3 and a few other devices. On most of the devices it works fine.
Edit:
The issue is not related to the IMAGE SIZE. Even if I choose the gallery to select the image and when the gallery opens I just click back button to go back to the app and the app restarts.
That means it has nothing to do with the image size. When the gallery opens in full screen and my app goes to background, Android kills my app because of low memory or something like that. But I don't know how to handle it.
i am saving my webview state and restoring it....but its not helping
It's normal for the system to terminate your activities. What you can and should do is to write your app so that it can restore its state correctly. See the Android documentation Recreacting an Activity for more information.
It is tough to say what should be causing the error, as you are unable to post your logcat output. However, here are a few answers to the similar issue, try this and this, and see if you are able to solve your issue.

How to display balloon counter over application launcher icon on android

I would like to make an icon counter for andoid just like the Email and the Samsung Apps applications i have seen such requests from other developers, but you all say it can't be done.
if so how come those 2 apps and other apps can do it?
do i have to make like more than one icon image and swap them or something?
is it really cant be done and why?
thanks.
you all say it can't be done.
That is because it cannot be done, except by the maker of the home screen, or via an app widget (instead of a launcher icon).
if so how come those 2 apps and other apps can do it?
Because Samsung wrote the home screen and can do what it wants with its home screen.
do i have to make like more than one icon image and swap them or something?
That will not work, as you cannot change the launcher icon at runtime.
is it really cant be done and why?
It really can be done by making an app widget, or by making your own home screen.

Categories

Resources