Using AWS Android TransferUtility in Service

+1 vote

This includes Android SDK’s in S3. Can I use it  service for a particular set, and transfer listener and use it to send updates to application or create notifications too.

 I know that the TransferUtility lets one create a service for its own use.

Please help!

Apr 26, 2018 in Cloud Computing by code_ninja
• 6,290 points
918 views

3 answers to this question.

+1 vote
I am not certain what you is entirely possible, but you can start a service from another service.

When TransferUtility fails to work  its because Amazon S3 client gets garbage collected before TransferService gets it. Now an object is passed as a parcelable between components. But it is complicated to make S3 client parcelable.

Hence the SDK can actually take an alternate route by passing a weak reference of it stored in a static map. The key is that the caller must keep the S3 client alive before TransferService gets it.
answered Apr 26, 2018 by DragonLord999
• 8,450 points
0 votes

Yes it's possible to start a service from another service.

TransferUtility may fail to work if its Amazon S3 client gets garbage collected before TransferService gets it. Normally an object is passed as a parcelable in an intent between components. However it's quite complicated to make S3 client parcelable. So the SDK takes an alternate route by passing a weak reference of it stored in a static map. The key is that the caller must keeps the S3 client alive before TransferService gets it.

See https://github.com/aws/aws-sdk-android/issues/86 for more information.

answered Aug 21, 2018 by Priyaj
• 58,090 points
0 votes
I found this amazon blog that helps us understand more about the Transfer Utility in service.
https://docs.aws.amazon.com/aws-mobile/latest/developerguide/how-to-transfer-files-with-transfer-utility.html
Hope this helps
answered Sep 4, 2018 by eatcodesleeprepeat
• 4,710 points

Related Questions In Cloud Computing

0 votes
1 answer

What are the different ways to send a request to Simple Storage Service in AWS?

There  are two ways: Using REST API Using AWS ...READ MORE

answered Jul 23, 2018 in Cloud Computing by brat_1
• 7,200 points
585 views
0 votes
1 answer

How do you implement service discovery in AWS?

For an Amazon EC2 hosted service a ...READ MORE

answered Jul 27, 2018 in Cloud Computing by code_ninja
• 6,290 points
677 views
+3 votes
3 answers

Is it possible to delete a API in AWS API Gateway?

Yes, it is possible to delete an ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,200 points
4,203 views
+4 votes
3 answers

Deploy RESTful API with .net framework 4.5 in AWS Lambda

This is an old question (somewhat), but ...READ MORE

answered Jan 17, 2019 in Cloud Computing by Kirk Davis
2,853 views
+3 votes
6 answers

Are the S3 buckets in AWS, Region Specific?

Yes S3 buckets are region specific. When you ...READ MORE

answered Oct 16, 2018 in Cloud Computing by Rijo
28,061 views
+4 votes
7 answers

Creating Amazon Web Service (AWS) account (trial version) without giving up credit card details

Unfortunately, you can’t create an account on ...READ MORE

answered Mar 30, 2018 in Cloud Computing by brat_1
• 7,200 points
18,088 views
+4 votes
2 answers

AWS Save & Share while using AWS Calculator

After doing your estimate, click the "Estimate ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
1,404 views
+4 votes
3 answers

AWS S3 pricing - data transfer in/out

All traffic FROM mobile phones to S3 ...READ MORE

answered Oct 16, 2018 in Cloud Computing by anish
1,134 views
+1 vote
2 answers

What if I delete default VPC in AWS?What are the consequences?

If you wish to recreate the default ...READ MORE

answered Apr 20, 2018 in Cloud Computing by DragonLord999
• 8,450 points
5,644 views
0 votes
3 answers

Maximizing value of max_connections in AWS RDS

AWS RDS Max Connections Limit As Per ...READ MORE

answered Jul 24, 2020 in Cloud Computing by Sagar
4,112 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP