@rekire I know, it's because I have changed the code a lot and creating another question was useful for me to get an answer for two different code versions. Anyway, I still did not fix the problem, now I'm Reading the documentation again to see if I spot the error somewhere. If someone has alredy been through this could help me, would be much appreciated
Read Quick Start on Google Android site.
When you are done with all the authentication process, go for How to upload file to Google Drive.
Edit
Reference Links
https://code.google.com/p/google-drive-sdk-samples/
Android Open and Save files to/from Google Drive SDK
http://mavenrepo.google-a...
@AshuKumar Hi. thanks, I have succeeded in saving file from an intent service. but soon as my application goes in background file is not getting uploaded. And when I connect, all the files get uploaded.
@AshuKumar yes, did the same thing. Used IntentService to upload file. I am uploading a file on google drive every 1 min. so when my app is in foreground, it works fine. but when my app goes in background uploading files stops. this is the log that appears GMPM: Not logging non-positive engagement time: 0
when i open my app after say 3 mins all the 3 file get uploaded.
@AshuKumar yes. all the logs are fired properly after 1minute of interval. only the files are not getting uploaded. Once I open the app, all the files get uploaded.
@AshuKumar This is an example for uploading file on a server. I want to upload a file on Google Drive. that too in bacckground, where my app is not is foregorund
:327953941. call a (local) Service 2. from within the Service, call an ASyncTask to initiate a new thread 3. from within the new thread, call the Notifications and file uploading code
Adding external Jar is not smart in case you want to change the project location in filesystem.
The best way is to add the jar to build path so your project will compile if exported:
Create a folder called lib in your project folder.
copy to this folder all the jar files you need.
Refresh your...
@MukeshRana one more question , i have tracking code int listview and button to match code - from server i get code to match existing tracking code question is when i call startActvityforResult from first index of list and it resturns matched data of second index then adapter method that is called from onActivityResult will call first index ?
@ColdFire Okay, it's not a compulsion ideally but most of the guys use this. Anyhow my concern is different, do you paas context to the interactor ever?
@AshuKumar Can you explain the process one by one, I mean to say the flow of matching code and where do you need startActivityForResult() ?
listview has tracking code listed and each item has verifyNFC CODE button , clicking on verify NFC CODE will open new Activity , new activity will get NFC code and send it to Server -->will return tracking code this Trcking code will go back to adapter and check weather tracking code is matched with item tracking code which is clicked
@AshuKumar you have the position of clicked list item, you can get the code from corresponding list position. Also you have tracking code coming in the onActivityResult()
I have created a custom Dojo 1.9 widget that is intended to be a one-size-fits-all combobox where I can insert any dojo widget with a drop-down declaratively, so in my jsp page.
This is an example of a dojo Combobox that I'm hoping to replace with this Widget:
<div data-dojo-type="dojo/store/...
@AshuKumar The problem is that we essentially have a back and forth between Dojo and Struts2. First the Struts2 element is generated, then Dojo has to replace some things in there, then Struts2 has to do some Servlet replacing
list of 3, 5, and some 26 ... all with headers so plus 3.. A particular group contain items with header and list... so the first list contain 4 itemCount, second 6 itemcount