[android-developers] Re: Prebuilt C libraries?

2011-08-15 Thread FBondarenko
when you're looking for open source libs, why not compile them
yourself?
which libraries do you need?

On 15 Aug., 03:11, Mark Ayers markthe...@gmail.com wrote:
 Are there any open source C libraries that are available prebuilt for
 Android? If not, can someone help me figure out how to build libcairo for
 android?

 https://github.com/anoek/android-cairo/

-- 
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] Character recognition in android?

2011-08-15 Thread νιяιη¢нソ
Hello everyone,
i m in an android project...and what it needs to do is to recognize the text
content from a picture taken from the phone based cam n convert it to text
formathow could i do this ..
.guys please help me out .
-- 
With Regards,
Virinchy

-- 
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: Prebuilt C libraries?

2011-08-15 Thread Mark Ayers
On Aug 14, 2011 11:31 PM, FBondarenko f.bondare...@web.de wrote:

 when you're looking for open source libs, why not compile them
 yourself?
Because automake doesn't work too well on my Windows development box, and
automake and friends are pretty much a requirement for building most open
source libs.

 which libraries do you need?
libcario is the big one, along with pixman. Other than those, anything that
might help in building a graphics/drawing 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] Re: Prebuilt C libraries?

2011-08-15 Thread Nikolay Elenkov
On Mon, Aug 15, 2011 at 4:20 PM, Mark Ayers markthe...@gmail.com wrote:

 On Aug 14, 2011 11:31 PM, FBondarenko f.bondare...@web.de wrote:

 when you're looking for open source libs, why not compile them
 yourself?
 Because automake doesn't work too well on my Windows development box, and
 automake and friends are pretty much a requirement for building most open
 source libs.

Make your life easier and get a Linux box :) Automake and friends don't
play too nice with the NDK, but it's possible to build libraries that use
them. You should ask on the NDK list if you have specific problems.


 which libraries do you need?
 libcario is the big one, along with pixman. Other than those, anything that
 might help in building a graphics/drawing app.

I don't know what you are trying to build, but the android graphics package
should have most of the things you can do with Cairo. Unless you are porting
code that already uses Cairo, you should have a look.

-- 
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: Prebuilt C libraries?

2011-08-15 Thread Mark Ayers
I have 3 linux boxes, but my dev box is Windows because things stop working
less ofter and because drivers are easier to come by. I'm not porting code,
but I am looking to the GIMP source when I get stuck, and having libcairo
available would make things easier.
On Aug 15, 2011 12:31 AM, Nikolay Elenkov nikolay.elen...@gmail.com
wrote:
 On Mon, Aug 15, 2011 at 4:20 PM, Mark Ayers markthe...@gmail.com wrote:

 On Aug 14, 2011 11:31 PM, FBondarenko f.bondare...@web.de wrote:

 when you're looking for open source libs, why not compile them
 yourself?
 Because automake doesn't work too well on my Windows development box, and
 automake and friends are pretty much a requirement for building most open
 source libs.

 Make your life easier and get a Linux box :) Automake and friends don't
 play too nice with the NDK, but it's possible to build libraries that use
 them. You should ask on the NDK list if you have specific problems.


 which libraries do you need?
 libcario is the big one, along with pixman. Other than those, anything
that
 might help in building a graphics/drawing app.

 I don't know what you are trying to build, but the android graphics
package
 should have most of the things you can do with Cairo. Unless you are
porting
 code that already uses Cairo, you should have a look.

 --
 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: Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Dianne Hackborn
Yes I would say stronger than that -- density goes with drawables, screen
size goes with layouts.  If you are doing screen size with drawables or
density with layouts, it is 99% likely you are doing something wrong.

On Sun, Aug 14, 2011 at 11:27 AM, davemac davemac...@gmail.com wrote:

 You should keep the following in mind: a larger screen does not
 necessarily mean a higher pixel density screen. And that's the big
 reason why you can't just consider screen size and not screen density.
 I don't think one exists, but in theory you could have an xlarge
 screen device with a low pixel density (ldpi). You should expect some
 normal size screens to have mdpi and others to have hdpi densities.
 Same with large and xlarge screens (both mdpi and ldpi).

 I would say that *in general* you would use ldpi, mdpi and hdpi for
 drawables (so your images appear with the right amount of detail for
 that device's screen density), and small, large and xlarge for layouts
 (where you'll probably have less stuff, including images, on small
 screens versus the larger screens).

 Hope this helps.

 - dave
 http://www.androidbook.com/proandroid3

 On Aug 14, 1:58 pm, Droid rod...@gmail.com wrote:
  So on an hdpi screen the icons will be smaller.
  So my apps made on a nexus and emulator will
  not display as I believe they will. Rather all my images
  will be smaller whilst text boxes etc will be the same
  (unless I am using dip not sp).
  Then drawable-large folder is for large screens with hdpi or
  mdpi? And I am not sure whether photoshop's dpi setting
  does anything than change the size of the image.
 
  Clearly I need to go to school about all this because I come
  from a programming background. At first site I need larger images
  for larger dpi screens. Hope I can find out how much larger and
  which folder to put them in.
 
  On Aug 14, 5:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 
 
 
 
 
 
 
   On Sun, Aug 14, 2011 at 4:57 AM, Droid rod...@gmail.com wrote:
I find too many possible image folders confusing and it does not seem
to make any difference if I make an image in Photoshop as 70 dpi, 150
dpi or whatever - it just makes a bigger or smaller image.
 
   Of course. That's the point. On a high density device, you use a
   high-pixel-count image to result in something that renders the right
   size but has more detail. On a low density device, you use a
   low-pixel-count image to result in something that renders the right
   size (i.e., not blown up huge).
 
So, can I use just drawable-small, large, xlarge and DROP all my
 hdpi,
mdpi and ldpi folders
 
   Not really.
 
 (which confuse me).
 
   Since screen density is going to be fairly important in all GUI
   programming going forward, perhaps you should consider learning more
   about screen density, rather than thinking you can ignore the problem.
 
   For example, I am typing this on a notebook with a 15.6 notebook with
   a 1080p (1920x108) display. This is a significantly higher screen
   density than typical notebooks. As a result, icons, text, etc. tend to
   come out smaller, since few programmers or Web designers think about
   screen density. And, sometimes Web designers even actively prevent
   solutions (e.g., can't increase font size using a browser because
   they're doing something screwy that just doesn't respond).
 
If I can get away with this, life would be so much easier.
 
   Not really.
 
   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
   _Android Programming Tutorials_ Version 3.9 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




-- 
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] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Mark Ayers
Methinks at least 5% of your userbase are pirates.
On Aug 14, 2011 6:04 PM, Doug beafd...@gmail.com wrote:
 If you ever had any doubt in your mind that the market console's
 active install % metric was accurate in any way, allow me to remove
 all that doubt from your mind!

 One prominent paid app I work on has achieved 100% active installs.
 What's funnier is that the number ratio reported is 179686 total to
 187915 active (so, actually 105%?). Unbelievable. :-)

 Doug

 --
 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: Access user dictionary

2011-08-15 Thread Dianne Hackborn
UserDictionary is the content provider, Words is a table in that content
provider.  It is entirely possible for the content provider to add other
tables in the future.

On Sun, Aug 14, 2011 at 10:30 AM, Peter Eastman peter.east...@gmail.comwrote:

 I figured it out.  Instead of UserDictionary.CONTENT_URI, you need to
 use UserDictionary.Words.CONTENT_URI.  Which makes me wonder why the
 UserDictionary class exists at all, since the only genuine piece of
 information it defines (the URI) isn't actually directly usable.

 Peter

 --
 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] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Mark Ayers
Well, either that or a lot of people are installing it on more than one
device.
On Aug 14, 2011 6:04 PM, Doug beafd...@gmail.com wrote:
 If you ever had any doubt in your mind that the market console's
 active install % metric was accurate in any way, allow me to remove
 all that doubt from your mind!

 One prominent paid app I work on has achieved 100% active installs.
 What's funnier is that the number ratio reported is 179686 total to
 187915 active (so, actually 105%?). Unbelievable. :-)

 Doug

 --
 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] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Nikolay Elenkov
On Mon, Aug 15, 2011 at 5:02 PM, Mark Ayers markthe...@gmail.com wrote:
 Methinks at least 5% of your userbase are pirates.


They might as well be, but that would not be reflected in the
developer console.
It tracks installs from the Market only. BTW, active and total
installs seem to be
updated at different times, that's probably the reason an incorrect
install ratio is
displayed.

-- 
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 set Animation on Display Settings menu programmatically?

2011-08-15 Thread Dianne Hackborn
This is not intended to be something applications change.

On Sat, Aug 13, 2011 at 10:06 PM, s3t141 setiawan.dharmaput...@gmail.comwrote:

 Hi,

 I get that changing Animation on Display Settings, change below value:

 float TransitionAnimationScale = System.getFloat(cResolver,
 System.TRANSITION_ANIMATION_SCALE);
 float WindowAnimationScale = System.getFloat(cResolver,
 System.WINDOW_ANIMATION_SCALE);

 but when i set them using System.putFloat(cResolver,
 System.TRANSITION_ANIMATION_SCALE) and System.puFloat(cResolver,
 System.WINDOW_ANIMATION_SCALE) they don't change the Animation on
 Display Settings...

 any advise pleaseee...

 Thanks and Regards,
 Setiawan

 --
 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] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Nikolay Elenkov
On Mon, Aug 15, 2011 at 5:06 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Mon, Aug 15, 2011 at 5:02 PM, Mark Ayers markthe...@gmail.com wrote:
 Methinks at least 5% of your userbase are pirates.


 They might as well be, but that would not be reflected in the
 developer console.
 It tracks installs from the Market only. BTW, active and total
 installs seem to be
 updated at different times, that's probably the reason an incorrect
 install ratio is
 displayed.


