Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
LinkBack Thread Tools
Old August 3rd, 2011, 09:56 AM   #1 (permalink)
Junior Member
Thread Author (OP)
Join Date: Feb 2011
Location: Ukraine, CK
Posts: 31
Device(s): Galaxy Tab 10.1 Galaxy Nexus
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via ICQ to vovs Send a message via Skype™ to vovs
Default How to make icon of app on desktop? Problems with WebView

Hi, guys!
In my app I have one activity with WebView.

When I push Home button and then click on icon my app -- web page do not reload - it is good. But in code I create icon manually:

private void createIcon(int iconId){
        final Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
        ComponentName name = new ComponentName(getPackageName(), ".FullScreenBrowserActivity");

        Intent addIntent = new Intent();
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "Fulscreen Browser");
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, iconId));

When I click this icon - app starts new copy of themselfs and webpage starts loading.

How to make new icon on desktop manual(after install) and when click on icon - webpage in WebView do no reloading?


vovs is offline  
Reply With Quote
sponsored links
icon, webview

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 12:38 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.