[android-developers] Growth of Unified Network Management Market - Deployment Model, Solutions, Service and Industry Verticals

2017-08-31 Thread Albert Morris


*FREE | Request Sample Copy is Available at 
http://www.theinsightpartners.com/sample/TIPTE10585 
 *

Unified Network Management is the administration of wired as well as 
wireless infrastructure laid out inside any organization through a common 
single console or interface. A wide range of network functions are managed 
through a single console that include provisioning, planning, monitoring, 
configuring, handling expectations, logging and reporting. Apart from 
these, the console needs to have separate features for wired and wireless 
networks that serve criticality over the network. Connection reliability, 
spectrum management and monitoring, added security functions. Growing 
trends of using personalized mobile devices such as smartphones and tablets 
and remotely accessing organization data through a secured network is 
resulting in the increasing demands for such network management 
technologies. The rise of virtualization technologies has opened a 
potential avenue of application for Unified Network Management market and 
will bring new opportunities in the market. The global unified network 
management market is expected to witness rapid growth during the forecast 
period.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d70bb93c-b525-4c78-a3fa-6cee337498e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] NFC intent on Android for Work

2016-01-18 Thread Ben Morris
 

I've created a very basic app that has an intent for external NDEF type as 
shown below.







The activity the above is nested in is the main activity for the app and is 
just a vanilla blank activity. 

All works fine on the standard user side however if I side load the app on 
to the Work Profile the intent never reaches the app and the "New tag 
collected" screen is shown. 

The Android documentation states that the Profile administrator can control 
which intents are sent across from the user to the work profile however I 
can find no such settings within the BlackBerry Enterprise Server 12 (our 
MDM) console or the Android for Work console.


http://developer.android.com/training/enterprise/app-compatibility.html#prevent_failed_intents

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a96348a5-079e-40f8-b9ce-cb22933078ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Sensors in Android

2013-02-13 Thread Morris
Hi, One is from ST's Sensor Fusion. The other one is from Google Sensor 
Fusion.
 
Sincerely,
Morris Chen
a於 2013年2月7日星期四UTC+8下午8時13分01秒寫道:

 Hi, I am using Samsung Galaxy S3. When I retrieved the available sensors: 
 I got a result like below:

 LSM330DLC 3-axis Accelerometer  TYPE_ACCELEROMETER
  AK8975C 3-axis Magnetic field sensor  TYPE_MAGNETIC_FIELD 

  iNemoEngine Orientation sensor   TYPE_ORIENTATION   

  CM36651 Light sensorTYPE_LIGHT  
  CM36651 Proximity sensorTYPE_PROXIMITY  
  LSM330DLC Gyroscope sensorTYPE_GYROSCOPE 
  iNemoEngine Gravity sensor TYPE_GRAVITY 
   
  iNemoEngine Linear Acceleration sensor-S/W   TYPE_LINEAR_ACCELERATION   
  iNemoEngine Rotation_Vector sensor   TYPE_ROTATION_VECTOR   
   
  LPS331AP Pressure SensorTYPE_PRESSURE   
   
  Rotation Vector Sensor   
 TYPE_ROTATION_VECTOR
  Gravity Sensor - software sensor  TYPE_GRAVITY   

  Linear Acceleration Sensor   TYPE_LINEAR_ACCELERATION   
  Orientation Sensor   TYPE_ORIENTATION   
  Corrected Gyroscope Sensor   TYPE_GYROSCOPE   


 Why are there 2 sensors for each orientation, gyro, linear acceleration, 
 rotation-vector and gravity? Could anyone explain me please?


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] What method gets called when a fatal exception occurs

2012-07-29 Thread Jim Morris
This seems to be the simplest of questions, but I have not been able
to find a suitable answer on Google or this forum.

I am surprised to find that Android apparently does not call
onDestroy, onStop, or onPause after a fatal exception occurs (e. g. a
null pointer fatal exception). I have put the following code into two
activities that are around when a fatal exception occurs. None of this
code gets executed in either activity when a fatal exception occurs in
one of the activities.

public void onStop() {  Log.i(JIM,CALL ONSTOP); super.onStop();  }

public void onDestroy() { Log.i(JIM,CALL ONDESTROY);
super.onDestroy();  }

public void onPause() { Log.i(JIM,CALL ONPAUSE);
super.onPause();  }

So this begs the question: What method is called that will allow me
to, for example, close the database so the database does not get
destroyed when a fatal exception occurs?

-- 
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] Issue 32545: Android dialog asks for pin code to pair during connect to socket, but device was already paired

2012-06-07 Thread Jim Morris
I have submitted an Android bug report: Issue 32545:Android dialog
asks for pin code to pair during connect to socket, but device was
already paired

This is a VERY serious problem for my app that is ready to go to
market. I have no workaround. Apparently nobody at Google has even
looked at my bug report in over a week.

I am dead in the water until I get a workaround or a bug fix (I would
rather have a workaround).

Google is mega company. They could hire a thousand contractors or
employees to work on bug fixes.

Why is this happening? I need a response. I need a workaround.

Does anybody at google read this forum.

Google: You have my email address. Please send me a workaround ASAP.
Thank you.

-- 
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] Why can't someone at Google answer this question????????????????????????????????????????????????????????????

2012-06-01 Thread Jim Morris
There is nobody to talk to at Google

I thought Google Android people are supposed to be watching this
forum!

Somebody in Poland responded to ask for code, I sent it and then 
nothing1

How are we supposed to develop software if we can't get some
support??

I have developed an Android app that communicates with a Blue Bamboo
Bluetooth printer. I have no trouble communicating with the printer
on
a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3).
When my app runs on the P-3113, I get the following problem.
When the P-3113 is trying to pair with the Blue Bamboo printers, it
asks me to type in the pin number for pairing, but the device was
already paired before the app started up!!! Why does it ask me
for
a pin number again, when the devices are already paired?
When I enter the pin number again, the device will still not connect.
The problem occurs on the device running version 4.0.3 regardless of
whether my software is targeted for version 4.0.3 or version 3.2.
I can supply the manufacturer's demo software source code, which also
exhibits the same problem.
I believe this is a bug introduced into Android 4.0.3. The software
works fine on Android 3.2 on a Galaxy P-6210.
I have traced the problem to the statement
mmSocket.connect();
When this statement is executed, a dialog box pops up on the Galaxy
P-3113. This dialog box asks for the user to input a pin code for
pairing, BUT THE DEVICE IS ALREADY PAIRED. I type in the correct code
and I get an invalid exchange exception. The code is correct!! The
device is already paired!!
How could this not be a bug? Hey Google,.
how about some help here.

-- 
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] Re: Why can't someone at Google answer this question????????????????????????????????????????????????????????????

2012-06-01 Thread Jim Morris
Okay, I will do that. I put this posting on this forum and the Samsung
forum several weeks ago, and nobody (except the one guy on the Samsung
forum, but he was no help at all) answered, so I decided to try to get
somebody's attention by screaming.

I am usually calm, but this has got me super frustrated.

Thanks for your help. I will be calm now.

On May 31, 11:29 pm, Kumar Bibek coomar@gmail.com wrote:
 There will always be some questions, which you would yourself have to find
 answers, and may be someone would answer eventually, but don't know when.

 Coming back to your problem, if you think it's a bug, then file a bug for
 it. There are greater chances that your bug would be noticed by people from
 google on their bug tracker.

 Your question screams. And for a forum, I don't think that's good. At
 times, it really might frustrate you, but, screaming is not a solution I
 guess.

 Anyway, I have no idea about your problem.

 2 steps:
 1. Try to search in the bug tracker if this bug is already logged.
 2. If not, then please log a bug and wait for someone's response patiently
 :)

 *Thanks and Regards,
 Kumar Bibek*
 *http://techdroid.kbeanie.comhttp://www.kbeanie.com*







 On Fri, Jun 1, 2012 at 11:53 AM, Jim Morris jim.mor...@lecere.com wrote:
  There is nobody to talk to at Google

  I thought Google Android people are supposed to be watching this
  forum!

  Somebody in Poland responded to ask for code, I sent it and then 
  nothing1

  How are we supposed to develop software if we can't get some
  support??

  I have developed an Android app that communicates with a Blue Bamboo
  Bluetooth printer. I have no trouble communicating with the printer
  on
  a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3).
  When my app runs on the P-3113, I get the following problem.
  When the P-3113 is trying to pair with the Blue Bamboo printers, it
  asks me to type in the pin number for pairing, but the device was
  already paired before the app started up!!! Why does it ask me
  for
  a pin number again, when the devices are already paired?
  When I enter the pin number again, the device will still not connect.
  The problem occurs on the device running version 4.0.3 regardless of
  whether my software is targeted for version 4.0.3 or version 3.2.
  I can supply the manufacturer's demo software source code, which also
  exhibits the same problem.
  I believe this is a bug introduced into Android 4.0.3. The software
  works fine on Android 3.2 on a Galaxy P-6210.
  I have traced the problem to the statement
  mmSocket.connect();
  When this statement is executed, a dialog box pops up on the Galaxy
  P-3113. This dialog box asks for the user to input a pin code for
  pairing, BUT THE DEVICE IS ALREADY PAIRED. I type in the correct code
  and I get an invalid exchange exception. The code is correct!! The
  device is already paired!!
  How could this not be a bug? Hey Google,.
  how about some help here.

  --
  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] pairing problem, I believe this to be a bug in Android 4.0.3