And someday I might actually figure out Gmail's
line-breaking algorithm

-- 
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] OutputStream of ServerSocket can't read data

2011-08-15 Thread Radeg
Hello,

I have next problem. I write client-server application, which should
be work in real device.
I have ClientActivity and ServerService.
Socket for client 
String localAdress = getLocalIpAddress();
Socket s = new Socket(localAdress, );
OutputStream out = s.getOutputStream();
PrintWriter output = new PrintWriter(out);
output.println(dk);
BufferedReader input = new BufferedReader(new
InputStreamReader(s.getInputStream()));
String st = input.readLine();
statusView.setText(st);
s.close();
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


ServerSocket for ServerService 
try {
ServerSocket ss = new ServerSocket();
boolean end = false;
while(!end){
Socket s = ss.accept();
SocketPermission perm = new 
SocketPermission(localhost,
connect, listen, accept, resolve);
BufferedReader input = new BufferedReader(new
InputStreamReader(s.getInputStream()));
PrintWriter output = new 
PrintWriter(s.getOutputStream(),true); //
Autoflush
String st = input.readLine();
Log.d(Tcp Example, From client: +st);
output.println(Pray to cyber god);
if ( st.equals(dk) ){
end = true;
s.close();
}
}
ss.close();
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


I send data from Client. input object refresh after it, but call
readLine do not have affect. I test LocalSockets, but got the same
result. What do you think about it? I think about permissions. But i
have not SecurityEx.

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] Re: How to set Animation on Display Settings menu programmatically?

2011-08-15 Thread Setiawan Dharmaputera
Owh, I see. So it's a one way then. that's too bad. But, thanks for the
reply.

Thanks and Regards,
Setiawan

-- 
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] getting stuck in database

2011-08-15 Thread abhijit chakra
I am doing a project based on  SQLIte,I have there field in the UI,My
work is put data in the three fields and retrive it and display it
into the screen but...i tried it many time but i wont work please give
the procedure how to do it..
Abhijit Chakra
CamexInfomatix pvt ltd...

-- 
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: Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Mark Ayers
Larger screens tend to have lower pixel density, so drawable-large would
trigger on a tablet, but also mdpi or ldpi.
On Aug 14, 2011 10:58 AM, Droid rod...@gmail.com wrote:
 So on an hdpi screen the icons will be smaller.
 So my apps made on a nexus and emulator will
 not display as I believe they will. Rather all my images
 will be smaller whilst text boxes etc will be the same
 (unless I am using dip not sp).
 Then drawable-large folder is for large screens with hdpi or
 mdpi? And I am not sure whether photoshop's dpi setting
 does anything than change the size of the image.

 Clearly I need to go to school about all this because I come
 from a programming background. At first site I need larger images
 for larger dpi screens. Hope I can find out how much larger and
 which folder to put them in.







 On Aug 14, 5:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Aug 14, 2011 at 4:57 AM, Droid rod...@gmail.com wrote:
  I find too many possible image folders confusing and it does not seem
  to make any difference if I make an image in Photoshop as 70 dpi, 150
  dpi or whatever - it just makes a bigger or smaller image.

 Of course. That's the point. On a high density device, you use a
 high-pixel-count image to result in something that renders the right
 size but has more detail. On a low density device, you use a
 low-pixel-count image to result in something that renders the right
 size (i.e., not blown up huge).

  So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
  mdpi and ldpi folders

 Not really.

   (which confuse me).

 Since screen density is going to be fairly important in all GUI
 programming going forward, perhaps you should consider learning more
 about screen density, rather than thinking you can ignore the problem.

 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density. And, sometimes Web designers even actively prevent
 solutions (e.g., can't increase font size using a browser because
 they're doing something screwy that just doesn't respond).

  If I can get away with this, life would be so much easier.

 Not really.

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

 _Android Programming Tutorials_ Version 3.9 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] Character recognition in android?

2011-08-15 Thread Daniel Drozdzewski
It is not a trivial task for a computer, let alone a mobile device.
You are probably looking into neural networks, and there should be
some libraries in both Java and C.

you will have to make as many simplifying assumptions for your problem
as possible, otherwise this is going to be too big to shoehorn into a
mobile app.

Just to show you, what you up against:

http://www.google.co.uk/url?sa=tsource=webcd=3ved=0CDQQFjACurl=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.89.9539%26rep%3Drep1%26type%3Dpdfrct=jq=ocr%20algorithmsei=RtxITt3BFYeJhQfx7aSKBAusg=AFQjCNE7fjNOdmhbseLdLcG1PsUKWvMyNAcad=rja


Daniel





2011/8/15 νιяιη¢нソ joinvir...@gmail.com:

 Hello everyone,
 i m in an android project...and what it needs to do is to recognize the text
 content from a picture taken from the phone based cam n convert it to text
 formathow could i do this ..
 .guys please help me out .
 --
 With Regards,
 Virinchy

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



-- 
Daniel Drozdzewski

-- 
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] back home key in api

2011-08-15 Thread mark2011
Dear All :

I want to set the back  home function in my API.

I use finish or system.exit(0) to return my last page. How do I go
back to my home page?

Thanks.

BR,
Mark

-- 
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] Segmentation fault when compiling modules

2011-08-15 Thread PPCS
Hi All,

I am trying to cross-compile kernel/modules of gingerbread for arm on
64-bit Ubuntu (11.04). I am getting segmentation fault.

Could you please point what mistake I am doing?

export ARCH=arm
export TOOLCHAIN=/data/Source/Android/gingerbread/prebuilt/linux-x86/
toolchain/arm-eabi-4.3.1/bin
export PATH=$TOOLCHAIN:$PATH

[/data/Source/Android/gingerbread/kernel]  make modules
  CHK include/linux/version.h
  CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALLscripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 2400 modules
Segmentation fault
make[1]: *** [__modpost] Error 139
make: *** [modules] Error 2

The same is the case when I am building the kernel.

+ ppcs

-- 
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] back home key in api

2011-08-15 Thread Mark Murphy
On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com wrote:
    I want to set the back  home function in my API.

That sentence is unclear.

 I use finish or system.exit(0) to return my last page.

Do not use System.exit(0) in any production-grade Android application.

 How do I go back to my home page?

Call startActivity() with an Intent identifying your home page,
perhaps with appropriate flags to control the stack (e.g.,
FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

Android App Developer Books: http://commonsware.com/books

-- 
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] Segmentation fault when compiling modules

2011-08-15 Thread Mark Murphy
Step #1: Visit http://source.android.com

Step #2: Click on the Community tab

Step #3: Find a more relevant list

Step #4: Ask your question there

On Mon, Aug 15, 2011 at 6:10 AM, PPCS mailtored...@gmail.com wrote:
 Hi All,

 I am trying to cross-compile kernel/modules of gingerbread for arm on
 64-bit Ubuntu (11.04). I am getting segmentation fault.

 Could you please point what mistake I am doing?

 export ARCH=arm
 export TOOLCHAIN=/data/Source/Android/gingerbread/prebuilt/linux-x86/
 toolchain/arm-eabi-4.3.1/bin
 export PATH=$TOOLCHAIN:$PATH

 [/data/Source/Android/gingerbread/kernel]  make modules
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
 make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 2400 modules
 Segmentation fault
 make[1]: *** [__modpost] Error 139
 make: *** [modules] Error 2

 The same is the case when I am building the kernel.

 + ppcs

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




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

Android App Developer Books: http://commonsware.com/books

-- 
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] Segmentation fault when compiling modules

2011-08-15 Thread Daniel Drozdzewski
On 15 August 2011 11:10, PPCS mailtored...@gmail.com wrote:
 Hi All,

 I am trying to cross-compile kernel/modules of gingerbread for arm on
 64-bit Ubuntu (11.04). I am getting segmentation fault.

 Could you please point what mistake I am doing?

Asking wrong people... perhaps?


Have a look at this website:
http://www.omappedia.org/wiki/Android_Getting_Started

...and your questions direct to the following group:
http://groups.google.com/group/android-platform


Just as a pointer, you are trying to compile 32bit code on 64 bit
machine and that needs few workarounds.

Daniel

-- 
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: Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Vance Turnewitsch
Yah, I've noticed different update lags with the install numbers.

But who cares if the % is wrong with that many installs! What i would
give to get that many downloads. :)

On Aug 15, 4:06 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Mon, Aug 15, 2011 at 5:02 PM, Mark Ayers markthe...@gmail.com wrote:
  Methinks at least 5% of your userbase are pirates.

 They might as well be, but that would not be reflected in the
 developer console.
 It tracks installs from the Market only. BTW, active and total
 installs seem to be
 updated at different times, that's probably the reason an incorrect
 install ratio is
 displayed.

-- 
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: OutputStream of ServerSocket can't read data

2011-08-15 Thread Radeg
Ok. Problem resolved. I should call .flush() method;

