Android Question [SOLVED] None of the apps can be installed (mine or from B4A) under Lollipop

Discussion in 'Android Questions' started by Luis Felipe, Jul 24, 2015.

  1. Luis Felipe

    Luis Felipe Member Licensed User

    Hi everyone,

    My whole "update" to Android 5.0.2 Lollipop is very "pain in the ass" for me.
    Nothing of what was working under Android 4.2.2 and B4A v5.02 is now working.
    I update the SDK to version 21 (19 before).
    I restarted the ADB server, etc...
    In the log the business logic seems to work but nothing is shown on the screen (no layout) and i can not see the app installed on the smartphone...
    I tried with my app but the examples taken from this forum has not installed either.

    Here is my path configurations:
    C:\Program Files\Java\jdk1.7.0_71\bin\javac.exe
    and
    C:\Android\platforms\android-21\android.jar

    and the Manifest Editor content:
    Code:
    'This code will be applied to the manifest file during compilation.
    'You do not need to modify it in most cases.
    'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
    AddManifestText(
    <uses-sdk android:minSdkVersion=
    "14" android:targetSdkVersion="21"/>
    <supports-screens android:largeScreens=
    "true"
        android:normalScreens=
    "true"
        android:smallScreens=
    "true"
        android:anyDensity=
    "true"/>)
    SetApplicationAttribute(android:icon, 
    "@drawable/icon")
    SetApplicationAttribute(android:
    label"$LABEL$")
    SetApplicationAttribute(android:theme, 
    "@android:style/Theme.Holo")
    'SetActivityAttribute(main, android:launchMode, "singleInstance")
    'End of default text.
    The smartphone is under debug mode and there is not sdcard slot (difference from my previous device) --> for that reason I'm using now File.DirInternal.
    Thank you for your help.
     
  2. Cableguy

    Cableguy Expert Licensed User

    Have you activated the "can install from unknown sources" feature in the device?
     
  3. Luis Felipe

    Luis Felipe Member Licensed User

  4. Luis Felipe

    Luis Felipe Member Licensed User

    Watching the unfiltered log I can see some lines. May it will help someone to understand my problem... :

    "tid 29299: eglCreateSyncKHR: NOT IMPLEMENTED"

    And when i try to copy all the content of the log window from B4A I got an error message:
    "Error en OpenClipboard (Excepcion de HRESULT : 0x800401D0 (CLIPBRD_E_CANT_OPEN))

    It's getting even stranger ! Never seen all that error message before...
     
  5. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Let's start from the very beginning. How are you installing the App? USB, Wifi Bridge or manually transfering APK to device and install from the device?
    I suspect USB but want to make sure?
     
  6. Luis Felipe

    Luis Felipe Member Licensed User

    Yes via USB. I don't have another possibility because there is no WiFi in my office...
     
  7. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    if that was happening to me i would believe that it is a Corrupted B4A ide, why dont you try the to install 4.3 installed in another directory, you do not need 5.02 to run lollipop sdk.

    if it is working so just reinstall 5.02 and if it is not, try with updating java to 1.8 (it is not necesary but will fix any corrupted data)
     
  8. Luis Felipe

    Luis Felipe Member Licensed User

    Gracias Enrique ;-).
    I'm going to try all that...
    Thanx.
     
  9. Luis Felipe

    Luis Felipe Member Licensed User

    Enrique, I've tried with previous B4A version (4.3) and I got the same problem...
    Tomorrow I'm going to try with Java 1.8.
     
  10. klaus

    klaus Expert Licensed User

    Post your project as a zip file so we could test it if it works in our environments.
     
  11. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    Well hope you fix it soon

    i thought that too, but he says that it is with all projects
     
  12. klaus

    klaus Expert Licensed User

    In this case, again, he should post at least one project so we could test it !
    I have a device with Android 5.0.2 and have no trouble with B4A version 5.02 !
     
    RandomCoder likes this.
  13. RandomCoder

    RandomCoder Well-Known Member Licensed User

    We need to work out where the problem is to determine what the problem is, if that makes sense. :D
    At the moment I see nothing to suggest whether it is the B4A install, the device driver/ADB connection or maybe the device itself? We need to narrow it down!

    From your earliest post it would appear that the connection is working, please confirm? It also sounds like the App installs without any error but you state that it doesn't appear on the device? Which mode are you using to compile? Have you tried all three modes (Release/Rapid Debug/Legacy Debug) and do all show the same end result?
    Finally, what happens if you manually copy the APK to the device and run it directly from the device?

    I'm sure we'll soon get to the bottom of the problem ;)
     
  14. Luis Felipe

    Luis Felipe Member Licensed User

    Hi RandomCoder,
    I tried with the 3 modes : none "worked" as expected.
    At the beginning I downloaded text files from an ftp server and that part seems to works (I got success message in the log files) but just after that when the main layout should appear on the screen, nothing happens.
    Thank you for your help.
     
  15. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Ok, so I'm trying to read between the lines a little in that it sounds like B4A is connecting and compiling to the device without any error. It is also installing the APK on the device and running it (this is a step further than I thought we were).
    But now the problem is that your App is not working as expected in that it does not load the layout you were expecting?

    Which examples have you tried? I suggest using the samples that accompany the beginners guide or alternatively I think we need to go back to Klaus's earlier suggestion, is it possible for you to upload your project?
     
  16. Luis Felipe

    Luis Felipe Member Licensed User

    Well that's what i think but I can't see any app (or icon) installed on my smartphone :-(.
    I tried with all possible examples from the user guide and from this forum...
    Sure that I'm missing something but what ?
    I'm out with my kids but Monday from the office I can upload my project.
    Thanx again.
     
    RandomCoder likes this.
  17. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Are you using a stock ROM or have you rooted your device and installed a custom ROM?

    Hope you have a good day with the family, the sun is shining here today and so we plan to make the most of it too. It's not very often we get sunshine in the UK :D
     
  18. Luis Felipe

    Luis Felipe Member Licensed User

    Stock ROM : I bought this smartphone this week : http://www.bq.com/es/aquaris-m5
    Have a good day too : here at the south-east of spain we have too many sun (and the the temperature are too high for me :-D).
    Thank you.
     
  19. Luis Felipe

    Luis Felipe Member Licensed User

    I added my app (zip format file) just changing the FTP account data...
    Thanx
     
  20. DonManfred

    DonManfred Expert Licensed User

    I change the credentials to my ftp...

    i got a file not found when downloading the file (ehich does not exist on my server.

    But the app is running on my Android 5.1.2 device

    [​IMG]
     
Loading...