2012-05-14 Thread Jim Morris
I have developed an Android app that communicates with a Blue Bamboo
Bluetooth printer. I have no trouble communicating with the printer on
a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3).
When my app runs on the P-3113, I get the following problem.

When the P-3113 is trying to pair with the Blue Bamboo printers, it
asks me to type in the pin number for pairing, but the device was
already paired before the app started up!!! Why does it ask me for
a pin number again, when the devices are already paired up?

When I enter the pin number again, the device will still not connect.

The problem occurs on the device running version 4.0.3 regardless of
whether my software is targeted for version 4.0.3 or version 3.2.

I can supply the manufacturer's demo software source code, which also
exhibits the same problem.

I believe this is a bug introduced into Android 4.0.3. The software
works fine on Android 3.2 on a Galaxy P-6210.

-- 
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] Errors running builder 'Java Builder'

2012-02-17 Thread Jim Morris
Every time I open Eclipse, I get a message about a null pointer
exception. Everything seems to work okay, but I fear someday it might
cause me problems. I have seen postings about this, but I have never
seen a resolution. I am running Eclipse 3.7.1. I have not done
anything non-standard.


==


!ENTRY org.eclipse.core.resources 4 75 2012-02-17 07:18:29.140
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.jdt.core 4 75 2012-02-17 07:18:29.140
!MESSAGE Errors running builder 'Java Builder' on project 'firms'.
!STACK 0
java.lang.NullPointerException
at java.lang.String.init(Unknown Source)
at
org.eclipse.jdt.internal.compiler.problem.ProblemReporter.conditionalArgumentsIncompatibleTypes(ProblemReporter.java:
1335)
at
org.eclipse.jdt.internal.compiler.ast.ConditionalExpression.resolveType(ConditionalExpression.java:
556)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1799)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.CombinedBinaryExpression.resolveType(CombinedBinaryExpression.java:
337)
at
org.eclipse.jdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:
225)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:
463)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:
252)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:
422)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
1148)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
1258)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:
539)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:
763)
at
org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:
137)
at java.lang.Thread.run(Unknown Source)

-- 
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] Strange problem with TableLayout and TextView

2012-01-23 Thread Jim Morris
When I run the code below with

Button t = DynamicLayout.CreateButton(this, id++, 0x  /* text
color */, 20  /*  text size */, Button, Gravity.CENTER,
res.getDrawable(R.drawable.spot_button), true);

and

// TextView t = DynamicLayout.CreateTextView(this, id++, 20 /*  text
size */, 0x /* text color */, 200 /* width */, 100 /* height
*/, TextView, false);

commented out, I get 12 buttons displayed with text Button. No
problem.

When I comment out the Button code and un-comment the TextView code, I
get nothing displayed.

I know there are some things missing here, but why does this work with
buttons and not with a TextView? The text color I am using is
0x and the background is dark, so I don't think the color is
the problem.

Anybody got any ideas?

===


   ...
  TableLayout table = DynamicLayout.CreateTableLayout(this, id++,
Gravity.CENTER|Gravity.TOP, fill, 150, false, false);
  top.addView(table);
  createMenus(table);
  return top;
   }

   private void createMenus(TableLayout table) {
final Resources res = getResources();
final int fill = LinearLayout.LayoutParams.FILL_PARENT;
for (int menuIndex = 0; menuIndex  D.menus.getSize(); menuIndex+
+) {
   TableRow tr = DynamicLayout.CreateTableRow(this, id++,
Gravity.LEFT, fill, 50);
   for (int i = 0; i  4; i++) {
//Button t = DynamicLayout.CreateButton(this, id++,
0x, 20, Button, Gravity.CENTER,
res.getDrawable(R.drawable.spot_button), true);
TextView t = DynamicLayout.CreateTextView(this, id++, 20,
0x, 100, 50, TextView, false);
tr.addView(t);
}
table.addView(tr);
}
   }

-- 
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] Cannot get text to appear when created dynamically

2012-01-16 Thread Jim Morris
I am trying to create an activity UI by setting buttons and text
dynamically. Just to get started I have dynamically created a
ScrollView that contains a LinearLayout which contains a TextView and
two Buttons. Everything is created dynamically. There is no layout
file for this activity. I can get the two buttons to appear on the
android emulator, but the text will not appear. I can see the
Scrollview in the debugger and it has three elements in side it, a
TextView and two Buttons. Everything looks okay in the debugger. Can
somebody give me an idea on how to get the text to appear?

Here is the code that creates the dynamic TextView:

public static TextView CreateTextView(Context context, int id, float
size, int color, int gravity, int width, int height, String text) {
TextView t = new TextView(context);
t.setId(id);
t.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);
t.setTextColor(color);
t.setGravity(gravity);
t.setLayoutParams(new LinearLayout.LayoutParams(width,
height));
t.setText(text);
return t;
}

Here is the onCreate code that appears inside of onCreate for the
activity. This onCreate code is called to create the ScrollView,
LinearLayout, the TextView and the two Buttons dynamically. Like I
said above, the buttons appear, but the text does not.

super.onCreate(savedInstanceState);
final Resources res = getResources();
ScrollView s = DynamicLayout.CreateScrollView(this, 1, true,
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);
LinearLayout q = DynamicLayout.CreateLinearLayout(this, 1,
LinearLayout.VERTICAL, 0x11 /* CENTER=0x11, LEFT=3, RIGHT=5 */,
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);
s.addView(q);
TextView t = DynamicLayout.CreateTextView(this,
  2,
  30.0f,
  0xff,
  0x11 /* 
CENTER=0x11, LEFT=3, RIGHT=5 */,
  
LinearLayout.LayoutParams.WRAP_CONTENT,
  
LinearLayout.LayoutParams.WRAP_CONTENT,
  
res.getString(R.string.EstablishmentName));
q.addView(t);
Button b = DynamicLayout.CreateButton(this, 3, 0x11 /* CENTER=0x11,
LEFT=3, RIGHT=5 */, 291, 43,
res.getDrawable(R.drawable.spot_ticket_red));
q.addView(b);
b = DynamicLayout.CreateButton(this, 4, 0x11 /* CENTER=0x11, LEFT=3,
RIGHT=5 */, 291, 43, res.getDrawable(R.drawable.spot_ticket_green));
q.addView(b);
setContentView(s);

-- 
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] Re: Cannot get text to appear when created dynamically

2012-01-16 Thread Jim Morris
I found out my problem. I was setting the color to what I thought was
white by using 0xff. Wrong. The first octet of those four octets
is a value from 0 to 0xff that indicates transparency of the color.
Since I used 0xff, I was setting a white color with 0
transparency, which is, of course, invisible. Once I changed the color
to 0x, the text showed up fine.

Thanks for your reply.

On Jan 16, 6:18 pm, TreKing treking...@gmail.com wrote:
 On Sun, Jan 15, 2012 at 11:51 PM, Jim Morris jim.mor...@lecere.com wrote:
  I can get the two buttons to appear on the android emulator, but the text
  will not appear.

 Remove all code that updates the TextView except the setting of the Text.
 See if that shows up. If so, start adding back the other properties one by
 one until you find the one that breaks it.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Google TV Developers

2010-08-30 Thread Chris Morris
Hey guys,

I'm sure some of you have heard about Google TV - I myself am excited
about the possibilities for Android apps in the living room. Being a
developer myself, I tried to find a community centered around Google
TV development and couldn't find one, so I started one. The site just
launched, but I think when the SDK is released, Android market is
opened, and the market for smart TVs grow, the developer community
will grow with it. Please join us at http://www.gtvconnection.com for
Google TV specific development.

- Chris

-- 
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 AJAX requests work on Android 2.0/2.1 vs. Android 2.2

2010-07-26 Thread Dave Morris
I'm testing out a web page on the Android 2.0 and 2.2 emulators, and
some of the jQuery.ajax() requests that the app makes have slightly
different behaviors regarding HTTP Authentication Headers.

The server I'm making requests to requires basic authentication, and
the ajax requests in 2.2 send the proper auth header. In 2.0, I am
debugging with Fiddler, and it seems that the requests do not include
the auth header, and the server rejects the request with a 401.2
error. I don't think it matters, but the server is running IIS 7.

One interesting thing I noticed while debugging the web requests is
that Android 2.2 makes two requests for each resource, whether or not
it's an XHR. One does not contain the Auth header, and the second one
does. In 2.0, it seems to make 2 requests for everything but XHR's:


Here is the 2.2 header for the first XHR:

GET http://192.168.1.111/sonar/mobileweb/sonar/views/week/init.ejs
HTTP/1.1
Host: 192.168.1.111
Accept-Encoding: gzip
Referer: http://192.168.1.111/sonar/mobileweb/sonar/sonar.html
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; en-us; sdk Build/
FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/
533.1
Accept: text/plain, */*
X-Requested-With: XMLHttpRequest
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7


The 2.2 header for the second XHR:

GET http://192.168.1.111/sonar/mobileweb/sonar/views/week/init.ejs
HTTP/1.1
Host: 192.168.1.111
Accept-Encoding: gzip
Referer: http://192.168.1.111/sonar/mobileweb/sonar/sonar.html
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; en-us; sdk Build/
FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/
533.1
Authorization: Basic cGFyaXZlZGFcZGF2aWQubW9ycmlzOjIzbkx2ZWxsbGw=
Accept: text/plain, */*
X-Requested-With: XMLHttpRequest
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7


And the 2.0 header:

GET http://192.168.1.111/app/views/week/init.ejs HTTP/1.1
Host: 192.168.1.111
Accept-Encoding: gzip
Referer: http://192.168.1.111/app/app.html
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Linux; U; Android 2.0; en-us; sdk Build/
ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile
Safari/530.17
Accept: text/plain, */*
X-Requested-With: XMLHttpRequest
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7


Notice that 2.0 (and 2.1) only makes the first request, recieves the
401 challenge, and then does not make the second request with the
proper auth header.

Has anyone experienced this behavior before? It is basically causing
my app to not work at all in version 2.0. Version 2.1 seems to act the
same as 2.0.

Let me know if you have any ideas, thanks for your help,

Dave

-- 
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] Launcher homescreen

2010-03-25 Thread Morris
Hi All,

Now I have a 1440x864 screen. I want to let 3 homescreens dispaly
concurrently on one screen as I described in landscape mode.

I try to modify workspace_screen.xml as below modification
   android:layout_width=”fill_parent” to
android:layout_width=”480dip”
android:layout_height=”fill_parent” to
android:layout_height=”864dip”

Because I find launcher.xml to create 3 cell(homescreen) and each cell
is refer to workspace_screen.xml to set its configuration.

Eventually, it doesn't display what I want.

Could someone give me some ideas?

Thanks a lot.

Sincerely,
Morris Chen

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] About android.permission.INJECT_EVENTS

2010-03-16 Thread Morris
Hi All,

I refer to 
http://developer.android.com/intl/zh-TW/reference/android/Manifest.permission.html
and find android.permission.INJECT_EVENTS  as below description.

--
Allows an application to inject user events (keys, touch, trackball)
into the event stream and deliver them to ANY window. Without this
permission, you can only deliver events to windows in your own
process. Very few applications should need to use this permission.
--

So, I use uses-permission
android:name=android.permission.INJECT_EVENT/ or assign-
permission android:name=android.permission.INJECT_EVENT/ and add
them into AndroidManifest.xml of my activity to disable key event.

But, when my activity is running, I still could use key, such as home
key..

Would you tell me if I use the wrong method?
or
This permission is not allowed for activity.

Thanks a lot.

Sincerely,
Morris

-- 
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] [android 2.0]how to use bootanimaiton.zip

2010-02-10 Thread Morris
Hi All,

I unzip the bootanimation.zip and get bootanimation folder.
I modify the related files in the bootanimtaion folder.
And then, I use winzip or winrar to compress bootanimation as
bootanimation.zip. But this bootanimation.zip couldn't be used by
android 2.0.
Thus, does anyone know what software is suitable for me to compress
the bootanimation folder?
Thanks a lot.

Sincerely yours,
Morris

-- 
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] Launch Browser using intent.ACTION_VIEW

2009-10-15 Thread Morris

Hi All:

I complete a activity to launch browser, but it always open a new
window if it didn't open last time. Thus, I always see the switch
action between the window of browser.

Whether is there another method to let it always open the same window?
Because I don't want to see the switch action between the windows of
browser.

Thanks a lot.

Sincerely yours,
Morris
--~--~-~--~~~---~--~~
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 disable android keybaord by default

2009-07-29 Thread Morris

Hi All:
The default settings of Android Keyboard is enabled(settings -
localtext - android keyboard --check). I would like to disable
(unchecked) it by default.
I couldn't know how and where to modify the code to let it be
disabled
by default at my first time when I open the android system.
Thanks a lot
Best Regards,
Morris
--~--~-~--~~~---~--~~
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 disable android keybaord by default

2009-07-28 Thread Morris

Hi All:

The default settings of Android Keyboard is enabled(settings -
localtext - android keyboard --check). I would like to disable
(unchecked) it by default.
I couldn't know how and where to modify the code to let it be
disabled
by default at my first time when I open the android system.


Thanks a lot


Best Regards,
Morris

--~--~-~--~~~---~--~~
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 run the focus item on the view without using onclick

2009-07-20 Thread Morris

Hi All:

If I want to execute the focused item on the view, I need to select
focused item and press enter.
Now I want to find another way to execute it without using click
action.
Does everyone know the other way?
Thank you very much.

Sincerely yours,
Morris


--~--~-~--~~~---~--~~
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] [set permission method] except for setting in the AndroidManifest.xml, where I can do?

2009-05-14 Thread Morris

Hi All:

Now I want to launch wifi and I implement this function in the
phonewindow.java . Due to the phonewindow.java is not a App,  it
belongs to framework level. So I couldn't find AndroidManifest.xml
file to set wifi permission.

Whether does anybody know except for AndroidManifest.xml could set
permission, where it can set permission?

Thanks a lot.

Sincerely,
Morris
--~--~-~--~~~---~--~~
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] Re: [set permission method] except for setting in the AndroidManifest.xml, where I can do?

2009-05-14 Thread Morris

Hi Diannel:

Thanks a lot.

Sorry I post in the error place.
Could you help me to clarify where I should post about whether there
is another method of setting permission?
Because my focus is not to port wifi, it's for setting permission
method.

Thank you very much

Morris

On 5月14日, 下午4時50分, Dianne Hackborn hack...@android.com wrote:
 Hi, discussion about working on the platform should be in android-porting.
 (And you can't do this, because PhoneWindow is part of the client-side
 frameworks, so runs in every application process.)



 On Thu, May 14, 2009 at 12:34 AM, Morris morrischen.c...@gmail.com wrote:

  Hi All:

  Now I want to launch wifi and I implement this function in the
  phonewindow.java . Due to the phonewindow.java is not a App,  it
  belongs to framework level. So I couldn't find AndroidManifest.xml
  file to set wifi permission.

  Whether does anybody know except for AndroidManifest.xml could set
  permission, where it can set permission?

  Thanks a lot.

  Sincerely,
  Morris

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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] [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris

Hi All:

Now I want to add some key actions from physical keyboard to android
such as page down, page key, printscreen, pause and so on.
May you provide some ideas to me?

Thanks a lot

Morris
--~--~-~--~~~---~--~~
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] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris

Hi Dianne:

Thanks for your reply!

I want to port android on the netbook, so I will implement these keys
in the future.
Thus I need some cue about how to add these key actions.
Could you give me some informations?

Thank you very much

Morris

On 4月28日, 上午11時02分, Dianne Hackborn hack...@android.com wrote:
 The G1 keyboard doesn't have those keys.

 On Mon, Apr 27, 2009 at 8:01 PM, Morris morrischen.c...@gmail.com wrote:

  Hi All:

  Now I want to add some key actions from physical keyboard to android
  such as page down, page key, printscreen, pause and so on.
  May you provide some ideas to me?

  Thanks a lot

  Morris

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris

Hi Dianne:

All right! thanks a lot

Morris

On 4月28日, 上午11時31分, Dianne Hackborn hack...@android.com wrote:
 If there are missing key code definitions, I am sure we will accept a patch
 to add them.  Otherwise I don't really know what you are asking for, and
 this is the wrong list to discuss platform changes -- you would probably be
 better on android-porting.

 2009/4/27 Morris morrischen.c...@gmail.com





  Hi Dianne:

  Thanks for your reply!

  I want to port android on the netbook, so I will implement these keys
  in the future.
  Thus I need some cue about how to add these key actions.
  Could you give me some informations?

  Thank you very much

  Morris

  On 4月28日, 上午11時02分, Dianne Hackborn hack...@android.com wrote:
   The G1 keyboard doesn't have those keys.

   On Mon, Apr 27, 2009 at 8:01 PM, Morris morrischen.c...@gmail.com
  wrote:

Hi All:

Now I want to add some key actions from physical keyboard to android
such as page down, page key, printscreen, pause and so on.
May you provide some ideas to me?

Thanks a lot

Morris

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support, and so won't reply to such e-mails.  All such
   questions should be posted on public forums, where I and others can see
  and
   answer them.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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] [note pad]How to implemet some actions in the note pad such as page down...

2009-04-26 Thread Morris

Hi All:

Now I want to port android on netbook. I already finish it. But the
keys of keyboard on android are not enough for netbook. For example,
it lacks page down, page up, and so on. Thus I want to implement these
key actions when we use note pad application.
But I have no idea how and where to start? Could somebody tell or give
a direction to me?
Thanks a lot.

Morris
--~--~-~--~~~---~--~~
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] [wifi notification icon] on the status bar

2009-03-26 Thread Morris

Hi All:

I have successfully ported wifi on the target device. And it could
work.
But I found the notification icon on the status bar is always the same
icon. It doesn't change status depending on the singal strength of
wireless AP.
Could somebody tell me if it's normal or I should change code to let
it work?

Thanks a lot.

Best Regards,
Morris
--~--~-~--~~~---~--~~
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] [Text : auto-punctuate and auto-replace]

2009-03-24 Thread Morris

Hi All:

These two functions are not workable. I already enable them on
Setting - TextLocale.
Please tell me why they are?
I also trace the code (TextKeyListener.java) but I couldn't find the
root cause.
Thanks a lot.

Morris
--~--~-~--~~~---~--~~
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] [Wifi] notification function

2009-02-25 Thread Morris

Hi All:

Now I get a G1 phone and its firmware version is 1.1.
I have no idea about the notification function of wifi.
I enable/disable it. I couldn't see any difference.
By the way, I could use wifi to go to internet.

Best Regards,
Morris
--~--~-~--~~~---~--~~
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] Re: android 1.5

2009-01-15 Thread Morris

Dear All:

I have solved this issue.
The root cause is that I continually read the android SDK image so I
always see the android 1.0.

Sorry to waste your time.

Regards,
Morris

On 1月14日, 下午1時15分, Morris morrischen.c...@gmail.com wrote:
 Dear All:

 I face a situation about building the new android.
 I don't know whether I successfully build the new code which I got via
 repo.
 I use repo to update my android from 1.4 to 1.5. After I get it using
 repo sync, I type make to build the new code.
 In the event I saw the blow message, but I don't know whether the
 build process is successful.

 *** 
 *

 mor...@morris-desktop:~/mydroid$ make
 build/core/product_config.mk:207: WARNING: adding test OTA key
 
 TARGET_PRODUCT=generic
 TARGET_BUILD_VARIANT=eng
 TARGET_SIMULATOR=
 TARGET_BUILD_TYPE=release
 TARGET_ARCH=arm
 HOST_ARCH=x86
 HOST_OS=linux
 HOST_BUILD_TYPE=release
 BUILD_ID=
 
 build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
 build/core/base_rules.mk:117: *** recovery:
 MODULE.TARGET.EXECUTABLES.recovery already defined by bootable/
 recovery.  Stop.

 *** 
 ***

 Best Regards,
 Morris
--~--~-~--~~~---~--~~
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] [buid code problem] android 1.5

2009-01-13 Thread Morris

Dear All:

I face a situation about building the new android.
I don't know whether I successfully build the new code which I got via
repo.
I use repo to update my android from 1.4 to 1.5. After I get it using
repo sync, I type make to build the new code.
In the event I saw the blow message, but I don't know whether the
build process is successful.



mor...@morris-desktop:~/mydroid$ make
build/core/product_config.mk:207: WARNING: adding test OTA key

TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=

build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
build/core/base_rules.mk:117: *** recovery:
MODULE.TARGET.EXECUTABLES.recovery already defined by bootable/
recovery.  Stop.

**

Best Regards,
Morris

--~--~-~--~~~---~--~~
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] What's the handwriting recognition?

2009-01-09 Thread Morris

Dear All:

I see the T-mobile G1 support the handwriting recognition.
But I don't find any demo for handwriting recognition, I'm afraid that
I misunderstand the definition of handwriting recognition.
In my knowledge, the handwriting recognition is to let user use pen to
write words on the screen.
Am I right?
Another question is the android whether to support handwriting
recognition for their inputmethod ?

Thanks a lot.

Morris
--~--~-~--~~~---~--~~
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] The problem of installing Repo

2008-12-10 Thread Morris

Dear Sirs:

When I follow the steps of installing repo, I face the below errors.

[EMAIL PROTECTED]:~/mydroid$ repo init -u
http://android.git.kernel.org/platform/manifest.git
Getting repo ...
   from git://android.kernel.org/tools/repo.git
fatal: Unable to look up android.kernel.org (port 9418) (Name or
service not known)

Please help me solve this issue.
Thanks a lot.

Best Regards,
Morris Chen

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The problem of installing Repo

2008-12-10 Thread Morris

Hi Guys:

I have solved it.

My solution is to change the network connecting setting of vmware from
NAT to Bridged.

Thanks your help.

Morris

On 12月10日, 下午2時27分, Morris [EMAIL PROTECTED] wrote:
 Dear Sirs:

 When I follow the steps of installing repo, I face the below errors.

 [EMAIL PROTECTED]:~/mydroid$ repo init 
 -uhttp://android.git.kernel.org/platform/manifest.git
 Getting repo ...
from git://android.kernel.org/tools/repo.git
 fatal: Unable to look up android.kernel.org (port 9418) (Name or
 service not known)

 Please help me solve this issue.
 Thanks a lot.

 Best Regards,
 Morris Chen
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Custom mockup location providers - what's wrong with this?

2008-04-21 Thread Morris

Hi NTR
,
Did you solve the problem?

I have the same problem. The LocationManagement only get gps
provider in the folder of /data/misc/location, others won't.

Thanks for your help in advanced

On 4月11日, 下午11時39分, NTR [EMAIL PROTECTED] wrote:
 I'm trying to make my own mockup location providers, but I just can't
 get them to work. I have the following file structure in the emulator:

 /data/misc/location/house/kml
 /data/misc/location/house/properties

 The kml file is obtained by saving a path in Google Earth.

 Code:

 LocationManager locationManager = (LocationManager) getSystemService(
 Context.LOCATION_SERVICE);

 Location location = locationManager.getCurrentLocation(house);

 Permissions:

 uses-permission android:name=android.permission.ACCESS_GPS /
 uses-permission
 android:name=android.permission.ACCESS_ASSISTED_GPS /
 uses-permission android:name=android.permission.ACCESS_LOCATION/



 Either the location is null, when executing the code in an intent, or
 if I run the code in a service, the following exception is shown in
 the log:

 ERROR/JavaBinder(520): java.lang.NullPointerException
 ERROR/JavaBinder(520): at
 android.server.LocationManagerService.getCurrentLocation(LocationManagerService.java:
 690)
 ERROR/JavaBinder(520): at android.location.ILocationManager
 $Stub.onTransact(ILocationManager.java:149)
 ERROR/JavaBinder(520): at
 android.os.Binder.execTransact(Binder.java:274)
 ERROR/JavaBinder(520): at android.dalvik.NativeStart.run(Native
 Method)

 Once again, any advice? :/
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---