On Aug 15, 12:17 pm, Radeg radegas...@gmail.com wrote:
 Hello,

 I have next problem. I write client-server application, which should
 be work in real device.
 I have ClientActivity and ServerService.
 Socket for client 
                 String localAdress = getLocalIpAddress();
                 Socket s = new Socket(localAdress, );
                 OutputStream out = s.getOutputStream();
                 PrintWriter output = new PrintWriter(out);
                 output.println(dk);
                 BufferedReader input = new BufferedReader(new
 InputStreamReader(s.getInputStream()));
                 String st = input.readLine();
                 statusView.setText(st);
                 s.close();
         } catch (UnknownHostException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
         } catch (IOException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
         }
 

 ServerSocket for ServerService 
 try {
                         ServerSocket ss = new ServerSocket();
                         boolean end = false;
                         while(!end){
                                 Socket s = ss.accept();
                                 SocketPermission perm = new 
 SocketPermission(localhost,
 connect, listen, accept, resolve);
                                 BufferedReader input = new BufferedReader(new
 InputStreamReader(s.getInputStream()));
                                 PrintWriter output = new 
 PrintWriter(s.getOutputStream(),true); //
 Autoflush
                                 String st = input.readLine();
                                 Log.d(Tcp Example, From client: +st);
                                 output.println(Pray to cyber god);
                                 if ( st.equals(dk) ){
                                         end = true;
                                         s.close();
                                 }
                         }
                         ss.close();
                 } catch (UnknownHostException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
                 } catch (IOException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
                 }
 

 I send data from Client. input object refresh after it, but call
 readLine do not have affect. I test LocalSockets, but got the same
 result. What do you think about it? I think about permissions. But i
 have not SecurityEx.

 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: Cross Platform Framework

2011-08-15 Thread Vance Turnewitsch
Concerning multiple screens, a HTML/JavaScript based framework like
PhoneGap or Titanium SDK can probably support any screen size. Both
frameworks are rather slow on android though, and Titanium Studio's
build process is miserable to work with. I dont know much about
Corona.

For more info, I'd suggest doing a Google search or look on
StackOverflow. There are plenty of articles and discussions on this
topic.

Good luck,
Vance

On Aug 14, 12:37 pm, ndiiie 90 rnd...@gmail.com wrote:
 Hi guys,

 what is the best cross platform framework out there?
 is there any name that can be recommended? such as corona, phonegap, etc
 especially the one that can handle multiple screen in android

 Thanks,

 Rendy

-- 
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] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Greg Donald
On Sun, Aug 14, 2011 at 11:41 AM, Mark Murphy mmur...@commonsware.com wrote:
 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density.

Or the rare 1920x108 display for that matter.


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


[android-developers] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
Hello,
I want to show a notification evey x days(the user will define this
value). For that i created a class that extends a BroadCastReceiver
and the main class the launch this receiver:
public class OnAlarmReceiver extends BroadcastReceiver{
@Override
 public void onReceive(Context context, Intent intent) {


String ns = Context.NOTIFICATION_SERVICE;
NotificationManager mNotificationManager = (NotificationManager)
context.getSystemService(ns);

int icon = R.drawable.icon;
CharSequence tickerText = Votre vidange approche;
long when = System.currentTimeMillis();

Notification notification = new Notification(icon, tickerText,
when);


CharSequence contentTitle = Notification;
CharSequence contentText = Vérifier votre kilométrage;
Intent notificationIntent = new Intent(context, Acceuil.class);
PendingIntent contentIntent = 
PendingIntent.getActivity(context, 0,
notificationIntent, 0);

notification.setLatestEventInfo(context, contentTitle, 
contentText,
contentIntent);

final int HELLO_ID = 1;

mNotificationManager.notify(HELLO_ID, notification);
 }

}

And the function in the other main class to launch it:
public void repeating() {
AlarmManager
mgr=(AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
Intent i=new Intent(context, OnAlarmReceiver.class);
PendingIntent pi=PendingIntent.getBroadcast(context, 0, i, 0);
mgr.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
SystemClock.elapsedRealtime()+ 10 * 1000, 180, pi);

}

I never had a notification in my phone. Why?
Thank you very much 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


Re: [android-developers] Fwd: imageview displaying

2011-08-15 Thread arun kumar
if i use circle image (background image) as nine patch can my problem will
be solved...

-- 
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] Searching for a String Within a ListView

2011-08-15 Thread usafrmajor
I currently have an EdittText box and this code for filtering a listview:

  et.addTextChangedListener(new TextWatcher()
   {
public void afterTextChanged(Editable s) { }
public void beforeTextChanged(CharSequence s, int start, int count, 
int after) {}
public void onTextChanged(CharSequence s, int start, int before,  
int count) 
 { lv_movie_array.getFilter().filter(s); }
   });

Is there an equally simple way to search for a string within the list view 
items, not just from the first position like the filtering appears to do?  
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] Video recording not saving if i don't call finish

2011-08-15 Thread Amit Mangal
Hi Everyone,
I am creating app for video recording. i press a button to start video. when
i press the button to stop the recording it stops.
problem is after stopping if i play video immediately it plays recorded
video but when i check video file in sd card i see its size is 0KB.
when i call finish(); then it saves video but finish ends my activity .
any body having idea how to save video with out calling finish();

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] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Mark Ayers
There are ways to convince a computer that you have such a screen, I imagine
it'd look pretty funny though.


On Mon, Aug 15, 2011 at 4:36 AM, Greg Donald gdon...@gmail.com wrote:

 On Sun, Aug 14, 2011 at 11:41 AM, Mark Murphy mmur...@commonsware.com
 wrote:
  For example, I am typing this on a notebook with a 15.6 notebook with
  a 1080p (1920x108) display. This is a significantly higher screen
  density than typical notebooks. As a result, icons, text, etc. tend to
  come out smaller, since few programmers or Web designers think about
  screen density.

 Or the rare 1920x108 display for that matter.


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


-- 
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] back home key in api

2011-08-15 Thread Mark Ayers
To add another Mark to this conversation, I think he's asking for a way to
make something happen when the home button is pressed. I don't believe this
is possible.

On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com
 wrote:
 I want to set the back  home function in my API.

 That sentence is unclear.

  I use finish or system.exit(0) to return my last page.

 Do not use System.exit(0) in any production-grade Android application.

  How do I go back to my home page?

 Call startActivity() with an Intent identifying your home page,
 perhaps with appropriate flags to control the stack (e.g.,
 FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

 Android App Developer Books: http://commonsware.com/books

 --
 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] back home key in api

2011-08-15 Thread Appaholics
It is if the user makes your app the default homescreen. Then when the home
button is pressed your app will be displayed. However this is not a good
solution for whatever he is trying to do.

On Mon, Aug 15, 2011 at 6:32 PM, Mark Ayers markthe...@gmail.com wrote:

 To add another Mark to this conversation, I think he's asking for a way to
 make something happen when the home button is pressed. I don't believe this
 is possible.


 On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com
 wrote:
 I want to set the back  home function in my API.

 That sentence is unclear.

  I use finish or system.exit(0) to return my last page.

 Do not use System.exit(0) in any production-grade Android application.

  How do I go back to my home page?

 Call startActivity() with an Intent identifying your home page,
 perhaps with appropriate flags to control the stack (e.g.,
 FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

 Android App Developer Books: http://commonsware.com/books

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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

-- 
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] Schedule notification not triggered.

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 6:56 AM, Alaeddine Ghribi alaeddineghr...@gmail.com
 wrote:

 I never had a notification in my phone. Why?


You have  bug :-)

First, does your broadcast receiver actually get called? Have you tested a
smaller value (like having your broadcast sent after a few seconds to make
sure it's working)?

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

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

Re: [android-developers] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
The problem is there is just this values:
 
INTERVAL_DAYhttp://developer.android.com/reference/android/app/AlarmManager.html#INTERVAL_DAY
long
INTERVAL_FIFTEEN_MINUTEShttp://developer.android.com/reference/android/app/AlarmManager.html#INTERVAL_FIFTEEN_MINUTESAvailable
inexact recurrence intervals recognized by setInexactRepeating(int,
long, long, 
PendingIntent)http://developer.android.com/reference/android/app/AlarmManager.html#setInexactRepeating(int,
long, long, android.app.PendingIntent)  long
INTERVAL_HALF_DAYhttp://developer.android.com/reference/android/app/AlarmManager.html#INTERVAL_HALF_DAY
long
INTERVAL_HALF_HOURhttp://developer.android.com/reference/android/app/AlarmManager.html#INTERVAL_HALF_HOUR
long
INTERVAL_HOURhttp://developer.android.com/reference/android/app/AlarmManager.html#INTERVAL_HOUR
So the minimum value is half an hour(30 minutes)( but can i make 180/30
to have 1 minute ? :\ )And how i know that the brodcast receiver get called
?
Thank you for your help.

2011/8/15 TreKing treking...@gmail.com

 On Mon, Aug 15, 2011 at 6:56 AM, Alaeddine Ghribi 
 alaeddineghr...@gmail.com wrote:

 I never had a notification in my phone. Why?


 You have  bug :-)

 First, does your broadcast receiver actually get called? Have you tested a
 smaller value (like having your broadcast sent after a few seconds to make
 sure it's working)?


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

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

-- 
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: Tricky layout

2011-08-15 Thread darrinps
Thanks. This app is going to be used on a lot of devices of varying
sizes and in both landscape and portrait orientation so I need
something automatic and cannot really calculate exact X/Y
coordinates.

On Aug 13, 8:17 pm, Matt Clark mrclark32...@gmail.com wrote:
 If you use FrameLayout instead of LinearLayout or RelativeLayout
 you can use [android:layout_x=xx:px][android:layout_y=xx:px] to move
 your stuff around, you will also be able to layer things based on the order
 in the XML.

-- 
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] Schedule notification not triggered.

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 8:27 AM, Alaeddine Ghribi alaeddineghr...@gmail.com
 wrote:

 So the minimum value is half an hour(30 minutes)


I don't think AlarmManager is intended for prolonged periods of time (like
days).


 ( but can i make 180/30 to have 1 minute ? :\ )


I'm not sure what that means.


 And how i know that the brodcast receiver get called ?


Debug your code ? A LogCat message in the receiver at the very least.

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

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

[android-developers] Re: Tricky layout

2011-08-15 Thread darrinps
Got it!

I started thinking about using the FrameLayout as Matt mentioned but
as a wrapper to the table and just using it to house the backgroung,
then I added padding on the uppermost area that held the background I
wanted and voila! That did it.

On Aug 15, 8:47 am, darrinps darri...@gmail.com wrote:
 Thanks. This app is going to be used on a lot of devices of varying
 sizes and in both landscape and portrait orientation so I need
 something automatic and cannot really calculate exact X/Y
 coordinates.

 On Aug 13, 8:17 pm, Matt Clark mrclark32...@gmail.com wrote:







  If you use FrameLayout instead of LinearLayout or RelativeLayout
  you can use [android:layout_x=xx:px][android:layout_y=xx:px] to move
  your stuff around, you will also be able to layer things based on the order
  in the XML.

-- 
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 detect an invalid pin was given by the user when connecting to bluetooth

2011-08-15 Thread guich
seems that the bluetooth api is still in early development stage...
or, at least, not well documented.

guich

-- 
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: FM sporting

2011-08-15 Thread Chris
Which MTK6516 device is it?  Not all of them have FM radio support.

-- 
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] back home key in api

2011-08-15 Thread Mark Ayers
That was what I meant, it sounded like he wanted to use that for navigation
within an app.
On Aug 15, 2011 6:07 AM, Appaholics raghavs...@appaholics.in wrote:
 It is if the user makes your app the default homescreen. Then when the
home
 button is pressed your app will be displayed. However this is not a good
 solution for whatever he is trying to do.

 On Mon, Aug 15, 2011 at 6:32 PM, Mark Ayers markthe...@gmail.com wrote:

 To add another Mark to this conversation, I think he's asking for a way
to
 make something happen when the home button is pressed. I don't believe
this
 is possible.


 On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy mmur...@commonsware.com
wrote:

 On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com
 wrote:
  I want to set the back  home function in my API.

 That sentence is unclear.

  I use finish or system.exit(0) to return my last page.

 Do not use System.exit(0) in any production-grade Android application.

  How do I go back to my home page?

 Call startActivity() with an Intent identifying your home page,
 perhaps with appropriate flags to control the stack (e.g.,
 FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

 Android App Developer Books: http://commonsware.com/books

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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

 --
 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] Schedule notification not triggered.

2011-08-15 Thread Alaeddine Ghribi
2011/8/15 TreKing treking...@gmail.com

 On Mon, Aug 15, 2011 at 8:27 AM, Alaeddine Ghribi 
 alaeddineghr...@gmail.com wrote:

 So the minimum value is half an hour(30 minutes)


 I don't think AlarmManager is intended for prolonged periods of time (like
 days).

For now, i have to work it, then for the problem of a long period i'll find
a solution.



 ( but can i make 180/30 to have 1 minute ? :\ )


 I'm not sure what that means.

 INTERVAL_HALF_HOUR is a constant that has 180 as value. The idea was to
divise this value with 30 to have one minute.



 And how i know that the brodcast receiver get called ?


 Debug your code ? A LogCat message in the receiver at the very least.

I've put a simple Log at then end of repeating() function, that doesn't
shows, that's means that this function that trigger ALL doesn't executes.
I've called this func in OnCreate. Don't know what to do :\




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

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


-- 
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] Schedule notification not triggered.

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 9:27 AM, Alaeddine Ghribi alaeddineghr...@gmail.com
 wrote:

  And how i know that the brodcast receiver get called ?


 Debug your code ? A LogCat message in the receiver at the very least.

 I've put a simple Log at then end of repeating() function, that doesn't
 shows, that's means that this function that trigger ALL doesn't executes.
 I've called this func in OnCreate. Don't know what to do :\


What you do is use your debugger. Start from where you think that function
should be called and put a breakpoint. If it doesn't get hit, walk backwards
all the way up to onCreate then step through to see what is going on.

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

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

[android-developers] Re: Custom contextual menu options don't appear

2011-08-15 Thread Keith Wiley
I hate to do a bump, but this is a real error (two independent
reports) and it definitely phone or model specific (1000s of people
have never reported any such error even though it would be obvious to
practically anyone who tried to use the app for more than a few
minutes).  I don't know what causes it or what to do about it since I
don't own the models that it is being reported on.  I really need to
know if anyone else has ever seen something like this, and otherwise,
if anyone with deeper knowledge of how this part of the OS (contextual
menus) can speculate as to what is going on.

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] Re: Custom contextual menu options don't appear

2011-08-15 Thread Mark Murphy
If the context menu is on an EditText widget, I am not surprised.
There was a thread on this list recently about that.

If the context menu is on something else, could you provide more details?

On Mon, Aug 15, 2011 at 11:02 AM, Keith Wiley kbwi...@gmail.com wrote:
 I hate to do a bump, but this is a real error (two independent
 reports) and it definitely phone or model specific (1000s of people
 have never reported any such error even though it would be obvious to
 practically anyone who tried to use the app for more than a few
 minutes).  I don't know what causes it or what to do about it since I
 don't own the models that it is being reported on.  I really need to
 know if anyone else has ever seen something like this, and otherwise,
 if anyone with deeper knowledge of how this part of the OS (contextual
 menus) can speculate as to what is going on.

 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




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

Android App Developer Books: http://commonsware.com/books

-- 
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] display data in database

2011-08-15 Thread abhijit chakra
how to display data's that are stored in database..please tell me the
procedure.
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


Re: [android-developers] display data in database

2011-08-15 Thread Appaholics
Read is from the database with an SQL statement and display it.

On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.com wrote:

 how to display data's that are stored in database..please tell me the
 procedure.
 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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

-- 
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] display data in database

2011-08-15 Thread abhijit chakra
just tell me the codes.

On Mon, Aug 15, 2011 at 8:52 PM, Appaholics raghavs...@appaholics.inwrote:

 Read is from the database with an SQL statement and display it.

 On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.com wrote:

 how to display data's that are stored in database..please tell me the
 procedure.
 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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

  --
 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: display data in database

2011-08-15 Thread abhijit chakra
please tell me the procedure  detail,suppose i have theree fields,i
have to put values to the fields and save it into database,then how to
display the exart datas in the screen.

On Aug 15, 8:22 pm, Appaholics raghavs...@appaholics.in wrote:
 Read is from the database with an SQL statement and display it.

 On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.com wrote:
  how to display data's that are stored in database..please tell me the
  procedure.
  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

 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete 
 control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/

-- 
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] display data in database

2011-08-15 Thread Nico Balestra
You're forgetting the Magic Word: PLEASE

2011/8/15 abhijit chakra kanh...@gmail.com

 just tell me the codes.

 On Mon, Aug 15, 2011 at 8:52 PM, Appaholics raghavs...@appaholics.inwrote:

 Read is from the database with an SQL statement and display it.

 On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.comwrote:

 how to display data's that are stored in database..please tell me the
 procedure.
 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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

  --
 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] display data in database

2011-08-15 Thread Appaholics
You are just on of those people who need this:
http://lmgtfy.com/?q=Android+database+tutorial

On Mon, Aug 15, 2011 at 9:07 PM, Nico Balestra nicobales...@gmail.comwrote:

 You're forgetting the Magic Word: PLEASE


 2011/8/15 abhijit chakra kanh...@gmail.com

 just tell me the codes.

 On Mon, Aug 15, 2011 at 8:52 PM, Appaholics raghavs...@appaholics.inwrote:

 Read is from the database with an SQL statement and display it.

 On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.comwrote:

 how to display data's that are stored in database..please tell me the
 procedure.
 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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

-- 
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] display data in database

2011-08-15 Thread Tobiah

On 08/15/2011 08:36 AM, abhijit chakra wrote:

just tell me the codes.


The codes are: 49-52-21-11


I think that people are making fun of you because
your question is far too general.  Just to learn
how to build an SQL database in Android is a day's
work.  Getting data out of it involves creating
some sort of user interface, which is really the
whole of Android programming, and is too broad
to fit into the answer to a brief post.

Look first at Cursor if you already have the
database.




On Mon, Aug 15, 2011 at 8:52 PM, Appaholics raghavs...@appaholics.in
mailto:raghavs...@appaholics.in wrote:

Read is from the database with an SQL statement and display it.

On Mon, Aug 15, 2011 at 8:48 PM, abhijit chakra kanh...@gmail.com
mailto:kanh...@gmail.com wrote:

how to display data's that are stored in database..please tell
me the
procedure.
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




--

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all
titles required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

--
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@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] display data in database

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 10:36 AM, abhijit chakra kanh...@gmail.com wrote:

 just tell me the codes.


Even though you didn't say plz, it's urgent, I want to help you out. See
attached.

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

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

Display Data.java
Description: Binary data


[android-developers] Re: Java script to Native Bindings reverse

2011-08-15 Thread Android Developer
Thanks Mark,

But need little more clarity, if I need to pass objects or data with
complicated data types from Java to java script as arguments in
callback. Would JSON suffice the purpose or is there any other
solution ?

Checked Bookmarklets, we can call JS callbacks but that doesn't throw
light on argument data types issue.

Thanks in Advance.
PS

On Aug 12, 6:53 am, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Aug 12, 2011 at 2:57 AM, Android Developer p.sidda...@gmail.com 
 wrote:
  I am working on web applications where am trying to access Native
  functionality in the phone using Java script APIs.

  Android Web view supports Add Java script interface for Java script to
  Java (native) bindings as in below link:

 http://developer.android.com/reference/android/webkit/WebView.html#ad...,
  java.lang.String)

  BUT if I need to pass data back to Java script there is no API or
  mechanism to do so.

 Sure there is.

  Could you please let me know if there is a way out, tried hard but
  seems no API exposed for the same.

 Call loadUrl(javascript:...), where the ... is your JavaScript
 source code. That JavaScript source will be executed in the context of
 whatever Web page is presently loaded. This is the same technique that
 bookmarklets use.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
 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] display data in database

2011-08-15 Thread Jim Graham
On Mon, Aug 15, 2011 at 09:06:35PM +0530, abhijit chakra wrote:
 just tell me the codes.

