Android Tutorial Transparent activity

ZeroSoft

Member
Licensed User
Ok here is the transparent activity project, it is very simple, i used it in the fake virus app.

Make a folder in the objects->res folder, and name it values.
Copy the file from the folder in the example and paste it in your values folder, make it read only.

Now in the Android manifest add this to the activity that you want too be transparent:

android:theme="@style/Theme.Transparent"

Best regards,
ZeroSoft
 

Attachments

birnesoft

Active Member
Licensed User
which file in values ??

Copy the file from the folder in the example
??? which file in which folder

there is only an icon.png in your example

but this do not work

b4a:
res\values\icon.png:1: error: Error parsing XML: not well-formed (invalid token)

Gruss Bjoern
 

birnesoft

Active Member
Licensed User
not compiling !?

Hallo,

the apk in your zip works, but I cant compile the project.
what I make wrong?

B4A V1.9
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Transparent').


B4A V1.8:
Compiling code. 0.05
Using existing AndroidManifest.xml.
(Project - Do Not Overwrite Manifest option is checked)
AndroidManifest-Example.xml file will be created instead.
Generating R file. 0.01
Compiling generated Java code. Error
javac 1.6.0_26
error: error reading F:\b4alibs\B4AShared.jar; error in opening zip file
1 error
 

birnesoft

Active Member
Licensed User
Transparent App

but the better way is to put this line directly in the Manifest-Editor:
SetApplicationAttribute(android:theme, "@android:style/Theme.Translucent")
Gruss Björn
 
Top