简体   繁体   中英

Can I use Uri.Builder from Android SDK in Google App Engine (Java Project)

I noticed the Uri.Builder in this answer And I wondered if I can use it in my GAE project in eclipse

I want to do something like

Uri.Builder b = Uri.parse("https://mydomain.com").buildUpon();
b.path("/abc/{5D/{B0blhahblah-blah}I1.jpg");
Uri u = b.build();

I cant find a way to add the Android SDK to my Google New Web Application Project

Is it possible and how?

Thanks in advance...I

Uri.Builder creates Android Uri objects, not Java URI objects. You would need to:

  1. Grab the source code to Uri from the open source repository.

  2. Refactor it into your own package, probably.

  3. Remove everything that refers to other Android classes.

  4. Make any other modifications you feel you need to consume the resulting Uri objects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM