Transfer Libra data?

alteredsteve175
alteredsteve175 Posts: 2,726 Member
edited December 21 in Health and Weight Loss
Got a new Android phone yesterday. The Libra app transferred to the new phone, but my data did not. Is it possible to transfer the existing data to the new phone?

Thanks for any advise.
«1

Replies

  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Got a new Android phone yesterday. The Libra app transferred to the new phone, but my data did not. Is it possible to transfer the existing data to the new phone?

    Thanks for any advise.

    Yes, if you still have a way to extract data from your old phone (like a USB connection that will make it look like a drive).

    It's been a while since I did it, and I had a little difficulty, but I don't remember *exactly* what I did to overcome it. I can give some suggestions when we get to the "here the miracle needs to occur" step, because I remember what I fiddled with.

    In your old Libra, open the database listing (via the 3 bars (not dots) thingie in the upper right). You should see a list of the database entries, organized by date.

    In the upper right, you should see a three-bars thingie with an arrow on top of it. Click that. Pick "save to drive".

    Now you have to figure out where the app put the file, and copy it to your new device, probably with an intermediate step where it sits on some computer than can treat the phones as a drive.

    Now, go to your new device, which will now have the file on it (somewhere), go to the database display on this one (it may be empty if you haven't added new entries). Click on the 3 dots in the upper right. One of the options should be "import database". Tell it to import the copy you saved onto this device.

    Hopefully, that will work. I had problems getting new Libra to recognize the file and import it; I got an error message I don't remember (but it wasn't terribly helpful). I think I got around it by doing one of two things: I'm pretty sure I put an entry manually into the new database, then exported that and looked at the file. I think I either fiddled with the old (exported) file to put it in the same directory location as the app put the new one (even though that doesn't look like it should be necessary), or looked at the internals of the file (a text editor should be willing to read it) and tweaked something in the header rows of the exported data file to look more like the same rows in the new file. (I don't think I had to fiddle with the data rows.) I think one of those things will work, though I'm obviously not positive. With any luck, you won't have this particular problem in the first place.

    I did not find anything helpful online.

    Maybe someone else with a better memory will come along and help. If not, I hope that loose description may be helpful. It was vaguely annoying, but not insurmountable, and not as much work as typing everything in anew: That I remember for sure.

    If you have questions, please ask . . . it might trigger some memory, but if it doesn't I'll just admit it. ;)

    Good luck!
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    Thanks, Ann. You're the aces!

    I will attempt this transfer tonight.
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    If you upload (export) the file to google drive via the 3 dots, simply click on the file while in drive on the new phone, and you should get the option to open it with Libra, which will automagically import it.

    Hope that helps.
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Phirrgus wrote: »
    If you upload (export) the file to google drive via the 3 dots, simply click on the file while in drive on the new phone, and you should get the option to open it with Libra, which will automagically import it.

    Hope that helps.

    Good point. I was assuming no network access on old device, which was my case, but might not be Steve's.
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    AnnPT77 wrote: »
    Phirrgus wrote: »
    If you upload (export) the file to google drive via the 3 dots, simply click on the file while in drive on the new phone, and you should get the option to open it with Libra, which will automagically import it.

    Hope that helps.

    Good point. I was assuming no network access on old device, which was my case, but might not be Steve's.

    Ah that would make sense. These days I guess I just assume signing onto a network as a primary setup step.
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    Phirrgus wrote: »
    If you upload (export) the file to google drive via the 3 dots, simply click on the file while in drive on the new phone, and you should get the option to open it with Libra, which will automagically import it.

    Hope that helps.

    Thanks, Phirrgus.

    I have uploaded the file to Google Drive. I can open it in Drive on the new phone, but Libra does not import it automatically. There are some sharing options at the bottom of the screen, but Libra is not one of the options.

    Libra also has an import database option, but I haven't figured out how to import the chart from Drive.

  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    At worst, you ought to be able to copy it from Drive to the internal storage location where Libra likes to put its files, and see if it then shows up on the import list. Creating a one-entry database on the new phone, and exporting that, should make that fake file show up on the candidate list for importing, along with its location in the local file store. (You can delete the fake entry later.)
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    Phirrgus wrote: »
    If you upload (export) the file to google drive via the 3 dots, simply click on the file while in drive on the new phone, and you should get the option to open it with Libra, which will automagically import it.

    Hope that helps.

    Thanks, Phirrgus.

    I have uploaded the file to Google Drive. I can open it in Drive on the new phone, but Libra does not import it automatically. There are some sharing options at the bottom of the screen, but Libra is not one of the options.

    Libra also has an import database option, but I haven't figured out how to import the chart from Drive.

    That's odd Steve, when I open Google drive, I have the 3 dot menu to the right of the saved file. I hit that and get an option to "open with" and choose Libra...screen below.

    bYXM2bh.png
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    edited May 2019
    AnnPT77 wrote: »
    At worst, you ought to be able to copy it from Drive to the internal storage location where Libra likes to put its files, and see if it then shows up on the import list. Creating a one-entry database on the new phone, and exporting that, should make that fake file show up on the candidate list for importing, along with its location in the local file store. (You can delete the fake entry later.)

    This may be your go to option as well...I'm not sure why our context menus may differ, but if you do need to resort to doing it manually I would recommend a good file manager for Android. Asus file manager and ES File Explorer are both free and easy to use..you can cut and paste from Google drive/pc as well with them.

    edit: Is the new device updated to Pie (version 9) yet? That might account for some of the differences if not...although drive should be consistent..
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    I am able to open the old Libra chart on the new phone, but Libra doesn't import it. Libra is not in the list of apps that show at the bottom of the screen
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Did you go into Libra and try the Import menu option?
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    AnnPT77 wrote: »
    Did you go into Libra and try the Import menu option?

    Yes. The backup file shows up, but Libra will not import it.
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    AnnPT77 wrote: »
    Did you go into Libra and try the Import menu option?

    Yes. The backup file shows up, but Libra will not import it.

    I had the same problem. As I said in my original reply to you, I don't remember exactly what I did to make it work, finally, but I did make it work. My original email above has some vague ideas about what I might have done. (Sorry not to be more helpful. I didn't know there would eventually be a quiz ;) , so I just solved the problem and forgot the solution, at the time . . . which was months ago.)
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    edited May 2019
    @alteredsteve175 - well, I had to get a new phone yesterday, so I get to re-figure this out with you. I have Libra pointed directly to the exported file both in drive and downloaded and it will not import it for me either. You can also open libra on the new phone, click the 3 bars at the top and then the 3 dots to import. That's what's working for some folks, so it has to be broken on some installations.

    I'll post back here once (if) I get it figured out. Frustrating lol.

    edit: Here's the link to the devs faq if interested. Not much there really.

    http://cachapa.net/?page_id=467
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    Update: I put the csv backup straight into the data location on the new phone and it still won't read it. I tried with multiple backups from the last 6 months.

    Apparently it's (per google) a fairly common problem. So there's more at play here than just getting the app to see it. Posts from a year or more ago show doing that working, now it doesn't. Sorry I couldn't help you Steve..I'm going to start entering enough data points manually to get by for now...sigh.
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    Thank you, @AnnPT77 and @Phirrgus. I tried saving the backup in Google Drive, Google Keep and Dropbox. No matter, the Libra app will not download it.

    I will try one more time over the weekend. If I am not successful, I will manually enter a monthly data point and call that good. It's weird, but I get some satisfaction and resolve from looking at the initial steep drop on the chart. Reminds me how far I've come and keeps me from going off the rails.
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    Thank you, @AnnPT77 and @Phirrgus. I tried saving the backup in Google Drive, Google Keep and Dropbox. No matter, the Libra app will not download it.

    I will try one more time over the weekend. If I am not successful, I will manually enter a monthly data point and call that good. It's weird, but I get some satisfaction and resolve from looking at the initial steep drop on the chart. Reminds me how far I've come and keeps me from going off the rails.

    You're welcome @alteredsteve175 - the developer is pretty non responsive, just points people to his FAQ..so if I do manage to find a way I'll be sure to let you know. I think I know what part of the issue is, just don't know how to fix it...although @AnnPT77 might :)

    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)
  • PAV8888
    PAV8888 Posts: 14,307 Member
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    PAV8888 wrote: »
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
    @PAV8888 Thank you! Yes, I have it downloaded from google drive, saved in downloads (android file manager) and documents + the copy left on drive. Below is what I've tried:
    1. copy to internal storage/Libra as downloaded > nope
    2. copied to internal storage/Android/data/net.cachapa.libra > nope
    3. copied to internal storage/Android/data/net.cachapa.libra/files > nope
    4. copied to internal storage/Android/data/net.cachapa.libra/ and each of the previous locations *all > nope

    I renamed the download to a .TXT file per your suggestion and it shows as a .PNG :D Visual inspection regardless of which encoding I choose yields gibberish.

    I'm officially at my wits end as I can't seem to choose what format Libra backs it's data up as. I do appreciate the help Sir :)
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Phirrgus wrote: »
    Thank you, @AnnPT77 and @Phirrgus. I tried saving the backup in Google Drive, Google Keep and Dropbox. No matter, the Libra app will not download it.

    I will try one more time over the weekend. If I am not successful, I will manually enter a monthly data point and call that good. It's weird, but I get some satisfaction and resolve from looking at the initial steep drop on the chart. Reminds me how far I've come and keeps me from going off the rails.

    You're welcome @alteredsteve175 - the developer is pretty non responsive, just points people to his FAQ..so if I do manage to find a way I'll be sure to let you know. I think I know what part of the issue is, just don't know how to fix it...although @AnnPT77 might :)

    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    No, that doesn't sound familiar (from when I managed to make it work), and it sounds like you're further into "why" than I was. (I just hacked until it worked.) The backup files are named as CSVs, look like CSVs, and my current file manager isn't showing me any file properties that seem useful. Does it behave any differently if you copy it to make it a local file, getting Drive out of the equation?

    I went back and looked at what I think is the file I actually managed to import on my new phone (last summer), and I don't see anything obviously different (content-wise) from an export that I just created.

    Also, just as a random thought . . have you tried importing when the new database has at least one record in it? (Stupid random thought. Trying to remember what the heck I did . . . .)

    Sorry not to be more helpful. Wish I could remember . . . ! (I sometimes say that gray hair is brain cells leaking out; maybe it's more true than I'd like.)
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    edited May 2019
    PAV8888 wrote: »
    Then in all cases Rename to what libra wants. And import locally on phone.

    I tried renaming the file as a backup for Libra. The file seems to be correct when I view it. Libra will recognize it when I select the "Import Database" option. But Libra does not load the file on the new phone.

  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    AnnPT77 wrote: »
    Also, just as a random thought . . have you tried importing when the new database has at least one record in it? (Stupid random thought. Trying to remember what the heck I did . . . .)

    Yes, I tried that as well.

    I love technology. When it works. HAHA! :p

  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Phirrgus wrote: »
    PAV8888 wrote: »
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
    @PAV8888 Thank you! Yes, I have it downloaded from google drive, saved in downloads (android file manager) and documents + the copy left on drive. Below is what I've tried:
    1. copy to internal storage/Libra as downloaded > nope
    2. copied to internal storage/Android/data/net.cachapa.libra > nope
    3. copied to internal storage/Android/data/net.cachapa.libra/files > nope
    4. copied to internal storage/Android/data/net.cachapa.libra/ and each of the previous locations *all > nope

    I renamed the download to a .TXT file per your suggestion and it shows as a .PNG :D Visual inspection regardless of which encoding I choose yields gibberish.

    I'm officially at my wits end as I can't seem to choose what format Libra backs it's data up as. I do appreciate the help Sir :)

    With apologies for asking (used to work at a help desk and we always ask irritating questions): It was an export of the database rather than an export of the chart, in the first place, right? (Former is from export menu option on the database view, latter from export menu option on the main page.)
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    AnnPT77 wrote: »
    Also, just as a random thought . . have you tried importing when the new database has at least one record in it? (Stupid random thought. Trying to remember what the heck I did . . . .)

    Yes, I tried that as well.

    I love technology. When it works. HAHA! :p

    OOOoo! I have an idea (that might be a memory)!

    I just looked at my old files again. Do you have comments in your weight data?

    The export has the comments as plain text in the last delimited field. The file I actually imported has single quotation marks added before and after each comment. I dimly think I may've added the single quotes. That might be it - data format problem?!?
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    edited May 2019
    AnnPT77 wrote: »
    Phirrgus wrote: »
    PAV8888 wrote: »
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
    @PAV8888 Thank you! Yes, I have it downloaded from google drive, saved in downloads (android file manager) and documents + the copy left on drive. Below is what I've tried:
    1. copy to internal storage/Libra as downloaded > nope
    2. copied to internal storage/Android/data/net.cachapa.libra > nope
    3. copied to internal storage/Android/data/net.cachapa.libra/files > nope
    4. copied to internal storage/Android/data/net.cachapa.libra/ and each of the previous locations *all > nope

    I renamed the download to a .TXT file per your suggestion and it shows as a .PNG :D Visual inspection regardless of which encoding I choose yields gibberish.

    I'm officially at my wits end as I can't seem to choose what format Libra backs it's data up as. I do appreciate the help Sir :)

    With apologies for asking (used to work at a help desk and we always ask irritating questions): It was an export of the database rather than an export of the chart, in the first place, right? (Former is from export menu option on the database view, latter from export menu option on the main page.)

    YES! That was it!

    @alteredsteve175 open libra > hit the 3 bars menu up top > Hit the 3 bars again > Export Database to (I used google drive) > Stay on that page > 3 dots menu > Import database - this time it gave me the option to use Libra and worked!

    @AnnPT77 You rock young lady, thank you! :)

    edit: Yes I hugged you twice :D this was driving me a bit nutz ya know? :)
  • AnnPT77
    AnnPT77 Posts: 34,617 Member
    Phirrgus wrote: »
    AnnPT77 wrote: »
    Phirrgus wrote: »
    PAV8888 wrote: »
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
    @PAV8888 Thank you! Yes, I have it downloaded from google drive, saved in downloads (android file manager) and documents + the copy left on drive. Below is what I've tried:
    1. copy to internal storage/Libra as downloaded > nope
    2. copied to internal storage/Android/data/net.cachapa.libra > nope
    3. copied to internal storage/Android/data/net.cachapa.libra/files > nope
    4. copied to internal storage/Android/data/net.cachapa.libra/ and each of the previous locations *all > nope

    I renamed the download to a .TXT file per your suggestion and it shows as a .PNG :D Visual inspection regardless of which encoding I choose yields gibberish.

    I'm officially at my wits end as I can't seem to choose what format Libra backs it's data up as. I do appreciate the help Sir :)

    With apologies for asking (used to work at a help desk and we always ask irritating questions): It was an export of the database rather than an export of the chart, in the first place, right? (Former is from export menu option on the database view, latter from export menu option on the main page.)

    YES! That was it!

    @alteredsteve175 open libra > hit the 3 bars menu up top > Hit the 3 bars again > Export Database to (I used google drive) > Stay on that page > 3 dots menu > Import database - this time it gave me the option to use Libra and worked!

    @AnnPT77 You rock young lady, thank you! :)

    edit: Yes I hugged you twice :D this was driving me a bit nutz ya know? :)

    YaaaY!

    (But ya didn't really read my first message on this thread, didja? Ya know, the one that said:
    In your old Libra, open the database listing (via the 3 bars (not dots) thingie in the upper right). You should see a list of the database entries, organized by date.

    In the upper right, you should see a three-bars thingie with an arrow on top of it. Click that. Pick "save to drive".

    :lol::drinker: ).

    When I did it, I still had to do some extra step to get the import to work - I think it was maybe the data format thing, not sure. Sounds like you didn't need the extra step.
  • Phirrgus
    Phirrgus Posts: 1,894 Member
    AnnPT77 wrote: »
    Phirrgus wrote: »
    AnnPT77 wrote: »
    Phirrgus wrote: »
    PAV8888 wrote: »
    Phirrgus wrote: »
    It seems that even though the backup is being saved as a properly labeled csv, drive treats it as an image file when libra tries to restore it. Have you ever run into such a thing Ann? Thanks :)

    Can you download from Google Drive to your phone and end up with a readable CSV in the downloads folder (use Android file manager to change extension to .TXT to visually inspect what you've got)

    Or even rename on Google drive to TXT before downloading. Download.


    Then in all cases Rename to what libra wants. And import locally on phone.
    @PAV8888 Thank you! Yes, I have it downloaded from google drive, saved in downloads (android file manager) and documents + the copy left on drive. Below is what I've tried:
    1. copy to internal storage/Libra as downloaded > nope
    2. copied to internal storage/Android/data/net.cachapa.libra > nope
    3. copied to internal storage/Android/data/net.cachapa.libra/files > nope
    4. copied to internal storage/Android/data/net.cachapa.libra/ and each of the previous locations *all > nope

    I renamed the download to a .TXT file per your suggestion and it shows as a .PNG :D Visual inspection regardless of which encoding I choose yields gibberish.

    I'm officially at my wits end as I can't seem to choose what format Libra backs it's data up as. I do appreciate the help Sir :)

    With apologies for asking (used to work at a help desk and we always ask irritating questions): It was an export of the database rather than an export of the chart, in the first place, right? (Former is from export menu option on the database view, latter from export menu option on the main page.)

    YES! That was it!

    @alteredsteve175 open libra > hit the 3 bars menu up top > Hit the 3 bars again > Export Database to (I used google drive) > Stay on that page > 3 dots menu > Import database - this time it gave me the option to use Libra and worked!

    @AnnPT77 You rock young lady, thank you! :)

    edit: Yes I hugged you twice :D this was driving me a bit nutz ya know? :)

    YaaaY!

    (But ya didn't really read my first message on this thread, didja? Ya know, the one that said:
    In your old Libra, open the database listing (via the 3 bars (not dots) thingie in the upper right). You should see a list of the database entries, organized by date.

    In the upper right, you should see a three-bars thingie with an arrow on top of it. Click that. Pick "save to drive".

    :lol::drinker: ).

    When I did it, I still had to do some extra step to get the import to work - I think it was maybe the data format thing, not sure. Sounds like you didn't need the extra step.

    I have a horrible tendency to quick scan..I blame my work, but I'm usually pretty good with it lol. That should teach me to slow up a bit. :)
  • alteredsteve175
    alteredsteve175 Posts: 2,726 Member
    I am able to get this option in Libra, but it still doesn't load the file.
  • AnnPT77
    AnnPT77 Posts: 34,617 Member

    All I've got as an idea is this one below Steve, but it seems to have worked for Phirrgus without doing it.

    AnnPT77 wrote: »
    AnnPT77 wrote: »
    Also, just as a random thought . . have you tried importing when the new database has at least one record in it? (Stupid random thought. Trying to remember what the heck I did . . . .)

    Yes, I tried that as well.

    I love technology. When it works. HAHA! :p

    OOOoo! I have an idea (that might be a memory)!

    I just looked at my old files again. Do you have comments in your weight data?

    The export has the comments as plain text in the last delimited field. The file I actually imported has single quotation marks added before and after each comment. I dimly think I may've added the single quotes. That might be it - data format problem?!?

  • Phirrgus
    Phirrgus Posts: 1,894 Member
    I am able to get this option in Libra, but it still doesn't load the file.

    On that screenshot, are the database entries ones that you manually entered? The import option may not actually over write an existing file. When the import worked on mine, my database on the new phone was completely empty. you could try deleting the existing entries, or uninstall>reinstall Libra, and then try the import again....
This discussion has been closed.