I am looking to update my thingspeak channel with custom values from the app I am building with mit app inventor 2. Till now I am able to send fixed values. But cannot update the channel with user inputs.
Please help.
Thanks
On the design screen, add a TextBox named Input and a Button named Send. You also need to add a Web Connectivity element and assign it to the Url: https://api.thingspeak.com/update
On the Blocks screen, use the "PostTextWithEncoding" block when the button is clicked. Pass in the text of the update, "api_key=YLT2AAO8ZIT4R13Z&field1=" and the input box Text. The encoding should be set to "application/x-www-form-urlencoded".
Here's what the blocks look like:
Let me know if you need further help. It is tricky to explain since I can't share the app code.
Related
We have a phone gap cross-platform built app and we are building the same app in native.
The app has pages/views with text with embedded hyperlinks in them where it sends the user to other pages in the same app. Of course because this is HTML based so this is possible using phone gap apps. But what if we changed that to native how can we have links inside a text where it redirects users to other views or grabs other data from the database and pushes them to the UIViewController?
How will the backend send us JSON strings with hyperlinks in them that will be able to replicate what the phone gap built app does. Is this possible?
Ok maybe we can send embedded HTML in the JSON data. But how will these <a> links open or grab other data from the server?
I find it very complicated or maybe not doable at all. Anybody has ideas on how this could be solved?
A screen shot of what i mean. This is a phone gap app.
All right first and foremost you need structured data.
Lets say I opend a main post with id '14'. Api will fetch data from server for id 14.
JSON structure can be like this:
{"title":"What are origional sin?","content":"Although Adam & Eve had been given. God has given man free will.","inlineLinks":[{"startIndex":"8","endIndex":"18","contentId":"141"},{"startIndex":"55","endIndex":"64","contentId":"142"}]}
Now using spannable string in android and attributed string in ios you now have id for specific inline link content and start and end index which you can use to add clicks to specific inline links. Once user clicks these link you have id of that specific content which you can open in your app.
Since you know the spannable string I hope you dont need the detail code.
Wish you have started your question with Spannable String problem.
Please ignore the indexes incase they are wrong ;)
Basically i'm working on android apps using hybrid cross platform frame work (angular- cordova) , I want to update the user screens without their knowledge or without updating app, like for example if we change and supply the screens in the back-end, apps screens should get updated.
Currently we have app update mechanism which we want to replace .
For reference example like Facebook screens get changed with out app update or user knowledge .
same way we want to do , any one please give some solution .
Or if their are better way please suggest me.
Many thanks to all.
I am not using but I heard about Silent Push Notification, google it about Silent push notification for your framework.
User don't have any knowledge about getting any notification and you can do your work like layout changing
Example
https://www.google.co.in/search?q=silent+push+notification+cordova
First you need to get UI from server.in server you need boolean variable like changes true or false if change true then you get UI from server and create a view dynamically.Like you get button from server,server side define button colour style and all property then get response from server in conditional statement like you check a response name is button then you create a button dynamically with setTag attribute.and you need to store response from database.You use any database like realm,sqlite and check every response all time like changed=true or false if true then you create dynamical UI and remove old database and add new server response to database
I'm currently working on my first serious app., and I would like to have some sort of contol on the data that users can enter.
Specifically, my app. allows users to write some text content (imagine something like a 'tweet'), and upload pictures.
I would like to prevent them from writing inappropriate text, and uploading offensive pictures for instance.
What I thought of doing, is to allow something like 'report abuse' button, where users who find some content offesive, can press - in which case relevent data will be saved, and later checked, to decide if indeed an inappropriate usage happened (maybe by some sort of server-side code).
As I said, I'm a beginner in android development, and I would really love to hear your suggestions and guiding. Perhaps it is something over my league for now? Maybe you know of such thing that already exists?
My app. uses Parse.com as its DB.
I would really appriciate your help.
Thank you.
I'm developing as well an app with parse and I also had to integrate in it a report button for the user.
The way I did it is simple:
In every Pf User object, I created a field of type counter named "reportCounter" while in the PFObject created by the user (it can be a string, a picture, etc.)I created a boolean field named "isReported". When a user find some inappropriate content he can report it through the dedicated button. The PFObject relative to that content gets its isReported field changed to YES and a parse background job checks every day for all the PFObjects, incrementing the reportCounter field of the owner-creator of the content and sending a report e-mail to the administrator. In this way you can keep also a record to see if a particular user is behaving badly. Just take a look at the Parse documentation about background-jobs. It's pretty good.
I hope this will help.
I have an activity with a textview that shows different quotes every time the previous or backward button is pressed. It'd be really funny if I add 10000 quotes in the arrays.xml file and then pass it through to the textview.
Is there any method using which I can, extract text from my own blog and show quote sin the text view. what I mean is, I don't have to prompt the users to update the entire application and just do an update on the cloud and it gets updated in the app every time the user connects to the app.
Just try parsing your xml feed and show that contents into the textview. You can also use a text file and show contents of it using different indexes.
Have you had a look at the Google Cloud Messaging (GCM) service to see if this can help you? I've never looked at it, just thought I'd read somewhere about other developers that have!
So I'm building an app that allows input from the user with their voice. I have built a webview and i have all the code to recieve voice input and transcode that into text. But now i want to be able to paste the text that the user says that i have already into whatever text box that is selected on the screen. For instance if the user is on google and clicked on the search box and says the words "stackoverflow", my app recieves the string containing "stackoverflow", now how do i paste that into the text box?
Thanks and let me know if i can give any further clarification
Unless you knew exactly what page the user had opened and exactly what the ID of the element you wanted to populate was, there's no way to accomplish what you're describing (if I understand your request correctly). Or are you asking how to populate an EditText that's in your Activity (I'm assuming that's NOT what you're asking, but just in case).