[android-developers] Is there a way to get a WAN IP address from a phone based on its phone number?

2012-06-05 Thread Akki
I am trying to develop an android application, through I could share some 
files or other applications in real time(can be thought as a miniature 
version of remote desktop sharing). So I am thinking of trying to set up a *
P2P *connection between 2 phones, for that phones would be requiring IP 
address of each other. Is there any way by which I can get the IP address of 
the other device by just using the phone no.

Could you please post some other suggestions for setting up a P2P 
connections??

-- 
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] App talking to native ARM binary via sockets

2012-06-05 Thread galapogos
Hi,

I'm trying to get an Android app to talk to a native Android binary 
service. Basically when I click a button, the app should send data to the 
service, and receive some data back as well. I've written the Android 
client app code, relevant portion below:

Button.OnClickListener buttonSendOnClickListener = new 
Button.OnClickListener(){
  //@Override
  public void onClick(View arg0) {
Socket socket = null;
DataOutputStream dataOutputStream = null;
DataInputStream dataInputStream = null;

try {
  socket = new Socket("10.0.2.2", );
  dataOutputStream = new DataOutputStream(socket.getOutputStream());
  dataInputStream = new DataInputStream(socket.getInputStream());
  dataOutputStream.writeUTF(textOut.getText().toString());
} catch (UnknownHostException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
} catch (IOException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
}
finally{
  if (socket != null){
try {
  socket.close();
} catch (IOException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
}
if (dataOutputStream != null){
  try {
dataOutputStream.close();
  } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
  }
}
if (dataInputStream != null){
 try {
dataInputStream.close();
  } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
  }
}
   }
}};

When I run the app, it hangs and times out when I click the button. Turns 
out it hangs on the socket connection. Is this because I have the wrong 
address, or because there's no server listening to the same socket?

Also, are there any example code for a server I can cross compile for 
Android that will talk to the Android app using sockets?

Thanks!

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

Re: [android-developers] TabHost Problem

2012-06-05 Thread naseem Rafique
Hi Justin,

Thanks for sparing some time.
I do refresh all memory objects infect first I nullify them and re populate
from server.



On Tue, Jun 5, 2012 at 7:35 PM, Justin Anderson wrote:

> The problem is most likely in your Profile class...  You need to refresh
> it when you log in.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, Jun 5, 2012 at 7:21 AM, naseem Rafique wrote:
>
>> Hi folks,
>>
>> I am working on an app in which I need to show three Tabs, on Logout I
>> want to show remove these abs and on login I want to show these tabs with
>> new user's data who just logged in.
>>  For this I used
>>
>> *On Logout:*
>> *
>> *
>> this.tabHost.clearAllTabs();
>>
>> *On Login:*
>> *
>> *
>> *   *intent = new Intent(this, Profile.class);
>> spec =
>> mTabHost.newTabSpec("Profile").setIndicator("Profile",res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
>> mTabHost.addTab(spec);
>>
>> But it doesn't show my contents of new user, but show old contents.
>>
>> Any one, any thoughts.
>>
>> Thanks,
>> Sam.
>>
>>  --
>> 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

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

Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Kristopher Micinski
Of potential interest along this same line is Stowaway,

http://android-permissions.org/

It's analysis, while necessarily static, seems to work quite well, for
the perhaps uninteresting cases..

And of course, as Chris points out, you can imagine situations where
the user constructs intents using strings input by the user, but in
practice, you're almost never going to see a string for an intent
object that can't be reconstructed by using some global constant
propagation.  The exception to this case is when you have some strange
RPC sharing pattern, but I've never seen that.  In these cases any
analysis will simply fail, and usually error on the side of caution,
telling you you do in fact need the permission..

kris

On Wed, Jun 6, 2012 at 1:40 AM, Kristopher Micinski
 wrote:
> On Wed, Jun 6, 2012 at 1:17 AM, Chris Stratton  wrote:
>> On Jun 5, 7:29 pm, Kristopher Micinski  wrote:
>>> >> Is there any way to retrieve the Intents used by intalled apps on the
>>> >> phone? For example, how do I know that one app could send an Intent to
>>> >> invoke Camera app or Email app or Text Message app?
>>
>>> But you could track this in the system, of course, which is what I
>>> assume the OP wanted to do..
>>
>> Well, you can't really detect the potential (how do I know that one
>> app "could") due to the potential crossovers between inputs, data, and
>> code represented by things like intent objects and reflection.
>>
>
> I spend a fair amount of time in research on static analysis of
> permissions in Android apps doing exactly this, ;-)...
>
> A number of other systems try to do the same..
> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.148.2511
>
>> You can however detect the actual attempt as it occurs, to a degree by
>> watching the logs, and more substantially by modifying the platform to
>> in effect breakpoint Intent sending.
>>
>
> Right, I think that's what I said, isn't it?  I don't think I
> mentioned potential, just dynamically, which is, as I said, what I
> interpreted the OP to mean...
>
> kris

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


Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Kristopher Micinski
On Wed, Jun 6, 2012 at 1:17 AM, Chris Stratton  wrote:
> On Jun 5, 7:29 pm, Kristopher Micinski  wrote:
>> >> Is there any way to retrieve the Intents used by intalled apps on the
>> >> phone? For example, how do I know that one app could send an Intent to
>> >> invoke Camera app or Email app or Text Message app?
>
>> But you could track this in the system, of course, which is what I
>> assume the OP wanted to do..
>
> Well, you can't really detect the potential (how do I know that one
> app "could") due to the potential crossovers between inputs, data, and
> code represented by things like intent objects and reflection.
>

I spend a fair amount of time in research on static analysis of
permissions in Android apps doing exactly this, ;-)...

A number of other systems try to do the same..
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.148.2511

> You can however detect the actual attempt as it occurs, to a degree by
> watching the logs, and more substantially by modifying the platform to
> in effect breakpoint Intent sending.
>

Right, I think that's what I said, isn't it?  I don't think I
mentioned potential, just dynamically, which is, as I said, what I
interpreted the OP to mean...

kris

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

2012-06-05 Thread Vijay Krishnan
Hi all,
I am using tesseract ocr android tool for card reader
application.Here is my code

   TessBaseAPI baseApi = new TessBaseAPI();
 baseApi.setDebug(true);
 baseApi.setPageSegMode(TessBaseAPI.PSM_SINGLE_LINE);
 baseApi.init(DATA_PATH,"eng");
 baseApi.setImage(cropBitImage);
 String mRecognizedText = baseApi.getUTF8Text();

  I am getting this error "Bitmap functions not available ; library must be
compiled under android-8 NDK".Any one help on this.

-- 
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] Error creating AudioTrack

2012-06-05 Thread krishna kumar
AudioFlinger could not create track, status: -12
Error creating AudioTrack
help me

-- 
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: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Chris Stratton
On Jun 5, 7:29 pm, Kristopher Micinski  wrote:
> >> Is there any way to retrieve the Intents used by intalled apps on the
> >> phone? For example, how do I know that one app could send an Intent to
> >> invoke Camera app or Email app or Text Message app?

> But you could track this in the system, of course, which is what I
> assume the OP wanted to do..

Well, you can't really detect the potential (how do I know that one
app "could") due to the potential crossovers between inputs, data, and
code represented by things like intent objects and reflection.

You can however detect the actual attempt as it occurs, to a degree by
watching the logs, and more substantially by modifying the platform to
in effect breakpoint Intent sending.

-- 
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] soundpool looping problem

2012-06-05 Thread krishna kumar
All sounds play fine as long as they are not set to looping. When i set
looping  (set as -1) then the sound play one time only then stop  aging
not playing why ...please help me




mStream1= mSoundPool.play(streamid, 1, 1, 0, -1, 1f);

-- 
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] Activity flickers,when i add surfaceview to my layout first time

2012-06-05 Thread Bin Dou
Hi all:
 I got a problem : Activity flickers,when i add surfaceview to my
layout through “layout.addView(sfv, new
LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));”  first time. After first time i added the
surfaceview to layout,no matter how many time i add surfaceview,activity
does not flicker.
 I have tried to add view to layout, the activity did not
flicker.Somebody knows why?Any solutions?


 Thank in advance

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

Re: [android-developers] ICS holo list selector performance

2012-06-05 Thread Dianne Hackborn
The fade will be gone in the next release.

Also the real problem with that is that it is doing the fade-out at all
when you have selected the item, instead of just leaving it highlighted
while doing the transition.

On Thu, Apr 19, 2012 at 11:25 PM, Jon Perlow  wrote:

> I'm trying to improve the transition of an Activity containing a ListView
> that navigates to another Activity containing a ListView when the user
> selects an item.
>
> In ICS, the holo theme has a list selector that has a very nice fade-out
> transition. Maybe I am just doing something stupid, but AFAICT, the problem
> with this is that only a toy app could really make that transition work
> under Android's UI architecture. In order for the animation to be smooth,
> let's assume it needs a 25 fps draw rate. Drawing in android requires the
> UI thread. that means you can't block the UI thread for more than 40ms for
> that animation to render smoothly. In the scenario where clicking on a list
> item navigates to another activity, it requires that the other activity
> finish its onCreate, onStart, onResume, the measuring and layout of all its
> views in less than 40ms.
>
> Is this really possible for any real application? I noticed that most of
> the apps that come with Android are not using this transition. AFAICT, the
> Gmail app doesn't use it nor does the SMS app or the contacts app. There
> are a few apps that do use it like the preferences and the transitions are
> extremely choppy.
>
> -Jon
>
> --
> 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




-- 
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: ICS holo list selector performance

2012-06-05 Thread Jon Perlow
Looks like the selector was simplified in the latest ICS release.

On Apr 19, 11:25 pm, Jon Perlow  wrote:
> I'm trying to improve the transition of an Activity containing a ListView
> that navigates to another Activity containing a ListView when the user
> selects an item.
>
> In ICS, the holo theme has a list selector that has a very nice fade-out
> transition. Maybe I am just doing something stupid, but AFAICT, the problem
> with this is that only a toy app could really make that transition work
> under Android's UI architecture. In order for the animation to be smooth,
> let's assume it needs a 25 fps draw rate. Drawing in android requires the
> UI thread. that means you can't block the UI thread for more than 40ms for
> that animation to render smoothly. In the scenario where clicking on a list
> item navigates to another activity, it requires that the other activity
> finish its onCreate, onStart, onResume, the measuring and layout of all its
> views in less than 40ms.
>
> Is this really possible for any real application? I noticed that most of
> the apps that come with Android are not using this transition. AFAICT, the
> Gmail app doesn't use it nor does the SMS app or the contacts app. There
> are a few apps that do use it like the preferences and the transitions are
> extremely choppy.
>
> -Jon

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


Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Kristopher Micinski
But you could track this in the system, of course, which is what I
assume the OP wanted to do..

kris

On Tue, Jun 5, 2012 at 7:24 PM, Chris Stratton  wrote:
> On Jun 5, 5:23 pm, michael  wrote:
>
>> Is there any way to retrieve the Intents used by intalled apps on the
>> phone? For example, how do I know that one app could send an Intent to
>> invoke Camera app or Email app or Text Message app?
>
> No.  Not only is there no way to query the information, the
> information may not even deterministically exist.
>
> For example, it would be trivial to write an application which
> presented the user with a few EditText widgets into which they could
> manually type the various required pieces to create an Intent object,
> and a button to dispatch the result.  This app would then be capable
> of dispatching truly arbitrary intents.
>
> --
> 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] Re: How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Chris Stratton
On Jun 5, 5:23 pm, michael  wrote:

> Is there any way to retrieve the Intents used by intalled apps on the
> phone? For example, how do I know that one app could send an Intent to
> invoke Camera app or Email app or Text Message app?

No.  Not only is there no way to query the information, the
information may not even deterministically exist.

For example, it would be trivial to write an application which
presented the user with a few EditText widgets into which they could
manually type the various required pieces to create an Intent object,
and a button to dispatch the result.  This app would then be capable
of dispatching truly arbitrary intents.

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


Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Kristopher Micinski
I understood, :-), but I'm saying that the other way around might work
equally well for what he wants.  Unless he wants to do some kind of
thing that is "security enhancing" like so many people do...

kris

On Tue, Jun 5, 2012 at 6:50 PM, Mark Murphy  wrote:
> On Tue, Jun 5, 2012 at 6:45 PM, Kristopher Micinski
>  wrote:
>> You can certainly query the package manager and ask for the list of
>> available packages, and perhaps do something with that..
>
> I think that the OP is looking for apps that *call* startActivity()
> for certain Intent structures ("send an Intent to invoke Camera app or
> Email app or Text Message app?"). PackageManager can find out who can
> *respond* to certain Intent structures.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> 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


Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Mark Murphy
On Tue, Jun 5, 2012 at 6:45 PM, Kristopher Micinski
 wrote:
> You can certainly query the package manager and ask for the list of
> available packages, and perhaps do something with that..

I think that the OP is looking for apps that *call* startActivity()
for certain Intent structures ("send an Intent to invoke Camera app or
Email app or Text Message app?"). PackageManager can find out who can
*respond* to certain Intent structures.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Kristopher Micinski
But maybe if you tell us *why* you want to know the intents, we could tell you?

You can certainly query the package manager and ask for the list of
available packages, and perhaps do something with that..

kris

On Tue, Jun 5, 2012 at 5:28 PM, Mark Murphy  wrote:
> On Tue, Jun 5, 2012 at 5:23 PM, michael  wrote:
>> Is there any way to retrieve the Intents used by intalled apps on the
>> phone?
>
> No, sorry.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> 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


Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Mark Murphy
On Tue, Jun 5, 2012 at 5:23 PM, michael  wrote:
> Is there any way to retrieve the Intents used by intalled apps on the
> phone?

No, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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 retrieve Intents used by installed apps on the phone

2012-06-05 Thread michael
Hi,

Is there any way to retrieve the Intents used by intalled apps on the
phone? For example, how do I know that one app could send an Intent to
invoke Camera app or Email app or Text Message app?

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


Re: [android-developers] Find path between 2 pairs of lat and long

2012-06-05 Thread Fred Niggle
No thanks, I think you can find it the same way I did: Google it!

On 5 June 2012 08:21, Mini agrawal  wrote:

> so can you please just share that link.
>
> Thanks
>
> On Mon, Jun 4, 2012 at 7:14 PM, Fred Niggle wrote:
>
>> I can you there IS a tutorial about this - just google it.
>>
>>
>> On 4 June 2012 14:35, Mini agrawal  wrote:
>>
>>> I didn't find any help on Google .
>>>
>>> On Mon, Jun 4, 2012 at 6:33 PM, Fred Niggle 
>>> wrote:
>>>
 What did a google search  tell you?

 On 2 June 2012 13:19, ala hammad <3la2.7am...@gmail.com> wrote:

> Hi Guys ,
> i need to remove an contact or more from specific group via coding ..
> any one can help me ??
>
>
>
> thanks for your help ..
>
> --
> 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




 --
 Magnetic Door Alarm 
 appis
  now available in Google Play


 On 4 June 2012 12:45, Mini agrawal  wrote:

>  HI,
>
> I have a 2 sets of latitude and longitude pairs. I want to find
> path between these 2 pairs of lat and long and then show it on Google map.
> How can I find the path for android?
>
> Thanks in advance !
>
> --
> 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




 --
 Magnetic Door Alarm 
 appis
  now available in Google Play

 --
 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
>>
>>
>>
>>
>> --
>> Magnetic Door Alarm 
>> appis
>>  now available in Google Play
>>
>> --
>> 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




-- 
Magnetic Door Alarm
appis
now available in Google Play

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

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-06-05 Thread Dianne Hackborn
Oh good lord, don't freaking do that.

On Tue, Jun 5, 2012 at 12:10 PM, b0b  wrote:

>
>
>
>> Unless I missed something in the previous discussions, or there has
>> been a breakthrough since, there is NO possible way to make the
>> overflow button show up if there is a physical hardware key.
>>
>>
>>
> There is. With hack below you can force the appearance of the overflow
> menu even if there is a physical button menu
> with target SDK >= 14. Of course you must never use it since it is a
> horrible hack, and nobody shall use hacks ever, especially on Android !
>
> static public void setHasPermanentMenuKey(Context context, boolean value)
> {
> if (isICSOrLater()) {
> ViewConfiguration config = ViewConfiguration.get(context);
> try {
> Field f = ViewConfiguration.class
> .getDeclaredField("sHasPermanentMenuKey");
> f.setAccessible(true);
> if (f != null) {
> f.set(config, value);
> log.info("Successfully hacked permanent menu key");
> }
> } catch (Exception ex) {
> log.info("Unable to hack permanent menu key: " + ex);
> }
> }
> }
>
> --
> 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
>



-- 
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: Showing Overflow menu button on ICS.

2012-06-05 Thread b0b



> Unless I missed something in the previous discussions, or there has 
> been a breakthrough since, there is NO possible way to make the 
> overflow button show up if there is a physical hardware key. 
>
>
>
There is. With hack below you can force the appearance of the overflow menu 
even if there is a physical button menu  
with target SDK >= 14. Of course you must never use it since it is a 
horrible hack, and nobody shall use hacks ever, especially on Android !

static public void setHasPermanentMenuKey(Context context, boolean value) { 
if (isICSOrLater()) {
ViewConfiguration config = ViewConfiguration.get(context);
try {
Field f = ViewConfiguration.class
.getDeclaredField("sHasPermanentMenuKey");
f.setAccessible(true);
if (f != null) {
f.set(config, value);
log.info("Successfully hacked permanent menu key");
}
} catch (Exception ex) {
log.info("Unable to hack permanent menu key: " + ex);
}
}
}

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

Re: [android-developers] Re: Is JDK1.7 supported now?

2012-06-05 Thread Kostya Vasilyev
2012/6/5 Davide Perini 

> I would like to have a complete list of all the incompatibilities
> between the android sdk and the jdk 7.
> It isn't possible to sign an apk using the JSDK 7.
>

Yes it is:

http://code.google.com/p/android/issues/detail?id=19567#c7

-- K


> What are the other incompatibilities?
>
> Thanks.
>
> >
> http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities
> > seems to confirm it.
> >
> > Thinking about it, it's might be easier to patch the dx source code to
> > accept the new version number? If that works, it should not be that
> > difficult?
> >
> > Am Dienstag, 5. Juni 2012 16:28:33 UTC+2 schrieb al:
> >>
> >> My first thought was: there are probably new bytecodes in java 7 class
> >> files. In that case the transformation to dex files has to be changed
> >> and
> >> it's not clear if that's possible in a backward compatible way, i.e.
> >> without replacing the dalvik implementation on "all" devices, which is
> >> obviously not feasible.
> >>
> >> A quick search lead me to
> >> http://www.yworks.com/de/products_yguard_about.html (sorry, German),
> >> where they say, only the version number in class files changed and a new
> >> instruction (invokedynamic) has been added. However they also say,
> >> invokedynamic is not used by current java implementations, only by
> >> dynamic
> >> languages like JRuby. In that case, it seems possible to work around
> >> this
> >> issue: just write a small tool to change the version number of the class
> >> files to the previous number and add that tool as an additional build
> >> step.
> >>
> >> This way, you know when you get your solution instead of waiting for
> >> Google. Google has no obligation to do what you want / when you want.
> >> They
> >> can decide for themselves what they do and when.
> >>
> >> BTW: This might be an interesting hack for somebody with some spare time
> >>
> >>
> >> Am Montag, 4. Juni 2012 15:59:07 UTC+2 schrieb sblantipodi:
> >>>
> >>> I just tried, nothing has been fixed in months.
> >>>
> >>> Il giorno venerdì 1 giugno 2012 12:10:02 UTC+2, sblantipodi ha scritto:
> 
>  As title,
>  some months ago I had some problem signing my android apps using java
>  1.7 that forced me to
>  switch back to jdk 1.6.
> 
>  Is this problem fixed?
> 
> >>>
> >
> > --
> > 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
>
>
> --
> --
> Davide Perini - DPsoftware
> web: mc.dpsoftware.org
> email: supp...@dpsoftware.org
>
> --
> 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

Re: [android-developers] Re: Writing in C++ code ?

2012-06-05 Thread Greg Donald
On Mon, Jun 4, 2012 at 3:06 AM, jeet  wrote:
> You can use phone gap or something like that,.,.,


PhoneGap was a little heavy handed, for my use case anyway.


On Android I just use the WebView Javascript Interface:

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript


On iOS I use something very similar to build the Javascript bridge:

https://github.com/marcuswestin/WebViewJavascriptBridge


My jQuery Mobile code ends up being nearly identical for both
platforms.  I just do some extra stuff on iOS to simulate the same
kind of FrameLayout flipping I do in Android.


-- 
Greg Donald

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


Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie
tks for all help me to solve this problem!

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie


shengJie於 2012年6月6日星期三UTC+8上午1時53分25秒寫道:
>
> then i got two table android_metadata and record
> 
> sqlite> .tables
> android_metadata  record
> sqlite> 
>

problem solved!!!
tks for all 

i try go get  rid of android_metadata 
and i pass it !!!


@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// TODO Auto-generated method stub
db.execSQL("DROP TABLE IF EXISTS record");
db.execSQL("DROP TABLE IF EXISTS android_metadata");
onCreate(db);
}
 }
===

-- 
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: Showing Overflow menu button on ICS.

2012-06-05 Thread Nathan


On Jun 5, 10:25 am, Mark Murphy  wrote:
> Particularly for those users who have Android
> 2.x devices that get upgraded to ICS, they will already be used to
> pressing MENU to get the options menu

Well that assumes they have ever found that out to begin with. ;) I
have my doubts. Doubts so strong, in fact, that I have included an
overflow button on my home grown ActionBar in 2X.

> And be sure to tell Jennifer that we all said "hi!". :-)
>

Certainly. The sun is not up there yet.

Nathan

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


Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie

>
> i pull out my database file and check it schema
>
== 

> SQLite version 3.7.12.1 2012-05-22 02:45:53
> Enter ".help" for instructions
> Enter SQL statements terminated with a ";"
> sqlite> .schema
> CREATE TABLE android_metadata (locale TEXT);
> CREATE TABLE record(_id INTEGER PRIMARY KEY AUTOINCREMENT,care_IDtext not 
> null,n
> ametext not null,sextext not null,person_idtext not null,blood_typetext 
> not null
>
> ,smoketext,drunktext,Diagnosis_typetext,Diagnosis_bodytext,care_Diagnosistext,wh
>
> atcaretext,whencareinteger,whocaretext,carewhotext,care_locatationtext,care_freq
> uencytext,singaltimetext,care_Appraisaltext);
> sqlite>
>
==
why show android metadata(locale TEXT) 

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread rambabu mareedu
 here the problem is your table not creating..first of all take 2 or 3
columns and run it ..after that extend the columns

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Your logs suggest that the table itself is not there. So first try to
figure out why the table is not being created.

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



On Tue, Jun 5, 2012 at 11:03 PM, shengJie  wrote:

> this is my query
> i want to load all user_name and
> put into a spinner
> --
> Cursor c = db.query(UserSchema.TABLE_NAME, new String[]{UserSchema.NAME},
> null, null, null, null, null);
> c.moveToFirst();
> CharSequence[] newlist = new CharSequence[c.getCount()];
> for(int i = 0;i newlist[i] = c.getString(0);
> c.moveToNext();
> }
> c.close();
>
> --
> 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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie
this is my query 
i want to load all user_name and
put into a spinner
--
Cursor c = db.query(UserSchema.TABLE_NAME, new String[]{UserSchema.NAME}, 
null, null, null, null, null);
c.moveToFirst();
CharSequence[] newlist = new CharSequence[c.getCount()];
for(int i = 0;ihttp://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Showing Overflow menu button on ICS.

2012-06-05 Thread Mark Murphy
On Tue, Jun 5, 2012 at 1:17 PM, Nathan  wrote:
> IF ICS is installed on a device with a physical menu button, the
> ActionBar does not show.

Correct. Example: Nexus S.

> This includes the emulator as it is assumed to have a physical menu
> button.

The emulator is configurable. In your AVD Manager, for an AVD, add the
"Hardware Back/Home keys" property (which, despite the name, also has
the MENU key) and set it to be true or false as you wish.

> Unless I missed something in the previous discussions, or there has
> been a breakthrough since, there is NO possible way to make the
> overflow button show up if there is a physical hardware key.

AFAIK, you are correct. Particularly for those users who have Android
2.x devices that get upgraded to ICS, they will already be used to
pressing MENU to get the options menu, and so Google elected to
continue supporting that behavior. What remains to be seen is how many
Android devices native to ICS or higher wind up with MENU keys versus
the navigation soft keys in the system bar.

> If true, I will tell Jennifer not to spend anymore time on this.

And be sure to tell Jennifer that we all said "hi!". :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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] Showing Overflow menu button on ICS.

2012-06-05 Thread Nathan
There have been some past discussion on this.

I just wanted to confirm the conclusion.

IF ICS is installed on a device with a physical menu button, the
ActionBar does not show.
This includes the emulator as it is assumed to have a physical menu
button.
(In my opinion, this goes counter to the 'Say goodbye to the menu
button" idea, but . . . )

Unless I missed something in the previous discussions, or there has
been a breakthrough since, there is NO possible way to make the
overflow button show up if there is a physical hardware key.

If true, I will tell Jennifer not to spend anymore time on this.

Nathan

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


Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
care_IDtext not null,nametext not null,sextext not null,person_idtext not 
null,blood_typetext not null,smoketext,drunktext,
Diagnosis_typetext,Diagnosis_bodytext,care_Diagnosistext,
whatcaretext,whencareinteger,whocaretext,carewhotext,care_
locatationtext,care_frequencyte

Your create table query is not correct. There should be a space between 
name and text etc.

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie

>
> i uninstall my app an i clean up my project
>


===log
06-05 17:09:29.311: D/dalvikvm(2147): GC_EXTERNAL_ALLOC freed 43K, 53% free 
2546K/5379K, external 1815K/2137K, paused 75ms
06-05 17:11:58.091: W/KeyCharacterMap(2147): No keyboard for id 0
06-05 17:11:58.091: W/KeyCharacterMap(2147): Using default keymap: 
/system/usr/keychars/qwerty.kcm.bin
06-05 17:12:07.561: I/haiyang:createDB(2147): create table record(_id 
INTEGER PRIMARY KEY AUTOINCREMENT,care_IDtext not null,nametext not 
null,sextext not null,person_idtext not null,blood_typetext not 
null,smoketext,drunktext,Diagnosis_typetext,Diagnosis_bodytext,care_Diagnosistext,whatcaretext,whencareinteger,whocaretext,carewhotext,care_locatationtext,care_frequencytext,singaltimetext,care_Appraisaltext);
06-05 17:12:07.582: I/Database(2147): sqlite returned: error code = 1, msg 
= no such column: name
06-05 17:12:07.582: D/AndroidRuntime(2147): Shutting down VM
06-05 17:12:07.591: W/dalvikvm(2147): threadid=1: thread exiting with 
uncaught exception (group=0x40015560)
06-05 17:12:07.621: E/AndroidRuntime(2147): FATAL EXCEPTION: main
06-05 17:12:07.621: E/AndroidRuntime(2147): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.NursingcareSystem/com.NursingcareSystem.Care_ALL_intent}: 
android.database.sqlite.SQLiteException: no such column: name: , while 
compiling: SELECT name FROM record
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.os.Looper.loop(Looper.java:123)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread.main(ActivityThread.java:3683)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
java.lang.reflect.Method.invoke(Method.java:507)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
dalvik.system.NativeStart.main(Native Method)
06-05 17:12:07.621: E/AndroidRuntime(2147): Caused by: 
android.database.sqlite.SQLiteException: no such column: name: , while 
compiling: SELECT name FROM record
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteCompiledSql.(SQLiteCompiledSql.java:65)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:83)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:49)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1235)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1189)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1271)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
com.NursingcareSystem.Care_ALL_intent.onCreate(Care_ALL_intent.java:82)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-05 17:12:07.621: E/AndroidRuntime(2147): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
06-05 17:12:07.621: E/AndroidRuntime(2147): ... 11 more
 

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

2012-06-05 Thread krishna kumar
explosionId = soundPool.play(explosionId, 1.0f, 1.0f, 1, -1, 1);


All sounds play fine as long as they are not set to looping. When i set
looping  (set as -1) then the sound play one time only then stop  aging
not playing why ...please help me

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie


tks for trying to fixed my problem
>

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Uninstall your app. Run it again, and get the logs. 

On Tuesday, 5 June 2012 22:27:16 UTC+5:30, shengJie wrote:
>
> i think the problem is my table can't be build that make my query  
> compiling stop 

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Try changing strings to text...

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



On Tue, Jun 5, 2012 at 10:27 PM, shengJie  wrote:

> i think the problem is my table can't be build that make my query
> compiling stop
>
> --
> 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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie
i think the problem is my table can't be build that make my query  compiling
 stop 

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread shengJie
06-05 16:14:05.703: E/AndroidRuntime(353): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.NursingcareSystem/com.NursingcareSystem.Care_ALL_intent}: 
android.database.sqlite.SQLiteException: no such table: record: , while 
compiling: SELECT name FROM record
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.os.Looper.loop(Looper.java:123)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread.main(ActivityThread.java:3683)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
java.lang.reflect.Method.invoke(Method.java:507)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
dalvik.system.NativeStart.main(Native Method)
06-05 16:14:05.703: E/AndroidRuntime(353): Caused by: 
android.database.sqlite.SQLiteException: no such table: record: , while 
compiling: SELECT name FROM record
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteCompiledSql.(SQLiteCompiledSql.java:65)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:83)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:49)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1235)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1189)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1271)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
com.NursingcareSystem.Care_ALL_intent.onCreate(Care_ALL_intent.java:82)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-05 16:14:05.703: E/AndroidRuntime(353): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
... 11 more



>

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
You might want to show more of your logs. There's probably some error while
creating your database.


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



On Tue, Jun 5, 2012 at 10:08 PM, shengJie  wrote:

> Sorry guy
> my database table can't be set
> i can build my database but i can't set up my table!!!
> did i miss something?
> ==log
> I/haiyang:createDB(353): create table record(_id INTEGER PRIMARY KEY
> AUTOINCREMENT,careID string not null,name  string not null,sex string not
> null,person_id string not null,blood_type  string not null,smoke string,drunk
> string,Diagnosis_type string,Diagnosis_body string,care_Diagnosis string,
> whatcare string,whencare integer,whocare string,carewho string,
> care_locatation string,care_frequency string,singaltime string,
> care_Appraisal string);
>
> I/Database(353): sqlite returned: error code = 1, msg = no such table:
> record
> D/AndroidRuntime(353): Shutting down VM
> W/dalvikvm(353): threadid=1: thread exiting with uncaught exception
> (group=0x40015560)
> E/AndroidRuntime(353): FATAL EXCEPTION: main
> E/AndroidRuntime(353): java.lang.RuntimeException: Unable to start
> activity
> ComponentInfo{com.NursingcareSystem/com.NursingcareSystem.Care_ALL_intent}:
> android.database.sqlite.SQLiteException: no such table: record: , while
> compiling: SELECT name FROM record
>
>
>
> 
> public static class DBConnection extends SQLiteOpenHelper{
> private static final String DATABASE_NAME="medical_records";
> private static final int DATABASE_VERSION=1;
> public DBConnection(Context context) {
>  super(context, DATABASE_NAME, null, DATABASE_VERSION);
> // TODO Auto-generated constructor stub
>  }
>
> @Override
> public void onCreate(SQLiteDatabase db) {
> // TODO Auto-generated method stub
> db.beginTransaction();
> try{
> String caredb =
> "create table record(_id INTEGER PRIMARY KEY AUTOINCREMENT,"
> +UserSchema.CARE_ID+   "string not null,"
> +UserSchema.NAME+"string not null,"
> +UserSchema.SEX+   "string not null,"
> +UserSchema.PERSON_ID+ "string not null,"
> +UserSchema.BLOOD_TYPE+"string not null,"
> +UserSchema.SMOKE+ "string,"
> +UserSchema.DRUNK+ "string,"
> +UserSchema.D_TYPE+"string,"
> +UserSchema.D_BODY+"string,"
> +UserSchema.CARE_D+"string,"
> +UserSchema.WHATCARE+  "string,"
> +UserSchema.WHENCARE+  "integer,"
> +UserSchema.WHOCARE+  "string,"
> +UserSchema.CAREWHO+   "string,"
> +UserSchema.CARE_LOCATION+ "string,"
> +UserSchema.CARE_F+"string,"
> +UserSchema.SINGAL+"string,"
> +UserSchema.CARE_APPRAISAL+"string);"  ;
>  Log.i("haiyang:createDB", caredb);
> db.execSQL(caredb);
>  }catch(Exception e){
> db.setTransactionSuccessful();}
> finally{
> db.endTransaction();
> }
> }
> @Override
> public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
> // TODO Auto-generated method stub
> db.execSQL("DROP TABLE IF EXISTS record");
> onCreate(db);
> }
>
> ---
>
> --
> 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] SoundPool .play

2012-06-05 Thread krishna kumar
explosionId = soundPool.play(explosionId, 1.0f, 1.0f, 1, -1, 1);


All sounds play fine as long as they are not set to looping. When i set
looping  (set as -1) then the sound play one time only then stop  aging
not playing why ...please help me

-- 
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: problem running Monkeyrunner script in ubuntu

2012-06-05 Thread Diego Torres Milano
You can do as Mark suggested or you can use a 
shebangline at the beginning  of 
your script, use either

#! /usr/bin/env monkeyrunner

or

#! /path/to/your/monkeyrunner

depending on whether PATH contains android tools directory or not.
Set the execution bit on your script

$ chmod +x your-script

and execute it

$ ./your-script



On Monday, 4 June 2012 06:17:40 UTC-4, Amey Bapat wrote:
>
> HELLO PEOPLE, 
>  well i have wriiten a sample python script in my eclipse. 
> now i need to run it on my emulator. 
> this is whr i am getting stuck.. 
> dis is the blog i followed to make it work 
> http://goravsingal.hubpages.com/hub/Android-UI-Automation-with-Python 
> where dey say this is to be done.. 
>
> Open shell prompt (cmd.exe, or terminal) 
>
> - Type absolute path of monkeyrunner followed by path of python script 
>
> example: "c:\\Program Files\\Android\\android-sdk\\tools\ 
> \monkeyrunner.bat" "C:\\sample.py" 
>
> did not work out for me.. 
> i am using ubuntu.. 
> not sure what exactly is to be done..

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

Re: [android-developers] Find path between 2 pairs of lat and long

2012-06-05 Thread lbendlin
www.google.com or your local equivalent

On Tuesday, June 5, 2012 3:21:40 AM UTC-4, Mini agrawal wrote:
>
> so can you please just share that link.
>
> Thanks
>
> On Mon, Jun 4, 2012 at 7:14 PM, Fred Niggle wrote:
>
>> I can you there IS a tutorial about this - just google it.
>>
>>
>> On 4 June 2012 14:35, Mini agrawal  wrote:
>>
>>> I didn't find any help on Google .
>>>
>>> On Mon, Jun 4, 2012 at 6:33 PM, Fred Niggle 
>>> wrote:
>>>
 What did a google search  tell you?

 On 2 June 2012 13:19, ala hammad <3la2.7am...@gmail.com> wrote:

> Hi Guys ,
> i need to remove an contact or more from specific group via coding .. 
> any one can help me ??
>
>
>
> thanks for your help ..
>
> -- 
> 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




 -- 
 Magnetic Door Alarm 
 appis
  now available in Google Play


 On 4 June 2012 12:45, Mini agrawal  wrote:

>  HI,
>
> I have a 2 sets of latitude and longitude pairs. I want to find 
> path between these 2 pairs of lat and long and then show it on Google 
> map. 
> How can I find the path for android?
>
> Thanks in advance !
>
> -- 
> 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




 -- 
 Magnetic Door Alarm 
 appis
  now available in Google Play

 -- 
 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
>>
>>
>>
>>
>> -- 
>> Magnetic Door Alarm 
>> appis
>>  now available in Google Play
>>
>> -- 
>> 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

Re: [android-developers] Problem refreshing a fragment edittext view from a dialogFragment after rotation

2012-06-05 Thread Bluemercury
Hi al! The thing is here im using  framents, the text field is on the 
fragment, not on the activity itself. The ideia was to create a dynamic 
dialofgragment without to mess around with the activity too much, since in 
this case the fragment is part of a viewpager in the activity. What if i 
use the   this.setRetainInstance(true);  on the fragment that holds the 
text field too?

regards,

On Tuesday, June 5, 2012 3:14:58 PM UTC+1, al wrote:
>
> Of course I'm guessing, but I think you should change the way you transfer 
> the new date/time value to the text widget.
>
> In the activity, say A1, you create the dialog and give it a reference to 
> the text field of A1. When the device is rotated, the activity is recreated 
> (=> A2), but the dialog is not (due to this.setRetainInstance(true);). 
> I.e. the dialog still references the text field of A1, but you see the 
> activity A2. That's probably the cause of the observed behavior. As far as 
> I understand it, the way to go is to add a "setDateTimeField()" method to 
> the activity and to replace the code in the onClick method of the dialog 
> with something like 
> "((MyActivityClass)getActivity()).setDateTimeField(curDateTime()). 
> GetActivity() will return the current/correct activity since the dialog 
> will be attached to new activity as part of the configuration change.
>

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

Re: [android-developers] Re: Is JDK1.7 supported now?

2012-06-05 Thread Justin Anderson
>
> I would like to have a complete list of all the incompatibilities
> between the android sdk and the jdk 7.
> It isn't possible to sign an apk using the JSDK 7.
> What are the other incompatibilities?
>

Why not just use JDK 6... You should be able to have both 6 and 7 installed
at the same time.  For Android stuff you can use v6.  For all other Java
stuff you are working on you can use v7.

If you want to get a complete list of incompatibilities you are likely
going to have to create that list yourself, because it doesn't already
exist.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jun 5, 2012 at 9:08 AM, Davide Perini
wrote:

> I would like to have a complete list of all the incompatibilities
> between the android sdk and the jdk 7.
> It isn't possible to sign an apk using the JSDK 7.
> What are the other incompatibilities?
>
> Thanks.
>
> >
> http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities
> > seems to confirm it.
> >
> > Thinking about it, it's might be easier to patch the dx source code to
> > accept the new version number? If that works, it should not be that
> > difficult?
> >
> > Am Dienstag, 5. Juni 2012 16:28:33 UTC+2 schrieb al:
> >>
> >> My first thought was: there are probably new bytecodes in java 7 class
> >> files. In that case the transformation to dex files has to be changed
> >> and
> >> it's not clear if that's possible in a backward compatible way, i.e.
> >> without replacing the dalvik implementation on "all" devices, which is
> >> obviously not feasible.
> >>
> >> A quick search lead me to
> >> http://www.yworks.com/de/products_yguard_about.html (sorry, German),
> >> where they say, only the version number in class files changed and a new
> >> instruction (invokedynamic) has been added. However they also say,
> >> invokedynamic is not used by current java implementations, only by
> >> dynamic
> >> languages like JRuby. In that case, it seems possible to work around
> >> this
> >> issue: just write a small tool to change the version number of the class
> >> files to the previous number and add that tool as an additional build
> >> step.
> >>
> >> This way, you know when you get your solution instead of waiting for
> >> Google. Google has no obligation to do what you want / when you want.
> >> They
> >> can decide for themselves what they do and when.
> >>
> >> BTW: This might be an interesting hack for somebody with some spare time
> >>
> >>
> >> Am Montag, 4. Juni 2012 15:59:07 UTC+2 schrieb sblantipodi:
> >>>
> >>> I just tried, nothing has been fixed in months.
> >>>
> >>> Il giorno venerdì 1 giugno 2012 12:10:02 UTC+2, sblantipodi ha scritto:
> 
>  As title,
>  some months ago I had some problem signing my android apps using java
>  1.7 that forced me to
>  switch back to jdk 1.6.
> 
>  Is this problem fixed?
> 
> >>>
> >
> > --
> > 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
>
>
> --
> --
> Davide Perini - DPsoftware
> web: mc.dpsoftware.org
> email: supp...@dpsoftware.org
>
> --
> 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

Re: [android-developers] Is it possible to get the DNS server setting from app?

2012-06-05 Thread Robert Greenwalt
There is not an API yet to get this info.  You can inspect system
properties and use net.dns1 and net.dns2,  but that's an internal
implementation detail that may/will change in the future.

R

On Tue, Jun 5, 2012 at 3:06 AM, Michael Leung wrote:

> Thanks!
>
> Regards,
> Michael
> http://www.itblogs.info
> http://www.michaelleumg.info
>  2012-6-5 下午4:17 於 "David Olsson"  寫道:
>
> 3G? Wifi? Did you try google?
>>
>> I googled for like 1 minute,
>> http://stackoverflow.com/questions/249916/how-do-i-find-the-dns-servers-in-android-from-a-java-program
>> https://groups.google.com/forum/?fromgroups#!topic/android-ndk/6eogJcaOPOg
>>
>>
>>
>>
>> On Tue, Jun 5, 2012 at 7:43 AM, Michael Leung wrote:
>>
>>>
>>> Hi all,
>>>   Is it possible to get the DNS server setting from app? I think that is
>>> possible to find out by reading the config in a rooted android.
>>> But how 's about the normal android phone?
>>>  --
>>> Regards,
>>> Michael Leung
>>> http://www.itblogs.info - My IT Blog
>>> http://diary.skynovel.info - My Blog
>>> http://www.michaelleung.info - My Homepage
>>>
>>>  --
>>> 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
>
>  --
> 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

Re: [android-developers] Re: Is JDK1.7 supported now?

2012-06-05 Thread Davide Perini
I would like to have a complete list of all the incompatibilities
between the android sdk and the jdk 7.
It isn't possible to sign an apk using the JSDK 7.
What are the other incompatibilities?

Thanks.

> http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities
> seems to confirm it.
>
> Thinking about it, it's might be easier to patch the dx source code to
> accept the new version number? If that works, it should not be that
> difficult?
>
> Am Dienstag, 5. Juni 2012 16:28:33 UTC+2 schrieb al:
>>
>> My first thought was: there are probably new bytecodes in java 7 class
>> files. In that case the transformation to dex files has to be changed
>> and
>> it's not clear if that's possible in a backward compatible way, i.e.
>> without replacing the dalvik implementation on "all" devices, which is
>> obviously not feasible.
>>
>> A quick search lead me to
>> http://www.yworks.com/de/products_yguard_about.html (sorry, German),
>> where they say, only the version number in class files changed and a new
>> instruction (invokedynamic) has been added. However they also say,
>> invokedynamic is not used by current java implementations, only by
>> dynamic
>> languages like JRuby. In that case, it seems possible to work around
>> this
>> issue: just write a small tool to change the version number of the class
>> files to the previous number and add that tool as an additional build
>> step.
>>
>> This way, you know when you get your solution instead of waiting for
>> Google. Google has no obligation to do what you want / when you want.
>> They
>> can decide for themselves what they do and when.
>>
>> BTW: This might be an interesting hack for somebody with some spare time
>>
>>
>> Am Montag, 4. Juni 2012 15:59:07 UTC+2 schrieb sblantipodi:
>>>
>>> I just tried, nothing has been fixed in months.
>>>
>>> Il giorno venerdì 1 giugno 2012 12:10:02 UTC+2, sblantipodi ha scritto:

 As title,
 some months ago I had some problem signing my android apps using java
 1.7 that forced me to
 switch back to jdk 1.6.

 Is this problem fixed?

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


-- 
--
Davide Perini - DPsoftware
web: mc.dpsoftware.org
email: supp...@dpsoftware.org

-- 
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: Is JDK1.7 supported now?

2012-06-05 Thread al
http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities
  
seems to confirm it.

Thinking about it, it's might be easier to patch the dx source code to 
accept the new version number? If that works, it should not be that 
difficult?

Am Dienstag, 5. Juni 2012 16:28:33 UTC+2 schrieb al:
>
> My first thought was: there are probably new bytecodes in java 7 class 
> files. In that case the transformation to dex files has to be changed and 
> it's not clear if that's possible in a backward compatible way, i.e. 
> without replacing the dalvik implementation on "all" devices, which is 
> obviously not feasible.
>
> A quick search lead me to 
> http://www.yworks.com/de/products_yguard_about.html (sorry, German), 
> where they say, only the version number in class files changed and a new 
> instruction (invokedynamic) has been added. However they also say, 
> invokedynamic is not used by current java implementations, only by dynamic 
> languages like JRuby. In that case, it seems possible to work around this 
> issue: just write a small tool to change the version number of the class 
> files to the previous number and add that tool as an additional build step. 
>
> This way, you know when you get your solution instead of waiting for 
> Google. Google has no obligation to do what you want / when you want. They 
> can decide for themselves what they do and when.
>
> BTW: This might be an interesting hack for somebody with some spare time 
>
>
> Am Montag, 4. Juni 2012 15:59:07 UTC+2 schrieb sblantipodi:
>>
>> I just tried, nothing has been fixed in months.
>>
>> Il giorno venerdì 1 giugno 2012 12:10:02 UTC+2, sblantipodi ha scritto:
>>>
>>> As title,
>>> some months ago I had some problem signing my android apps using java 
>>> 1.7 that forced me to
>>> switch back to jdk 1.6.
>>>
>>> Is this problem fixed?
>>>
>>

-- 
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] Client authentication with HLS

2012-06-05 Thread Moshe Kravchik
Hi,

I want to play a movie with HLS and have the movie encrypted. This works in 
ICS. However, I also want to protect access to the key with client 
authentication and this seem to not work for me - I can't find a way to 
provide the client certificate that the mediaserver will send to the 
server. 

Is it possible to achieve?

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

Re: [android-developers] Vizio tablet

2012-06-05 Thread Justin Anderson
*android-discuss *
The "water cooler" of Android discussion. You can discuss just about
anything Android-related here, ideas for the Android platform,
announcements about your applications, discussions about Android devices,
community resources... As long as your discussion is related to Android,
it's on-topic here.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jun 5, 2012 at 8:45 AM, Justin Anderson wrote:

> I think this, like most of your posts, has nothing to do with this list.
>> Try the discuss group if you're looking to discuss the Vizio tablet.
>>
> I don't think he is going to get it... I even included a link to the
> discuss group in one of his other questions that didn't fit the format of
> this group.
>
> Maybe he'll understand if all we do is respond with nothing but the
> link...  Let's try that from now on.
>
>
> Thanks,
> Justin Anderson...
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Mon, Jun 4, 2012 at 9:37 PM, TreKing  wrote:
>
>> I think this, like most of your posts, has nothing to do with this list.
>>
>> Try the discuss group if you're looking to discuss the Vizio tablet.
>>
>
>

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

Re: [android-developers] Vizio tablet

2012-06-05 Thread Justin Anderson
>
> I think this, like most of your posts, has nothing to do with this list.
> Try the discuss group if you're looking to discuss the Vizio tablet.
>
I don't think he is going to get it... I even included a link to the
discuss group in one of his other questions that didn't fit the format of
this group.

Maybe he'll understand if all we do is respond with nothing but the
link...  Let's try that from now on.


Thanks,
Justin Anderson...
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Jun 4, 2012 at 9:37 PM, TreKing  wrote:

> I think this, like most of your posts, has nothing to do with this list.
>
> Try the discuss group if you're looking to discuss the Vizio tablet.
>

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

Re: [android-developers] TabHost Problem

2012-06-05 Thread Justin Anderson
The problem is most likely in your Profile class...  You need to refresh it
when you log in.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jun 5, 2012 at 7:21 AM, naseem Rafique wrote:

> Hi folks,
>
> I am working on an app in which I need to show three Tabs, on Logout I
> want to show remove these abs and on login I want to show these tabs with
> new user's data who just logged in.
>  For this I used
>
> *On Logout:*
> *
> *
> this.tabHost.clearAllTabs();
>
> *On Login:*
> *
> *
> *   *intent = new Intent(this, Profile.class);
> spec =
> mTabHost.newTabSpec("Profile").setIndicator("Profile",res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
> mTabHost.addTab(spec);
>
> But it doesn't show my contents of new user, but show old contents.
>
> Any one, any thoughts.
>
> Thanks,
> Sam.
>
>  --
> 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] Re: Is JDK1.7 supported now?

2012-06-05 Thread al
My first thought was: there are probably new bytecodes in java 7 class 
files. In that case the transformation to dex files has to be changed and 
it's not clear if that's possible in a backward compatible way, i.e. 
without replacing the dalvik implementation on "all" devices, which is 
obviously not feasible.

A quick search lead me to 
http://www.yworks.com/de/products_yguard_about.html (sorry, German), where 
they say, only the version number in class files changed and a new 
instruction (invokedynamic) has been added. However they also say, 
invokedynamic is not used by current java implementations, only by dynamic 
languages like JRuby. In that case, it seems possible to work around this 
issue: just write a small tool to change the version number of the class 
files to the previous number and add that tool as an additional build step. 

This way, you know when you get your solution instead of waiting for 
Google. Google has no obligation to do what you want / when you want. They 
can decide for themselves what they do and when.

BTW: This might be an interesting hack for somebody with some spare time 


Am Montag, 4. Juni 2012 15:59:07 UTC+2 schrieb sblantipodi:
>
> I just tried, nothing has been fixed in months.
>
> Il giorno venerdì 1 giugno 2012 12:10:02 UTC+2, sblantipodi ha scritto:
>>
>> As title,
>> some months ago I had some problem signing my android apps using java 1.7 
>> that forced me to
>> switch back to jdk 1.6.
>>
>> Is this problem fixed?
>>
>

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

Re: [android-developers] Problem refreshing a fragment edittext view from a dialogFragment after rotation

2012-06-05 Thread al
Of course I'm guessing, but I think you should change the way you transfer 
the new date/time value to the text widget.

In the activity, say A1, you create the dialog and give it a reference to 
the text field of A1. When the device is rotated, the activity is recreated 
(=> A2), but the dialog is not (due to this.setRetainInstance(true);). I.e. 
the dialog still references the text field of A1, but you see the activity 
A2. That's probably the cause of the observed behavior. As far as I 
understand it, the way to go is to add a "setDateTimeField()" method to the 
activity and to replace the code in the onClick method of the dialog with 
something like 
"((MyActivityClass)getActivity()).setDateTimeField(curDateTime()). 
GetActivity() will return the current/correct activity since the dialog 
will be attached to new activity as part of the configuration change.

-- 
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] TabHost Problem

2012-06-05 Thread naseem Rafique
Hi folks,

I am working on an app in which I need to show three Tabs, on Logout I want
to show remove these abs and on login I want to show these tabs with new
user's data who just logged in.
For this I used

*On Logout:*
*
*
this.tabHost.clearAllTabs();

*On Login:*
*
*
*   *intent = new Intent(this, Profile.class);
spec =
mTabHost.newTabSpec("Profile").setIndicator("Profile",res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
mTabHost.addTab(spec);

But it doesn't show my contents of new user, but show old contents.

Any one, any thoughts.

Thanks,
Sam.

-- 
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] TabHost Problem

2012-06-05 Thread naseem Rafique
Hi folks,

I am working on an app in which I need to show three Tabs, on Logout I want
to show remove these abs and on login I want to show these tabs with new
user's data who just logged in.
For this I used

*On Logout:*
*
*
this.tabHost.clearAllTabs();

*On Login:*
*
*
*   *intent = new Intent(this, Profile.class);
   spec =
mTabHost.newTabSpec("Profile").setIndicator("Profile",res.getDrawable(R.drawable.ic_launcher)).setContent(intent);
   mTabHost.addTab(spec);

But it doesn't show my contents of new user, but show old contents.

Any one, any thoughts.

Thanks,
Sam.

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

Re: [android-developers] apk installing time error (cmd)

2012-06-05 Thread krishna kumar
apk size =3.5mb

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

2012-06-05 Thread Greenhand
As for the broadcast solution, can an Activity receive a broadcast
while it is rotating? Will all the broadcasts sent to it be received?

About the Messenger, is it possible to create a Messenger from a
Service to an Activity? In the Messenger tutorial, it says "it sends a
Message to the service that includes the client's Messenger in the
replyTo parameter of the send() method." It seems that the Service can
only "reply to" a message from the Activity. Can a Service initiate a
message and send to the Activity?

On 6月4日, 下午11時35分, Mark Murphy  wrote:
> On Mon, Jun 4, 2012 at 11:30 AM, Greenhand  wrote:
> > If I use startService(), can theActivitycommunicate with theService
> > and vice versa?
>
> startService() uses a variation of the command pattern: you
> "communicate" with theservicevia extras on the Intent passed to
> startService() as the command. Theservicecan then use a Messenger,
> or broadcasts, or local broadcasts, or a PendingIntent, etc. to
> trigger UI updates based upon work that was completed.
>
> You are welcome to use both binding and startService(), if you wish,
> in which case the latter is simply to give the user more direct
> control over the start/stop of theserviceitself, with the binding
> for othercommunication.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in DC:http://marakana.com/training/android/
>
>

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


Re: [android-developers] apk installing time error (cmd)

2012-06-05 Thread rambabu mareedu
check your .apk size and are you using any images or audio or video files
which are having huge memory.

On Tue, Jun 5, 2012 at 5:05 PM, krishna kumar wrote:

> eocd not found not zip
> apk installing time error
>
>
> please help me.
>
> --
> 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




-- 
Regards
Rambabu Mareedu
9581411199

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

Re: [android-developers] Writing in C++ code ?

2012-06-05 Thread New Developer

Firstly, thanks to all who responded

If I write it as an  html5 or web app
Does this not mean that it   *HAS*   to be connected to the Net.  and 
thus either a WiFi access or 3G access  *MUST*  be available  ?


Or is there someway to be a web app that runs on myself 127.0.0.1  but I 
don't think the tablet's run a web server
I had seen about phone gap and html5 but this above issue is a concern 
for me.


I have also looked at things like MadeWithMarmalade  (not that 
impressed) and XmlVM  (has potential)


Thanks again

On 06/04/2012 09:09 AM, Michael Leung wrote:


But I do not think  even you write your app in c++ which can work in 
other platform. There are some Framework claimed they can make compile 
the code into various os. For example,

http://xamarin.com/monotouch
But I think the best way is to write a html5  app
Regards,
Michael
http://www.itblogs.info
http://www.michaelleumg.info

2012-6-4 上午4:02 於 "New Developer" > 寫道:


By default I know that android apps are developed using Java  and
Eclipse does this well

Is there anyway we could write our code in C++ and yet
still have it  "packaged" and create an apk that runs ?

Trying to find the best method to create multi platform
applications that run on Android, iOS, Windows, OS X

Any thoughts ?

Thanks in advance
-- 
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 


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

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread Mark Murphy
On Tue, Jun 5, 2012 at 7:27 AM, Kostya Vasilyev  wrote:
>> If there is more than one
>> activity that handles a given Intent triggered by the Linkify link,
>> they go with the default.
>
> Do you know if this applies to long-pressing a link?
>
> In the web browser or WebView, where you normally get things like "Open /
> Open in new tab / Copy link"?

I am not aware that their changes affect WebView. If I find out
otherwise, I'll shout.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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] apk installing time error (cmd)

2012-06-05 Thread krishna kumar
eocd not found not zip
apk installing time error


please help me.

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

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread krishna kumar
eocd not found not zip
apk installing time error


please help me.

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

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread Kostya Vasilyev
2012/6/5 Mark Murphy 

> On Mon, Jun 4, 2012 at 6:32 PM, Kostya Vasilyev 
> wrote:
> > Or it might be a missing mimeType attribute in the intent filter (since
> the
> > uri uses the content scheme).
>
> Having consulted with some HTCians, the Linkify change they made
> simply blocks the appearance of a chooser.


Yes, that's my impression of the patent too (IANAL).


> If there is more than one
> activity that handles a given Intent triggered by the Linkify link,
> they go with the default.
>

Do you know if this applies to long-pressing a link?

In the web browser or WebView, where you normally get things like "Open /
Open in new tab / Copy link"?

-- K

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

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread Mark Murphy
On Mon, Jun 4, 2012 at 6:32 PM, Kostya Vasilyev  wrote:
> Or it might be a missing mimeType attribute in the intent filter (since the
> uri uses the content scheme).

Having consulted with some HTCians, the Linkify change they made
simply blocks the appearance of a chooser. If there is more than one
activity that handles a given Intent triggered by the Linkify link,
they go with the default.

So, while it's possible the HTC Linkify somehow fits, it seems less
likely, unless there's a bug in their implementation. Hence, I agree
that the  may be the problem. I'd first try:



which more accurately describes your scenario (right now, you claim to
handle everything in the content:// scheme, and *also* claiming to
handle everything with your specified host). If that does not help,
add in android:mimeType="..." to the one  element, replacing ...
with the appropriate value for whatever this activity handles. For
example, if you are linking to HTML pages, use
android:mimeType="text/html".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] Is it possible to get the DNS server setting from app?

2012-06-05 Thread Michael Leung
Thanks!

Regards,
Michael
http://www.itblogs.info
http://www.michaelleumg.info
 2012-6-5 下午4:17 於 "David Olsson"  寫道:

> 3G? Wifi? Did you try google?
>
> I googled for like 1 minute,
> http://stackoverflow.com/questions/249916/how-do-i-find-the-dns-servers-in-android-from-a-java-program
> https://groups.google.com/forum/?fromgroups#!topic/android-ndk/6eogJcaOPOg
>
>
>
>
> On Tue, Jun 5, 2012 at 7:43 AM, Michael Leung wrote:
>
>>
>> Hi all,
>>   Is it possible to get the DNS server setting from app? I think that is
>> possible to find out by reading the config in a rooted android.
>> But how 's about the normal android phone?
>>  --
>> Regards,
>> Michael Leung
>> http://www.itblogs.info - My IT Blog
>> http://diary.skynovel.info - My Blog
>> http://www.michaelleung.info - My Homepage
>>
>>  --
>> 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

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

Re: [android-developers] Fails to delete row from "content://call_log/calls"

2012-06-05 Thread pushpa nc
Did you observe the logcat? If you can show your log cat messages we can
try.

On Tue, Jun 5, 2012 at 1:43 PM, Put_tiMe  wrote:

> The ContentResolver.delete call fails, i.e. returns zero rows deleted,
> even though the row exists and the parameters passed are correct.
>
> Any idea how to debug/fix this?
>
> Thanks
>
> --
> 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] Re: about Bundle and Intent?

2012-06-05 Thread shengJie
problem Solved !!!tks for great answer~

shengJie於 2012年6月4日星期一UTC+8下午5時33分28秒寫道:
>
> Hello~
> i got one question in Intent, I get four Activity A,B,C,D just like 
> picture
> Activity Bundle sequence :A(Fill in data)=>E(get data)==>B(Fill in 
> data)=>E(get 
> data)==>C(Fill in data)=>E(get data)==>D(Fill in data)=>E(get data)==>
> And Activity ABCD Composed by simple Components  like Button and EditText 
> Activity A,B,C,D let user to edit data, then all Inent and Bundle data to 
> ActivityE ,
> how could i Bundle all data into E ?
> and how could i determine intent type(A or B or C or D)in E Activity?
> or what method can i use to determine current intent and set the data?
>
>
> tks for reply!!!
>

shengJie於 2012年6月4日星期一UTC+8下午5時33分28秒寫道:
>
> Hello~
> i got one question in Intent, I get four Activity A,B,C,D just like 
> picture
> Activity Bundle sequence :A(Fill in data)=>E(get data)==>B(Fill in 
> data)=>E(get 
> data)==>C(Fill in data)=>E(get data)==>D(Fill in data)=>E(get data)==>
> And Activity ABCD Composed by simple Components  like Button and EditText 
> Activity A,B,C,D let user to edit data, then all Inent and Bundle data to 
> ActivityE ,
> how could i Bundle all data into E ?
> and how could i determine intent type(A or B or C or D)in E Activity?
> or what method can i use to determine current intent and set the data?
>
>
> tks for reply!!!
>

shengJie於 2012年6月4日星期一UTC+8下午5時33分28秒寫道:
>
> Hello~
> i got one question in Intent, I get four Activity A,B,C,D just like 
> picture
> Activity Bundle sequence :A(Fill in data)=>E(get data)==>B(Fill in 
> data)=>E(get 
> data)==>C(Fill in data)=>E(get data)==>D(Fill in data)=>E(get data)==>
> And Activity ABCD Composed by simple Components  like Button and EditText 
> Activity A,B,C,D let user to edit data, then all Inent and Bundle data to 
> ActivityE ,
> how could i Bundle all data into E ?
> and how could i determine intent type(A or B or C or D)in E Activity?
> or what method can i use to determine current intent and set the data?
>
>
> tks for reply!!!
>

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

Re: [android-developers] about Bundle and Intent?

2012-06-05 Thread shengJie

>
> tks a lot!!! 

-- 
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] Fails to delete row from "content://call_log/calls"

2012-06-05 Thread Put_tiMe
The ContentResolver.delete call fails, i.e. returns zero rows deleted, even 
though the row exists and the parameters passed are correct.

Any idea how to debug/fix this?

Thanks

-- 
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: Sending Custom Broadcast received on GB but not on HC or ICS

2012-06-05 Thread emfl
Yes, I do want to launch the app even if it is stopped and setting the
intent flag as you propose does the job, thanks.
May be this would deserve to be mentioned in the sendBroadcast API
reference...
Eric

On Jun 5, 6:41 am, Dianne Hackborn  wrote:
> The answer there is probably incomplete for this question.  If you know for
> sure that you want to launch the app even if it is currently stopped, you
> can use 
> this:http://developer.android.com/reference/android/content/Intent.html#FL...
>
>
>
>
>
>
>
>
>
> On Mon, Jun 4, 2012 at 1:48 PM, Mark Murphy  wrote:
> > On Mon, Jun 4, 2012 at 1:07 PM, emfl  wrote:
> > > The following code works fine on GB, but not on HC or ICS (using
> > > android simulator in all 3 cases)
> > > BcastTestAppActivity and Receiver are running in separate
> > > applications.
>
> > Make sure you are not being caught by this:
>
> >http://stackoverflow.com/a/9955247/115145
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android Training in DC:http://marakana.com/training/android/
>
> > --
> > 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
>
> --
> 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


Re: [android-developers] Find path between 2 pairs of lat and long

2012-06-05 Thread Mini agrawal
so can you please just share that link.

Thanks

On Mon, Jun 4, 2012 at 7:14 PM, Fred Niggle wrote:

> I can you there IS a tutorial about this - just google it.
>
>
> On 4 June 2012 14:35, Mini agrawal  wrote:
>
>> I didn't find any help on Google .
>>
>> On Mon, Jun 4, 2012 at 6:33 PM, Fred Niggle 
>> wrote:
>>
>>> What did a google search  tell you?
>>>
>>> On 2 June 2012 13:19, ala hammad <3la2.7am...@gmail.com> wrote:
>>>
 Hi Guys ,
 i need to remove an contact or more from specific group via coding ..
 any one can help me ??



 thanks for your help ..

 --
 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
>>>
>>>
>>>
>>>
>>> --
>>> Magnetic Door Alarm 
>>> appis
>>>  now available in Google Play
>>>
>>>
>>> On 4 June 2012 12:45, Mini agrawal  wrote:
>>>
  HI,

 I have a 2 sets of latitude and longitude pairs. I want to find
 path between these 2 pairs of lat and long and then show it on Google map.
 How can I find the path for android?

 Thanks in advance !

 --
 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
>>>
>>>
>>>
>>>
>>> --
>>> Magnetic Door Alarm 
>>> appis
>>>  now available in Google Play
>>>
>>> --
>>> 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
>
>
>
>
> --
> Magnetic Door Alarm 
> appis
>  now available in Google Play
>
> --
> 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