I am facing a problem.
Is it possible to the save attachment file (.pdf and etc) from gmail to my application. After saved, the file will run directly from my application. After clicked save button in red circled, I wanted to run my application after attachment is saved in my download folder.
Note: I already able to download attachment into download folder.
Related
My application works to store data stored in an external excel file. When I uploaded it to the Play Store and downloaded it to my device, I tested the application and found a problem when I select an excel file for the application to store. The application does not respond and closes the application while I installed
The application was transferred to my phone via USB from the Android Studio program and I found it working properly
Please help my brothers.
enter image description here
On the server there will be folders of the same name as Folder in the App, I send all the images in the folder under the app to the folder in the server. For example in the App with Foler A There are 10 images on the server also have a Folder A when clicking the button, it automatically sends all images under the App to the server.
You should get all files, and add multiple files,
Refer retrofit: retrofit
On my personal computer, using Eclipse I have developed a java application to allow users to create their profile. In this application user logins which is just sql query based user name & password verification, After successful login user fills a profile form(createprofile.jsp), this form allows user to upload profile picture also, when user submits the form he gets redirected to another jsp(showprofile.jsp) which shows all saved details with uploaded picture.
Here I am saving all the form data in SQL table and uploading the profile picture in a folder D:\UploadedImages.
Tomcat is also running inside Eclipse as localhost, I have added a context entry in Tomcat server.xml, due to which my uploaded files in the above folder are available at url http://localhost:8080/ProjectName/images/imagename.jpg. This helps me to add profile picture in showprofile.jsp like
<img src="http://localhost:8080/ProjectName/images/imagename.jpg">
Now I want to upload this project the hosting server like HelioHost or godaddy. What I am not sure of that if I upload this project, what should be my permanent destination folder on hosting server to upload user profile pictures and how can I make them available at an URL like above.
Please help, thanks in advance.
You need the relative path of the tomcat. catalinaBase is what you actually need. See the below example:
File catalinaBase = new File( System.getProperty( "catalina.base" ) ).getAbsoluteFile();
File propertyFile = new File( catalinaBase, "ProjectName/images/imagename.jpg." );
This should be your path.
If you need something different than this please update you question.
My project has features to export and import csv file into my application
I have successfully completed export csv file into gmail. I can see the attached file in my gmail inbox.
-Now I want to import the file to my app . On click I need to launch my app and in my second activity I need to perform read from the csv file and add the contents to db.
I wish to ask 2 ways of achieving it.
Is it possible to long press the attachment csv file in my gmail inbox and show my app in the launch list. ( like in IOS ).
If its not possible, then i will download the csv file to my storage. Then from the File Manager folder, I want to use long press -> share via feature.
I want to show my app in the share via feature list.
Upon click , it will launch my app and in my second activity I need to add the implementation of reading the csv file contents row by row and adding to DB.
Let me know how to achieve either 1 or 2 options.
I tried settings action send and category default with mimetype text/csv.
But i cannot see my app in the launcher list.
There is your answer:
https://stackoverflow.com/a/5097734/3703819
use pathPattern: ".*\\.csv"
I have code which creates an image in an application server and that image has been referred in mail html. After sending mail, image will be deleted in application server. When I open the mail, the image is not getting displayed in the mail.
I think my code is deleting the image before it is copied to the mail server. I have checked by deleting the image manually.
First I opened the mail (this time image gets copied to mail server) and then deleted the image in application server. When I open the mail 2nd time, image gets display (because image is in mail server I guess).
Again I ran the code, this time before opening mail first time. I deleted the image in the application server and opened the mail. Image is not displaying (because image not getting copied to mail server).
I cannot add the image as an attachment, as per my requirement.
If you can't attach the image then you have to ensure than whatever external img src is being referred to (e.g. <img src="http://foo.com/bar.jpg"/>) remains accessible as long as people could reasonably view the message.
If the image is referred to in the mail as an external http resource, then it will be visible as long as it is available on the server.
You can, indeed, attach the image to avoid this problem, but those are the only to options I know.
You say that the image is "referred to" in your mail?
The img tag will contain a link (src) to you image. Your image must be at this location when the mail is viewed.
If you're deleting the image from this location then obviously it can't be displayed.