[Solved] How to draw full screen Image...

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

[Solved] How to draw full screen Image...

Postby surya.n.k » Mon Dec 10, 2007 11:04 am

Hi,

I am new guy, i want to draw image as full screen can any one help me.
surya.n.k
Developer
Developer
 
Posts: 26
Joined: Fri Dec 07, 2007 7:33 am

Top

Postby plusminus » Tue Dec 11, 2007 1:13 am

Hello surya.n.k,

I'm not sure, if I understood you right.
You want to use the whole screen to show an image on :?: or do you want to capture a screenshot of the whole screen :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby surya.n.k » Wed Dec 12, 2007 6:26 am

i want to draw an image as full screen and write text into it.........
surya.n.k
Developer
Developer
 
Posts: 26
Joined: Fri Dec 07, 2007 7:33 am

Postby plusminus » Wed Dec 12, 2007 5:50 pm

Hello surya.n.k,

you can the following, to "obtain" every pixel on the screen (fullscreen) for your activity:

in the onCreate(...)-metod write the following:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.     public void onCreate(Bundle icicle) {
  2.         super.onCreate(icicle);requestWindowFeature(Window.FEATURE_NO_TITLE);
  3.  
  4.         getWindow().setFlags(WindowManager.LayoutParams.NO_STATUS_BAR_FLAG,
  5.                 WindowManager.LayoutParams.NO_STATUS_BAR_FLAG);
  6.         setContentView(R.layout.imagedisplayer_layout);
  7.     }
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Was it that what you were searching for :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby surya.n.k » Fri Dec 14, 2007 11:56 am

hi plusminus,

Thanx for reply, i want to draw my image as full screen which is in some directory path.

as of now i can draw by add
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. android:background="@drawable/image"
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
in main.xml

regards
surya
surya.n.k
Developer
Developer
 
Posts: 26
Joined: Fri Dec 07, 2007 7:33 am

Postby MrSnowflake » Mon Oct 13, 2008 10:37 am

A little update to 1.0r1:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.     public void setFullscreen() {
  3.  
  4.         requestWindowFeature(Window.FEATURE_NO_TITLE);
  5.  
  6.         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  7.  
  8.                 WindowManager.LayoutParams.FLAG_FULLSCREEN);
  9.  
  10.     }
  11.  
  12.    
  13.  
  14.     public void setNoTitle() {
  15.  
  16.         requestWindowFeature(Window.FEATURE_NO_TITLE);
  17.  
  18.     }
  19.  
  20.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

NOTE: Both should be called before setContentView().
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Re: [Solved] How to draw full screen Image...

Postby Amit70 » Wed Jul 27, 2011 3:32 pm

hii plusminus,

i have used ur above code for fullscreen...

but nothing can be displayed
im getting dis error
NO_STATUS_BAR_FLAG cannot be resolved or is not a field
Amit70
Freshman
Freshman
 
Posts: 2
Joined: Wed Jul 27, 2011 3:27 pm

Re: [Solved] How to draw full screen Image...

Postby Amit70 » Wed Jul 27, 2011 3:35 pm

hii plusminus,

i have used ur above code for fullscreen...

but nothing can be displayed
im getting dis error
NO_STATUS_BAR_FLAG cannot be resolved or is not a field
Amit70
Freshman
Freshman
 
Posts: 2
Joined: Wed Jul 27, 2011 3:27 pm

Re: [Solved] How to draw full screen Image...

Postby thenewday007 » Wed Oct 05, 2011 9:08 am

Hello,everybody.I am a newer here.I like to make friends.If u are the people that like to make friends too,just contact me.Haha.

buy aion kinah | buy wow gold eu | wow gold for sale
thenewday007
Freshman
Freshman
 
Posts: 5
Joined: Wed Oct 05, 2011 8:42 am

Re: [Solved] How to draw full screen Image...

Postby martinnman » Mon Oct 17, 2011 11:54 am

Thanks! This is good suggestion. This is work pretty good. By obeying this steps I can draw image as full screen. Many thanks for giving this nice information.
martinnman
Freshman
Freshman
 
Posts: 3
Joined: Mon Oct 17, 2011 11:37 am

Re: [Solved] How to draw full screen Image...

Postby andeoms » Tue Mar 20, 2012 4:05 am

Like general browsing functionality of the device has a full-screen screenshot, you can go give it a try.
how to make enough wow gold through the instance wow po farming.
andeoms
Freshman
Freshman
 
Posts: 2
Joined: Tue Mar 20, 2012 4:01 am

Re: [Solved] How to draw full screen Image...

Postby cheap celine » Thu Mar 22, 2012 4:37 am

Suspect in France Remains in Standoff With Police
In the first six hours of the standoff celine, which began before dawn on Wednesday, the suspect fired several heavy volleys at officers trying to enter his apartment injuring two, though neither seriously. celine bagAt one point he tossed a .45-caliber pistol from the window, the same kind used in each of the three attacks, and was given some kind of “means of communication,” according to the authorities, presumably a celine handbagscellphone or walkie-talkie.

“He expressed celine no regrets, saving only that he did not have the time to reach more victims,” François Molins, the celine bags Paris prosecutor responsible for overseeing anti-terror investigations in France, said, adding that Mr. Merah said he had planned to kill a soldier Wednesday morning, and at some point toceline handbags kill two police officers here. drive your attention to another place
cheap celine
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Mar 22, 2012 4:30 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests