Project

General

Profile

Bug #471

The android beem not support socket5

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
-
Start date:
12/26/2012
Due date:
% Done:

0%

Estimated time:
Affected version:
hg
Locale:
Close

Description

I want to know why android beem can't used "META-INF/smack.providers" file, this problem lead beem can't support file transfer.

#1

Updated by Frédéric Barthéléry over 11 years ago

  • Status changed from New to Rejected
  • Assignee set to Frédéric Barthéléry
  • Priority changed from High to Normal
  • Affected version changed from 0.1.6 to hg

The asmack library was designed to port smack on the Android Platform. During
the process to create an Android application package (APK) the file
META-INF/smack.providers and other files generally found in a jar library are
discarded because of the way Android works. So this method to load smack
providers is not supported in Android.

As a workaround you can use the ProviderManager class to load smack providers.
This is how it is done in this file
source:src/com/beem/project/beem/BeemService.java (see method configure())

Also available in: Atom PDF