Ok, here's the answer:  42.

Here's some super secret code that works really well:  RTFM.  Do you
know how to use a web browser?  Then use it to pull up the Developers
Guide, do a search, and read.  Also try searching in the archives for
this list.  Then, maybe you'll have an intelligent question to ask.
And just in case you forgot, you aren't exactly paying anyone here

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

Seen in alt.sysadmin.recovery:  Priceless; that's better than telling
him to use the Read Manual command with the Real Fast option.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] display data in database

2011-08-15 Thread Kristopher Micinski
On Mon, Aug 15, 2011 at 12:25 PM, TreKing treking...@gmail.com wrote:

 On Mon, Aug 15, 2011 at 10:36 AM, abhijit chakra kanh...@gmail.comwrote:

 just tell me the codes.


 Even though you didn't say plz, it's urgent, I want to help you out. See
 attached.


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


Systems professor told me that I should use braces even if I didn't
explicitly need to, can you rewrite?

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: Java script to Native Bindings reverse

2011-08-15 Thread Mark Murphy
On Mon, Aug 15, 2011 at 12:26 PM, Android Developer
p.sidda...@gmail.com wrote:
 But need little more clarity, if I need to pass objects or data with
 complicated data types from Java to java script as arguments in
 callback. Would JSON suffice the purpose or is there any other
 solution ?

 Checked Bookmarklets, we can call JS callbacks but that doesn't throw
 light on argument data types issue.

It has to be valid JavaScript source code. There is nothing more to it
than that.

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

Android App Developer Books: http://commonsware.com/books

-- 
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] Merchant Sales Report

2011-08-15 Thread Nathan
The Developer Console has this line about 'Merchant Sales Report'.

When would one expect this report to be available for July?

I have not used them in the past, but it just so happens, my
accountant needs to make a report based on it.

I can download a spreadsheet from Google Checkout, but this is missing
one very vital piece of information: Product ID.

Do they come out on any sort of schedule?

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


[android-developers] Re: Activity onPause and onResume Question

2011-08-15 Thread TheWanz
Found what I was looking for here:
http://www.androidguys.com/2008/11/07/rotational-forces-part-two/

On Aug 14, 12:12 am, Indicator Veritatis mej1...@yahoo.com wrote:
 The advice to read and memorize the online docs on lifecycle is good.
 But memorization will be somewhat elusive. While you are waiting for
 that elusive satori to bloom, remember one point: there is never a
 good reason to do TCP/IP in the main thread, which in Android, is also
 the UI thread. (or what did you mean by global thread-based class?)
 You really must move it to another thread. Mostly likely, you will
 want that other thread to run in a Service, which itself will run in
 the background (in both senses of the word: it will have no UI and
 will be a thread separate from and ultimately subordinate to the main
 thread).

 Now for some answers:

 1) you don't. That's not your job. The system has the last word.
 2) I have no idea why you thought onResume() was the way to do this.
 But how you really DO do this depends entirely on your implementation
 of how Preferences are entered. But you didn't tell us this, though
 you did suggest it strongly in the words Preference Activity.

 Well, actually, I do have one idea why you thought that, but it would
 be a mistake: perhaps you thought that you could count on onResume()
 invocation implying that the user had finished entering the
 preferences. But you cannot: lots of things cause onResume() to be
 called. OTOH, if the PreferenceActivity is started via startActivity()
 called from the main Activity, then when the user presses Back (during
 the PreferenceActivity), the system calls finish() on the
 PreferenceActivity, making the main Activity once more the top of the
 stack: the system will display it, calling onResume(), when it gets
 around to it.

 Are you really using a PreferenceActivity to read/set the preferences?
 If so, the safe thing to do is always read the settings back in from
 the XML whenever your main/first Activity reaches onResume(). This is
 guaranteed to follow onCreate() and onStart(). This means that your
 default preferences have to make sense.

 Now if that is too much computation for you, then before you try to
 get clever and cut down on inflation (reading the XML), you really
 will have to know the Activity lifecycle much better. Wait for that
 satori. Then you can move on to more 'advanced' ideas such as using an
 Application object to store global state.

 On Aug 12, 11:32 am, TheWanz jameswans...@gmail.com wrote:







  I would like to know the best practice approach to accomplishing this
  in Android:

  Main Activity:  Contains 1 textview, 1 opens menu and 1 global thread-
  based class.  The global thread-based class that opens a socket and
  reads in data via TCP/IP, and sends thread-safe notification to the
  main activity so that it can update its textview.  This class is
  developed and works well when it is called from the main activity's
  onCreate method.
  Preferences Activity:  This activity allows the user to choose options
  for host and TCP/IP.

  Here are my questions:
  1. How do I keep my global class from being destroyed when the onPause
  is called?  Every time I rotate the phone or enter the preferences
  activity, the object is trashed.
  2. How do I capture the event that the user has entered preferences
  and it is time to start my global class?  I have tried onResume, but
  there is ambiguity between when the app is loaded and when the
  preferences screen was exited.

  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


[android-developers] Re: Activity onPause and onResume Question

2011-08-15 Thread TheWanz
Found what I was looking for here:
http://www.androidguys.com/2008/11/07/rotational-forces-part-two/

On Aug 14, 12:12 am, Indicator Veritatis mej1...@yahoo.com wrote:
 The advice to read and memorize the online docs on lifecycle is good.
 But memorization will be somewhat elusive. While you are waiting for
 that elusive satori to bloom, remember one point: there is never a
 good reason to do TCP/IP in the main thread, which in Android, is also
 the UI thread. (or what did you mean by global thread-based class?)
 You really must move it to another thread. Mostly likely, you will
 want that other thread to run in a Service, which itself will run in
 the background (in both senses of the word: it will have no UI and
 will be a thread separate from and ultimately subordinate to the main
 thread).

 Now for some answers:

 1) you don't. That's not your job. The system has the last word.
 2) I have no idea why you thought onResume() was the way to do this.
 But how you really DO do this depends entirely on your implementation
 of how Preferences are entered. But you didn't tell us this, though
 you did suggest it strongly in the words Preference Activity.

 Well, actually, I do have one idea why you thought that, but it would
 be a mistake: perhaps you thought that you could count on onResume()
 invocation implying that the user had finished entering the
 preferences. But you cannot: lots of things cause onResume() to be
 called. OTOH, if the PreferenceActivity is started via startActivity()
 called from the main Activity, then when the user presses Back (during
 the PreferenceActivity), the system calls finish() on the
 PreferenceActivity, making the main Activity once more the top of the
 stack: the system will display it, calling onResume(), when it gets
 around to it.

 Are you really using a PreferenceActivity to read/set the preferences?
 If so, the safe thing to do is always read the settings back in from
 the XML whenever your main/first Activity reaches onResume(). This is
 guaranteed to follow onCreate() and onStart(). This means that your
 default preferences have to make sense.

 Now if that is too much computation for you, then before you try to
 get clever and cut down on inflation (reading the XML), you really
 will have to know the Activity lifecycle much better. Wait for that
 satori. Then you can move on to more 'advanced' ideas such as using an
 Application object to store global state.

 On Aug 12, 11:32 am, TheWanz jameswans...@gmail.com wrote:







  I would like to know the best practice approach to accomplishing this
  in Android:

  Main Activity:  Contains 1 textview, 1 opens menu and 1 global thread-
  based class.  The global thread-based class that opens a socket and
  reads in data via TCP/IP, and sends thread-safe notification to the
  main activity so that it can update its textview.  This class is
  developed and works well when it is called from the main activity's
  onCreate method.
  Preferences Activity:  This activity allows the user to choose options
  for host and TCP/IP.

  Here are my questions:
  1. How do I keep my global class from being destroyed when the onPause
  is called?  Every time I rotate the phone or enter the preferences
  activity, the object is trashed.
  2. How do I capture the event that the user has entered preferences
  and it is time to start my global class?  I have tried onResume, but
  there is ambiguity between when the app is loaded and when the
  preferences screen was exited.

  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


[android-developers] Re: Merchant Sales Report

2011-08-15 Thread Adam Ratana
On Monday, August 15, 2011 1:28:15 PM UTC-4, Nathan wrote:

 The Developer Console has this line about 'Merchant Sales Report'. 

 When would one expect this report to be available for July? 

 I have not used them in the past, but it just so happens, my 
 accountant needs to make a report based on it. 


 Definitely would have expected it by now.  The previous few months have 
shown up within a few days, for me.  It's now the middle of the month, so 
your guess is as good as anyone elses!

-- 
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: enableForegroundNdefPush not working

2011-08-15 Thread musfiq
Thanks. I have found the app. But how to use it for ndef push? Can I
write an word and send it to the othe phone?

On Aug 13, 7:06 am, nadam a...@anyro.se wrote:
 Strange. Here's a direct 
 link.https://market.android.com/details?id=se.anyro.nfc_reader

 On 12 Aug, 18:13, musfiq musfiqu...@gmail.com wrote:

  Normal tag sharing works. But foregroundNDEFPush not working?
  Nothing in logcat. By the way, I could not find your apps searchin
  ndef push in the market.

  On Aug 11, 12:35 pm, nadam a...@anyro.se wrote:

   That description seems to cover everything you need (except holding
   the two phones together back-to-back, but I assume you've done that
   too). You can also check for error messages in logcat.

   I can't think of anything going wrong with uploading the api demo
   example, but just to double check you can try my simple app which you
   find by searching for ndef push on the market.

   Can you use other NFC features of the phones (scan tags etc)? Perhaps
   one of them is broken.

   On 11 Aug, 17:16, musfiq musfiqu...@gmail.com wrote:

I have 2 Google nexus S phone with android version 2.3.4. I have
uploaded Api demo example in 
both.http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

