Shared via BBM

I'm trying to share a file via BBM, which is called from my application.

The file is stored under my assets in my application.

It works fine when I store assets in file:///accounts/1000/shared/misc/, but I have problems when the file is stored inside the app.

I tried the following:

request.setUri(QUrl(QDir::currentPath() +"/app/native/assets/myfile.txt"));
request.setUri("asset:///myfile.txt");

Anyone know the path to the current folder which will work with BBM?

Ah, this works:

"file:"+QDir::currentPath()+"/app/native/assets/myfile.txt"

Tags: BlackBerry Developers

Similar Questions

  • Enter the data shared via BBM inside an application

    Hello

    I need to capture data shared via BBM inside my app BB10. I need to recover the data shared via BBM and then integrate it into my application.

    Is this possible. There is an onShareContent in the BBM-BB7.  We have this method in BB10 on the receiver side.

    This will then run on the receiver side. This must be set before the call to register()
    BlackBerry.BBM.Platform.Users.onsharecontent = function (sender As Object, content, description, timestamp) {}
    try {}

    } catch (e) {}
    TODO: handle exception
    Alert ("sharecontent.init Exception" + e);
    }
    }

    Kind regards

    Annuk

    BlackBerry 10 it is not possible to intercept data shared to BlackBerry Messenger.  But, your application can be a target from any application that supports sharing.  See the link below for more information.

    Receive call

  • Is it possible to stream DVD of ICloud instead of iTunes home sharing via my computer?

    I would like to be able to download my DVD somehow so I can play them all Apple TV (gen 4) instead of airplaying them or having to maintain the computer to share the home of my iTunes (latest version). As it is, if I want to watch a DVD, downloaded on my Apple TV I must select COMPUTERS and go into my library to select the movie and then keep my computer over time. I managed to download a DVD on my Icloud player hoping to be able to stream the DVD from there nothing doesn't. I do not understand why this is the case and am unable to find any resources that explain the case however, I'm rather new to all this and perhaps, I not looking in the right places. Second of all, why can't I just go to the MOVIES on Apple TV and find them there with the rest of my movies as opposed to strictly buy films he and others else where; they are all good movies? Put them in the category FILM (it is more a problem of Apple, I guess). Is it possible to stream my DVDs to iCloud instead of iTunes home sharing via my computer? Any information or guidance would be appreciated thank you for taking the time to answer my questions.

    When you look at the top row of the applications the homescreen are apps from iTunes Store.

    So the only films - purchased are one you purchesed from iTunes. It is the same for other applications in the same row.

    Focus on Plex to broadcast your own films as an alternative to the use of computers on the Apple TV.

  • Problem with sharing of data specific to the application via BBM 10.2

    Hello - I am having a problem of data sharing applications with BBM 10.2-specific. I take the advice of some comments here, and it seems to work on 10.1. I can receive the file on 10.2, but when I try to share on the same device that I get this:

    InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
       mimeType=""
       uri=QUrl("file:///accounts/1000/shared/misc/My App Data.myapp")
       data= ""
       metadata= QMap()
       perimeter= 0
       action= "bb.action.SHARE"
       target= "sys.bbm.sharehandler"
       invokerIncluded= false
    InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.
    

    It is the call that I use, which works on 10.1 but not 10.2:

    Invocation {
       id: invokeBBM
       query {
          InvokeQuery {
             id: invokeBBMQuery
             uri: "file:///accounts/1000/shared/misc/My App Data.myapp"
             invokeTargetId: "sys.bbm.sharehandler"
             invokeActionId: "bb.action.SHARE"
          }
       }
    }
    

    I also tried it with a "text/plain" MIME type and a few other variations, same result. If something has changed in point 10.2?

    (And while I'm asking, any reason why I can't use the data instead of a file uri? I need to convert the data in JSON, save the file, share the file, send, receive, save the file on the receiver, then open it, read it, and convert it back. Seems a little roundabout, if I could share the JSON data. "(And this is the only reason that my application requires permissions of shared files)."

    Thank you!

    It is a problem with the current version of BlackBerry Dev 10.2 Alpha.  You can call C++ BBM, but citing QML does not work.

  • Sharing files via BBM [amateur]

    Hey! Before I start I clear I used, gone through the invocation all the associated examples & Yes still does not know how to share a particular file to BBM contacts with just one button.

    I am building an application of sounds & it's going to be a simple list with Preview view, send options. Can anyone help to share with these sounds attached above to BBM contacts?

    About me, a startup developer and know little of QML. nothing else. So more QML is appreciated.

    You're close.  Here's what you need to do.

    Button {
        id: share
        text: "Share"
        onClicked: {
            invokeQuery.data =  "This is some text to share."
            invokeQuery.updateQuery();
            invokeShare.trigger("bb.action.SHARE");
        }
        attachedObjects: [
            Invocation {
                id: invokeShare
                query {
                    InvokeQuery {
                        id: invokeQuery
                        mimeType: "text/plain"
                        invokeTargetId: "sys.bbm.sharehandler"
                        onQueryChanged: invokeShare.query.updateQuery()
                    }
                }
            }
        ]
    }
    
  • Printer sharing via LAN - EPSON XP-335

    Hello

    We use 3 Macs connected via LAN (Ethernet, we do not use Wi - Fi).

    I have connected an EPSON XP-335 via USB to Mac #1, and it prints fine.

    On all Macs, I installed the software EPSON printing and active "Sharing printers", via preferences > sharing.

    but when I try to print from Mac #2 or #3 I get this message "not connected":

    What should I do?

    Thank you very much.

    Hi coxorange,

    Please use the Apple Support communities for help. From your post, I understand that you are unable to access the printer that is connected to one of your iMac, others in the House. I know it's nice to be able to print from all of your devices, so I'm happy to help you to provide advice for this.

    From the information you provided, it seems that there is some confusion about the way the printer is shared on your devices. In order to have a shared printer, you must only share from the computer to which it is connected. From there, you can connect to this printer with other computers. Perform these steps on the iMac to which it is attached:

    How to share a printer:

    1. Open sharing preferences if it is not already open (choose Apple menu > System Preferences and click Sharing), then check the box print sharing.

    2. Under printers, select the printer you want to share.

      When you share a printer, all users on your network ("everyone") can use by default. If you want to restrict access to specific people, go to steps 3 and 4.

    3. Click on the button Add at the bottom of the users list, and then do one of the following:

      • Select a user in users and groups, that includes all your Mac users.

      • Select a user from the network or users groups network, which includes everyone on your network.

      • Select a person in your contacts. Create a password for the person, then click on create an account.

    4. When you add people to the list of users, access to the shared printer is reset to no access for the users of your network ("everyone"). To provide access to everyone again, click the triangles, then choose can print.

    Source: OS X El Capitan: share your printer

    Once the printer is shared, you'll want to implement on your other computers. Check out the second section of this article, titled "Add a Wi - Fi or network printer":

    OS X El Capitan: Add or remove a printer

    If you continue to have problems with your printer setup, here are some additional articles that may help you identify the problem:

    OS X El Capitan: print troubleshooting

    Troubleshoot printer on your Mac

    I hope you have a great rest of your day, cheers!

  • HP Deskjet 5550: Printer sharing via Router/USB?

    So, I have an ASUS router with EZ printer sharing function. I have connected my printer to the router via USB but I can't find the printer in windows. When I surfed in to my router, I see the printer via the firmware on the router and the router has detected my printer model.

    I tried with the only available software for my printer, nothing helps. I also downloaded a software from ASUS, same progress. Any suggestions?

    Router ASUS RT-AC51U

    HP Deskjet 5550 printer

    10 Windows 64-bit computer

    Apparently I had to install an ASUS file on my computer, I just tried to run WinRAR. Problem solved!

  • Made a bridge network distort your IP address for file sharing via a WIFI network?

    Dear Microsoft Answers,

    I have a network bridge set up the connection of two network cards wireless (an external and one internal), one of the witches providing internet service via the WIFI of my neighbours, the other to distribute the signal through MY House, some between my iPhone and my PC wireless file sharing works all by sharing connections but not when jumpered. I need bridge for good internet services connections. Please , can someone help me with this, Ive been having SO many network problems lately, and I hope for relief. Thank you!

    Hi Rio12345,

    We recommend you to check if the Windows Firewall or any other firewall installed on your computer allows the devices to communicate on the bridge.
    See Allow a program to communicate through Windows Firewall

    For further assistance, you can get in touch with iPhone support team

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Data sharing on BBM

    Hello guys,.

    I'm doing a sharing application application data of my course on BBM BBM contacts. Tried with classes as 'bb/platform/bbm' but not exactly get it. We have sendDownloadInvitation() of the API in the MessageService class for the same, but sends invitation to download BBM app to BBM contacts? Any help would be appreciated.

    Thank you

    Dev

    I guess you have to use the framework of the call for this.

    Take a look at settings

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/BBM.html

    And these are the examples of code

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/sending_invocatio...

    I hope this helped a little.

  • Does not open the files shared via the command run

    We use a server in our Organization and we can connect to this server using RDP. But when we try to access shared files and folders in this server via the command run in the client by entering the IP address of the server asks it enter network password, and we enter the right username and password (I'm sure that I entered the password and user name correct to 100%) it displays 'failed to connect '. ': unknown username or bad password ". and if we took the same user name and password via RDP it will easily connect without any error. Please give us the solution for this problem.

    Kind regards

    Vijay Kumar C.M.

    Left thread (files, folders, and online storage) for (web and networks).

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. Appropriate in the TechNet forums.

    Please post your question in the TechNet forums: http://technet.microsoft.com/en-us/windowsserver/bb250589.aspx

    Thank you.

  • Built-in social sharing via URL custom rather than "renditions" folio

    We publish a free magazine on the iPad, and we have the same content available for free on our Web site. We would like to send all traffic sharing of the content of our Web site, rather than iPad app iPad through "renditions" folio content.

    Currently, we do this by coding buttons on every page of the iPad which, when we, take people to the corresponding HTML code content via Twitter and Facebook URL sharer. Of course, we would prefer if this could be done through the icon 'share' in the Viewer.

    Is it possible to configure the Viewer to send people to our URL for Facebook, Twitter and Email?

    Thank you!

    Lol the share in the Viewer icon is dedicated to allow the social sharing process of DPS.

    Neil

  • Sharing via iTunes files pages stop working when I update to el capitan

    I am is no longer able to transfer the document pages from my iPad to my MacBook pro via iTunes since I upgra.

    Use iCloud drive.

    Implement the iCloud Drive on all of your devices - Apple Support

  • not possible to bind a variable shared via Ethernet network

    Hello!

    I have computer A and B with windows xp, sp3 and labview 8.6, professional edition. The two computers are in the ethernet network. I'd like to Exchange data between two applications of LV using shared variables. I create a shared variable (published network) on both computers.
    The problem is in the properties of shared variables not possible to bind the variable of the remote computer to the local computer. In the first step, there is even no possible to see any computer on the network. After the registration of the computer (Tools-> shared-> computer registry variable)
    I see the computer remote, but without any variable sharing.

    Do you have any idea how to solve this problem?

    Thank you for the answers.

    Hi ,

    Visit this link, maybe it can help you.

  • File sharing via router computer LinksysWirles laptop pc problem.

    Heya!

    I have a problem, try to esteblish sharing files between laptop (connection wirles, WinXpHome) and the office (cable, WinXpPro).

    Use the Network Setup Wizard I have setuped computers for sharing.

    I can access shared folders on the desktop from the laptop, but I can't do the same for office - I don't see anything in my workgroup.

    I tried to disable firewall and AVG Anti-virus on two computers - does not work too.

    IM solutions, what else could be... Any ideas?

    Thank you

    OK, I managed to solve the problem

    I surprised myself even

    problem was in network connections-> or -> advanced settings - connection to the Local network-> mark all checkboxes

    Cheers!

  • Internet Connection Sharing via Intel my Wifi

    Hi, I use Alienware m14x with windows 7 Home premium 64-bit
    I have just restored my laptop factory. Configure my wifi profile. When I click on share my internet it gives the error that has first of all connect to the internet. I am already connected to the internet, therefore a ground of firewall problem please help with a few problems of settings.
    Thank you.

    Hello SiddheshGajare,

    Which Wi - Fi utility you are trying to share the connection to help?
    It is perhaps that the connection is not able to share with other devices.
    You can look into trying sharing instead of use the Windows internet connection Wi - Fi connection utility:
    The instructions also apply to Windows 7.

Maybe you are looking for