Re: Re: [android-developers] about HTTP Auth in DownloadManager

2012-06-15 Thread nicefuture
You probably need to add the proper (basic) authentication header using the
addRequestHeader() for this to work:

does it only affect the next download session, will it affect all the download 
session?

btw, is basic scheme api available in android?




nicefuture

From: Nikolay Elenkov
Date: 2012-06-15 15:30
To: android-developers
Subject: Re: [android-developers] about HTTP Auth in DownloadManager
On Fri, Jun 15, 2012 at 4:17 PM, nicefuture nicefut...@126.com wrote:


 Then, I tried to implement the http authentication in my application, BUT
 I failed, I found the behavior is very strange, below is the step:



 1.牋牋牋 I already know the website抯 userid and password, I tested using
 the path contain userinfo, as below:

 http://tma:nokia...@bewww05.wirelessfuture.com/Onlinetest/download/To_Content/descriptors/audio/dd_audio_mp4.dd


 2.牋牋牋 In my guess, the Download Manager should work well, and status
 200 should be reported. BUT, still status 401 is reported. And from the
 tcpdump, it is very strange, it obviously successfully be authenticated and
 retrieve the content, but then the client start a new http get, which cause
 to the status 401 occurred.牋 I wonder why the extra http get procedure
 happened??


You probably need to add the proper (basic) authentication header using the
addRequestHeader() for this to work:

http://developer.android.com/reference/android/app/DownloadManager.Request.html#addRequestHeader(java.lang.String,
java.lang.String)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] OMA MMS PICS

2012-06-04 Thread nicefuture
Hi, Guys:
 
Sorry to wide-spread, Anyone know Does Android ICS pass OMA MMS spec? and what 
is the passed OMA MMS version? If not fully compatible, then do we have the 
PICS which Android’s MMs follow with?
 
Thx a lot




nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

MMS.xlsx
Description: Binary data


[android-developers] Google play issue: How to check the detail incompatible field when using google play

2012-05-27 Thread nicefuture
Hi, Android Developer  Google Play developer:

It is really a so difficult for google play searching issue.

Normally, when we search some app in our handset, it will not display some app, 
this is because the device is incompatible with the app. BUT, google play web 
site only will tell us that your device is incompatible with this app, It will 
not tell us the detail incompatible fields!! Then, it is so difficult for us to 
check what exactly caused this app not be searched!!!  BUT some customer will 
think this as a issue, and we need enough info to explain it.

nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] 回复: about google play search result issue

2012-05-27 Thread nicefuture
Hi, All:
 
I am Android OEM, i found one issue about google play in our handset, that is, 
our search result is less than other commercial handset, for example:
 
When search “whatsapp” in google play, other commercial handset will display 
the result as “whatsapp messenger, whatsapp wallpaper, ………..”, but our handset 
only will list”whatsapp wallpaper, ………”, that is, whatsapp messenger will never 
be listed.
 
I wonder some handset’s local information cause such issue, BUT I did not know 
which info/parameters will be passed to google store for search except for the 
query string,  Anyone can help me?


Later, I got the whatsapp messenger app from web site by PC, and found its 
manifest's all feature is supported by our handset, but why it still is 
filtered?? And in google play's web site ,it show my handset is not compatible 
with whatsapp messenger, but ,it did not show the detail uncompatible info. How 
to check??
  
Thx a lot



nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] incompatible issue in google play

2012-05-27 Thread nicefuture
Hi, All:

i am from Handset OEM
 
“Whatsapp messenger” is incompatible with our handset, BUT the website never 
give the more detail information about exactly which field/capacity is 
incompatible. After check the whatsapp Messenger’s manifest.xml, I also did not 
found any ideal.

And our customer think this is a issue, why other commercial handset can 
searched this app?
 
Actually, for google play engineer, they can easily to check the server log to 
find out the reason.
 
So, anyone of you can help forward this to the google play engineer for help ? 
If so, then they can help the below issue:

Model name: mb525
Accout: qc.yingying.t...@gmail.com
 
Is incompatible with “whatsapp messenger” app
 
Thx a lot 



nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Questions for invoking jar in client.

2011-12-07 Thread Nicefuture
I meet several problems about invoking 3-party jar in our apk, or jar. As below:

1.  From google's android building introduction document, it said that 
local_java_library dependency only need be set in mk file in building jar 
library . When building apk, this is not needed.
But, why actually I must set this dependency also in my mk file when using 
a 3-party jar to building my apk? How to do to remove this dependency, but also 
can build successfully, just like the framework.jar(all apk is depend on it, 
but no one need set the dependency explicitly)?


2. What is the exact meaning and usage for local_static_java_library variable? 
Seems it is not mentioned in android's formal document. But in mms and browser 
apk, they set it in the mk file, such as 
local_static_java_library:=common-android

3. For 3-party jar, if we did not put them in bootclasspath in init.rc, then in 
our apk's android manifest.XML, we must add  use-library tag to reference it, 
then in runtime, system will help load the jar on demand.

  Then how about for jar? Jar have no androidmanifest.XML file, if my jar 
project depend on another 3-party jar and it is not added into bootclasspath , 
then how system ensure the 3-party jar is load on demand when my jar is 
executed?

Thx a lot
Send from my IPad

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to Support Res/Skin Update

2011-11-07 Thread nicefuture
Hi, All:

I want to Support Res/Skin Update in my android App by OTA, and i am not very 
clear about Android's Res Manage/Access mechanism, so is hard to implement it. 
then i have below questions:

1.  in Run-Time, How Android App access its Res? Will Android unZip the APK 
file into some Directory which including the Res, and then access the Res?
2. For Res Access, Android use the ResID,  and it is an Integer value, Then How 
does Android differentiate the ResID is in own package, Or in another Package? 
For example:


SetText(,,R.string.)
SetText(,,android.R.string.xxx)


3. I found that some developer use Res.apk to support App's Res Update, then 
how about its mechanism, how to do it?  Package all the new Res into the 
Res.apk, and then install it, Android will auto override the old res for my 
app???


Thx a lot



nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Does android originally support Oma download?

2011-11-02 Thread nicefuture
Hi, all
 
When I use originally android browser to download Oma dd file, seems it did not 
support, and moto, htc' phone' browser can recognize the Oma dd file, and 
process based on oma download rule.
 
My question is does android originally support Oma download? Or must oem 
develop it by self?
 




nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to register the JAR into Android system and make it work?

2011-11-02 Thread Nicefuture
I meet a problem for JAR in android.
 
1.   I create a new folder and add some java file and .mk file to compile 
the JAR file, it can successfully compiled and output into /system/frameworks.
2.   Then, in my Client apk, I just import the package name, and found it 
compiled failed, cannot found the package, then, I add LOCAL_JAVA_LIBRARIES := 
jar name in my Client apk’s mk file. Now it can compiled successfully.
3.   BUT, in runtime, VM still occurred exception that can not found the 
Class, and the JAR file already in system/framework/
4.   Then, I create a xml file, contain below info to register jar, and add 
it into system/etc/permissions.  BUT, in run time, still VM said class not 
found.
 
permissions
library name=
file=/system/framework/xxx.jar /
/permissions
 
 
What is the matter??

Since I want to add the jar as plug in, so I did not want to add it into 
bootclasspath in initial.rc
Thx a lot.
 
Send from my IPad

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Failed to share two activity in the same process(TAB Activity invoke the activity in another process and failed, so need make sure the activity in the same with the tabactivity)

2011-11-02 Thread nicefuture
Hi, All:

I meet a problem that failed to share two activity in the same process. the 
story as below:

1. My APK include a tab activity which contain two TAB page, and the TAB Page 
just embedded another activity using intent.
2. TAB Page 1 invoke the Activity 1 which is also inside my APK. TAB page 2 
invoke the Activity 2 which is in another APK.
3. in running time, the exception occurred since the Activity embedded into TAB 
Activity must be in same process.

Then i resolve this issue as below:

1. My APK(name as APK1) include MyTabActivity and Activity 1.  another 
APK(name it as APK2) include the Activity2.
2. APK2 will running after Power on automatically. and APK1 only will run when 
user launch it.
3. Activity 2 in APK only is invoked from MyTabActivity, and is not used by any 
others.
4. My Requirement is:

   APK running in Process 1, then when invoke Activity 2, Activity 2 running 
into Process 1, Not in APK2's process.

5. Then i do as below:

  a.  Use same certificate in APK 1 and APK2's mk file, as below

LOCAL_CERTIFICATE := platform 

  b.  set same shareuserid in APK1  APK2's manifest xml, as such:

   APK1:   application android:icon=@drawable/icon 
android:label=@string/app_name android:sharedUserId=samename
  
   APK2:   application android:name=app
android:label=@string/app_label
android:icon=@drawable/ic_launcher_app
android:taskAffinity=android.task.app
android:allowTaskReparenting=true
android:sharedUserId=samename

  c. Set same Process name for APK1's all activity and only the activity2 of 
APK2

   APK1:  activity android:name=.MyTabActivity
  android:label=@string/app_name
  android:process=com.android.sameprocess
intent-filter
action android:name=android.intent.action.MAIN / 
/intent-filter
/activity

activity android:name=.Activity1 
android:process=com.android.sameprocess
/activity

   APK2:  
 activity android:name=.Activity2
android:label=@string/xxx
android:process=com.android.sameprocess
intent-filter
action android:name=android.intent.action.MAIN /
action android:name=android.intent.action.VIEW /
/intent-filter
/activity


BUT Failed.The Exceptions still occurred. What is the matter, how to 
resolve it??

Any one can help me, it is urgent. thx a lot.




nicefuture

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en