1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Guest, PO has ceased our separate tiering and adopted Smogon tiers for SM. More information and updates here.

    Dismiss Notice

Android app

Discussion in 'Development General' started by coyotte508, Dec 21, 2012.

  1. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Version: 2.5.3.8B hot fix
    http://www.mediafire.com/download/4mv84t1x41ymvmu/android-client-pmfix.apk
    Changes from 2.5.3.5:
    EDIT:
    Updated link 4:00PM UTC -5

    Changes:
    • APK size reduced to 15MB from 24MB (RAM usage reduced about 1-2MB) * Compared to zoroark version
    • More persistent garbage collection
    • Playlist view redone
    Additions:
    • Error dump to file added in settings page (default false)†
    • Added hidden power damage calculation
    • Poke ball icons now replaced by actual Pokemon icons
    • Item images added. Displayed in drop down and in listed Pokemon screen.
    • HTML Image support
    • Copy and paste of chat
    • Ability to change level
    • Ability to change happiness
    • Image Caching to reduce resource read time of UI thread
    • Arceus Pokemon icons for forms
    • Some app documentation filled in

    Fixes:
    • Fixed issue where the app didn't stop incorrect setting changes (Like volume=451 out of 100)
    • Fixed gen 2 hidden power type calculation
    • Fixed pm rotation crash and home button crash
    • Zoroark now correctly loses disguise
    • Minor importable issues
    • Names of Pokemon in battle
    • Move list corrections
    • Re-matched battle enumerators
    And probably things I've forgotten.

    † Creating logs for fatal crashes.
    At the bottom of the settings page there is a new setting to turn this on. Right now it only writes to a file.
    File names begin with "POError"

    [​IMG]

    But I also wrote a method to send the information to a URL.
    What the URL method would send and how the URL would retrieve information.
    Code (php):
    1.  Not an expert in php btw.
    2. <?php
    3. $timestamp = isset($_POST['time']) ? $_POST['time'] : "";
    4. $error = isset($_POST['error']) ? $_POST['error'] : "";
    5. if ($timestamp != "" && $error != "") {
    6.   $subError = isset($_POST['causeError']) ? $_POST['causeError'] : "";
    7.   $stackTrace = isset($_POST['stackTrace']) ? $_POST['stackTrace'] : "";
    8.   if ($subError != "" && $stackTrace != "") {
    9.     $logCat = isset($_POST['logCat']) ? $_POST['logCat'] : "";
    10.     $versionNumber = isset($_POST['versionNumber']) ? $_POST['versionNumber'] : "";
    11.     $versionName = isset($_POST['versionNumber']) ? $_POST['versionNumber'] : "";
    12.     // Write to file
    13.    $handle = fopen("[filename]", "w+");
    14.    fwrite($handle, "[text to write]");
    15.    fclose($handle);
    16.    // OR
    17.    file_put_contents("[filename]", "[message]"."\n", FILE_APPEND);
    18.  
    19.    // Email
    20.    mail("to what email address", "subject", "text", "who it is from: [email protected]");
    21.    }
    22. }
    23. ?>
     
    Last edited: Mar 27, 2015
    Nightfall Alicorn likes this.
  2. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    I don't know if this should be classed as a bug or not, so I thought it's best to post here.

    I've found that player status list for idle and unidle Poke Ball doesn't update till the user changes channel. Even if I challenge my PC alt from my Android alt, it says it's busy if I've took idle off on PC alt but it's still showing I'm unidle by Poke Ball.

    I really like this update by the way. Awesome work.
     
  3. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    More of a "lack of functioning" than a bug. I added a notify on options changed to the link I posted in your rotation bug thread.
     
  4. Darth Magnus

    Darth Magnus Eaten Back To Life

    Joined:
    Nov 6, 2014
    Messages:
    25
    Likes Received:
    5
    PO Trainer Name:
    [HH]Magnus
    Copy/paste still doesn't work.
     
  5. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    Confirmed. I've just tested in chat and PM. Both copy and paste don't work in chat.

    However, I've just found this odd effect when testing it. The 12345 is being treated as part of the time stamp as a phone number.
    http://i.imgur.com/gGspdLX.png

    Also, I don't know what happened here. The Pokeball has vanished off my PC alt. I thought it was just because I was in PM but even closing it and it still not there.
    http://i.imgur.com/YwVzek2.png

    I don't know if it's been mentioned but Android app lags the keyboard sometimes and I'm using the default installed one. Other apps that access the keyboard work fine though.
     
  6. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Copy and paste works for me. in one of the interim versions it was working for most people. I didn't change anything in the chat code so I don't why it stopped for some.

    Closing a PM doesn't destroy the PM's save state and information. So it will stay bold

    I'll change Linkify.ALL to Linkify.WEB_URLS, I did this for chat, must have overlooked doing it for PM
     
  7. Darth Magnus

    Darth Magnus Eaten Back To Life

    Joined:
    Nov 6, 2014
    Messages:
    25
    Likes Received:
    5
    PO Trainer Name:
    [HH]Magnus
    Another bug I noticed was that after a battle, the Pokémon that were KOd or inflicted with a status ailment still show as dimmed, purple, orange or yellow for the respective status ails. Will add a screenshot asap.
     
  8. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156

    [​IMG]
    Got ya covered. Exactly as he put if you win, lose, forfeit a battle with some of your pokémon inflicted with a status ailment and start a new battle the pokémon will appear on the arrange your team section with the status they had on the last battle.
     
    turbedi likes this.
  9. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    [​IMG]

    Also shows when you swipe to the left to change pokémon
     
  10. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    A certainly interesting bug. It carries into teambuilder after battles too. I'm guessing this is a pointer issue where the color filter applied to the battle image goes back to the cache used by other screens.
     
  11. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
  12. Darth Magnus

    Darth Magnus Eaten Back To Life

    Joined:
    Nov 6, 2014
    Messages:
    25
    Likes Received:
    5
    PO Trainer Name:
    [HH]Magnus
    Copy/paste works great now. Thanks for the hard work, @MidwayMarshall !!!
     
  13. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    I've testing the new apk. The copy and paste works for both chat and PM.

    I don't know why the app crashes when I try have my channel open and leave Tohjo Falls. Me and Hello I'm Deadpool tested same version and it works okay on his I've been told.

    I can't get password screen to crash now with screen rotation also. I think this is fixed now.

    Edit 1: I've tried getting a crash dump but it still doesn't generate one for channel crash.

    Edit 2: The event listener for other players changing idle and unidle for Poke Ball is working okay. But if I idle and unidie it doesn't change. Hello I'm Deadpool checked and says his is working okay. He thinks it's probably my device model. I'm using Android 4.3 if this helps. Fully updated.
    http://i.imgur.com/eu5Sd8c.png
    http://i.imgur.com/qGbfkzT.png
     
    Last edited: Apr 1, 2015
  14. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    I just noticed this today when I was reading the topic in Tohjo when I tried pressing on this link http://pokemon-online.eu/threads/changes-to-ou-and-ubers.30680/#post-431953 I could press on it but it wouldn't open up the page. I tried pressing on the other links in the topic as well but none would open up. I told a friend to post a link in a private channel and when he did I pressed on it but still it wouldn't open. When I posted a link in Tohjo for a user asking questions and in the private channel the users could click and it'll open for them but they won't open for me. I have to copy the link then log on unto my browser and paste it so it'll open up.

    -Just tested this issue with Nightfall Alicorn in pm and you can't open any link in pm either. The link will appear blue and you can click on it but it won't open up in you're browser.
     
    Last edited: Apr 2, 2015
  15. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    Confirmed. I tried pressing a link on Tohjo Falls and it only allowed it to be highlight and can't open link directly to browser. Me and Hello I'm Deadpool both tested links in PM and links can't be open directly but highlighted.
     
  16. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    You can try to download it again. Certain phones might lose copy/paste. The order in which things are set matters.
    instantiate TextView -> Set Text -> Set html tag urls clickable -> set text selectable -> check for clickables (like #tournamants) if so set movement method -> set linkify text with weburls
    is what I just uploaded.
     
  17. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    [​IMG]

    Randomly at times as soon as I start typing the copy and paste bar appears at the top of my screen without any warming and stops me from typing in any other letters.
     
  18. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Nightfall Alicorn and Jethalal like this.
  19. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    I've just ran a test battle and Hackmans works okay. But that bug still exists that crashes app when closing channel. I think someone else mentioned it crashes for them too.
     
  20. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Thanks midway!!
     
  21. Feel Good Inc.

    Feel Good Inc. Your Local Anarchist

    Joined:
    Apr 8, 2015
    Messages:
    2
    Likes Received:
    0
    PO Trainer Name:
    Feel Good Inc.
    Excuse my stupidity, but, is there any way to
    make a hacksmon team in teambuilder?
     
  22. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    In the hackmon test version you press the hackmon button below the stats.
     
  23. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    When your in team builder. Choose a Pokemon, slash screen to the left and scroll down. The option you want is at the bottom-right.
    [​IMG]

    Edit: I just noticed I think my screen width is a bit small to fit the Leftovers icon on but I don't think it's really important though.
     
  24. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    I made it alphabetical
     
  25. Feel Good Inc.

    Feel Good Inc. Your Local Anarchist

    Joined:
    Apr 8, 2015
    Messages:
    2
    Likes Received:
    0
    PO Trainer Name:
    Feel Good Inc.
    Sorry for the late reply on this :P but thanks for the help!
     
  26. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    I hopefully added the ability to select any forme in
     
  27. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Made the item list only show items released in that generation.
     
  28. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Corrected issue with gender in teambuilder
    Added trainer sprites (up to 729 now)
    Added Move search bar so hackmon players don't suffer

    I updated the github release links with these.
     
  29. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    [​IMG]
    I've tested the latest pm link you give me. Still no luck. I close a channel and it stays in the list. Then I press another channel then all these error catches appear and crashes after.
     
  30. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    o c: likes this.
  31. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Ok ill test it middy ^^
     
  32. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Middy, when I opened the teambuilder that's the initial EV's I saw. I have to drag them back again to restore my old EV. Same thing happened to the rest of my pokes.
     

    Attached Files:

    Last edited: May 18, 2015
  33. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    -4 = 252, I wonder why its signing them (also EV*)

    Edit: Redownload
     
    Last edited: May 17, 2015
  34. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    Downloaded and had the same issue as JoyFrost with the Ev's. I fixed them back to how they supposed to be saved and logged off then went back to team builder to make sure everything was correct and the stats I had 252 maxed had gone back to -4.

    Edit: Deleted the app and reinstalled the beta and same issue still occurs. Everything else seems fine but will continue to test around.
     
  35. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    Tested pm with my 2.5.1 version and the "crashing while rotating in pm" bug is back. Version 2.6.0 didn't have that issue as it was fixed but it looks like that bug has made a comeback.
     
  36. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Ty for correcting
    btw, I tried playing without adjusting the ev (-4 etc thing) it doesn't effect the game. Tho its kinda annoying.
     
  37. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    Can you help test this out @JoyFrost to check that it's not only me. It seems that whenever I receive a pm and swipe down on my screen to view and click on the message I will disconnect as soon as I click on the little white mail icon and it'll tell me "Pokémon Online has unfortunately stopped working" I tested this out with another user and myself (using my other app) and it usually occurs on the first pm to 10-12 pm's later.

    [​IMG]
     
    Last edited: May 20, 2015
  38. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Sure, wynaut. What your timezone deadpool?
    I can pm u now in beta or whenever I saw u logged in.
     
    Last edited: May 18, 2015
  39. o c:

    o c: Kittyloaf

    Joined:
    Jul 3, 2014
    Messages:
    189
    Likes Received:
    156
    Central time zone. I'll go snoop around and find you first :v
     
  40. JoyFrost

    JoyFrost :thonk: Forum Moderator Server Administrator Social Media Rep Forum Moderator Server Administrator Social Media Rep

    Joined:
    Jun 26, 2014
    Messages:
    144
    Likes Received:
    403
    PO Trainer Name:
    JoyFrost
    Okay then, cyah around... Im not gonna be always online today. You might catch me up tomorrow tho~