[android-developers] Custom View

2010-08-08 Thread pawan nimje
Hi all, I want to create a custom view.In which i want to have a background image,2 buttons,1 textview. Can anybody tell me how to start with. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

Re: [android-developers] how to startup the emulator with landscape orientation instead of portrait

2010-06-19 Thread pawan nimje
Try with other ctrl button ... if u have laptop ctrl+fn+F11 this should work ... On Sun, Jun 20, 2010 at 7:59 AM, Jian Chen wrote: > Guys, > > as u know, since android 1.6, there are not dirs on dirs like HVGA-L. > Instead, there is only one dir like HVGA. > That is, HVGA-P and HVGA-L are merged

[android-developers] Fix for OutofMemoryError: bitmap size exceeds VM budget

2010-06-16 Thread pawan nimje
Hi all, in my application i have a functionality where a user can take photo and poet it to a web server or select a photo from galerry and upload. So initially i used to get below exception for the very* first time* i used to select a photo: Android: OutofMemoryError: bitmap size exceeds VM bud

[android-developers] What is the thing which is shown while the image is loaded.

2010-06-12 Thread pawan nimje
Hi all what is the thing called which is similar to progress dialog ... but for image ( or say image view) and how can i integrate that in the code .. i am attaching the code files __ -- You

[android-developers] Go through the code ans suggest

2010-06-12 Thread pawan nimje
Below is the code for posting data on a server ... my problem is i want to show a progress dialog when i click on submit button and dismiss it when data is posted ... i have written code for that .. but the thing is the progress dialog comes and goes ... and its hardly noticeable .. i hope u

Re: [android-developers] Make entire screen disabled

2010-06-12 Thread pawan nimje
, Jun 12, 2010 at 4:59 PM, Mark Murphy wrote: > On 06/12/2010 12:15 AM, pawan nimje wrote: > > Hi All, > > > > When I click on a button i want to make entire screen disabled ... i.e > > there are other buttons and text area ..which should get disabled ...on > >

Re: [android-developers] Re: Placing a bitmap image in ImageView

2010-06-12 Thread pawan nimje
I tried this method [ Bitmap.createScaledBitmap].. its working ..but the problem is aspect ratio is not maintained ... On Thu, Jun 10, 2010 at 1:12 PM, Goran Genter wrote: > > > On Jun 10, 6:20 am, pawan nimje wrote: > > > > Can you suggest some method to pre-scale the

[android-developers] Make entire screen disabled

2010-06-11 Thread pawan nimje
Hi All, When I click on a button i want to make entire screen disabled ... i.e there are other buttons and text area ..which should get disabled ...on a particular button click ..is it possible ?? -- You received this message because you are subscribed to the Google Groups "Android Developers" g

Re: [android-developers] Re: Placing a bitmap image in ImageView

2010-06-09 Thread pawan nimje
> > From: android-developers@googlegroups.com [mailto: > android-develop...@googlegroups.com] On Behalf Of pawan nimje > > Sent: Thursday, June 10, 2010 2:39 AM > > To: Android Developers > > Subject: [android-developers] Placing a bitmap image in ImageView > > > >

[android-developers] Placing a bitmap image in ImageView

2010-06-09 Thread pawan nimje
Hi All, I have a Bitmap image (bm) and a an ImageView (iv) of 50 by 50 when i do iv.setImageBitmap(bm) ... only a portion of the entire image is seen ..How can i see the whole image in the 50 dip by 50 dip ImageView .. any suggestion will do .. -- You received this message because you are subs

Re: [android-developers] Re: Moving from one Activity to another with a pause/delay

2010-06-09 Thread pawan nimje
Sounds cool ... will try .. On Wed, Jun 9, 2010 at 12:37 PM, String wrote: > On Jun 9, 5:03 am, pawan nimje wrote: > > > any kind of suggestion will do .. > > In your onClick event put your color changing code and a call to > Handler.sendEmptyMessageDelayed(). The la

[android-developers] Moving from one Activity to another with a pause/delay

2010-06-08 Thread pawan nimje
Hi All, I have* two activities*, *1st one* has a ques and 4 options. *2nd one* is like a result page (... displaying if your ans is correct or not ...and showing the right ans ..) Now what i want is when a user clicks : on a right option [or wrong option] ..i want to turn that Image button int

Re: [android-developers] Passing Bitmap to Another Activity

2010-06-07 Thread pawan nimje
i dont know how to pass bitmap ... but what you can do is have a public static bitmap in act A and access it from act B .. hopefully this should solve the purpose .. On Mon, Jun 7, 2010 at 11:54 AM, mike wrote: > hi guys, > > i have a Bitmap image and i want to forward the bitmap to another > ac

[android-developers] Camera Portrait

2010-06-04 Thread pawan nimje
Hi all I am opening camera from my application...and the orientation of camera is Landscape... but i actually want it to be portrait ... im using code from here: http://snippets.dzone.com/user/Jbeer any kind of help will do... Thanks -- You received this message because you are subscribed to

[android-developers] How to use web camera in android emulator ??

2010-05-30 Thread pawan nimje
Hi All, How can i use web cam with android emulator ?? 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-d

Re: [android-developers] Application with no title

2010-05-22 Thread pawan nimje
hope this is what you meant. On Sun, May 23, 2010 at 9:33 AM, John Gaby wrote: > When my application starts, I call: > > this.requestWindowFeature(Window.FEATURE_NO_TITLE); > > to get rid of the title bar. I then create a custom ViewGroup and > when set that view to be the content view via a

[android-developers] Set android:layout_gravity from code ??

2010-05-15 Thread pawan nimje
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height)); ibMap.

[android-developers] Set android:layout_gravity from code ??

2010-05-15 Thread pawan nimje
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height)); ibMap.

Re: [android-developers] Re: Set multiple form parameters

2010-05-14 Thread pawan nimje
lemented by HttpPost > > On 14 May, 12:40, pawan nimje wrote: > > I want to send a post request. This is what i have done- > > > > HttpClient client = new DefaultHttpClient(); > > HttpPost httpost = new HttpPost(POST_URL); > > StringEntity se = new Strin

[android-developers] Set multiple form parameters

