Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Basic4android Updates and Questions
Documentation Wiki Register Members List Windows Mobile Search Today's Posts Mark Forums Read

Basic4android Updates and Questions Updates and questions regarding Basic4android.

Hide activity

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2011, 10:48 PM
XverhelstX's Avatar
Basic4android Expert
 
Join Date: Mar 2011
Location: Belgium
Posts: 886
Default Hide activity

Heey everyone,

I did some research, and it seem to be possible to hide your activity like this:

Quote:
android:theme="@android:style/Theme.Translucent"
but how do i exactly add this to my xml file and what if I have 2 activities and I only want to hide the second one?

Hope u can help me.

Thanks,
XverhelstX

Source: Hide Activity - Android Developers | Google Groups
__________________
B4A Docs|B4A Wiki|B4A Unofficial Chat
I'm a freelance library developer! Check out this topic!

Reply With Quote
  #2 (permalink)  
Old 04-09-2011, 05:38 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,859
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Each activity has an <activity> node. You should add the theme as an attribute to this node.

<activity android:theme="@android:style/Theme.Translucent" android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main" android:label="Smiley" android:screenOrientation="unspecified"> <intent-filter>...

Make sure to set AndroidManifest.xml to be read only. Otherwise it will be overwritten when you compile.
Reply With Quote
  #3 (permalink)  
Old 04-10-2011, 02:08 PM
XverhelstX's Avatar
Basic4android Expert
 
Join Date: Mar 2011
Location: Belgium
Posts: 886
Default

Ok, sorry for late answer.
Tyvm.

XverhelstX
__________________
B4A Docs|B4A Wiki|B4A Unofficial Chat
I'm a freelance library developer! Check out this topic!

Reply With Quote
  #4 (permalink)  
Old 10-19-2011, 11:05 PM
Basic4android Veteran
 
Join Date: Jan 2011
Location: Swindon UK
Posts: 1,073
Default

I've been playing with this a bit today, I wanted a full screen translucent activity so that the background could be visible behind parts of the activity that didn't have my panels on it.

Unfortunately this only works correctly for Android 2.3 and up. For 2.2 and below the activity is translucent and full screen, but the notification bar is overlaid on top. Searching Google I found no solution, just frustrated programmers.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HIDE TITLE BAR ? hide title, minimize , max and Close button (FOR DESSKTOP EXE) pegamaster Questions (Windows Mobile) 2 03-27-2012 05:42 PM
Hide App etLux Basic4android Updates and Questions 3 12-22-2010 07:45 AM
Hide App Georg Questions (Windows Mobile) 6 09-11-2009 03:06 PM
App in Autostart how to hide it? Georg Questions (Windows Mobile) 1 05-07-2009 03:06 PM
hide from alt+tab Byak@ Questions (Windows Mobile) 4 04-12-2009 10:31 AM


All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0