create the widgets?

by tangke » Tue, 09 Nov 2010 02:54:31 GMT


Sponsored Links
 hi guys.

I am a new developer in android, and I see some examples about activity,
but I don't know How can I create the widget dynamicly?

thanks in advance.



--



create the widgets?

by Kumar Bibek » Tue, 09 Nov 2010 02:59:46 GMT


 What exactly do you mean by "widget dynamically"? I am sure there are some
tutorials on Appwidgets if that is what you are looking for.




>


Sponsored Links


Other Threads

1. [WTA] most oprekable android

As subject, mau nanya, handheld android yang paling enak untuk dioprek saat
ini apa yah?
Selama ini pake wildfire, sebenernya cukup suka, masalahnya hanya
kemampuannya lumayan terbatas, jadi mulai menimbang-nimbang handheld yang
lebih mumpuni :D
Kemarin sempat tergoda sama motorola defy, tapi koq kabarnya motorola susah
dioprek jadi ragu lagi.

So... any recommendation?

Regards
Galeshka

-- 
for those who speak knows nothing and those who know says nothing

http://galeshka.wordpress.com
http://www.plurk.com/galeshka
http://www.twitter.com/galeshka
http://www.facebook.com/shinte.galeshka

-- 
===============

2. A WebView inside of a fragment

I'm trying to get a hook to a WebView in my layout and it's coming back null
each time.  Can anyone tell me what I'm doing wrong here?

WebViewFragment.java

public class WebViewFragment extends Fragment
{
    private View mContentView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
    {
        mContentView = inflater.inflate(R.layout.web_view_fragment, null);

        return mContentView;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState)
    {
        super.onActivityCreated(savedInstanceState);

        WebView webview = (WebView)mContentView.findViewById(R.id.webview);
        // use webview to set url...
    }
}


web_view_fragment.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <WebView
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="2" />
</LinearLayout>

--
Chris Stewart
http://chriswstewart.com

-- 

3. [WTA] Setting clock speed

4. How is your sales model changing with the introduction of Android 3.0 and tablets, or is it?

5. Is anybody using amazon S3 for uploading files from android?

6. Anggota baru sesama galaxy 5

7. Minta Pendapat ke 2