Re: [android-developers] Re: Problems with Custom Image View

2013-09-16 Thread Subin Sebastian
On Mon, Sep 16, 2013 at 1:43 PM, Piren gpi...@gmail.com wrote:

 super.onMeasure(heightMeasureSpec, heightMeasureSpec)


+1 for the super.onMeasure(heightMeasureSpec, heightMeasureSpec); but the
problem is solved by using a different layout mechanism. Instead of as a
child, I moved the textview out to anchor to the root relative layout and
it works fine.

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/rl_root

android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=10dp 

LinearLayout
android:id=@+id/linearLayout1
android:layout_width=wrap_content

android:layout_height=wrap_content 


com.viktorq.widgets.IconView
android:id=@+id/iv_order_status
android:layout_width=wrap_content

android:layout_height=fill_parent
android:layout_marginRight=10dp
android:src=@drawable/ic_launcher /

LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content

android:orientation=vertical 


TextView
android:id=@+id/tv_order_id
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=16sp

android:textStyle=bold /


TextView
android:id=@+id/tv_order_date
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=10sp /

TextView
android:id=@+id/tv_laundry_pounds
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView /
/LinearLayout
/LinearLayout

TextView
android:id=@+id/tv_total
android:layout_width=wrap_content

android:layout_height=wrap_content
android:layout_alignBottom=@+id/linearLayout1
android:layout_alignParentRight=true

android:gravity=center_vertical|right
android:text=$0
android:textColor=#578F50

android:textSize=30sp
android:textStyle=bold /

/RelativeLayout




-- 
Thanks  Regards
--
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Problems with Custom Image View

2013-09-15 Thread Subin Sebastian
@Piren,
The xml for the row is as below. Please take a look.

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/rl_root

android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=10dp 

LinearLayout
android:layout_width=match_parent
android:layout_height=wrap_content 

com.viktorq.widgets.IconView

android:id=@+id/iv_order_status
android:layout_width=wrap_content
android:layout_height=fill_parent

android:layout_marginRight=10dp
android:src=@drawable/ic_launcher /

LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content

android:orientation=vertical 


TextView
android:id=@+id/tv_order_id
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=16sp

android:textStyle=bold /


TextView
android:id=@+id/tv_order_date
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=10sp /

TextView
android:id=@+id/tv_laundry_pounds
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView /
/LinearLayout

TextView
android:id=@+id/tv_total

android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_weight=1

android:gravity=center_vertical|right
android:text=TextView
android:textColor=#578F50

android:textSize=30sp
android:textStyle=bold /
/LinearLayout

/RelativeLayout


I will also send the bordered screenshot soon.


On Sun, Sep 15, 2013 at 11:53 AM, Piren gpi...@gmail.com wrote:

 How did you define the xml for the row item?
 It would also be helpful if you turn on the developer option to show
 layout borders and provide another screen cap


 On Sunday, September 15, 2013 6:06:54 AM UTC+3, Napster wrote:

 The paste is in here : 
 http://paste.ubuntu.com/**6108587/http://paste.ubuntu.com/6108587/
 And here is a screenshot of the current output.

 [image: Inline image 1]


 On Sun, Sep 15, 2013 at 8:30 AM, Subin Sebastian subinse...@gmail.comwrote:

 Hello Group,

 I have created a custom ImageView to show icons in my list view items.
 The idea is to show, perfectly square icons with each list view items. The
 following is the code fragments I have.

 public class IconView extends ImageView {

 public IconView(Context context, AttributeSet attrs, int defStyle) {
 super(context, attrs, defStyle);
 }

 @Override
 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
 super.onMeasure(widthMeasureSp**ec, heightMeasureSpec);
 int height = getMeasuredHeight();
 setMeasuredDimension(height, height);
 }}


 and the XML is,

 com.napster.widgets.IconView
 android:id=@+id/iv_order_**status
 android:layout_width=wrap_**content
 android:layout_height=fill_**parent
 android:layout_marginRight=**10dp
 android:background=#567567
 android:src=@drawable/ic_**launcher /


 The problem with this approach is that, the rest of the views in the
 list cell, goes out of display partially. I tried to invalidate() the
 convertView in my adapter's getView() method, but it does not seem to
 work. How to solve this problem?

 --
 Thanks  Regards
 --
 Subin Sebastian
 http://in.linkedin.com/in/**subinsebastienhttp://in.linkedin.com/in/subinsebastien




 --
 Thanks  Regards
 --
 Subin Sebastian
 www.nintriva.com
 http://subinsebastien.tumblr.**com http://subinsebastien.tumblr.com
 http://in.linkedin.com/in/**subinsebastienhttp://in.linkedin.com/in/subinsebastien
 http://plus.google.com/subinhttps://plus.google.com/118262481642737404812
 http://facebook.com/**subinsebastien http://facebook.com/subinsebastien

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Thanks  Regards