When I try to run ForegroundDispatch in one mobile and
ForegroundNdefPush in another, no tag transfer is happening. Both
mobile have NFC enabled. Am I  missing something?
/Musfiq

On Aug 10, 1:11 am, Michael Roland mi.rol...@gmail.com wrote:

 Hallo Musfiq,

 it might help if you posted some of the relevant code.

 br,
 Michael

 On Aug 9, 3:46 am, musfiq musfiqu...@gmail.com wrote:

  Hi:
  I am trying to share a string between mobile phones using NFC. I 
  want
  the same application to send the tag and another to receive the tag 
  in
  two different role (Sender and receiver).  I have tried to use
  enableForegroundNdefPush in the sender side and 
  enableForegroundDispatch in the receiver side. But it isnotworking.
  Can anyone please help?
  /Musfiq

-- 
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] Merchant Sales Report

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 12:28 PM, Nathan critter...@crittermap.com wrote:

 When would one expect this report to be available for July?


Probably around the same time the Active Installs stop being reported as
significantly higher than Total Installs.

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

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

Re: [android-developers] display data in database

2011-08-15 Thread abhijit chakra
i know but my question is Display the data's in a activity screen in date
wise,if one will search date wise,he will find the  data which is store at
that date..

On Mon, Aug 15, 2011 at 9:57 PM, Jim Graham spooky1...@gmail.com wrote:

 On Mon, Aug 15, 2011 at 09:06:35PM +0530, abhijit chakra wrote:
  just tell me the codes.

 Ok, here's the answer:  42.

 Here's some super secret code that works really well:  RTFM.  Do you
 know how to use a web browser?  Then use it to pull up the Developers
 Guide, do a search, and read.  Also try searching in the archives for
 this list.  Then, maybe you'll have an intelligent question to ask.
 And just in case you forgot, you aren't exactly paying anyone here

 Later,
   --jim

 --
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 Seen in alt.sysadmin.recovery:  Priceless; that's better than telling
 him to use the Read Manual command with the Real Fast option.

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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] display data in database

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 1:36 PM, abhijit chakra kanh...@gmail.com wrote:

 i know but my question is Display the data's in a activity screen in date
 wise,if one will search date wise,he will find the  data which is store at
 that date..


A) That's not a question.
B) It makes no sense.

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

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

Re: [android-developers] display data in database

2011-08-15 Thread Jim Graham
On Tue, Aug 16, 2011 at 12:06:35AM +0530, abhijit chakra wrote:
 On Mon, Aug 15, 2011 at 9:57 PM, Jim Graham spooky1...@gmail.com wrote:
  On Mon, Aug 15, 2011 at 09:06:35PM +0530, abhijit chakra wrote:
   just tell me the codes.
 
  Ok, here's the answer:  42.
 
  Here's some super secret code that works really well:  RTFM.  Do you
  know how to use a web browser?  Then use it to pull up the Developers
  Guide, do a search, and read.  Also try searching in the archives for
  this list.  Then, maybe you'll have an intelligent question to ask.
  And just in case you forgot, you aren't exactly paying anyone here
 
 i know but my question is Display the data's in a activity screen in
 date wise,if one will search date wise,he will find the  data which is
 store at that date..

Ok, let me update my secret code for you.

First, LEARN TO READ.  Then follow the above instructions.

Later,
   --jim

-- 
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] display data in database

2011-08-15 Thread abhijit chakra
ok i am giving u the detail.here in an application there are three fields,i
have to put data's in the three fields,then will press the save button,after
that it will save in the database according to its date,then my work
is retrieve the data's from the database according to their date of storing,
u may provide an searching opting for date search .so tell me the procedure
if know,then after i will tell u the next phage...

On Tue, Aug 16, 2011 at 12:08 AM, TreKing treking...@gmail.com wrote:

 On Mon, Aug 15, 2011 at 1:36 PM, abhijit chakra kanh...@gmail.com wrote:

 i know but my question is Display the data's in a activity screen in date
 wise,if one will search date wise,he will find the  data which is store at
 that date..


 A) That's not a question.
 B) It makes no sense.



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

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


-- 
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] display data in database

2011-08-15 Thread abhijit chakra
ok i am giving u the detail.here in an application there are three fields,i
have to put data's in the three fields,then will press the save button,after
that it will save in the database according to its date,then my work
is retrieve the data's from the database according to their date of storing,
u may provide an searching option for date search .so tell me the procedure
if u know,then after i will tell u the next phase...

On Tue, Aug 16, 2011 at 12:14 AM, Jim Graham spooky1...@gmail.com wrote:

 On Tue, Aug 16, 2011 at 12:06:35AM +0530, abhijit chakra wrote:
  On Mon, Aug 15, 2011 at 9:57 PM, Jim Graham spooky1...@gmail.com
 wrote:
   On Mon, Aug 15, 2011 at 09:06:35PM +0530, abhijit chakra wrote:
just tell me the codes.
  
   Ok, here's the answer:  42.
  
   Here's some super secret code that works really well:  RTFM.  Do you
   know how to use a web browser?  Then use it to pull up the Developers
   Guide, do a search, and read.  Also try searching in the archives for
   this list.  Then, maybe you'll have an intelligent question to ask.
   And just in case you forgot, you aren't exactly paying anyone here
  
  i know but my question is Display the data's in a activity screen in
  date wise,if one will search date wise,he will find the  data which is
  store at that date..

 Ok, let me update my secret code for you.

 First, LEARN TO READ.  Then follow the above instructions.

 Later,
   --jim

 --
 73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
 spooky1...@gmail.com| Dave Aronson:As your life flashes before
  Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
 ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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] display data in database

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 1:46 PM, abhijit chakra kanh...@gmail.com wrote:

 ok i am giving u the detail.


Awesome, this is what I've been waiting for.


 here in an application there are three fields,i have to put data's in the
 three fields,then will press the save button,after that it will save in the
 database according to its date,then my work is retrieve the data's from the
 database according to their date of storing, u may provide
 an searching opting for date search .


OK.


 so tell me the procedure if know,


Step 1 - Learn to program.
Step 2 - Try to do what you described.
Step 3 - If you get stuck, ask a SPECIFIC question.


 then after i will tell u the next phage...


I kinda rather you not tell me the next phage.

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

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

Re: [android-developers] display data in database

2011-08-15 Thread Mark Murphy
On Mon, Aug 15, 2011 at 2:49 PM, abhijit chakra kanh...@gmail.com wrote:
 ok i am giving u the detail.here in an application there are three fields,i
 have to put data's in the three fields,then will press the save button,after
 that it will save in the database according to its date,then my work
 is retrieve the data's from the database according to their date of storing,
 u may provide an searching option for date search .so tell me the procedure
 if u know,then after i will tell u the next phase...

Please simply learn Android application development. There are plenty
of tutorials online, dozens of books (including some free ones), plus
all of the samples and documentation that ship with your SDK.

This list is for specific, concrete questions (e.g., I am doing X and
it is crashing with LogCat output Y). It is not for tell me the
procedure.

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

Android App Developer Books: http://commonsware.com/books

-- 
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] display data in database

2011-08-15 Thread abhijit chakra
ohhh fuck u man,ur such a motherfucker dump ass,if u dont  know the answer ,
fuck off!!!

On Tue, Aug 16, 2011 at 12:21 AM, TreKing treking...@gmail.com wrote:

 On Mon, Aug 15, 2011 at 1:46 PM, abhijit chakra kanh...@gmail.com wrote:

 ok i am giving u the detail.


 Awesome, this is what I've been waiting for.


 here in an application there are three fields,i have to put data's in the
 three fields,then will press the save button,after that it will save in the
 database according to its date,then my work is retrieve the data's from the
 database according to their date of storing, u may provide
 an searching opting for date search .


 OK.


 so tell me the procedure if know,


 Step 1 - Learn to program.
 Step 2 - Try to do what you described.
 Step 3 - If you get stuck, ask a SPECIFIC question.


 then after i will tell u the next phage...


 I kinda rather you not tell me the next phage.



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

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


-- 
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 I can ask multiple touches in my game?

2011-08-15 Thread Zwiebel
I want to make a game, where in one activity, I need to get multiple
touches one after another one... So if I want to make for example a
UI. Then on this UI I can got the first touch with if statement.
if(event.x  in the zone  event.y  in the zone) else (do what I
want) , but I don't know how to get the next touch. I think that I
need a statement, but I don't know what/which. It's important because
in the game the order is very important.

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] display data in database

2011-08-15 Thread abhijit chakra
ok thanks murphy
On Tue, Aug 16, 2011 at 12:24 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Aug 15, 2011 at 2:49 PM, abhijit chakra kanh...@gmail.com wrote:
  ok i am giving u the detail.here in an application there are three
 fields,i
  have to put data's in the three fields,then will press the save
 button,after
  that it will save in the database according to its date,then my work
  is retrieve the data's from the database according to their date of
 storing,
  u may provide an searching option for date search .so tell me the
 procedure
  if u know,then after i will tell u the next phase...

 Please simply learn Android application development. There are plenty
 of tutorials online, dozens of books (including some free ones), plus
 all of the samples and documentation that ship with your SDK.

 This list is for specific, concrete questions (e.g., I am doing X and
 it is crashing with LogCat output Y). It is not for tell me the
 procedure.

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

 Android App Developer Books: http://commonsware.com/books

 --
 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] display data in database

2011-08-15 Thread Jim Graham
On Tue, Aug 16, 2011 at 12:19:25AM +0530, abhijit chakra wrote:
 ok i am giving u the detail.here in an application there are three
 fields,i have to put data's in the three fields,then will press the
 save button,after that it will save in the database according to its
 date,then my work is retrieve the data's from the database according to
 their date of storing, u may provide an searching option for date
 search .so tell me the procedure if u know,then after i will tell u the
 next phase...