2010-05-14 Thread pawan nimje
I want to send a post request. This is what i have done- HttpClient client = new DefaultHttpClient(); HttpPost httpost = new HttpPost(POST_URL); StringEntity se = new StringEntity(j.toString()); httpost.setEntity(se); httpost.setHeader("Accept", "application/json"); httpost.setHeader("Content-type

[android-developers] Set multiple form parameters

2010-05-14 Thread pawan nimje
I want to send a post request. This is what i have done- HttpClient client = new DefaultHttpClient(); HttpPost httpost = new HttpPost(POST_URL); StringEntity se = new StringEntity(j.toString()); httpost.setEntity(se); httpost.setHeader("Accept", "application/json"); httpost.setHeader("Content-type

[android-developers] Fwd: Activity based Tabs

2010-05-11 Thread pawan nimje
Hi All, I have Activity based tabs...i.e i have used TabActivity,tabhost etc Now when we switch between the tabs, for the 1st time the oncreate is called and then after the onResume methode is called I want to know what event/function, of the activity, is called when i click on the the tab w

[android-developers] Activity based Tabs

2010-05-11 Thread pawan nimje
Hi All, I have Activity based tabs...i.e i have used TabActivity,tabhost etc Now when we switch between the tabs, for the 1st time the oncreate is called and then after the onResume methode is called I want to know what event/function, of the activity, is called when i click on the the tab w

[android-developers] Check The Pic and comment

2010-05-10 Thread pawan nimje
Hi All, Check the image attached and let me know if its possible ... 6 tabs ... 4 above and 2 below ... and if yes .. how?? PS : i have created 4 tabs [all above :) ] using extends TabActivity,tabhost etc . -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Check The Pic and comment

2010-05-10 Thread pawan nimje
Hi All, Check the image attached and let me know if its possible ... 6 tabs ... 4 above and 2 below ... and if yes .. how?? PS : i have created 4 tabs [all above :) ] using extends TabActivity,tabhost etc . -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
:47 PM, TreKing wrote: > On Mon, May 10, 2010 at 11:46 AM, pawan nimje wrote: > >> hey Treking ... is there any way to find out the contents of Activity >> Stack .. > > > There should be a most recently used list somewhere - dig around the > documentation (ApplicationI

Re: [android-developers] Having a back button functioning like the emulators

2010-05-10 Thread pawan nimje
sorry and thank u ... On Mon, May 10, 2010 at 10:03 PM, TreKing wrote: > On Mon, May 10, 2010 at 11:09 AM, pawan nimje wrote: > >> wat code should i write to make my back button behave like the emulators >> ... > > > finish(). > > And please don't

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
10, 2010 at 11:24 AM, pawan nimje wrote: > >> I want to go back to previous activity >> What code should i write for back button >> > > How about finish() ? > > >> plz dont suggest >> >> Intent i = new Intent(Constants.CountryContext, selectcountr

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
By Intent i = new Intent(Constants.CountryContext, selectcountry.class); > startActivity(i); > i meant Intent i = new Intent(getApplicationContext(), SomeClass.class); > startActivity(i); On Mon, May 10, 2010 at 9:59 PM, TreKing wrote: > On Mon, May 10, 2010 at 11:24 AM, pawan

[android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
I want to go back to previous activity What code should i write for back button plz dont suggest Intent i = new Intent(Constants.CountryContext, selectcountry.class); startActivity(i); This creates the whole activity again ... which i dont want .. i want somthing like emulators back button ..

[android-developers] Having a back button functioning like the emulators

2010-05-10 Thread pawan nimje
Hi all I have 3 activities 1: Welcome screen 2:List of country 3:Details abt that country Now i want to from activity 3 to 2 Currently wat im doing is Intent i = new Intent(getApplicationContext(), selectcountry.class); startActivity(i); This way the onCreate methode of 2nd activity is ca

[android-developers] Serious Issue

2010-05-09 Thread pawan nimje
Hi All, Currently I have a TabHost implemented with 3 tabs each containing a separate activity. My question is how do I switch between tabs from within one of the activities that is located inside the tab host. ie say i have a button inside one of the tabs[tab 1], when i click on this button it s

[android-developers] Very weird problem !!

2010-05-09 Thread pawan nimje
Hi all, i have a listview [custom (2 textview and 1 image) ] and i have a filter(featues 1) for it i.e when i type "a" in a textview (other than the above 2 mentioned) the list contains only those name starting with a . and i also have ascending / descending (features 2) button which when c

[android-developers] Serious Issue

2010-05-09 Thread pawan nimje
Hi All, Currently I have a TabHost implemented with 3 tabs each containing a separate activity. My question is how do I switch between tabs from within one of the activities that is located inside the tab host. ie say i have a button inside one of the tabs[tab 1], when i click on this button it s

[android-developers] Re: Very weird problem !!

2010-05-08 Thread pawan nimje
> > Hi all, > > i have a listview [custom (2 textview and 1 image) ] and i have a > filter(featues 1) for it > > i.e when i type "a" in a textview (other than the above 2 mentioned) the > list contains only those name starting with a . > > and i also have ascending / descending (features 2) bu

[android-developers] Very weird problem !!

2010-05-08 Thread pawan nimje
Hi all, i have a listview [custom (2 textview and 1 image) ] and i have a filter(featues 1) for it i.e when i type "a" in a textview (other than the above 2 mentioned) the list contains only those name starting with a . and i also have ascending / descending (features 2) button which when c

Re: [android-developers] Re: How to get dimensions of image

2010-05-07 Thread pawan nimje
; > On May 7, 9:42 am, pawan nimje wrote: > > Hi i have a image in drawable folder and i need to get dimensions of that > image. > > > > i tried BitmapFactory,getHeight etc but it is retunning me null > > > > plz help > > > > -- > > BitmapF

Re: [android-developers] How to get dimensions of image

2010-05-07 Thread pawan nimje
will try that ... On Fri, May 7, 2010 at 5:28 PM, Mark Murphy wrote: > pawan nimje wrote: > > Hi i have a image in drawable folder and i need to get dimensions of that > image. > > > > i tried BitmapFactory,getHeight etc but it is retunning me null > &

[android-developers] How to get dimensions of image

2010-05-07 Thread pawan nimje
Hi i have a image in drawable folder and i need to get dimensions of that image. i tried BitmapFactory,getHeight etc but it is retunning me null plz help -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

Re: [android-developers] On click enlarge the image

2010-05-06 Thread pawan nimje
layout_height="fill_parent" android:background="@color/white" > ---> On Fri, May 7, 2010 at 12:41 AM, TreKing wrote: > On Thu, May 6, 2010 at 1:04 PM, pawan nimje wrote: > >> plz help ... > > > With what? You didn

[android-developers] On click enlarge the image

2010-05-06 Thread pawan nimje
Hi All, I have a textview and an imagebutton. textview has the description about the image[which is there in imagebutton] Now on clickin the image button i want the imagebutton to occupy the whole screen and on clicking this i want the imagebutton back to normal position plz help ... -- You r

Re: [android-developers] Re: Change text size and color of listview

2010-05-05 Thread pawan nimje
Hi kumar bibek, thnx man ... it worked .. btw where r u from.. -Pawan Nimje On Thu, May 6, 2010 at 12:24 AM, Kumar Bibek wrote: > Set this property for the List view > > #colorCacheHint = # > > Thanks and Regards, > Kumar Bibek > > On May 5, 11:41 pm, pa

Re: [android-developers] Change text size and color of listview

2010-05-05 Thread pawan nimje
hi, the below given listview goes black[not permanently] on touch and scroll. plz help On Fri, Apr 30, 2010 at 11:40 PM, pawan nimje wrote: > hey thanks pal > > it worked > > > On Fri, Apr 30, 2010 at 11:22 PM, Mark Murphy wrote: > >> pawan nimje wrote: >>

Re: [android-developers] Change text size and color of listview

2010-04-30 Thread pawan nimje
hey thanks pal it worked On Fri, Apr 30, 2010 at 11:22 PM, Mark Murphy wrote: > pawan nimje wrote: > > Hi all, > > > > I am adding listview programmatically. > > My code is as follow. > > > > <--- start > > > > LinearLayout ll

[android-developers] Change text size and color of listview

2010-04-30 Thread pawan nimje
Hi all, I am adding listview programmatically. My code is as follow. <--- start LinearLayout llIn2 = new LinearLayout(this); llIn2.setOrientation(LinearLayout.VERTICAL); llIn2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); ListView lv = new ListView(

Re: [android-developers] View on Tabs in TabActivity

2010-04-22 Thread pawan nimje
Hey pankaj can you mail me your project i'll look into it n may i can help you .. -Pawan Nimje On Thu, Apr 22, 2010 at 4:32 PM, Pankaj Deshpande wrote: > Hi all, > I am working on a tab activity, and want images on each tab. I set > indicators as a view and set Image

[android-developers] Fwd: Filter for Custom ListView

2010-04-21 Thread pawan nimje
Hi, I am having a custom listview [list with image and 2 textbox] and i want to apply filter for it. desc of cust listview: 1:Image i.e flag of country 2:1st textbox (name of country) 3:2nd textbox (name of continent) so when i write " i " in a textbox [different from the ones mentioned above

[android-developers] Filter for Custom ListView

2010-04-20 Thread pawan nimje
Hi, I am having a custom listview [list with image and 2 textbox] and i want to apply filter for it. desc of cust listview: 1:Image i.e flag of country 2:1st textbox (name of country) 3:2nd textbox (name of continent) so when i write " i " in a textbox [different from the ones mentioned above