Emulator problems

OldVic

Member
Licensed User
Longtime User
I've only worked with B4A for 3 days and have some problems. In an attempt to start some objects in code instead of in Designer, I wrote:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("SpiteLayout")
Dim Pile2 As Panel
Dim Card0 As ImageView
Pile2.Initialize("Pannel")
Activity.AddView(Pile2,500,100,100,100)
Pile2.Height=77
Pile2.Visible=True
Pile2.Enabled=True
Pile2.Color=Colors.red
Pile2.BringToFront
Card0.Initialize("Card_Click")
Card0.Bitmap=LoadBitmap(File.DirAssets,"kd.png")
Activity.addview(Card0,300,300,71,96)
Card0.Enabled=True
Card0.Visible=True
Card0.BringToFront

The panel and picture never showed on the emulator. However, they did show on my phone. What should I do?

An even bigger problem is the Activity title bar. When I set ShowTitle to False in Designer it goes away so I have a full 800X480 screen. When I run it in the Emulator or my phone the title comes back and pushes the bottom objects off the screen. I really need all the pixel I can get.
 

OldVic

Member
Licensed User
Longtime User
You really helped with understanding the inter-relationships. I fixed the resolution mis-match by reinstalling API8 with a 800x480 skin.
I now have a new problem - I can't upgrade to API12. Installation won't rename the tools directory. I also can't manually move or delete it because something is using it (no programs or virus is running). How do I turn the interference off? Or do I need to uninstall the SDK?
 
Upvote 0
Top