So what is your question?  What, specifically, are you having trouble
with?  What have YOU done to research the problem and its solution?
Post the code that you wrote which is causing problems, and explain
what it's doing wrong.

If you haven't gotten THAT far, RTFM.

And learn to write and spell correctly.  This is not twitter or text
messaging.

And stop trying to CC me.  You're wasting your time---it gets
deleted at gmail's SMTP server as a duplicate.  If it didn't, the
duplicate copy would be deleted by procmail on MY system.

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye!

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] Stitcher seeking experienced Android and NDK specialists

2011-08-15 Thread brooke
This is a job posting, I apologize for cross posting.

Stitcher, a growing, well funded VC backed streaming media company is
seeking experienced Android developers, particularly in the NDK/audio
engineering space, to help us take our product to the next level.  If
you are a sharp Android developer with a lot of experience in the
media space, particularly developing native code, we want to speak
with you now!  Great compensation, equity, health benefits, etc.

Here is the job description: http://stitcher.com/jobs.php#18.  Please
mention me (Brooke Maury) to expedite resume review.

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

2011-08-15 Thread abhijit chakra
i placed a imageview (10dip) from the margin left(assume 100*200 size
emulator )the same code if i run on the another emulator(assume
200*200)the image view should appear at 20dip but it is displaying at
10dip only ...so how can i solve this


  ImageView android:layout_height=wrap_content
android:layout_marginLeft=10dip  android:id=@+id/iv4
android:layout_width=wrap_content android:src=@drawable/image/
ImageView

-- 
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: recommended icon size.

2011-08-15 Thread sblantipodi
thanks for the answer.
Suppose that I use only one icon, a big 72x72 one.

How this icon will be displayed on low density phones qith QVGA
screens?
Does android scale down icons also at level 4 (Android 1.6)?

On Aug 13, 9:24 am, Peter Stacey peterst6...@gmail.com wrote:
 Depends on the screen size of the device if you want to go all the way
 and provide resources for each possible screen.

 Otherwise you can rely on Android to scale your resources to different
 screens.

 In any case, the you can find full details on the developer website
 and download an icon pack containing templates to use as a base:

 http://developer.android.com/guide/practices/ui_guidelines/icon_desig...

 On Aug 13, 11:07 am, sblantipodi perini.dav...@dpsoftware.org wrote:







  Hi all...
  what is the recommended icon size actually?

  I mean the icon we use to start applications not the in-app icon.

  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] Canvas, drawing 10 lines of 1 pixel creates different color than a rectangle of 10 pixel

2011-08-15 Thread sblantipodi
As title.

Can you tell me why when using Canvas I have this strange behaviour?

If I draw a rectangle using drawLine() I have different color than if
I draw the rectangle using drawRect().

Why?

-- 
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: enableForegroundNdefPush not working

2011-08-15 Thread nadam
No, it's just a static message which is enabled as soon as the app is
running. Holding the phone back-to-back with another Nexus S should
push the message over.

On 15 Aug, 20:16, musfiq musfiqu...@gmail.com wrote:
 Thanks. I have found the app. But how to use it for ndef push? Can I
 write an word and send it to the othe phone?

 On Aug 13, 7:06 am, nadam a...@anyro.se wrote:







  Strange. Here's a direct 
  link.https://market.android.com/details?id=se.anyro.nfc_reader

  On 12 Aug, 18:13, musfiq musfiqu...@gmail.com wrote:

   Normal tag sharing works. But foregroundNDEFPush not working?
   Nothing in logcat. By the way, I could not find your apps searchin
   ndef push in the market.

   On Aug 11, 12:35 pm, nadam a...@anyro.se wrote:

That description seems to cover everything you need (except holding
the two phones together back-to-back, but I assume you've done that
too). You can also check for error messages in logcat.

I can't think of anything going wrong with uploading the api demo
example, but just to double check you can try my simple app which you
find by searching for ndef push on the market.

Can you use other NFC features of the phones (scan tags etc)? Perhaps
one of them is broken.

On 11 Aug, 17:16, musfiq musfiqu...@gmail.com wrote:

 I have 2 Google nexus S phone with android version 2.3.4. I have
 uploaded Api demo example in 
 both.http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

 When I try to run ForegroundDispatch in one mobile and
 ForegroundNdefPush in another, no tag transfer is happening. Both
 mobile have NFC enabled. Am I  missing something?
 /Musfiq

 On Aug 10, 1:11 am, Michael Roland mi.rol...@gmail.com wrote:

  Hallo Musfiq,

  it might help if you posted some of the relevant code.

  br,
  Michael

  On Aug 9, 3:46 am, musfiq musfiqu...@gmail.com wrote:

   Hi:
   I am trying to share a string between mobile phones using NFC. I 
   want
   the same application to send the tag and another to receive the 
   tag in
   two different role (Sender and receiver).  I have tried to use
   enableForegroundNdefPush in the sender side and 
   enableForegroundDispatch in the receiver side. But it 
   isnotworking.
   Can anyone please help?
   /Musfiq

-- 
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] Canvas, drawing 10 lines of 1 pixel creates different color than a rectangle of 10 pixel

2011-08-15 Thread Romain Guy
If antialiasing is enabled, that would happen.

On Mon, Aug 15, 2011 at 12:28 PM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 As title.

 Can you tell me why when using Canvas I have this strange behaviour?

 If I draw a rectangle using drawLine() I have different color than if
 I draw the rectangle using drawRect().

 Why?

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




-- 
Romain Guy
Android framework engineer
romain...@android.com

-- 
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] display data in database

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 1:56 PM, abhijit chakra kanh...@gmail.com wrote:

 ohhh fuck u man,ur such a motherfucker dump ass,if u dont  know the answer
 , fuck off!!!


LMAO - Never been called a dump ass before. I might have an answer for you
if you posed something that resembled an actual question related to Android
development.

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

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

[android-developers] Re: Canvas, drawing 10 lines of 1 pixel creates different color than a rectangle of 10 pixel

2011-08-15 Thread sblantipodi
thanks for the answer.

On Aug 15, 9:30 pm, Romain Guy romain...@android.com wrote:
 If antialiasing is enabled, that would happen.

 On Mon, Aug 15, 2011 at 12:28 PM, sblantipodi
 perini.dav...@dpsoftware.orgwrote:









  As title.

  Can you tell me why when using Canvas I have this strange behaviour?

  If I draw a rectangle using drawLine() I have different color than if
  I draw the rectangle using drawRect().

  Why?

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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

-- 
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] Retrieving spinner data without triggering listener's call back method

2011-08-15 Thread venkata raidu
Hi
 I need to show two spinners in the UI , where a selection in the
first spinner triggers(using OnItemSelectedListener) a download and
populates the second spinner. When my activity pauses, I save the data
and the selections of the spinner.
 In onResume() method, I check for saved data. If saved data
exists, I am trying to  populate the data of both the spinners. But,
because of the selection in the first spinner, it is triggering a new
download of data to be populated in the second spinner.
 I don't want to download the new data, as I already have the data
downloaded in the previous instance before the activity is paused. I
see that there is no method for Android to remove the listener. Any
suggestions?

Note: I mentioned two spinners for simplicity. I need to use up to
five spinners this way.

Thanks,
Venkata Raidu

-- 
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] Retrieving spinner data without triggering listener's call back method

2011-08-15 Thread Mark Murphy
On Mon, Aug 15, 2011 at 4:36 PM, venkata raidu venkata.ra...@gmail.com wrote:
 I see that there is no method for Android to remove the listener.

Have you tried setOnItemSelectedListener(null)?

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

Android App Developer Books: http://commonsware.com/books

-- 
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: Retrieving spinner data without triggering listener's call back method

2011-08-15 Thread venkata raidu
Thanks for the prompt reply. I actually did. But it did not show any
effect. Here is what I did:
   I set it to null before populating the saved data. And after
populating, I set the listener back, so that if the selection is
changed, I can get new data according to the selection.  My guess is
that, since the OnItemSelectedListener is an asynchronous listener,
soon after I set the listener back, it is calling onItemSelected()
method.

On Aug 15, 3:38 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Aug 15, 2011 at 4:36 PM, venkata raidu venkata.ra...@gmail.com 
 wrote:
  I see that there is no method for Android to remove the listener.

 Have you tried setOnItemSelectedListener(null)?

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

 Android App Developer Books:http://commonsware.com/books

-- 
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] display data in database

2011-08-15 Thread H
Lovin' it! :-)

-- 
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 I can ask multiple touches in my game?

2011-08-15 Thread Mark Ayers
Try event.getHistoricalX() and event.getHistoricalY()
On Aug 15, 2011 11:58 AM, Zwiebel hunzwie...@gmail.com wrote:
 I want to make a game, where in one activity, I need to get multiple
 touches one after another one... So if I want to make for example a
 UI. Then on this UI I can got the first touch with if statement.
 if(event.x  in the zone  event.y  in the zone) else (do what I
 want) , but I don't know how to get the next touch. I think that I
 need a statement, but I don't know what/which. It's important because
 in the game the order is very important.

 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

Re: [android-developers] display data in database

2011-08-15 Thread Nico Balestra
You've lost your last chance to get any more help here mate!! :)

2011/8/15 H m...@howardb.com

 Lovin' it! :-)

 --
 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] New SDK can't handle the rotation properly.

2011-08-15 Thread sblantipodi
Hi,
I noticed that android 2.3.3 emulator has some problem with screen
orientation.

Start an app, or also the browser and rotate the screen with CTRL+F12,
the screen rotates ok, now rotate again, it remain in landscape mode,
there is no way to return to portrait mode also by repeating the
rotation.

Is this a known bug?

-- 
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] Adapting ImageDownloader enhancements to my app

2011-08-15 Thread Diego Tori
Right now, I'm trying to modify ImageDownloader (http://
code.google.com/p/android-imagedownloader/source/browse/trunk/src/com/
example/android/imagedownloader/ImageDownloader.java) so I can
implement a couple of enhancements particular to my app:

First, I am going to adapt the code to utilize hard and soft HashMaps
for a few different types of bitmaps for different aspects of my app
called from my singleton cache object. In other words, I will add a
constructor that will specify the type of image that I want to cache
(defined by a pre-determined State ID), that way, my cache object only
saves to and loads from those particular HashMaps for that type of
Bitmap I want to download. I am wondering whether I should just create
pairs of hard and soft hashmaps like the class for every type of
Bitmap I need to cache separately, or whether I should just create one
soft hashmap that the other hard ones dump their old images into?

Second, since I want to incorporate caching to either cache or SD card
(via flag from constructor), would it make sense that it be the last
check it performs in getBitmapFromCache, and if it does recover the
image from SD, do I have to add it back to the hard cache?

-- 
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] New SDK can't handle the rotation properly.

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 5:01 PM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 Is this a known bug?


That is answered by searching the issues list. Not exactly the same, but
similar to what you described:

http://code.google.com/p/android/issues/detail?id=13189q=emulator%20rotationcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

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

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

[android-developers] Re: getting stuck in database

2011-08-15 Thread Vance Turnewitsch
Your question is rather vauge.
Post some code showing how you read data and set the UI to clear
things up, or maybe take a look at LogCat to see if you're getting
errors.

Vance

On Aug 15, 4:52 am, abhijit chakra kanh...@gmail.com wrote:
 I am doing a project based on  SQLIte,I have there field in the UI,My
 work is put data in the three fields and retrive it and display it
 into the screen but...i tried it many time but i wont work please give
 the procedure how to do it..
 Abhijit Chakra
 CamexInfomatix pvt ltd...

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

2011-08-15 Thread ali abd elrahim
Hi;
 I am new to Android, I started with softkeyboard example in
documentation, but it gave me runtime error. here is error in logcat:


08-16 04:27:39.736: ERROR/dalvikvm(228): Unable to open stack trace
file '/data/anr/traces.txt': Permission denied
08-16 04:28:19.367: ERROR/ActivityThread(52): Failed to find provider
info for android.server.checkin
08-16 04:28:24.756: ERROR/AndroidRuntime(234): Uncaught handler:
thread main exiting due to uncaught exception
08-16 04:28:24.766: ERROR/AndroidRuntime(234):
android.view.InflateException: Binary XML file line #3: Error
inflating class ali.programs.android.softKeyBoard.LatinKeyboradView
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.inflate(LayoutInflater.java:385)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
ali.programs.android.softKeyBoard.SoftKeyboard.onCreateInputView(SoftKeyboard.java:92)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.inputmethodservice.InputMethodService.updateInputViewShown(InputMethodService.java:950)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.inputmethodservice.InputMethodService.showWindowInner(InputMethodService.java:1303)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:1278)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:388)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:148)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:45)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.os.Looper.loop(Looper.java:123)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
java.lang.reflect.Method.invokeNative(Native Method)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
java.lang.reflect.Method.invoke(Method.java:521)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
dalvik.system.NativeStart.main(Native Method)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): Caused by:
java.lang.ClassNotFoundException:
ali.programs.android.softKeyBoard.LatinKeyboradView in loader
dalvik.system.PathClassLoader@44e8cb30
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.createView(LayoutInflater.java:466)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
08-16 04:28:24.766: ERROR/AndroidRuntime(234): ... 18 more
08-16 04:28:24.786: ERROR/dalvikvm(234): Unable to open stack trace
file '/data/anr/traces.txt': Permission denied


and here is code for class .LatinKeyboradView:

package ali.programs.android.softKeyBoard;

import android.content.Context;
import android.inputmethodservice.Keyboard;
import android.inputmethodservice.KeyboardView;
import android.inputmethodservice.Keyboard.Key;
import android.util.AttributeSet;


public class LatinKeyboardView extends KeyboardView {

static final int KEYCODE_OPTIONS = -100;

public LatinKeyboardView(Context context, AttributeSet attrs) {
super(context, attrs);
}

public LatinKeyboardView(Context context, AttributeSet attrs, int
defStyle) {
super(context, attrs, defStyle);
}

@Override
protected boolean onLongPress(Key key) {
if (key.codes[0] == Keyboard.KEYCODE_CANCEL) {
getOnKeyboardActionListener().onKey(KEYCODE_OPTIONS, null);
return true;
} else {
return super.onLongPress(key);
  

[android-developers] Market license error for a handful of users

2011-08-15 Thread Cody Snyder
Is anyone else getting this? We get license-invalid but only for a
handful of users so it doesn't appear to be on our side, anyone know
how to get more info on why it failed (no log as it's on the market)
or who can help. Were tempted to stop using the license stuff because
of this, just curios if developers r using this as it seems to have
issues, it should atleast track why the license was invalid for the
developers sober know what's going on

Thanks
Cody

-- 
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: Custom contextual menu options don't appear

2011-08-15 Thread Keith Wiley
I see the other thread now.  I'll pick it up from there.  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: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-15 Thread gml
I'm calling AsyncTask.execute() inside onStart().
Your case is very interesting. May I view the source code?
And let me to pattern my sample app to yours.

On Aug 15, 2:24 am, Vance Turnewitsch betweenthehi...@gmail.com
wrote:
 AsyncTask can help, but on single-core devices AsyncTask will at times
 block your UI loading code. I've have experienced this with loading
 images and data from a SQLiteDatabase. I would suggest starting up an
 AsyncTask to load your data in onResume or onStart. That way you have
 a pretty high chance of the user seeing your UI, and then the long
 time-consuming operation starting. I don't know where your items
 will be loaded in, but I had a similar situation in which I loaded
 data into items in a List. I wrapped the List in a ViewSwitcher that
 contained a ProgressDialog and the List. While the data was being
 loaded, the ViewSwitcher was set to display the ProgressBar. Once the
 data was loaded, the ViewSwitcher displayed the List.

 On Aug 13, 7:38 am, nadam a...@anyro.se wrote:

  Use 
  AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html

  On 12 Aug, 06:21, gml gml.check.t...@gmail.com wrote:

   Hi guys,

   I have simple application that loading the data needed upon the
  Activitystarts which it consume about 2-3 minutes. Then, the UI
   displayed after that long process.

   Present Scenario:
   1) click the app tostart.
   2) progress bar pop-up while doing the data loading in my localDB
   (about 2-3mins).
   3) progress bar closes, UIstartto load and display the data from
   localDB.

   Problem:
   Want tostartand load/display the UI immediately while loading the
   data into localDB but display it one by one.
   But don't have idea on how to implement it.

   Expected Scenario:
   1) click the app tostart. then immediately load and display the UI.
   2) on the background, get the data and load to localDB while
   displaying it one by one to UI.

   Thanks and regards,

   Eros
   Japan

-- 
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: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-15 Thread gml
I forgot to mention that I am using AsyncTask.
Thanks

On Aug 13, 8:38 pm, nadam a...@anyro.se wrote:
 Use AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html

 On 12 Aug, 06:21, gml gml.check.t...@gmail.com wrote:

  Hi guys,

  I have simple application that loading the data needed upon the
 Activitystarts which it consume about 2-3 minutes. Then, the UI
  displayed after that long process.

  Present Scenario:
  1) click the app tostart.
  2) progress bar pop-up while doing the data loading in my localDB
  (about 2-3mins).
  3) progress bar closes, UIstartto load and display the data from
  localDB.

  Problem:
  Want tostartand load/display the UI immediately while loading the
  data into localDB but display it one by one.
  But don't have idea on how to implement it.

  Expected Scenario:
  1) click the app tostart. then immediately load and display the UI.
  2) on the background, get the data and load to localDB while
  displaying it one by one to UI.

  Thanks and regards,

  Eros
  Japan

-- 
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 show a map (maps are still images of each floor of a building)

2011-08-15 Thread gml
I am trying to create a prototype that could guide a person to his
destination place.

* place is a wide building with several floors.
* i can obtain/retrieve the maps (still images). e.g. current:1F
destination:5F; so I can get the still images of 1st,2nd...5th floors
(5 image files).

Scenario:

   1. start the application
   2. input the current location (or may automatically set using
current location)  destination
   3. click the search route button to search the maps to use (still
images)  mark the current location  destination
   4. update the current location upon moving/going to destination

I just need to display 1 image file (each floor) at a time then move
to other floor by using scroll bar. But.. don't know how to display
it.

Any guidance on the right direction is appreciated.

-- 
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: Market license error for a handful of users

2011-08-15 Thread Zsolt Vasvari
I had a report from a user that he updated his phone to 2.3.4 and now
getting LVL errors.

On Aug 16, 8:46 am, Cody Snyder c...@loudcrow.com wrote:
 Is anyone else getting this? We get license-invalid but only for a
 handful of users so it doesn't appear to be on our side, anyone know
 how to get more info on why it failed (no log as it's on the market)
 or who can help. Were tempted to stop using the license stuff because
 of this, just curios if developers r using this as it seems to have
 issues, it should atleast track why the license was invalid for the
 developers sober know what's going on

 Thanks
 Cody

-- 
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] getting stuck in database

2011-08-15 Thread TreKing
On Mon, Aug 15, 2011 at 3:52 AM, abhijit chakra kanh...@gmail.com wrote:

 please give the procedure how to do it..


Your question was answered the first time you asked:
http://groups.google.com/group/android-developers/browse_thread/thread/d71e9da4d4fe15f6/aa8213a3b8f89242?show_docid=aa8213a3b8f89242

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

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

  1   2   >