[android-developers] Problems with Custom Image View

2013-09-14 Thread Subin Sebastian
Hello Group,

I have created a custom ImageView to show icons in my list view items. The
idea is to show, perfectly square icons with each list view items. The
following is the code fragments I have.

public class IconView extends ImageView {

public IconView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int height = getMeasuredHeight();
setMeasuredDimension(height, height);
}}


and the XML is,

com.napster.widgets.IconView
android:id=@+id/iv_order_status
android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_marginRight=10dp
android:background=#567567
android:src=@drawable/ic_launcher /


The problem with this approach is that, the rest of the views in the list
cell, goes out of display partially. I tried to invalidate() the
convertView in my adapter's getView() method, but it does not seem to
work. How to solve this problem?

-- 
Thanks  Regards
--
Subin Sebastian
http://in.linkedin.com/in/subinsebastien

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] About accessing List View items from a different Thread

2012-09-27 Thread Subin Sebastian
Thanks Justin, and Blake.
I was not aware of Loaders. I will try both the approaches, and will give
feedback soon.
-- 
Thanks  Regards
--
Subin Sebastian

-- 
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

Re: [android-developers] Re: About one of my app idea | Please share your thoughts.

2012-07-28 Thread Subin Sebastian
Thanks Nobu.

On Wed, Jul 25, 2012 at 8:46 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 But apart from normal text+image pages, I'm planning to include simple
 animations,
 audio background and touch events along with the content.


 Please do not try to reinvent the Internet of the late 1990ies. GIF
 animations and background MIDI music galore popped into my mind while
 reading this... :-/


 This is to provide a better reading experience to the users.


 People got very distracted by that. It distracts you from reading and
 doesn't improve the reading experience. Unless you are trying to pull off
 something interactive for children, I think then it's ok to have.


Actually, I'm targeting kids comics. Say for example some Cinderella story
with
on touch animations and sound effects etc.



 The main problem I see here is that you'll have to invent a format /
 standard / desktop software for creating that multimedia content. It's
 highly unlikely that book authors are ready to adopt that. You'd need lots
 of marketing and traveling around to book fairs etc. for convincing them
 into doing work for a single platform (Android) and proprietary format
 invented by you.

 And in the end of the day you'll have to ask yourself the following
 question: how is that interactive print format any different than an HTML
 page with embedded multimedia contents?


You re right upto an extend. The ides is still in incubation. I have seen
apps like
Kobo out there which excels with text only contents.



  I'm planning to use Urban Airship as the backend.


 As far as I know they just provide a unified push service for several
 platforms. What do you mean with using them as a backend?


They have in-app purchases, subscriptions management etc.



   --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

[android-developers] About one of my app idea | Please share your thoughts.

2012-07-24 Thread Subin Sebastian
Hi Devs,

I'm here for some valuable suggestions from you people. I'm planning to
develop a book store app for Android,
something like iBooks for iPhone. But apart from normal text+image pages,
I'm planning to include simple animations,
audio background and touch events along with the content. This is to
provide a better reading experience to the users.
The base idea is to release books into this app as a paid in-app purchase.
Books as I mentioned contains text, images
animations, audio, and on touch events. I'm planning to use Urban Airship
as the backend.

In which direction I should go? Do you have some suggestions for me? Please
share your thoughts on this.

Thanks  Regards
-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

[android-developers] Re: Issue with TabHost Without Tab activity

2012-06-07 Thread Subin Sebastian
Can anyone help me out on this?

On Wed, Jun 6, 2012 at 6:42 PM, Subin Sebastian subinsebast...@gmail.comwrote:

 I have an activity named *One *and the layout xml for that activity is
 here :* *https://gist.github.com/2881650
 And the code for this activity class is here :
 https://gist.github.com/2881736
 In the tabhost, I have added a tab and another activity *Two *is running
 inside the tab.
 The weird problem is that, I'm not able to type something in the textbox
 above the Tabhost in the parent layout. I'm attaching the build for this
 code
 for reference as well. Someone please suggest me a solution.

 Thanks  Regards
 --
 Subin Sebastian
 http://subinsebastien.tumblr.com
 http://in.linkedin.com/in/subinsebastien
 http://plus.google.com/subinhttps://plus.google.com/118262481642737404812
 http://facebook.com/subinsebastien




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

[android-developers] Issue with TabHost Without Tab activity

2012-06-06 Thread Subin Sebastian
I have an activity named *One *and the layout xml for that activity is here
:* *https://gist.github.com/2881650
And the code for this activity class is here :
https://gist.github.com/2881736
In the tabhost, I have added a tab and another activity *Two *is running
inside the tab.
The weird problem is that, I'm not able to type something in the textbox
above the Tabhost in the parent layout. I'm attaching the build for this
code
for reference as well. Someone please suggest me a solution.

Thanks  Regards
-- 
Subin Sebastian
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

simple.apk
Description: application/vnd.android.package-archive


Re: [android-developers] Re: About Phone GAP

2011-12-02 Thread Subin Sebastian
Hi All,

The thing is that Phonegap and Sencha/JQuery mobile are not the same.
Phonegap is a framework which extends Android Webview. Sencha/JQMob
provides a wrapper to HTML/CSS to make it UX friendly. I have used phonegap
to run applications on Android before I started with native programming.
Phonegap cloud build is good place to hold source code and to build apps
for different platforms. But it doesn't mean that PhoneGap is the only
solution to develop cross platform mobile applications!!!

AnscaMobile's corona is a far more effective way. Even though they only
priced options and package becomes heavier, it is professionally written -
even for gaming! Anyway, I dont like PhoneGap or Corona just because of
their poor performance over native or NDK applications on Android.

Regards

On Sat, Dec 3, 2011 at 3:42 AM, Miguel Morales therevolti...@gmail.comwrote:

 It's ok for what it is.
 But, it's just all the layers of abstraction in HTML/JS that make it
 really slow.
 I doubt they will gain much more speed on mobile devices, perhaps by using
 hardware acceleartion.

 In either case, it's slow and it looks and feels like crap.
 But it's perfect for simple apps, users just want things that work.
  Although they prefer things that work well.


 On Fri, Dec 2, 2011 at 1:42 AM, ghenne g...@nsbasic.com wrote:

 For an alternative to working with HTML/CSS/JS, have a look at NS
 Basic/App Studio http://www.nsbasic.com/app. It's got a drag and drop
 interface for creating forms and lets you code in a subset of VB or in
 JavaScript. The projects can be deployed as web apps or through a built in
 interface to PhoneGap.

 It makes life much easier for people coming from VB like environments.

 --
 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




 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://solrpg.com/,
 http://www.youtube.com/user/revoltingx

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] how i use google app engine for android

2011-12-02 Thread Subin Sebastian
Hi Yesh,

GAE is a perfect place to run computationally heavy applications. GAE
instances are completely self managed cloud servers. It is not clear that
why do you want to use GAE for your application anyway. GAE servers respond
the same way as other web-servers do. But GAE is much reliable and easy to
use. Coding and deployment and even version controlling is easy as we speak
on GAE. If you want to know more about how to use it, deploy - you can
directly contact me as this list is specifically for Android threads. I
hope you know how to make an http client in Android by the way!

Regards.

On Fri, Dec 2, 2011 at 5:35 AM, yash kumar er.yashkumar...@gmail.comwrote:

 i want to use google app engine in android.how can i use what is best
 resource for that and what are the benifits of using google app engine

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Opening a navigation window from an android application

2011-12-02 Thread Subin Sebastian
Devie,

How about throwing an intent with a bundle of data. I'm not sure how it
would work with the geolocation app, but if you really need it I could take
a look.

Regards

On Fri, Dec 2, 2011 at 11:28 PM, Davie davie1...@gmail.com wrote:

 Any ideas on how to pass the native naviation app a geolocation and
 start navigating from an android app?

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] TabHost and sub-activities

2011-12-02 Thread Subin Sebastian
Hi wBishop,

You should probably show us the code you have developed so far. I think it
is not big issue to run controlled child activities.

Thanks


On Fri, Dec 2, 2011 at 3:42 PM, wBishop walterb...@gmail.com wrote:

 Howdy,

 I'm using tabactivity to navigate between activities. In one activity
 when I press a butto I call other activity that's under the tab host.
 In other words: I have the following:

 Tab1:
  - Activity 1
 Tab2:
  - Activity 2
- Sub-activity 1

 When I press the tab2 while I'm on sub-activity I wanted to return to
 Activity 2, but I'm starting to run out of ideias on how to do this.

 Do you know how can I accomplish this?

 Thanks

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Re: Need A web xml parsing code... Urgently please

2011-12-02 Thread Subin Sebastian
Hi Aniket,

You might probably want to take a look at SAX or JSoup.
By the way : http://www.catb.org/~esr/faqs/smart-questions.html

Regards.

On Fri, Dec 2, 2011 at 10:47 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 When I run that code, it never returns from -

 iHaveTheSkillToDoMyOwnWork()

 :-)

 Regards

 On Dec 2, 7:51 am, Streets Of Boston flyingdutc...@gmail.com wrote:
  Sorry Treking,
  But the example you provided won't work. He asked for Urgent*ly* ...
 slight
  typo on your part, can happen to the best of us
  :-D

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Example to use setError in EditText

2011-12-02 Thread Subin Sebastian
Hi Xiao,

OnKey*();

Regards

On Thu, Dec 1, 2011 at 8:37 PM, Xiao-long Gou xiaolong@gmail.comwrote:

 Hey, guys.

 I just want to see where should I call setError(),if I want validation
 information to be poped each time the content is changed.

 Regards,
 XLG

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Re: Display Video view in a curved shape

2011-10-19 Thread Subin Sebastian
On Tue, Oct 18, 2011 at 9:55 PM, Chenna chenn...@gmail.com wrote:

 Thanks Subin.

 I tried to create a shape with rectangle with rounded corners  in xml
 and added this as a background to VideoView.

Not as background of the VideoView. Rather create a parent layout for
VideoView, and set the shape as the background for the parent view.

 But did not displayed
 video.

 How http://qik.com/ created videoViews?

 thanks
 Chenna

 On Oct 18, 12:43 pm, Subin Sebastian subinsebast...@gmail.com wrote:
  Chenna,
 
  Did you try creating a parent view with rounded corners for the video
 view?
 
 
 
 
 
 
 
 
 
  On Tue, Oct 18, 2011 at 6:17 AM, Chenna chenn...@gmail.com wrote:
   Hi
 
   I am doing a live video stream and displaying in video view. But this
   video view is in rectangle. But i want to display video in a curved
   shape. How to draw a video view into a required shape.
 
   thanks
   Chenna
 
   --
   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
 
  --
  Subin Sebastianwww.nintriva.comhttp://
 in.linkedin.com/in/subinsebastienhttp://plus.google.com/subin
 https://plus.google.com/118262481642737404812
 http://facebook.com/subinsebastien

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Display Video view in a curved shape

2011-10-18 Thread Subin Sebastian
Chenna,

Did you try creating a parent view with rounded corners for the video view?

On Tue, Oct 18, 2011 at 6:17 AM, Chenna chenn...@gmail.com wrote:

 Hi

 I am doing a live video stream and displaying in video view. But this
 video view is in rectangle. But i want to display video in a curved
 shape. How to draw a video view into a required shape.

 thanks
 Chenna

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] sorting the listview

2011-10-17 Thread Subin Sebastian
Hi Vani,

Hope you will probably be using an array list in your application. I cannot
specifically answer you unless I see the code. Anyway, if you are using
ArrayListYourDataType type implementation, sort the list using a getter
method in YourDataType class. Then you can adapt the data into the list
view. You can check my article
herehttp://subinsebastien.tumblr.com/post/11471793017/extending-listview-in-androidif
you wish. If you can share the mentioned code, may be I can work
something out.

Regards
-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] Re: How to stop generation of code from .apk

2011-10-17 Thread Subin Sebastian
@Dileep,

:) Read lbendlin's mail again...

On Mon, Oct 17, 2011 at 5:55 PM, dileep discover.dile...@gmail.com wrote:

 Thanks Ibendlin.
 How not to put code into .apk?
 Regards
 Dileep

 On Oct 17, 4:43 pm, lbendlin l...@bendlin.us wrote:
  You cannot prevent this from happening. The only way to stop code
 generation
  from .apk is not to put the code into the .apk. If you have a
 client/server
  app, move more logic to the server.

 --
 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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
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

Re: [android-developers] sorting the listview

2011-10-14 Thread Subin Sebastian
@Vani,

It is not clear that what data you are adapting to the ListView. Anyway, use
some standard algorithms to sort yourData by date just before a line
something like this in your code appears.

yourListView.this.getListView().setAdapter(new
yourAdapter(yourListView.this, R.layout.your_row, yourData));

Hope that helps.
-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812
http://www.facebook.com/subinsebastien

-- 
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

Re: [android-developers] Re: How to control the rotation

2011-10-12 Thread Subin Sebastian
Hi Perry,

You can use Android animation for the same.
Add the following code into a file in res/anim, say rotation.xml

