Thanks ..Niraj
On 8 Jan 2012 13:09, <android-developers@googlegroups.com> wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/android-developers/topics
>
>    - HttpURLConnection + keep alive timeout? (the way forward starting
>    with gingerbread) <#134bc341789c8d39_group_thread_0> [2 Updates]
>    - onDraw canvas within a ScrollView? <#134bc341789c8d39_group_thread_1>[1 
> Update]
>    - why standart android gallery working 
> well?<#134bc341789c8d39_group_thread_2>[3 Updates]
>    - Fire an onClick <#134bc341789c8d39_group_thread_3> [1 Update]
>    - SAXParser UnknownHostException for RSS 
> Feed<#134bc341789c8d39_group_thread_4>[1 Update]
>
>   HttpURLConnection + keep alive timeout? (the way forward starting with
> gingerbread)<http://groups.google.com/group/android-developers/t/666c70ba085f8b54>
>
>    Jonathan S <xfsuno...@gmail.com> Jan 07 02:37PM -0800
>
>    There is setConnectTimeout(int)<
>    
> https://developer.android.com/reference/java/net/URLConnection.html#setConnectTimeout%28int%29>-
>    Sets
>    the timeout value in milliseconds for establishing the connection to
>    the
>    resource pointed by this URLConnection instance.
>    There is setReadTimeout(int) - Sets the timeout value in milliseconds
>    for
>    reading from the input stream of an established connection to the
>    resource.
>
>
>
>
>    Nikolay Elenkov <nikolay.elen...@gmail.com> Jan 08 01:40PM +0900
>
>    > instance.
>    > There is setReadTimeout(int) - Sets the timeout value in
>    milliseconds for
>    > reading from the input stream of an established connection to the
>    resource.
>
>    I don't think those are related to the pooling implementation. Do you
>    have any
>    evidence that they are?
>
>
>
>   onDraw canvas within a 
> ScrollView?<http://groups.google.com/group/android-developers/t/5bdffb5a3aa52977>
>
>    martypantsROK <martyg...@gmail.com> Jan 07 07:21PM -0800
>
>    How can I construct this scenario?
>
>    I want to build a game where the game board is a canvas controlled by
>    a custom View but within a ScrollView. The game board is potentially
>    much bigger than the screen and I want to scale, scroll around the
>    game. However, I want all the advantages of the UI outside the game
>    board to include Buttons, TextViews, ImageViews, etc.
>
>    Here's the outline code of what I imagine should work. Am I wrong in
>    thinking I can use both
>    my own onDraw and expect buttons and other widgets to be managed by
>    Android? Must I implement
>    all my own UI ?
>
>    Just trying to deal with a Button (see below) fails me
>
>    Here's the XML where I want my custom view surrounded by other UI
>    elements
>    ------------------------------
>    // game.xml <snippet>
>    <ScrollView
>    android:layout_width="240dp"
>    android:layout_height="600dp"
>
>    <com.android.example.game.DrawBoardView
>    android:layout_width="match_parent"
>    android:layout_height="match_parent"/>
>    </ScrollView>
>    <TextView
>    android:id="@+id/sometext
>    android:layout_width="120dp"
>    android:layout_height= "wrap_content"
>    android:layout_weight="1"
>    android:visibility="gone"/>
>    <Button
>    android:id="@+id/editname"
>    android:text="DoIt"
>    android:layout_height="wrap_content"
>    android:layout_width="wrap_content">
>    </Button>
>
>
>    My main activity
>    ----------------------
>    // Activity
>    public class gameStartActivity extends Activity {
>    @Override
>    public void onCreate(Bundle savedInstanceState) {
>    super.onCreate(savedInstanceState);
>
>    setContentView(R.layout.game);
>    }
>    }
>
>
>
>    // gameView.java
>    public class gameView extends View {
>
>    public gameView(Context context) {
>    super(context);
>    setFocusable(true); //necessary for getting the touch events
>    InitBoardView();
>    }
>
>    private void InitBoardView(){
>    Button myButton = (Button)findViewById(R.id.editname);
>
>    -----> fails at this point as myButton is null
>    myButton.setOnClickListener(doSomething);
>    }
>    @Override
>    protected void onDraw(Canvas canvas) {
>    super.onDraw(canvas);
>    canvas.drawBitmap(face, getPaddingLeft(), getPaddingTop(),paint);
>    }
>
>    @Override
>    protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec)
>    {
>    super.onMeasure(widthMeasureSpec, heightMeasureSpec);
>    final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
>    final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
>    setMeasuredDimension(xSize, ySize);
>
>    }
>    }
>
>
>
>   why standart android gallery working 
> well?<http://groups.google.com/group/android-developers/t/c533297c0516fafa>
>
>    satahippy <satahi...@gmail.com> Jan 07 03:14PM -0800
>
>    slow work...
>    how it's sound in english?
>
>
>
>
>    satahippy <satahi...@gmail.com> Jan 07 03:26PM -0800
>
>    lags?
>
>
>
>
>    Kristopher Micinski <krismicin...@gmail.com> Jan 07 05:58PM -0600
>
>    Ah yes, that is more correct and helpful! Brakes would probably be
>    misinterpreted by most people as 'breaks' :-)
>
>    kris
>
>
>
>
>   Fire an 
> onClick<http://groups.google.com/group/android-developers/t/ed8a09fef6445968>
>
>    Sean751 <sean...@gmail.com> Jan 07 02:43PM -0800
>
>    Is there a way via code to fire an onClick event?
>
>
>
>   SAXParser UnknownHostException for RSS 
> Feed<http://groups.google.com/group/android-developers/t/3adcb183b30c27f2>
>
>    Jonathan S <xfsuno...@gmail.com> Jan 07 02:30PM -0800
>
>    UnknownHostException means Host is not found. The emulator is having
>    trouble to access DNS. Are you are under firewall?
>
>
>
>  You received this message because you are subscribed to the Google Group
> android-developers.
> You can post via email <android-developers@googlegroups.com>.
> To unsubscribe from this group, 
> send<android-developers+unsubscr...@googlegroups.com>an empty message.
> For more options, 
> visit<http://groups.google.com/group/android-developers/topics>this group.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to