Android Question (Not solved yet) Activity with panel, label, textbox and webview shows only webview

achtrade

Active Member
Licensed User
Longtime User
Hi,

I have an Activity with panel, label, textbox, webview, etc, but it only shows the webview. In the emulator it works fine but when I use the bridge to see it in a galaxy s 3, I can see only the webview, after I tap the screen several times the other controls appear.

Please help
 

Attachments

  • layout.jpg
    layout.jpg
    47.3 KB · Views: 202

warwound

Expert
Licensed User
Longtime User
Open the layout file in the Designer.
What variants are defined - lower right box?

Do you have a variant where only the WebView is visible and the S3 uses this variant, the emulator uses another variant?

Martin.
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
Open the layout file in the Designer.
What variants are defined - lower right box?

Do you have a variant where only the WebView is visible and the S3 uses this variant, the emulator uses another variant?

Martin.

Hi,

I have one variant 320x480, scale=1 (160 dpi)

Which variant do I have to have ?
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Hi,

I have one variant 320x480, scale=1 (160 dpi)

Which variant do I have to have ?

If you have just one variant then that is not the problem - both S3 and emulator will use that same variant - and that variant has the Views all correctly positioned.
As Beja suggested - export your project as a zip archive (File menu in the IDE) and upload it to this thread.

Martin.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
try to save the layout with "Save As..." and give it the same name.. not with just "Save"
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
try to save the layout with "Save As..." and give it the same name.. not with just "Save"

Strange. this fixed it but when I opened the app again the problem came back. Maybe the bridge has a issue, what else could be ?

did you test my app ?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
I couldn't test because it needed some library that I didn't have.
Try to copy the apk to your device and install it from there.
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
I couldn't test because it needed some library that I didn't have.
Try to copy the apk to your device and install it from there.

I've installed the apk and it worked well but after a couple the times using it the problem returns.

What else can I do ? I'm almost ready to release my first app but I can't do it with this issue.

need help
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
What I think is just assumotions since I can't see your app.
If you used "If First Time.....End If"
Try to remove it..
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
Thanks to keirS, this issue was fixed.

For this issue change your theme to Theme(old) or Holo.Light. To do this click on the menu key on the phone in B4A designer. You also need to set the theme in the manifest editor.

B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
Have you tried the ExerciceLayout bal file I sent you here ?

Yes, I've used it, I replaced my file with your file and I'm still getting the same issue.

Another idea ?

What I would like to know is if this is happening only in my galaxy s3 or in others devices too
 
Upvote 0
Top