There
are free tools such asOptiPNGor
PNGCrushor
TinyPNG
for optimizing PNG image files. These tools are open-source and use
command line utilities for optimizing PNG images. They can compress
the image by using various combinations of algorithms, such as
changing the bit depth, replacing unwanted chucks of data with text,
delta filters, and so forth to provide the smallest compressed
output.

If
your app is highly depend on art/creative then you should think over
optimizing and shrinking art/creative to decrease file size, it would
help you to decrease APK size.

During
development you typically add a lot of resources such as files,
layouts, or drawables. As you go back and made changes and
improvements, some of these resources are no longer used, and get
left in your code. To detect such unused resources and remove them
from your APK file, use the android-unused-resourcestool.
It scans your project and identifies unused resources. Removing them
minimizes the build time and reduces the APK file size.

There
are some other tool for Json to POJO conversion, but it is not like
the above one, we can't copy and paste the Json, rather than we
should give the json url as input. For more info check
Jsongen.byingtondesign

Thanks for reading :)

Whether this post is helpful?

Have something to add to this post? If you have any other quick thoughts/hints that you think people will find useful? Share it in the comments and feedback are welcome.

Friday, July 11, 2014

Know a days we are seeing facebook,whatsapp and lots of apps are using badges on the app icon and they are not replacing any app icon and they are able to achieve badge on app icon and we should be having question, How it is possible?

iOS
style badge icon is achieved in android by few manufactures (Sony,
Samsung, HTC...) but the way of implementation is different from each
one of the manufacture for the badge on app icon.

Before
implementing the badge on app icon, check the manufacture and then
support.

You can download the source code by clicking Source Code Click Here: . This project is built using eclipse IDE. Unzip and import the project into Eclipse, it’s a good idea to use the Project by clean and rebuild from the project menu. It works in all API levels above 9

Thanks for reading :)

Whether this post is helpful?

Have something to add to this post? If you have any other quick thoughts/hints that you think people will find useful? comments/feedback are welcome.

call
the loadUrl() on webview object inside the onCreate() method of your
activity class and pass the url as a parameter to it .

WebView
webView = (WebView) findViewById(R.id.displayWebview);

webView.setWebViewClient(new
WebViewClient());

webView.loadUrl("https://www.google.co.in/");

Problem:
WebView is not loading if the request is https.

When
we try url with https request, we may face blank page or error
message saying “web page not available”

Issue:

WebView
support ssl default and If we want to support third party then with
few methods like setCertificate and so on we can make it. However,
WebView Shows blank screen if it is not supporting the certificates.
So, Catch the exception in onReceivedSslError
method and do respective action when certificate is not supported.
When certificate is not supported we may get blank screen or “Web
Page not available, The webpage at might be temporarily down or it
may have moved permanently to a new web address”.

Solution:

There
is a Work around to solve the issue by Overriding onReceivedSslError
method of WebViewClient as shown below.