?xml version=1.0 encoding=utf-8?
rotate xmlns:android=http://schemas.android.com/apk/res/android;
android:fromDegrees=0 -- you can change these
android:toDegrees=360-- values as required
android:toYScale=0.0 --noscaling
android:pivotX=50% --the pivot is
android:pivotY=50% --the center of the image
android:duration=4000 --rotates in 4 seconds
/

Then, in your activity,

final ImageView yourImage = (ImageView) findViewById(R.id.your_image_file);
final Animation yourRotation =
AnimationUtils.loadAnimation(getApplicationContext(),R.anim.rotation);
yourImage.startAnimation(yourRotation);
yourRotation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationEnd(Animation animation) {
Intent i = new Intent(Fromclass.this, Toclass.class);
startActivity(i);
}
});


Hope this is useful for your requirement.

Thanks
-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

-- 
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

Re: [android-developers] Re: working with tabs (tabhost)

2011-10-11 Thread Subin Sebastian
Hi Kristoffer,

Hope you were following the tutorial I've posted in the last response. I've
figured out a way to do your requirement. The idea is to clear all the tabs
which is loaded before in onClick of the button inside one of the view. You
can move that code into yout on_preference_change (or what ever you are
using). Anyway, I'm not sure this is the optimal way to do the same, but it
works!

Thanks

public class HelloTabActivity extends TabActivity {
int verified = 1;
TabHost mTabHst;
View view1,view2;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mTabHst = getTabHost();
view1 =
((LayoutInflater)getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_one,(ViewGroup)
mTabHst.getChildAt(2));
view2 =
((LayoutInflater)getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_two,(ViewGroup)
mTabHst.getChildAt(2));
view1.findViewById(R.id.button1).setOnClickListener(new
OnClickListener(){
@Override
public void onClick(View arg0) {
verified = 0;
setTabs();
}
});
setTabs();
mTabHst.setCurrentTab(0);
}
private void setTabs(){
Resources res = getResources();
mTabHst.clearAllTabs();

mTabHst.addTab(mTabHst.newTabSpec(tab_test1).setIndicator(One,res.getDrawable(R.drawable.one)).setContent(new
TabContentFactory() {
@Override
public View createTabContent(String tag) {
//int verified = pref.getInt(verified, 0);
if (verified == 1)
return view1;
else
return view2;
}
}));
}
}

-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

-- 
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

Re: [android-developers] working with tabs (tabhost)

2011-10-08 Thread Subin Sebastian
Hi Kristoffer,
As I understand from your question, I think you need to set a
different content for the main tab when you change a specific
preference in the settings tab. If I'm not wrong the below tutorial
will help you to do so.

http://subinsebastien.tumblr.com/post/6783812456/android-tab-layout

In the above code, instead of passing a new TabSpec, create one
reusable tabspec like,
TabHost.TabSpec spec =
mTabHst.newTabSpec(tab_test1).setIndicator(One,res.getDrawable(R.drawable.one)).setContent(i);

In your method which is triggered on change of specific preference,
use the following code.

spec = spec.setContent(your_new_activity);

I think this code should work, but I did not tested it yet. Please let
me know if anything goes wrong.

Thanks

On 10/9/11, Kristoffer kris.isak.v...@gmail.com wrote:
 Hello.

 Iam not sure this is possible to do but here is what i need to do.

 Iam now creating two tabs one for the main page and one for the
 settings.
 Lets call them main.java and setting.java

 When i change a thing on the setting.java page then i need to show a
 different intent (main1.java) when the user push the main tab.

 Is this possible in some way?

 --
 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


-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

-- 
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


Re: [android-developers] Video in WebView

2011-10-08 Thread Subin Sebastian
Hello Siva,
I suggest you to put your code here for someone to find out why it
doesn't do that.

Regards.

On 10/9/11, Siva Prakash siva.yuvan2...@gmail.com wrote:
 Hi

 Im trying to load a video in WebView but it doesnt do that? Any settings
 need to be marked?

 --
 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


-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

-- 
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


[android-developers] What is wrong with this code?

2011-09-18 Thread Subin Sebastian
(Button)findViewById(R.id.start).setOnClickListener(new
View.OnClickListener() {
public void onClick(View arg0) {
new Timer().schedule(new TimerTask(){
@Override
public void run() {
new Handler().post(new Runnable(){
@Override
public void run() {
new myAsyncTask().execute();
}
});
}
}, 0, 1);
}
});

I get exception : java.lang.RuntimeException: Can't create handler inside
thread that has not called Looper.prepare()


Thnaks in advance
-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

-- 
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