Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to take pictures from my PHP server and put it into my android ListView
I am using the code example in https://www.simplifiedcoding.net/android-programming-tutorial-to-get-all-images-from-server but this only gets all of the images and shows them one by one.
You should really try to be using Android Volley for data transfers. It is developed by the Android team and is the recommended convention.
http://developer.android.com/training/volley/index.html
And as far as your list view goes, unless you have some specific reason to use it, you may want to look into Recyclerview. It handles most of the loading and view holding issues. http://developer.android.com/training/material/lists-cards.html#RecyclerView
Use android picasso library to get images to your app via url, its very easy to use.
checkout this tutorial on the use of picasso
http://javatechig.com/android/how-to-use-picasso-library-in-android
hope this help.
Another option is universal image loader. https://github.com/nostra13/Android-Universal-Image-Loader
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I had success setup the Docusign-php-client with everything working!
But how can I access the api directly?
I can only use public/index.php page to test all the samples,
how can I create my own page or own api call?
Is there any simple sample? sorry I‘m newbie on program, please help, thanks!
I'm not clear what you already did since you didn't share code, but I would suggest you start by using https://github.com/docusign/code-examples-php which is a repo with full working code and a PHP app using the DocuSign PHP library/SDK.
Try to use it and see how it work as a means of jump-starting your development.
You can then either modify it to fit your needs or copy/paste relevant pieces of code into your app.
They are 31 PHP examples in here -> https://github.com/docusign/code-examples-php. DocuSign php client is just an API wrapper. If you need more info you can visit https://developers.docusign.com/ for more info
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm using laravel + vuejs. I have a situation in which I need to have screen height in laravel/server-side. I know its easy on vuejs side but I need it in laravel side because I'm using pagination and I'm sending elements per page from laravel side. I have to know the screen size to calculate the items per page in server-side.
Thank you for the help
You could set cookies on the client side via JS.
And read it on the back-end.
Usually this is not available to the server. Techniques used to adapt to the screen size are well developed in CSS, though.
If you really need it (for statistics?) You can send it from JavaScript to an AJAX endpoint in Laravel.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Im stuck and out of ideas. Does anyone know the easiest way of getting a image from a webpage and using it on your android app. Help will be appreciated.
I prefer Picasso. Once you have the library its really easy to pull images from anywhere online and include it into the app. Here's an easy to follow guide on setting it up to put an image from online into an imageview in your app.
Good luck
P.S.
This could be found within seconds of searching on Google.
Picasso allows for hassle-free image loading in your application—often in one line of code.
Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
Glide, An image loading and caching library for Android focused on smooth scrolling.
Glide.with(this).load("http://i.imgur.com/DvpvklR.png").into(imageView);
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is there a posibility that i can convert my php website to an mobile app or i should convert it into html then convert it to mobile app??
No, you cant run php client side. You should just make it a responsive website
There are multiple technologies. You will need to adjust your HTML/CSS to cater for how they work, but it is possible. I'd suggest looking at PhoneGap
PHP is server-side language and that gives HTML page output after execution at server-side so that is not possible.
But You can use native browser of that os e.g. for android webview.And can load your page into it.
Another option is PhoneGap but it slow down application than Native.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to send the doc and pdf file to the MySQL database using php from my android application.
I have no idea about it. What shoud i write in android and php file?
Please guide me if anyone have code?
Thanking you.
You have two options:
1) Store it in a field with a BLOB data type. I really do not advise this in any way and is only listed as the first option because it pertains directly to your question.
SO has good coverage of this already Storing files in SQL Server
2) Move the file to a folder and store the file path. This is the preferred option by mmmm everyone. Use move_uploaded_file and if you are unsure of how to setup an html form take a look at W3C PHP File Upload