New answers tagged

1

JSON API is nice, but complex spec. Its implementation is also not easy, especially if you don't have good library implementing it. So it's mostly a question "is it worth it for our use case"? In my opinion, it's worth it if you have large and/or public API which needs to be stable, extensible, will be developed for years. JSON API provides reasonable ...


0

Would you like to be able to dynamically add new content and functionality to your client without having to change it? If you go with Json API (and actually leverage it), you can accomplish exactly that. Let's say v1 of your book resource looks like this links: { self: "/books/1" next: "/books/2" } author: { links: { ...


-1

I'm currently dealing with a SOAP API and it's corresponding WSDL. After looking over the JSON API specs. I get the impression that they are trying to be a WSDL equivalent for REST JSON servers. Like WSDLs, the JSON API is not the most readable in the world (although more readable than WSDLs,) but is meant to be parsed by tools that will then create the ...


0

I'm not interested in JSON, I'm interested in the objects that are created from JSON. Like in your example, turning plain JSON into objects is easy. How difficult is it for new developers? Mostly they are interested in the objects created. They can look at the code that turns JSON into objects, which is trivial. I looked at the JSON API spec, and I ...


0

The most simple approach I can think of is that your app does HTTP requests to your server backend, and gets the messages back, in plain text, if you want to. https://yourdomain.example/chatBackend/getMessages?user=Bob&token=B4258CF9A&newer=20160518225524 Response: Alice: What is the wheather in Finnland? Alice: Do you like some ☕? Of course, ...


1

You might want to look into Firebase's Realtime Database (also Google) instead of Cloud Datastore. It has Android/iOS/JavaScript SDK's and is designed to work offline with a client side cache, handling synchronization between Client and Server for you. If you want to do this in Cloud Datastore, you'll need to wrap the client libraries with your own ...


0

In Activity A, you need to specify which task that activity B need to run. To accomplish this, you need to pass variables created from Activity A to activity B. This can be done using putExtra() function inside of your activity A. In activity B, you need to get Activity A's variable using getIntExtra() function. Check tutorial at ...


0

No, Oracle's JDK is free of use. Android is based on Java Programming language. That's why you need to install Java, so that your app can be compiled and run successfully.


1

URI is a universal means to identify resources. It's not just meant for files. So, naturally the URI string doesn't look like a path. You can save that path into SQL DB. You just can't create a File instance using that String. From what I understand, you need the images to be displayed as part of entries in some list. URIs should be openable as a stream ...


0

Every time you rotate the phone, current activity is re-created. That is, onCreate() is called. Just determine whether or the device is a) Tablet / Smartphone http://stackoverflow.com/questions/9279111/determine-if-the-device-is-a-smartphone-or-tablet b) Portrait / Landscape ...


0

You have three options for storage on an Android device: Shared Preferences Shared Preferences is a Key/Value store, intended to store a small amount of settings type data. It supports primitive types like strings and numbers, stored in an XML format. Shared Preferences are available throughout the application, and they persist between sessions. File ...


1

You can obtain the source code of applications a few ways. Check if the application is open source Contact the developer and request source code Reverse engineer the application Reverse engineering is a bit of a legal grey area. From www.eff.org First the Scary Stuff: What Kinds of Reverse Engineering Are Most Legally Risky? ^ By using the ...



Top 50 recent answers are included