w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I retrieve this type of error while getting photos from dropbox in android?
Set the access type of your Dropbox app to full Dropbox instead of app folder. You have the this option when you register the app. You may check your current access type at Developer Apps page.

Categories : Android

How to access a file from dropbox which has already been downloaded via dropbox?
Traditionally you must provide a cached list of objects, and store the file in the cache yourself. NSFileManager and CoreData can help you here. Try looking at the new SYNC API and examples: here

Categories : IOS

Downloaded Dropbox files corrupted
If you go to the location you specified: https://www.dropbox.com/s/a8itscdtu81jj2z/armorhud.zip, you get presented with a page that includes a download button. You can't expect your code to automatically think to go to the URL that the download button will send you. What it is attempting to do is download the HTML page as a ZIP file, which is why it can't open it as an archive. An HTML file is not an archive. Change your URL to the actual location of the file to be downloaded. Also, take a look at the Dropbox Core API and other APIs there if you want a better way of interfacing files with your application.

Categories : Java

Reading file's content downloaded from dropbox -objective-c
It looks like your code is reading a file called "File.txt" rather than the actual file that was downloaded from Dropbox. Am I missing something? EDIT Based on the comments below, it looks like the error is 261, related to string encoding. You might want to try a different encoding or ensure that the text file is encoded the way you expect it to be.

Categories : Iphone

JPG files uploaded to Dropbox from my Android app using the Dropbox API having missing pixels
Yay - figured out the issue. instead of using the image.length I was using the original folder.length in the dropbox code. I changed file.length to image[i].length and now everything is working fine!!

Categories : Android

Missing photos when retrieving Users tagged photos facebook-graph API
The only thing that comes to mind is the settings of each user since according to the answer posted here - facebook graph api - missing fields, API access to these things can be turned off at the user's discretion.

Categories : Facebook

How can I show last saved photo in Photos app iOS via "photos-redirect:" URL scheme?
photos-redirect:// is the URL Scheme for Photo App. However, it is undocumented, thus you shouldn't use it. To view / select a photo, use UIImagePickerController .

Categories : IOS

Dropbox sync api. Unable to download file from Dropbox
If you're asking how to read the contents of a file from Dropbox, I think the answer is to call dbxFs.open(testPath).getReadStream() and then read the contents from there. If that's not what you meant or if that doesn't work, would you please clarify the question?

Categories : Android

Dropbox Sync Api. Not seeing the File on Dropbox the first time round
I'm not 100% sure, but I believe you need to use dropboxFileSystem.awaitFirstSync() to make sure at least one sync with the server has happened before you try to find the file. An alternative might be to just call dropboxFileSystem.open(...) directly and handle the exception that's raised if the file doesn't exist.

Categories : Android

new to android - downloaded android project from git, imported into eclipse and everything looks wierd
Those are not honeycomb. Its called packages. You can find java class in different packages. Packages are defined to solve the problem complexity and package name should describe what functionality the java classes provides which is in it.

Categories : Java

Android Camera image rotated after save
Yes, I've found the solution: This is my Camera activity: package it......utils; import it.......R; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import android.app.Activity; import android.content.Intent; import android.graphics.ImageFormat; import android.hardware.Camera; import android.hardware.Camera.AutoFocusCallback; import android.hardware.Camera.Parameters; import android.hardware.Camera.PictureCallback; import android.hardware.Camera.Size; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.widget.FrameLayout; import android.

Categories : Android

Android OpenGL ES 2 Texture Quadrants Rotated
I've been viewing SO for a while now, but never have I had the chance to answer a question. I know this question is 5 moths old, but I'll try to answer it anyway. Basically, what you're doing is you're not properly aligning the corners of your texture with the corners of you vertices. You get that 4 | 3 ----- 2 | 1 because the center of your texture is the bottom right of your square, and the texture gets repeated, hence the 4 and 2 are on the right and the 3 is on top. The way to fix this is to add a new vec4 in your vertex shader uniform vec4 pos; and fill it with x, y, width and height int pos = GLES20.glGetUniformLocation(mProgram, "pos"); GLES20.glUniform4f(pos, .5f, .5f, 1, 1); // x, y, width, height Now change this v_TexCoordinate = a_TexCoordinate; to

Categories : Android

List specific Dropbox folder with Dropbox API in PHP or JS
After a quick look at the Core Dropbox API it seems this is possible using the /metadata endpoint. Take a look at https://www.dropbox.com/developers/core/docs#metadata, you can use the information provided to create a recursive function or just display the files/folders within the specified folder.

Categories : Javascript

Dropbox SDK Catch-22: How to get Dropbox SDK and Sync SDK to coexist?
If you're trying to share a file and get a short link for it, take a look at the short_url parameter of /shares: https://www.dropbox.com/developers/core/docs#shares. If that's not what you're trying to do, can you please explain? You mention URLs a few times, but it's not clear to me what URLs you're talking about. As to including both the Core API and Sync API in the same project, I believe it's possible but will require renaming some classes. (At least that's been my experience in iOS, not sure about Android.)

Categories : Android

Android Studio + dropbox-android-sync-sdk-1.1.2
I've never used Android Studio before, so I had to look it up... these are good instructions for adding an external library to an Android Studio project: How do I add a library project to the Android Studio? Following that with the Dropbox Android Sync SDK, I pasted the contents of libs in the Android SDK into libs in my Android project, and then I added this line to build.gradle (inside dependencies): compile files('libs/dropbox-sync-sdk-android.jar') That seemed to work for me. If you tried that and it didn't work (or if you tried something else), please provide some details. EDIT Pasting my answer from Android & DropboxSync Library for completeness: I found this SO answer helpful: Include .so library in apk in android studio Part of my build.gradle file now looks like this, a

Categories : Android

Screen gets rotated even after locking device's rotation in Android
If you look at this question you should find your answer link. You have to set android:screenOrientation="landscape" Best wishes

Categories : Java

Android API for Google+ Photos
I finally found all the pieces for that I need. The end result is to use AccountManager to get the auth token and PicasawebService to do the rest. Though there are some annoying bug with adapting the class. I wrote up my little adventure here along with example code. http://roostertech.wordpress.com/2013/08/09/accessing-gphoto-android/

Categories : Java

Android: My GridView's photos is mixed
Try this... Use View holder for holding details... public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; final ViewHolder holder; if(convertView == null) { view = inflater.inflate(R.layout.phototab_list, parent, false); holder = new ViewHolder(); holder.photo = (ImageView)convertView.findViewById(R.id.PHOTOS); holder.CHECK = (CheckBox)convertView.findViewById(R.id.PHOTOSCHECK); holder.options = new BitmapFactory.Options(); holder.options.inSampleSize = 16; }else { holder = (ViewHolder) view.getTag(); } Log.i("LOAD", position + ""); if(ReceivePhotos.get(position) == null) { ReceivePhotos.set(position, BitmapFac

Categories : Android

Get private photos using flickrj-android
I'm not very familiar with Java and that framework but will try to help. I found next method name in that framework: public class PeopleInterface { public static final String METHOD_GET_PHOTOS = "flickr.people.getPhotos"; /** * Returns photos from the given user's photostream. Only photos visible the * calling user will be returned. this method must be authenticated. * * @param userId * @param extras * @param perpage * @param page * @return * @throws IOException * @throws FlickrException * @throws JSONException */ public PhotoList getPhotos(String userId, Set<String> extras, int perPage, int page) From Flick API docs I found next: flickr.people.getPhotos Return photos from the given user's photostr

Categories : Android

Dropbox file picker Android
You can get Dropbox in your App, This is might help you https://www.dropbox.com/developers/blog/42/the-chooser-now-for-ios-and-android

Categories : Android

From where can I find App Secret in Dropbox for android?
You have to register Your app first. Then if it is approved by DropBox go to "AppConsole" and push "Options" right besides Your registered app. Here You will find the secret code

Categories : Android

Android: save a large number of photos from url
Consider using Universal Image Loader In my application i load more than 300 photos and i don't get outOfMemoryException error however the library needs to draw some cache. Here's the project on GitHub: https://github.com/thest1/LazyList

Categories : Android

How to get file bytes with Dropbox Chooser for Android
Adding Andy Res's answer as an answer, because he's right. :-) I think you are supposed to use that Uri to open an input stream connection, that is from where you'll get the bytes, presumably making a HttpUriRequest. EDIT Also note that you should get a "direct" link, not a "preview" link if you want to download the file contents.

Categories : Android

upload file to dropbox using Sync API android
If I understand correctly what you're trying to do, I think you want something like this: testFile.writeString(" ", TextUtils.join(array)); (Apologies if the syntax isn't quite right. I've never done any Android development, and TextUtils.join is specific to that platform.)

Categories : Java

Upload file to Dropbox programmatically from Android APP
Yes, you can use either the Core SDK: https://www.dropbox.com/static/developers/dropbox-android-sdk-1.5.4-docs/com/dropbox/client2/DropboxAPI.UploadRequest.html or the Sync SDK: https://www.dropbox.com/developers/sync/docs/android#com.dropbox.sync.android.DbxFile to upload files from Android to Dropbox.

Categories : Android

Google Drive API vs Dropbox API Android/Desktop
Google has offered more services, and done more while costing the consumer less. Google is tough to beat, but Dropbox can match or beat Google in the storage wars. The real game changer is going to be Mailbox, and that is just coming on the market. It appears as though the Google Docs document list APIs provide some level of programmatic access to Google Drive files. The documentation on the Google Drive developer site currently doesn't discuss that functionality at all, and says that apps "will not have any API access to files unless users have first installed the app in the Chrome Web Store." It's not clear yet if the Google Docs API is the path that Google is going to use for supporting arbitrary Google Drive access by desktop and mobile applications. Hence I in my opinion for now use

Categories : Android

Android - Download file from DropBox Hyperlink?
Request the db.tt URL and take a look at the Location header, which will tell you where the short link redirects to. Replace "www.dropbox.com" in that URL with "dl.dropboxusercontent.com". (See https://www.dropbox.com/help/201/en.) Issue a normal GET request to download the content.

Categories : Android

How to Share a sdcard folder on dropbox in android
There's no way to directly upload a folder using the Dropbox SDK. You'll need to enumerate the files yourself then upload them individually into a Dropbox folder which you create. You can then share a link to that folder.

Categories : Android

Using saved Dropbox authentication details on Android
The samples included with the SDK show the different ways you can create a session with an existing access token. For example, using the method setAccessTokenPair: // Load state. State state = State.load(STATE_FILE); // Connect to Dropbox. WebAuthSession session = new WebAuthSession(state.appKey, WebAuthSession.AccessType.APP_FOLDER); session.setAccessTokenPair(state.accessToken); DropboxAPI<?> client = new DropboxAPI<WebAuthSession>(session); Or using the constructor: WebAuthSession sourceSession = new WebAuthSession(state.appKey, Session.AccessType.DROPBOX, sourceAccess); DropboxAPI<?> sourceClient = new DropboxAPI<WebAuthSession>(sourceSession); (These simple examples just load the access token from a state file.)

Categories : Java

omniauth-dropbox and dropbox-sdk, can they work together
It looks to me from https://github.com/intridea/omniauth/wiki like you can get env['omniauth.auth'] in your callback handler, and from there you can extract the credentials (token and secret). See https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema. Once you have the token and secret, you should be able to call session.set_access_token to tell the Dropbox SDK what credentials to use.

Categories : Ruby On Rails

android target 16 needed when 18, 15, and 8 already downloaded?
There is an error saying : "unable to resolve target 16" , would you know why? The build target of the project (e.g., Project > Properties > Android) was set to API Level 16. Eclipse should have automatically changed it to 18, given your described setup (first available higher SDK).

Categories : Android

How to detect that whole image was downloaded in Android
I suggest using Google Volley which provides a super simple interface for networking in general, and image loading specifically. It takes care of threading and batching for you. It's what Google use on the Google Play app. It will solve your problem by providing listeners that notify you when the job is complete.

Categories : Java

uploading photos/videos on facebook app running on android or ios?
"should I expect any problems with uploading photos/videos from mobile devices -> android, iOS, blackBerry ?" No. But 1 thing you should know that the user wont be able to post photos/videos to the friends wall (if that's in your requirement); yet there's a workaround that the user can tag his/her friends in the photo/video. Some links that might be useful to you- Videos Android iOS API Reference Photos Android iOS API Reference

Categories : Android

How can I upload multiple photos in one post on Google+ from G+ Android SDK?
It should work with addStream() method, unfortunately... it doesn't work. Indeed it makes the application crash. After a long search, I finally got it: it's not possible if using the simplified G+ SDK! (the one dedicated to Android). There is a second one, included in the Google API family that you can find there: http://code.google.com/p/google-api-java-client/wiki/APIs#Google+_API This one will let you build more advanced post, included, several pic one. Unfortunately the second SDK is much more low level, not dedicated to Android, it's a kind of Java abstraction over http request. Regards

Categories : Android

How to run external, downloaded yet not installed apps on Android?
You can use Android's class loaders (in this particular case probably the PathClassLoader) to dynamically load classes at runtime without installing them. Take a look at e.g. https://github.com/Rookery/AndroidDynamicLoader to see how this can be implemented. Plugin apk's might not even need something that complicated but can just communicate via Intents sent to exported activities and posted back results. You can use PackageManager (http://developer.android.com/reference/android/content/pm/PackageManager.html) to query for which intents activities are registered.

Categories : Android

Can you automatically open a downloaded document on Android?
You cannot automatically open such a link in a different application without first writing your own application to do so. If you are running your own application and not using the default Browser (or Chrome or Opera or Dolphin or whatever other app), then you can manually fire off a new Intent when the links are clicked. However, this doesn't necessarily need to be an android-specific question. In order to view an image, a web browser needs to download it regardless. What is to stop you from opening up a full-screen <div> with the image and associated metadata within it? If you're wanting to open it in a specific app, you're out of luck unless the app authors provided you with a specific way to do it. You pointed out the exact reason that this is not directly possible. Certain appl

Categories : Javascript

Avoid corrupted zip file downloaded - Android
I don't think that there is a way to restore the corrupted data, but if the ZIP-file isn't very large, you could check the MD5-checksum of the original file, and the (potentially) corrupted ZIP you've downloaded. If the checksums match, everything is okay, if not, download it again.

Categories : Android

How to free downloaded image from memory in android?
bitmap=null; you can then get the bitmap back bu using BitmapFactory.decodeResource(Resources res, int id) Have a look at the Abdroid developer blog for tutorials on handling loading of images. It's a great resource Loading large bitmaps

Categories : Android

ftpclient downloaded file corrupted in android
You're not using the write method. setFileTransferMode is for transfer modes. setFileType is for setting file types. .setFileType(FTP.BINARY_FILE_TYPE); See the docs for setFileType and setFileTransferMode.

Categories : Android

My android app can download but doesnt appear in my downloaded apps
Your Launcher activity should have this Intent Filter <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter>

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.