Bitmap is null!!Help!!

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Bitmap is null!!Help!!

Postby beaster » Thu Nov 27, 2008 9:53 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4. setContentView(R.layout.main);
  5.  
  6. TextView p=findViewById(r.id.text);
  7.  
  8. p.setDrawingCacheEnabled(true);
  9.  
  10. Bitmap bm= p.getDrawingCache();
Parsed in 0.038 seconds, using GeSHi 1.0.8.4



bm -null!!!!!
Help!!!!!!!! main.xml has r.id.text.
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Top

Postby MrSnowflake » Thu Nov 27, 2008 1:38 pm

[mod]Could you please make a decent question, I think we deserve that.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests