Android Tutorial Transparent activity

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

  • transparent.zip
    4.9 KB · Views: 1,546

birnesoft

Active Member
Licensed User
Longtime 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
Longtime 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
Longtime User
I point to the orginal path.

attachment.php
 

Attachments

  • lib19.jpg
    lib19.jpg
    33 KB · Views: 2,351

birnesoft

Active Member
Licensed User
Longtime 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
 

birnesoft

Active Member
Licensed User
Longtime User
Sorry but I am using B4A version 1.6 :sign0161: and don't know how to configure it in the new version :sign0148:

Configure what in which version??

In the Menu Projekt of B4A1.9 you have a Manifest Editor.
 
Top