[android-developers] Activity GUI updated by thread data: implementation error?

2011-09-07 Thread giangiammy
Hi all,

I have an activity updating the GUI with data coming from a socket.

In my activity I implemented an Handler:

int REFRESH = 1;
final Handler hRefresh = new Handler(){ 
@Override
public void handleMessage(Message msg) {
Integer i1;
Integer i2;
i1 = msg.arg1;
i2 = msg.arg2;

... update a widget (in my example a button background)  

}
};


Then I start a thread polling the socket for new data and I define a Map
with some function, which are called depending on the incoming data:

   allServerActions.put(
ami.serverId,
new IntIntFunction() {
public int function(int i1, int i2) { 

Message msg = Message.obtain(hRefresh, 1, 
i1, i2);
hRefresh.sendMessage(msg); 

return 0;
} // end function
} // end new
); // end put

Where IntIntFunction is:

interface IntIntFunction {
  int function(int i1, int i2);
}

The socket thread works correctly, but after 1/2 minutes the main activity 
dies,
with the followin logging: 

I/ActivityManager(  555): Process my.test.testxml1 (pid 650) has died.
D/Zygote  (  529): Process 650 terminated by signal (11)
I/WindowManager(  555): WIN DEATH: Window{522dbc30 
my.test.testxml1/my.test.testxml1.Testxml1 paused=false}
W/UsageStats(  555): Unexpected resume of com.android.launcher while already 
resumed in my.test.testxml1
I/asset   (  555): Creating Asset 0x10279a90 #5
W/InputManagerService(  555): Got RemoteException sending setActive(false) 
notification to pid 650 uid 10020

I suppose I'm doing something wrong in the interazione between the 2 
threads: from the documentation
I read I understood that the correct way is to use Handlers for such a task.

Am I correct? do you see any error in my implementation?
Is there any other way to implement an activity whose interface is updated 
by data coming from a socket?

thanks
giammy 

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

[android-developers] android:inputType="number" Error

2011-09-07 Thread Duygu Kahraman
Hi All;

I have a problem about Edittext.I want to enter just number one of my
Edittext  so in xml i use android:inputType="number" .But When i want
to more than 10 characters program is not working.10 and less than 10
character it is OK.

Do you anyone this reason and how can i fix it?

Code is here:



Thx.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] NFC/RFID

2011-09-07 Thread Adiga
Is it Possible to read high frequency rfid tag using nexus s device?
If it is yes can you send me the source code of that sample?

Regards,
Adiga

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] log disappears

2011-09-07 Thread bob
Anyone know why sometimes the log disappears in the Eclipse log window?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] NFC/RFID

2011-09-07 Thread Adiga
Is it possible to create an application utilizing NFC(Near field
Communication) of mobile phone which will communicate with existing
RFID infrastructure ?Have both in the same frequency range? I read in
an article that says RFID has a High Frequency (HF) band at 13.56 MHz
and that have longer communication range. I confused that NFC has the
same frequency limit but short communication range;how it possible?
Does NFC support all RFID technologies ( both active and passive RFID)?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 was the RenderScript Balls Demo Video Made?

2011-09-07 Thread Romain Guy
We use BlackMagic's Intensity Pro video capture cards:
http://www.blackmagic-design.com/products/intensity/
You'll need a fast hard drive/computer to capture the video stream at 720p
in real-time without skipping frames though.

On Wed, Sep 7, 2011 at 10:11 PM, Dianne Hackborn wrote:

> Yeah it was done with a video capture card taking the Xoom's HDMI output as
> its input.  I don't remember the exact card used.
>
> On Wed, Sep 7, 2011 at 7:25 PM, Macotonalds  wrote:
>
>> Hi.
>>
>> In this post, Mr.Bray says that "The video above, captured through an
>> Android tablet’s HDMI out".
>>
>> I think that it is not necessary to use TV.
>>
>>
>>
>> http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
>>
>> On Aug 21, 5:29 am, newbyca  wrote:
>> > i'd like to use direct video capture of my apps for making Android
>> > Market promo videos. i know other devs have asked about this before
>> > and up until now i hadn't found a way.
>> >
>> > then recently i saw theRenderScriptBalls demo on youtube:
>> http://www.youtube.com/watch?v=uQ5NumRfHN4
>> >
>> > and it seems to be a direct capture. i also recently got a Xoom in my
>> > test bed ... so i'm guessing the Balls video was made by connecting a
>> > tablet to a TV via HDMI then recording from the TV? just hoping
>> > someone could confirm?
>> >
>> > i'm not much of a tv person so my tv is ancient and doesn't have HDMI-
>> > in, nor do i have a way to record from a TV to a computer for editing
>> > and format conversion. point being, i'd be willing to invest in a new
>> > tv and pc card ... but would like to know that it's necessary first.
>> > also, any pc card recommendations would be great, but i know that
>> > subject isn't really germane to this forum :)
>> >
>> > TIA//
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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




-- 
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] Re: Nfc phone read the type A card.

2011-09-07 Thread xiaoailsa

I want to use two classes:IsoDep and NfcA .But how to use at
thesametime?
         →mTechLists = new String[][] { new String[]
 {IsoDep.class.getName()} };
           //mTechLists = new String[][] { new String[]
 {NfcA.class.getName()} };
         →public void onResume() {
             super.onResume();
              mAdapter.enableForegroundDispatch(this,
mPendingIntent,mFilters, mTechLists);}
   
Could someboby help me??Thank you!

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


[android-developers] Re: External images in the notification area.

2011-09-07 Thread b_t
The external storage is available, device is not plugged at all.

As I wrote external images is displayed in appwidgets but not in the
notification area.

I call:

Uri imageUri = Uri.fromFile(file);
remoteViews.setImageViewUri(imageViewId, imageUri);

I haven't seen it before but now I can see that I got an exception:
java.io.FileNotFoundException:  (Permission denied)

The file has the following permission:

rwxr-x1 system   sdcard_r  8204 Aug 29 21:45 time.png

And every parent directory:

d---rwxr-x3 system   sdcard_r

Any process should be able to read it, shouldn't?

Tamás





On Sep 7, 10:06 pm, rich friedel  wrote:
> http://developer.android.com/guide/topics/data/data-storage.html#file...
>
> How are you gaining access to the external images?
>
> Are you sure that the files and storage actually are available to your
> application?
>
> Before you do any work with the external storage, you should always call
> getExternalStorageState()
>  to
> check whether the media is available.
>
> If not, is the device plugged in with USB?
>
> Caution: External files can disappear if the user mounts the external
> storage on a computer or removes the media...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread albnok
It is very much possible to get tweets from a user without logging in,
provided that user did not set tweets to private.

https://dev.twitter.com/docs/api/1/get/search

Heck, you can search from a hashtag, even!

You can choose to have Twitter give you the tweets in JSON or XML.
JSON's a bit easier for me. No worries about parsing HTML whatsoever.

Also, don't worry about registering your app - they just ask you to
email. For some reason this is a "BIG HURDLE" to all the programmers I
talked to! I just emailed, and the Twitter representative was very
helpful. I got my XAuth key sorted in about 3 days. Of course, you
must justify why you need it...


On Sep 8, 1:46 am, saex  wrote:
> Hi
>
> i need to achieve that, show the last tweets of a programatically
> given user.
>
> But i need to do it without login on twitter, without using Oauth, and
> without registering my app on dev.twitter.com
>
> It is possible? i can't find the way to do it :S

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


[android-developers] Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-07 Thread xavier
My last request can't be meet so I just repost it.

Hi All,

I know that I can't replace the default InCallScreen when the call has
been set up, but I really want to show some additional info during the
call, so I want to create one new activity which is transparent and
always above the default InCallScreen.

The question is that I want to display different info when the caller
dials some special key (1-9,*,#), how can I get this key press
notification?
Could somebody help me out?

Thanks in advance.

Xavier

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Tablet vs Phone

2011-09-07 Thread ndiiie90
Hi Dianne,
thanks for fast reply,

I have read about that but i don't want to use many folders and xml
things.. I only code for 1 xml layout and will it work for both phone
and tablet? I don't have any tablet so I can't test it..


Thanks,

Rendy

On Sep 8, 1:08 pm, Dianne Hackborn  wrote:
> Those are screen densities, not screen sizes.  They have absolutely
> positively nothing to do with whether a device is a tablet or phone.
>
> http://android-developers.blogspot.com/2011/07/new-tools-for-managing...
>
>
>
>
>
>
>
>
>
> On Wed, Sep 7, 2011 at 9:36 PM, ndiiie 90  wrote:
> > Hi guys,
>
> > I wonder, if we code android normally with folder drawable-hdpi,
> > drawable-mdpi and drawable-ldpi,
> > will the application suit to the tablet size (which OS is 3.0 below)?
>
> > 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
>
> --
> 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] Re: How was the RenderScript Balls Demo Video Made?

2011-09-07 Thread Dianne Hackborn
Yeah it was done with a video capture card taking the Xoom's HDMI output as
its input.  I don't remember the exact card used.

On Wed, Sep 7, 2011 at 7:25 PM, Macotonalds  wrote:

> Hi.
>
> In this post, Mr.Bray says that "The video above, captured through an
> Android tablet’s HDMI out".
>
> I think that it is not necessary to use TV.
>
>
>
> http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
>
> On Aug 21, 5:29 am, newbyca  wrote:
> > i'd like to use direct video capture of my apps for making Android
> > Market promo videos. i know other devs have asked about this before
> > and up until now i hadn't found a way.
> >
> > then recently i saw theRenderScriptBalls demo on youtube:
> http://www.youtube.com/watch?v=uQ5NumRfHN4
> >
> > and it seems to be a direct capture. i also recently got a Xoom in my
> > test bed ... so i'm guessing the Balls video was made by connecting a
> > tablet to a TV via HDMI then recording from the TV? just hoping
> > someone could confirm?
> >
> > i'm not much of a tv person so my tv is ancient and doesn't have HDMI-
> > in, nor do i have a way to record from a TV to a computer for editing
> > and format conversion. point being, i'd be willing to invest in a new
> > tv and pc card ... but would like to know that it's necessary first.
> > also, any pc card recommendations would be great, but i know that
> > subject isn't really germane to this forum :)
> >
> > TIA//
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] java Thread class vs Android HanderThread: which is better?

2011-09-07 Thread Dianne Hackborn
They are both build on top of Thread, but easier to use, especially in
conjunction with the rest of the Android framework.

On Wed, Sep 7, 2011 at 8:52 PM, Pratik Prajapati  wrote:

> Hi All,
>
> Android documentation says that "consider 
> usingAsyncTask
>  or 
> HandlerThread,
> instead of the traditional 
> Thread
>  class"
>
> Any specific reason for this? Is it like " HanderThread" is just
> simpler implantation or also provides better performance?
>
> --
> Kind Regards,
> Pratik Prajapati
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Callback when a task goes to background and come to foreground

2011-09-07 Thread Dianne Hackborn
Sorry there is no such callback.

On Wed, Sep 7, 2011 at 9:03 PM, RIV  wrote:

> I really need a callback thats called when a task goes to the
> background. I have a refresh task that I start in my main activity. I
> need to stop it when the app goes to the background, and start it
> again when the app comes to the foreground. There are many activities
> in my app and I should not care which one is at the top when this
> happens. Is that possible?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Tablet vs Phone

2011-09-07 Thread Dianne Hackborn
Those are screen densities, not screen sizes.  They have absolutely
positively nothing to do with whether a device is a tablet or phone.

http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

On Wed, Sep 7, 2011 at 9:36 PM, ndiiie 90  wrote:

> Hi guys,
>
> I wonder, if we code android normally with folder drawable-hdpi,
> drawable-mdpi and drawable-ldpi,
> will the application suit to the tablet size (which OS is 3.0 below)?
>
> 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




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

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

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

[android-developers] about android

2011-09-07 Thread venugopal peparthi
Hi, friend
 iam venugopal ,iam strugling a lot about the how to display
phone number on android phone screen in the format of 1 (234) 567- 9807
while click on phone dialer pad.
please give me reply if we know.
Thanking u,
pvenugopal.p.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] custom viewgroup with a background.

2011-09-07 Thread billconan
Hello guys,

I want to create a custom widget.

Basically it is something like a toolBar,

I want to draw a background first, and draw my tool buttons on top of
the background.

However, it doesn't work.

What I did is I overrided the onDraw Function

@Override
protected void onDraw(Canvas canvas)
{
  custom draw...
}

But it seems that this function never gets called. I can only see my
tool buttons, but not the background. What should I do?


I have another question about calling the parent function from the
overrided function in java.


suppose I have a function named kkk which overrides the function aaa,
if I want to call aaa from kkk, I wrote:

@Override
protected void kkk()
{
 super();
}

The problem is, I want to do something before calling aaa

@Override
protected void kkk()
{
//do something here

super();
}

But java doesn't allow me to do this, it says that super must be the
first thing inside the function.

So how can I call super() after some other code?

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] Got the Bluetooth blues: Service Discovery Failed

2011-09-07 Thread darrinps
I've been fighting this for a long time now and thought I'd ask the
group.

I have a Samsung Galaxy S running 2.2. I am trying to connect to a
Bluetooth device (Free2move dongle).

I can get up to the point where I do the
createRfcommSocketToServiceRecord  and then I get Service Discovery
Failed.

Here is what my app (VERY closely based on BluetoothChat) is telling
me:

09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Paired device
found: Free2move WU
09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Found Free2move
device: 00:0B:CE:03:35:49
09-07 23:41:16.644: DEBUG/BluetoothChatService(11472): Will try to
connect to: 00:0B:CE:03:35:49
09-07 23:41:28.637: DEBUG/BluetoothChatService(11472): BluetoothSocket
created for device: Free2move WU
09-07 23:41:28.641: INFO/BluetoothChatService(11472): BEGIN
ConnectThread
09-07 23:41:28.656: INFO/BluetoothChatService(11472): Using socket to
connect now...
09-07 23:41:30.621: DEBUG/BluetoothChatService(11472): setState()
STATE_NONE -> STATE_CONNECTING
09-07 23:41:34.695: ERROR/BluetoothChatService(11472): Connection
failed
09-07 23:41:34.711: DEBUG/BluetoothChatService(11472): setState()
STATE_CONNECTING -> STATE_LISTEN
09-07 23:41:34.730: WARN/BluetoothChatService(11472): Connection
failed with exception: Service discovery failed
09-07 23:41:34.730: WARN/BluetoothChatService(11472): With cause:
class java.io.IOException
09-07 23:41:34.742: WARN/BluetoothChatService(11472):
android.bluetooth.BluetoothSocket$SdpHelper.doSdp: 377
09-07 23:41:34.742: WARN/BluetoothChatService(11472):
android.bluetooth.BluetoothSocket.connect: 201
09-07 23:41:34.762: WARN/BluetoothChatService(11472):
com.standardandroid.speedpro.bluetooth.BluetoothChatService
$ConnectThread.run: 569


The code that dies looks like this:

private class ConnectThread extends Thread
{
private final BluetoothSocket mmSocket;
private final BluetoothDevice mmDevice;

public ConnectThread(BluetoothDevice device)
{
mmDevice = device;
BluetoothSocket tmp = null;

// Get a BluetoothSocket for a connection with the
// given BluetoothDevice
try
{

tmp = 
device.createRfcommSocketToServiceRecord(MY_UUID);


I've seen some reports that this might be a bug in Android itself:
http://groups.google.com/group/android-platform/browse_thread/thread/de8310a904f2028e

Does anyone know? Android folks?

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] Tablet vs Phone

2011-09-07 Thread ndiiie 90
Hi guys,

I wonder, if we code android normally with folder drawable-hdpi,
drawable-mdpi and drawable-ldpi,
will the application suit to the tablet size (which OS is 3.0 below)?

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

2011-09-07 Thread Pratik Prajapati
you can also try
http://developer.android.com/reference/android/text/util/Linkify.html


On Wed, Sep 7, 2011 at 9:31 PM, arun kumar  wrote:

> hai venu just using condition format
>
> On 9/7/11, venugopal peparthi  wrote:
> > Hi, friend
> > how to convert the  general phone number  which is 1234567890  have to
> > change  tothe format of  1 (234) 567-9801 while clicking on keypad in
> > android.
> > Thank u .
> > venugopal.p
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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




-- 
Kind Regards,
Pratik Prajapati

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video issue

2011-09-07 Thread arun kumar
hai venu just using condition format

On 9/7/11, venugopal peparthi  wrote:
> Hi, friend
> how to convert the  general phone number  which is 1234567890  have to
> change  tothe format of  1 (234)  567-9801 while clicking on keypad in
> android.
> Thank u .
> venugopal.p
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: [ASK] HOW TO SEND LONGITUDE & LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..

2011-09-07 Thread dede pradana
Thanks All.. i'll Learn more!! :))

On Sep 7, 8:44 am, Miguel Morales  wrote:
> Depending on the specs, and if it doesn't need to be realtime you can
> just use http and serialize your data with xml or json.
>
> Ultimately, these are skills any good developer should have and as
> such you should try really hard to build it yourself and come back
> when you have any relevant android questions.
>
> On Tue, Sep 6, 2011 at 6:39 PM, Kristopher Micinski
>
>
>
>
>
>
>
>
>
>  wrote:
> > On Tue, Sep 6, 2011 at 9:33 PM, Jim Graham  wrote:
> >> On Tue, Sep 06, 2011 at 08:43:00PM -0400, Kristopher Micinski wrote:
> >>> You mean that you can't do it using socket programming because you
> >>> don't know the IP?  That's true, I spose...
>
> >> I think what he was saying is that he doesn't understand how to use
> >> socket programming.  My response to that is, simply, LEARN.  Unless
> >> you're getting down to layer one or two, it's not that difficult.
> >> And even I know that java (and no doubt Android) has library code to
> >> handle the lower layers  A simple data exchange between two
> >> clients is all it would take.  Something like:
>
> > ..., ah...
>
> > Google "beej."
>
> > Kris...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group,sendemail to android-developers@googlegroups.com
> > To unsubscribe from this group,sendemail to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] kokao Talk

2011-09-07 Thread nageswara rao rajana
Hi,

I installed kokao Talk in my mobile, please tell me how to add
friends.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Callback when a task goes to background and come to foreground

2011-09-07 Thread RIV
I really need a callback thats called when a task goes to the
background. I have a refresh task that I start in my main activity. I
need to stop it when the app goes to the background, and start it
again when the app comes to the foreground. There are many activities
in my app and I should not care which one is at the top when this
happens. Is that possible?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android Emulator starting Problem

2011-09-07 Thread Chris
Just install the sdk someplace without a space.  Or fix the reference to 
"Program Files." I recommended the former.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] java Thread class vs Android HanderThread: which is better?

2011-09-07 Thread Pratik Prajapati
Hi All,

Android documentation says that "consider
usingAsyncTask
 or 
HandlerThread,
instead of the traditional
Thread
 class"

Any specific reason for this? Is it like " HanderThread" is just
simpler implantation or also provides better performance?

-- 
Kind Regards,
Pratik Prajapati

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 read two types card at the same time?

2011-09-07 Thread xiaoailsa
Hi,everyone!
I have a problem in read card for the android 2.3.4 phone. Who can
help me ?Thank you very much !

   The using the foreground dispatch system say:" set up an array of
tag technologies that your application wants to handle. Call the
Object.class.getName() method to obtain the class of the technology
that you want to support:
techListsArray = new String[][] { new String[]
{ NfcF.class.getName() } };

I need to read two types card at the same time, how do ?
techListsArray = new String[][] { new String[]
{ NfcA.class.getName() } };
   //  techListsArray = new String[][] { new String[]
{ IsoDep.class.getName() } };


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 move an app on one smart phone to another

2011-09-07 Thread Chris
The app purchase is tied to the Google account used on the phone, not the 
phone itself.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 was the RenderScript Balls Demo Video Made?

2011-09-07 Thread Macotonalds
Hi.

In this post, Mr.Bray says that "The video above, captured through an
Android tablet’s HDMI out".

I think that it is not necessary to use TV.


http://android-developers.blogspot.com/2011/02/introducing-renderscript.html

On Aug 21, 5:29 am, newbyca  wrote:
> i'd like to use direct video capture of my apps for making Android
> Market promo videos. i know other devs have asked about this before
> and up until now i hadn't found a way.
>
> then recently i saw theRenderScriptBalls demo on 
> youtube:http://www.youtube.com/watch?v=uQ5NumRfHN4
>
> and it seems to be a direct capture. i also recently got a Xoom in my
> test bed ... so i'm guessing the Balls video was made by connecting a
> tablet to a TV via HDMI then recording from the TV? just hoping
> someone could confirm?
>
> i'm not much of a tv person so my tv is ancient and doesn't have HDMI-
> in, nor do i have a way to record from a TV to a computer for editing
> and format conversion. point being, i'd be willing to invest in a new
> tv and pc card ... but would like to know that it's necessary first.
> also, any pc card recommendations would be great, but i know that
> subject isn't really germane to this forum :)
>
> TIA//

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] close button

2011-09-07 Thread TreKing
On Wed, Sep 7, 2011 at 10:27 AM, Ali Alyassen  wrote:

> i have a close button in my project so i want if any one press these button
> i want my app close
>

Good for you. Thanks for letting us know. Please keep us posted as you add
other buttons.

-
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] Android Emulator starting Problem

2011-09-07 Thread Rathna Kumara Premadasa
   I'm also rename my SDK like "C:\Program Files\Android\Android~1\"
but same problem is occurring when I'm trying to run the emulator using avd
manager.But there is not any problem when run it from command line. Please
help me.

Thanks,
-- 
*Rathna Kumara Premadasa*
Sri Lanka.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android best way for socket communication need perfect url

2011-09-07 Thread TreKing
On Wed, Sep 7, 2011 at 4:25 AM, NAVI NEW  wrote:

> Android best way for socket communication need perfect url


I was going to help you, but I only have a "pretty good" url. Sorry.

-
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] Calendar: functional request

2011-09-07 Thread TreKing
On Tue, Sep 6, 2011 at 9:01 AM, Ivo Michiel  wrote:

> Is this "feature" planned? or could it be planned?


Don't count on it.
http://code.google.com/p/android/issues/detail?id=5475&q=calendar%20repeating%20event%20type%3DEnhancement&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

-
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] How to move an app on one smart phone to another

2011-09-07 Thread TreKing
On Tue, Sep 6, 2011 at 10:24 AM, johneboy45  wrote:

> On my old Droid I purchased an app.  I would like to know how to get that
> app onto my new Droid without re-purchasing that app.
>

Log in to the new device with your same Google Account and re-download from
the Market.

-
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] How to connect the android app with drupal.

2011-09-07 Thread TreKing
On Tue, Sep 6, 2011 at 11:02 PM, Vijendra Leslee
wrote:

> how to connect the drupal application(web site) to android through the
> XMLRPC or whatever.
>

http://tinyurl.com/3ezk9rg

-
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] Inflating editext into AlertDialog...

2011-09-07 Thread TreKing
On Wed, Sep 7, 2011 at 7:23 PM, sblantipodi wrote:

> have you got some code snippet to do it please?


What have you tried?

-
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] EditText with tiled background

2011-09-07 Thread Vladyslav Chyzhevskyi
Hi everyone! I tried to create EditText element with tiled background. I use 
9-patch, but this scratch image for whole edit area, rather I want to repeat 
it, look like in picture below.



How I can do this? Any ideas? Thx a lot.

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

[android-developers] Providing custom content for WebView-loaded resources: can't wait till 3.0...having trouble with CacheManager

2011-09-07 Thread Philippe Laporte
Hi,

In 3.0 (API level 11) there is this great addition for the WebViewClient: 
shouldInterceptRequest. This method returns custom content for a WebView's 
resource loads.

On Android there is the CacheManager. But is use is poorly documented, and it 
is deprecated.

I keep getting a NullPointerException in saveCacheFile because the code assumes 
that CacheResult outpustream != null, for the following example:

InputStream is = new ByteArrayInputStream("function callIt(){ 
alert('Hi');}".getBytes());

CacheManager.CacheResult cache_result = new CacheManager.CacheResult();

cache_result.setInputStream(is);

CacheManager.saveCacheFile("http://some.path/some_file";, cache_result);

This is happening running Android 2.2 on my LG Optimus and in the emulator.

Can we get shouldInterceptRequest already? :-)



Thanks,

Philippe Laporte


-
This email may contain confidential and privileged material for the sole use of 
the
intended recipient(s). Any review, use, distribution or disclosure by others is 
strictly
prohibited. If you are not the intended recipient (or authorized to receive for 
the
recipient), please contact the sender by reply email and delete all copies of 
this
message.

To reply to our email administrator directly, please email 
postmas...@goldspotmedia.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] Re: How to create Excel/Spread Sheet Programmatically in Android

2011-09-07 Thread Anil Jagtap
That is fantastic martypantsROK

On Sep 7, 5:24 am, martypantsROK  wrote:
> I have been using jexelapi for my app. Works great and is easy to
> program.http://jexcelapi.sourceforge.net/
>
> On Sep 6, 8:47 pm, pranay  wrote:
>
>
>
>
>
>
>
> > Hi Friends,
>
> > we have to create the excel sheet in android. We have no idea how to
> > achieve it.
> > Can u please share your views on this.
> > Is there any api available in android to do this?
>
> > Please guide.
>
> > Thanks.
> > Pranay

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Git and source code

2011-09-07 Thread Tushar Sahni
Hi

I am getting cursor out of bound exception while i am trying to get list
particular item positiion,Below is the crash report i am getting

09-08 01:20:45.651: ERROR/AndroidRuntime(16459): Caused by:
android.database.CursorIndexOutOfBoundsException: Index 114 requested, with
a size of 114
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:41)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
com.redorange.database.MessageDbAdapter.GetSeedDetails(MessageDbAdapter.java:360)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
com.redorange.headshop.CustomAdapter.onCreate(CustomAdapter.java:36)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): ... 11 more

Can anyone help me in this regard

Thanks in advance
Tushar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] close button

2011-09-07 Thread Ali Alyassen
hi
i have a close button in my project so i want if any one press these
button i want my app close

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


Re: [android-developers] Android Emulator starting Problem

2011-09-07 Thread Cristhian Flores
it's easy, only rename in the configuration in Window -> Preference ->
Android -> SDK Location:
Ex.
C:\Progra~1\Android\Android~1 --- It's correct

C:\Program files\Android\ Android-sdk-windows  It's not correct.

Good Luck and Good Coding

2011/9/7 Rathna Kumara Premadasa 

> Hi All,
>
> Whe i'm going to start my Android Emulator (Vertion 1.5, API Level 3)
> getting an error and didn't start it.The error was like this
>
> "invalid command-line parameter:
> Files\android-sdk-windows\tools/emulator-arm.exe.
> Hint: use '@foo' to launch a virtual device named 'foo'.
> please use -help for more information"
>
>
> Please help me anyway
>
> Thanks,
> --
> *Rathna Kumara Premadasa*
> Sri Lanka.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 to load Facebook contact photos in my application

2011-09-07 Thread Colin
Hello -

I found a couple discussion on a bug that doesn't allow developers to
use Facebook photos in their apps:
(http://groups.google.com/group/android-developers/browse_thread/
thread/3024a3c78e3405ee?pli=1)
(http://stackoverflow.com/questions/2383580/android-how-do-i-load-a-
contact-photo)

Is there any update on this bug? Has anyone found a fix or workaround?

Take care,
Colin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Views show up at the emulator but not on device

2011-09-07 Thread RC
After set up of a small app (using Level 4 / 1.6) for testing, it
appears that some prog. generated views show up at the emulator but
not on a testing device (G1).
Why is there a difference ? What's wrong?
Regards + thanks!
RC

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video issue

2011-09-07 Thread NAVI NEW
Please you create a new emulator or edit setting with sdcard enabled YES.
100% definitely it work

On Wed, Sep 7, 2011 at 3:53 PM, vani reddy wrote:

> Hi friends ,
> I am getting the below exception
> FileNotfoundException /mnt/sdcard   Permission Denied
> i am storing a video in sdcard and  playing it.
> i am getting this when ii  run on phone.when i run on emulator it works
> fine .
> I am getting Illegal argument exception when trying to play the video , in
> the below line
> video.setdataSource("VIDEO PATH");
> What to do  for this ?
>
>
> --
> Regards,
> Vani Reddy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Listview with image data from database

2011-09-07 Thread Atluri ajith
Hi,

i"m trying to display image with name in listview.
My content is coming from database using SimpleCursorAdapter.

When i'm trying with this below code getting force close.

setContentView(R.layout.places);
DatabaseHelper dbHelper = new
DatabaseHelper(this.getApplicationContext());
DbLoc = dbHelper.getWritableDatabase();
String[] DBcolumns = new String[]{DatabaseHelper.LocationName,
DatabaseHelper.FriendMobile};
Cursor cursor = DbLoc.rawQuery("SELECT "+
DatabaseHelper.LocationName +" ,"+ DatabaseHelper.LocationImage + "
FROM " + DatabaseHelper.LOCATIONTABLE , null);
// the desired columns to be bound
String[] columns = new String[] { DatabaseHelper.LocationName,
DatabaseHelper.LocationImage };
// the XML defined views which the data will be bound to
int[] to = new int[] { R.id.toptext, R.id.icon };
cursorAdapter = new SimpleCursorAdapter(this, 
R.layout.placeslist,
cursor, columns, to);
listContent.setAdapter(cursorAdapter);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Change resolution of video by java /Android code

2011-09-07 Thread NAVI NEW
how to Change resolution of video by java /Android code . what is the
best config of video for android video play.

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


[android-developers] can i able to play video using FFmpeg api.

2011-09-07 Thread NAVI NEW
can i able to play video using FFmpeg api.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android 2.3.5 device cannot find my app

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number  which is 1234567890  have to
change  tothe format of  1 (234)  567-9801 while clicking on keypad in
android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Application get crashed when camera open and i rotate the device.

2011-09-07 Thread Amit Mangal
thanks

On Wed, Sep 7, 2011 at 5:40 AM, Appaholics  wrote:

> http://tinyurl.com/3wdyybe
>
>
> On Wed, Sep 7, 2011 at 6:02 PM, Amit Mangal 
> wrote:
>
>> I cant debug how wil i rotate emulator?
>>
>> thanks
>>
>> On Wed, Sep 7, 2011 at 5:04 AM, TreKing  wrote:
>>
>>> On Wed, Sep 7, 2011 at 6:59 AM, Amit Mangal >> > wrote:
>>>
 I get Force close error.
>>>
>>>
>>> Debug your app.
>>>
>>>
>>> -
>>> 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
>>
>
>
>
> --
> --
> 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] rotate surfaceview with mediaplayer

2011-09-07 Thread arilanto
Hi all

I have an activity in portrait orientation.
In this activity, I have a surfaceview where I play videos.
The surfaceview don't take all the screen size.
what I want to do is to change the video to fullscreen (and rotate the
video to landscape) when user click on a button.

I try to use :
 - rotate and scale animation (should on surfaceview or his layout ?)
 - use 2 different surfaceview (but I need to rotate one of them and I
don't know how) and change my mediaplayer surfaceholder

with no success.

any Idea ?

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] Can't resume video playback after notification popup is dismissed

2011-09-07 Thread nehakoul
HI guys,

I have an activity which renders video . But when a notification pops
up (eg an alarm clock intimation ) the playback freezes and after we
dismiss it, the playback is not resumed. I would like to resume the
playback as soon as we dismiss the popup window. I am using
MediaPlayer object to play the video.
Here is a piece of my code :


public void surfaceCreated(SurfaceHolder holder) {
Log.d(TAG, "surfaceCreated called");

playVideo(path);

}
public void surfaceChanged(SurfaceHolder surfaceholder, int i, int j,
int k) {
Log.d(TAG, "surfaceChanged called");
}

public void surfaceDestroyed(SurfaceHolder surfaceholder) {
Log.d(TAG, "surfaceDestroyed called");
}

private void playVideo(String path) {
// Create a new media player and set the listeners
mMediaPlayer = new 
MediaPlayer();
System.out.println("SS request 
="+path);
currentChannelPath = path;

mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);

mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.prepareAsync();

mMediaPlayer.setOnBufferingUpdateListener(this);

mMediaPlayer.setOnCompletionListener(this);

mMediaPlayer.setOnPreparedListener(this);

mMediaPlayer.setOnVideoSizeChangedListener(this);

mMediaPlayer.setOnErrorListener(this);


mMediaPlayer.setScreenOnWhilePlaying(true);
}

public void onPrepared(MediaPlayer mediaplayer) {

Log.d(TAG, "onPrepared called");
startVideoPlayback();

}

public void onResume()//Start thumbnails
{
super.onResume();
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: what is the sense of xhdpi?

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number in the format of  1 (234)  567-9801
while clicking on keypad in android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video issue

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number  which is 1234567890  have to
change  tothe format of  1 (234)  567-9801 while clicking on keypad in
android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How to use Shared Preference in OnReceive

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number in the format of  1 (234)  567-9801
while clicking on keypad in android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Change resolution of video by java /Android code

2011-09-07 Thread NAVI NEW
i have a video which have which containing  different video
resolution, i want give it fix resolution by code.It's possible or not
by code

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 keep a service running to get SCREEN_ON broadcast?

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number  which is 1234567890  have to
change  tothe format of  1 (234)  567-9801 while clicking on keypad in
android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] which one is third api free for video play in android

2011-09-07 Thread NAVI NEW
which one is third api free for video play in android

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


Re: [android-developers] Buffer overflow in Record Thread in audio Flinger

2011-09-07 Thread venugopal peparthi
Hi, friend
how to convert the  general phone number  which is 1234567890  have to
change  tothe format of  1 (234)  567-9801 while clicking on keypad in
android.
Thank u .
venugopal.p

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Once again the INSTALL_FAILED_INSUFFICIENT_STORAGE error

2011-09-07 Thread NAVI NEW
Increase avd size

On Wed, Sep 7, 2011 at 4:14 PM, Palsson  wrote:

> Hey there,
>
> Thanks for your replies..
> I'm afraid none of them are solving the issue:
> - partition-size 1024
> - android:installLocation="preferExternal"
> - or reboot
>
> I can see at the top-icon-bar on my display, when the android desktop
> shows up after reboot, that it says "low on space".
> That could be related to what Pavel Mores said about some clean up
> failure.. and again, it worked to begin with. Then not.
>
> An amazing piece of issue!?
>
> Regards
> Palsson
>
>
> On Sep 6, 3:58 pm, Latimerius  wrote:
> > Thanks for the links, however even those don't seem to mention a solution
> > (or even a work-around) for pre-2.2 hardware devices ...
> >
> > On Tue, Sep 6, 2011 at 11:29 AM, sanj sahayam  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Have you read these articles on SO:
> >
> > >http://stackoverflow.com/questions/4709137/solution-android-install-f.
> ..
> >
> > >http://stackoverflow.com/questions/6788996/installation-error-install.
> ..
> >
> > > Have you also tried it by wiping the data on the emulator before
> launching?
> >
> > > when using adb push which filesystem location do you push to?
> >
> > > Cheers,
> >
> > > Sanj
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, 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

[android-developers] which one is third api free for video play in android

2011-09-07 Thread NAVI NEW
which one is third api free for video play in android

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


[android-developers] Re: Zooming Layout

2011-09-07 Thread Denis Radin
touchX = (originalX + layoutOffsetX) * scaleX;
touchY = (originalY + layoutOffsetY) * scaleY;

On Sep 7, 12:06 pm, bhavani sankari  wrote:
> Thanks!!!
>
> With ScaleAnimation, I was able to zoom entire layout with ImageViews.
>
> But I have touch problems in ImageViews. It is impossible to call
> touch event function by touching ImageViews  (but it can be called by
> touching original position).
>
> Any help?
>
> Regards
> Bhavani
>
> On Aug 19, 3:48 pm, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > On Fri, Aug 19, 2011 at 5:09 AM, bhavani sankari  
> > wrote:
> > > I have a requirement to zoom entire Relative layout .I found zooming
> > > APIs only from Android 3.0
>
> > > View.setPivotX(pivot.x);
> > > View.setPivotY(pivot.y);
> > > View.setScaleX(scaleX);
> > > View.setScaleY(scaleY);
>
> > > We are currently working in Gingerbread.How to use these APIs in
> > > Gingerbread.
>
> > You don't.
>
> > > Is it possible to get patches and apply in gingerbread so that we can
> > > make use of these APIs in Gingerbread.
>
> > No, sorry.
>
> > I have not tried those methods and do not know if they would be
> > suitable for zooming in the first place. In theory, they should, but
> > in theory, so would a ScaleAnimation.
>
> > --
> > 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


[android-developers] Android best way for socket communication need perfect url

2011-09-07 Thread NAVI NEW
Android best way for socket communication need perfect url

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 frame transcoding in android

2011-09-07 Thread NAVI NEW
Please help me how to do video frame trans-coding in android

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


[android-developers] How can i run javascript alerts in android code?

2011-09-07 Thread venugopal reddy
How can i run javascript alerts in android code?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Layout problem

2011-09-07 Thread rick777
I'm trying to build a simple Activity View with a LinearLayout containing a 
GridView followed by an ImageButton. My main.xml contains the following:


http://schemas.android.com/apk/res/android";
android:id="@+id/buttons" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="horizontal">
http://schemas.android.com/apk/res/android";
android:id="@+id/gridview" android:layout_width="wrap_content"
android:layout_height="match_parent" 
android:columnWidth="@dimen/word_image_width"
android:numColumns="auto_fit" android:verticalSpacing="10dp"
android:horizontalSpacing="10dp" android:stretchMode="columnWidth"
android:gravity="center" android:background="#" />
http://schemas.android.com/apk/res/android";
android:id="@+id/nextWordGroup" android:src="@drawable/next_arrow"
android:layout_height="match_parent" android:layout_width="wrap_content"
android:gravity="center" android:background="#" />



My GridView adapter contains the following getView() method:

public View getView(int position, View convertView, ViewGroup parent) {
FrameLayout frameLayout;
ImageView imageView;
if (convertView == null) {  // if it's not recycled, initialize some 
attributes
Resources res = context.getResources();
imageView = new ImageView(context);
imageView.setId(position);
imageView.setLayoutParams(new 
GridView.LayoutParams((int)res.getDimension(R.dimen.word_image_width), 
(int)res.getDimension(R.dimen.word_image_height)));
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
positionToViewMap.put(position, imageView);
} else {
imageView = (ImageView) convertView;
}

try {
imageView.setImageBitmap(AssetUtilWithNewStuff.getBitmapFromAsset(context, 
createFilePath(imageFiles[position])));
} catch (IOException e) {
e.printStackTrace();
 }
return imageView;
} 


When I run the application, the GridView is displayed, but the ImageButton 
specified in main.xml is not displayed. The GridView simply takes up the 
entire screen. But if I reverse the order of the Views in main.xml with 
ImageButton first, followed by GridView, they are both displayed. I've spent 
a lot of time fiddling with the parameters of the GridView, the ImageButtons 
that are added to it by the GridView adapter, and the ImageButton that is 
spec'd on main.xml. But no luck. Could use some help.

Thanks,

Rick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Incoming TCP messages are sometimes delayed over 3G

2011-09-07 Thread WB
Here is the configurations:
- Client application that uses NDK for networking.
- Maintains an open TCP connection at times.
- Server occasionally sends the app a TCP message
- Client occasionally sends the server a TCP message
- Tested primarily on Nexus S (also Galaxy S, Nexus One)

Here are the facts we are pretty sure we know:
- Message transit time is monitored carefully by checking timestamps
of the client and server logs (and with tcpdump).
- About 1 in 50 TCP messages from the server to the client are delayed
until the client sends a TCP message to the server
- These delayed message always arrive (eventually)
- The delayed message only arrives at the client immediately after the
client send an outgoing TCP message to the server
- Aside from the delayed messages, all non-affected messages from the
server to the client (remember occasionally) take 4-6 seconds to be
received (whereas Wifi is instant)
- Messages sent from the server to the client in quick succession
appear to arrive more quickly.
- At other times, the app exchanges a series of back and forth
messages with the server.  This often completes within 1 second (~3
back and forth exchanges)
- using tcpdump to monitor the device shows matching behaviour.
tcpdump see the exact same delay for incoming TCP message as the app
does.
- tcpdump also show the correspondence of the outgoing TCP message
that seems to "release" the inbound message.
- this happens whether the device is asleep or awake.
- We don't think it happens under Wifi (no reports)
- This happens on at least 2 cellular providers in 2 different
countries (Japan & Canada)
- These tests are almost always performed with the device sitting on a
desk (not moving or in transit)


Questions:
- Is this a known behaviour of 3G data networking?
- Is anyone aware of this as an issue with Android (2.3.X)

Given the above results, we don't think this is a problem with the
application because tcpdump also sees the delay.  It sort of feels
like a delayed ACK behaviour gone bad.   If anyone can offer insight
as to whether this might be an Android issue or possible an understood
behaviour of cellular network, I appreciate it.

Cheers

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Pinch zoom functionality for custom view

2011-09-07 Thread Balaji Khadake
Hi,

I am working on pinch zoom functionality for my custom view. I have
found many post over many blogs but still not proper solution as that
of iPhone pinch zoom. I have developed my application with OS version
2.2. Can anybody help me out of this? I have referred post over here,
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847
still getting some unwanted behavior as on zoom in at first it zoom
outs and then zoom in and vice-versa. Is there any provision to
calculate pinch zoom magnitude in android api?

Thanks,
Balaji

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calendar: functional request

2011-09-07 Thread Ivo Michiel
Simple feature request:

Entering repeated calendar apointments is not possible on android
phones.
Is this "feature" planned? or could it be planned?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Information about launch icons from a Live Wallpaper

2011-09-07 Thread justinhj
I see that there are events that one can use to react to launch icons
being moved and dropped onto the screen from a Live Wallpaper, but is
there a way to access the positions and sizes of these icons? I think
it enables some really interesting interactions with the wallpaper,
but I don't see any way currently of getting that information.

Justin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need your help: how to monitor the dialpad key press action in another application during an active call?

2011-09-07 Thread xavier
I know that I can't replace the default InCallScreen when the call has
been set up, but I really want to show some additional info during the
call, so I want to create one new activity which is transparent and
always above the default InCallScreen.

The question is that I want to display different info when the caller
dials some special key (1-9,*,#), how can I get this key press
notification?
Could somebody help me out?

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] Developing first Android app from iOS

2011-09-07 Thread Dan Uff
Hi all:
I have been an iOS developer for the last 3 years and am expanding my
small company to Android.

I have a very popular table based iOS reference app (Linux Command
Reference) that I'd like to port over to Android.  For anyone
interested, you can find it here:

http://itunes.apple.com/us/app/linux-command-reference/id324321674?mt=8

This is what I have so far:

I have the table list of items but do not know how to make it go from
a user's selection to another view.

I am looking for any assistance to get this project off the ground.

Thanks,
Dan Uff

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Sr. Oracle HRMS Consultant with IRecruitment_Hot Requirement Interview Tomarrow

2011-09-07 Thread Steven Smith
Hi,
Please let me know if you have anyone available for the below position,

Please send me your consultant resume at Steven.Smith@panzersolutions.comASAP.

/ Hot Requirement Interview Tomarrow /

 Position : Sr. Oracle HRMS Consultant with IRecruitment
Location: Greensboro, NC
Length:   6-12 months

Job Requirement:
Looking  for Sr. Oracle HRMS Consultant with IRecruitment.


Thanks,
Steven Smith

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MapActivity

2011-09-07 Thread ljboy
Hi,

I think the problem is, that the MapView needs to be in activity which
is derived from MapActivity.

import com.google.android.maps.MapActivity;

public class MyMapActivity extends MapActivity {
...
}


lj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 select the version of CTS?

2011-09-07 Thread EmilyGuo
Now we use rom version is 2.3.5, but which CTS version we should
selected?
I notice the new version is 2.3.7 on website.


How to select the version of CTS?
Appreciate you so much if you can help me solving the headache problem.

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


[android-developers] Blocked Bars Icon when integrating RIL driver with Phone App

2011-09-07 Thread steverino2

Hi all, we are integrating a RIL driver (AKA vendor RIL) with a CDMA
module.
It is testing on beagleboard C4 with Gingerbread 2.3, using pre-built
applications in the TI distro (gingerbread 2.3.4 devkit 2.1)

Debug traces from radio log confirm that RILD processes RIL requests
to our RIL driver OK,
including RADIO_POWER, SCREEN_STATE, BASEBAND_VERSION,
REGISTRATION_STATE
and so on.

However for some reason  BARS in the notification area shows the X-
bars icon (network unavailable)
in spite of the fact we can see RSSI polled to our RIL driver.
Evidently Phone app or whatever is
controlling the bars icon is in a state where it doesn't like
something about how the network is registered.
At least this is what we suspect. Note the network service name (a US
network operator) properly
appears on screen and also in the settings->wireless->mobile networks-
>network operators.

We've also seen it on occasion that the Phone App throws an exception
on
switching to CDMA technology.  We added patch from Issue 16479 but
that did not solve it.
I think this is a secondary issue for now.

On a related problem, we are also seeing it where Phone App throws an
exception
with screen notification android.process.acore
Phone App cannot be made to run properly.  For now we are just testing
the
network registration and messaging app.

Thanks for any insights.  we are not exactly stuck but could use some
help
how best to isolate this.   Is there a section of Phone App java we
can check
to see what is going on?

/steverino2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] calls, log n keypad - galaxy s 2

2011-09-07 Thread Rachel
While on a call if I need to dail another number I go to d keypad but
god forbid if I make a mistake of typing there is no back space option
neither will touch option work to allow it to rectify it

Also call log of bada is better giving history contact wise unlike
over here every call or text of 1contact is reflecting in original log
innumerably
logs are meant to be precise and CONTACT WISE like in bada I need to
click d contact to find out entire history of that contact be it text
or cal.

Lastly d lag time after a call is dropped or hung up to come back to
home screen takes forever man

awaiting revert
smart enough ne1 to solve these

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] PendingIntent of Notification don't call my Activity second time

2011-09-07 Thread fingerup
I hope that receiving a push-notification (c2dm) reception display
Notification. This Notification start, whith PendingIntent, an
Activity that display a pop-up. This popup launch my application when
clicking on the "ok" button.

Here is the code executed at the reception of push-notification :


private void dealMessage(Context context, Intent intent)
{
try
{
String message = intent.getExtras().getString("message");

Log.v("testc2dm","message : [" + message + "]");

//create bean of my Notification
NotificationPush notif = new NotificationPush();
notif.init((JSONObject)JSONValue.parse(message));

//create PendingIntent
Intent intentDialog = new Intent(context,
DialogActivity.class);
intentDialog.putExtra("notif", notif);
int requestCode= (int) System.currentTimeMillis();
PendingIntent pi = PendingIntent.getActivity(context,
requestCode, intentDialog, PendingIntent.FLAG_ONE_SHOT);

//Create the Notification
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS; // allume l'écran
n.flags |= Notification.FLAG_AUTO_CANCEL; // fait disparaitre
automatiquemet la notif apres un clic dessus
n.defaults = Notification.DEFAULT_ALL;
n.icon = R.drawable.icon;
n.when = System.currentTimeMillis();
n.setLatestEventInfo(context, "Mon titre", notif.getTitre(),
pi);

//add my Notification
NotificationManager notificationManager =
(NotificationManager)context.getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(ID_NOTIFICATION, n);
}
catch(Exception e)
{
Log.e("testc2dm","error :   [" + e.getMessage() + "]");
e.printStackTrace();
}
}


this is my activity that displays popup and start my application :


protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

Log.v("testc2dm","DialogActivity oncreate()");

//recovery of my bean Notification
Intent intentParam = getIntent();
NotificationPush notif =
(NotificationPush)intentParam.getSerializableExtra("notif");

if(notif != null)
{
Log.v("testc2dm","notif => titre [" + notif.getTitre() + "] --
msg [" + notif.getMessage() + "] -- type [" + notif.getType() + "]");

//display popup
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(notif.getMessage());
builder.setTitle(notif.getTitre());
builder.setCancelable(false);
builder.setNegativeButton("Ok", new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
if(!TestC2DMActivity.appIsRunning)
{
//launch first Activity of my application
Intent intent = new Intent(DialogActivity.this,
TestC2DMActivity.class);
startActivity(intent);
}
}
});
builder.show();
}
}


My problem is : if my application will be started by receiving a push
(c2dm > Notification > PendingIntent > DialogActivity >
TestC2DMActivity) then receive the next push, the Notification will
appear fine, but clicking on the Notification will not launch
DialogActivity. Whereas when the application is started normally (icon
of the app) then everything works fine.

I feel that if my application is started by my PendingIntent, then
this PendingIntent no longer want launch DialogActivity .. Why??

really thanks for your help and sorry for my bad english..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 connect the android app with drupal.

2011-09-07 Thread Vijendra Leslee
Hi friends let me know how to connect the drupal application(web site)
to android through the XMLRPC or whatever.

I hope to hear from u.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop the system vibration on receive call

2011-09-07 Thread SimonSays
i posted this question already on stackoverflow, but haven't got the
answer yet that i was looking for. here is the link:
http://stackoverflow.com/questions/7182186/stop-the-system-vibration-on-receive-call-in-android



i made a BroadcastReceiver that is listening for changes in the
PHONE_STATE. in the onReceive method, i'd like to turn off the system
vibrator. i tried different approaches, but non of them worked so far.

AudioManager audioManager =
(AudioManager)ctx.getSystemService(Context.AUDIO_SERVICE);
audioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,
AudioManager.VIBRATE_SETTING_OFF);

or

Vibrator vib =
(Vibrator)ctx.getSystemService(Context.VIBRATOR_SERVICE);
vib.cancel();

or

System.putInt(ctx.getContentResolver(), System.VIBRATE_ON, 0);

or all of them together.

the first approach with the AudioManager indeed changes the system
setting for the vibration, but it does not affect the currently
ongoing one.

any ideas?

Simon

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem launching intent in LiveWallpaper service from with the settings activity...

2011-09-07 Thread justinhj
I've been trying to find a way to pass a message to my Wallpaper
Service from a Settings Activity. So basically, click an item in the
Wallpaper settings which will then trigger an Intent in the Wallpaper
service.

In the settings code I do this:

   Contextcontext = getApplicationContext();

   Intent i = new Intent(context, RainWallpaper.class);
   i.setAction("my_action");

   context.startService(i);

In my AndroidManifest.xml I have the action in the intent filter
section for the Service

   

Finally in the WallpaperService I have overridden:

@Override public int onStartCommand(Intent intent, int flags, int
startId)

When I run the code and call StartService I get a security exception.

W/ActivityManager( 2466): Permission Denial: Accessing service
ComponentInfo{com.myclassname} from pid=2466, uid=1000 requires
android.permission.BIND_WALLPAPER

So this seems to say that I need to give the settings dialog
permission to BIND_WALLPAPER. So when I add that permission the
settings dialog now crashes with a security exception.

Justin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 create Excel/Spread Sheet Programmatically in Android

2011-09-07 Thread romdroid
http://lmgtfy.com/?q=android+create+excel+sheet

hit 2: http://www.vogella.de/articles/JavaExcel/article.html

is it that hard to google this yourself?

On 6 Sep., 13:47, pranay  wrote:
> Hi Friends,
>
> we have to create the excel sheet in android. We have no idea how to
> achieve it.
> Can u please share your views on this.
> Is there any api available in android to do this?
>
> Please guide.
>
> Thanks.
> Pranay

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] .asec files

2011-09-07 Thread johneboy45
I purchased an app for my Droid Incredible and now purchased Droid
Incredible 2.  i want to get my purchased app off the old phone onto
the new one.
Can i copy the .asec file from the old phone onto the new phone?  I
don't want to have to re-purchase the same app.

regards,

Johneboy45

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 move an app on one smart phone to another

2011-09-07 Thread johneboy45
I have an older Droid and a new one I just purchased.  On my old Droid
I purchased an app.  I would like to know how to get that app onto my
new Droid without re-purchasing that app.  Can I just copy the
apps .asec file to the new phone?

regards,

Johneboy45

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Spinner , truncate text instead of wrap text

2011-09-07 Thread TreKing
On Wed, Sep 7, 2011 at 10:16 AM, JI  wrote:

> Is it possible???


Probably - you can set the view that is used in spinner, and on that you can
probably set whether it wraps or not.

-
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: Application get crashed when camera open and i rotate the device.

2011-09-07 Thread Zsolt Vasvari
You should be able to just turn your laptop on its side.  If you are
using a desktop, this maybe difficut, but that's the price you have to
pay to debug this issue


On Sep 7, 8:32 pm, Amit Mangal  wrote:
> I cant debug how wil i rotate emulator?
>
> 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] Inflating editext into AlertDialog...

2011-09-07 Thread sblantipodi
Hi all,
have you got some code snippet to do it please?

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] onLayout not always called after onMeasure

2011-09-07 Thread Doug Gordon
There are at least two passes made for laying out views, and my custom 
view has onMeasure and onLayout overrides. At the end of onMeasure I 
call setMeasuredDimension as required by the API, and then onLayout 
usually gets called next. What I have noticed is that if, on the 2nd 
pass, I call setMeasuredDimension with the same arguments as the first 
time, then my onLayout is not called the 2nd time.


This was causing a bug in my app since I have several child views that I 
need to size and rearrange within this parent container view. But since 
what I am doing is to fit the child views into the visible space on the 
screen, the "measured dimension" of the container view may not change 
from one pass to the other, and the children don't get re-layed out (the 
layout parameters from the 1st pass are not the final values).


I currently have a kludged workaround for this, but I'm wondering if it 
would be OK to call layout() on my child views from within onDraw 
instead of within onLayout. The parent view does get drawn first, so I 
would guess that this wouldn't hurt anything.


Doug Gordon
GHCS Software

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: locking app: How I know when an

2011-09-07 Thread ngbl
Thanks Mark! I'll consider this later!

For now I got what I wanted

Kris, blocked applications continue running in the background

Here the answer, if you're interested
http://stackoverflow.com/questions/7248080/android-lock-apps

Thanks everybody for your time!

Ngbl

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bluetooth signalling between phones?

2011-09-07 Thread Droid
I want to make a bluetooth app that detects the same app in another
phone when near eachother.
Is this possible without pre-pairing the phones?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Git and source code

2011-09-07 Thread kypriakos

Aha - thanks! I found outdated posts but not this one.

On Sep 7, 3:44 pm, Mark Murphy  wrote:
> On Wed, Sep 7, 2011 at 3:01 PM, kypriakos  wrote:
> > I am getting connect failures on
> > repo init -u git://android.git.kernel.org/platform/manifest.git -b
> > froyo
>
> > I was able to download the source in the past but not the past couple
> > of days. Anything missing?
>
> http://stackoverflow.com/questions/7294796/access-denied-to-android-g...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [JOB] Android Developer, New York City - Day Rate: Open

2011-09-07 Thread OSS
2 Positions: This is a full time, 100% on-site, 4-week Android
Developer job located in New York City.  No telecommuting allowed.
Local candidates only.  Compensation is OPEN. Please provide day rate
when applying.  Seeking individuals only to work ON-SITE.  No firms or
shops unless you can spare 2 mid to senior-level Android Developers
for the duration of the project.  Thank you.

Our New York City client is looking for a contract Android Mobile
Software Developer to work on developing several new Android mobile
applications. Onsite ONLY / Weekend hours required / day rate
required.

They are an interactive agency specializing in Mobile Applications,
Web Design, Microsites, Online Advertising and a wide array of other
innovative interactive projects. Their client roster includes Fortune
500 Companies and major global brands. Candidates should also be able
to code in Java for Android and create cutting edge applications in
the mobile space. You should also be highly motivated, energized and
passionate about your craft.

Requirements include:

* Proficiency in Java and sound fundamentals of Java programming
* Understanding of Android architecture
* Understanding of Android memory management
* High level of skill with mobile User Experience and UI design/
development
* Highly skilled in developing with one or more Android middleware
frameworks
* Experience with Android UI Layout, Database, Multi-Threaded, etc
* Solid knowledge on Android System Architecture and Android source
code
* Thorough knowledge of using Eclipse IDE integrated with Android
Development Toolkit
* Strong experience developing Android applications including building
complex apps with widespread consumer bases
* 3-7+ years of software development experience (Java, C++, C#)
* Android software development experience (1-2 years)
* Android SDK 3.0 (or later)
* APIs – Android 3.0 API, Google 11 API
* OO design and development experience
* XML & SQLite experience
* Strong understanding of developing and consuming web services
* JQuery experience to leverage with hybrid web and native
applications
* Mobile web background
* Understanding of the Google Marketplace and how to submit
applications
* iOS and Windows Mobile app development experience a plus
* You must also demonstrate the ability to work both independently and
within a team environment, have broad software development skills
encompassing multiple programming languages and multiple platforms.
Experience with complex, asynchronous distributed software systems is
a plus

If you are interested in this gig, please submit your RESUME and DAY
RATE to opensourcestaffing|AT|gmail.com

Thank you,
Beau J. Gould
--
Open Source Staffing
http://opensourcestaffing.wordpress.com
opensourcestaffing|AT|gmail.com
Follow me on Twitter: ossjobs

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Honeycomb -- Activity.getIntent().getExtras().getString() encountering race condition?

2011-09-07 Thread IcedNet
I noticed I forgot to mention, I do not actually use those lines of
code for anything, I just placed them ahead of the original code
because I had a hunch about it being a race condition...
I never use that String, I left the original code in place  :D

Peace,
Dan

On Sep 7, 9:58 am, IcedNet  wrote:
> Yet, the three lines of code alleviates the issue on every run
> (Keeping that build around for the eventual Log.wtf factor)
> :)
>
> Thanks for the input, Mark, and keep those eBooks coming, man,
> priceless!
>
> Peace,
> Dan
>
> On Sep 6, 10:04 pm, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > On Tue, Sep 6, 2011 at 9:57 PM, IcedNet  wrote:
> > > Activity two starts and calls an internal AsyncTask which uses
> > > `Activity.this.getIntent().getExtras().getString()` as a
> > > parameter for an object
>
> > Grab this value in the AsyncTask constructor or onPreExecute(). Do not
> > refer to an Activity in doInBackground(), as with configuration
> > changes, it might not be the right activity anymore.
>
> > > I decided to place those three lines of code in onCreate and use a
> > > String field instead of accessing the Activity's Intent within
> > > doInBackground and have yet to encounter the issue since doing so.
>
> > Sounds like a plan.
>
> > --
> > 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 Android Development_ Version 3.6 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] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Michael Banzon
On Wed, Sep 7, 2011 at 10:07 PM, Miguel Morales  wrote:
> That's pretty much what I suggested.
>
> Anyway, parsing html with java is really easy.  Take a look at
> WebHarvest, and libraries like xlst and xpath.
> It'll be great programming experience and you'll be able to build all
> kinds of scrape services.  But, again, this may not be legal unless
> you get permission from the site.

Oh - WebHarvest looks very nice!

-- 
Michael Banzon
http://michaelbanzon.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] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Michael Banzon
On Wed, Sep 7, 2011 at 10:02 PM, saex  wrote:
> that sound's affordable, the problem is that i dnt have any skills
> about parsing HTML with java
>
> did you know a easy way to do this?

A quick trip around google pointed me at this library which sounds
good: http://htmlparser.sourceforge.net/

-- 
Michael Banzon
http://michaelbanzon.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] Re: How to obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread Miguel Morales
That's pretty much what I suggested.

Anyway, parsing html with java is really easy.  Take a look at
WebHarvest, and libraries like xlst and xpath.
It'll be great programming experience and you'll be able to build all
kinds of scrape services.  But, again, this may not be legal unless
you get permission from the site.

On Wed, Sep 7, 2011 at 1:02 PM, saex  wrote:
> that sound's affordable, the problem is that i dnt have any skills
> about parsing HTML with java
>
> did you know a easy way to do this?
>
> code examples are welcome
>
> and thanks a lot for help me
>
> On 7 sep, 21:00, Michael Banzon  wrote:
>> On Wed, Sep 7, 2011 at 7:46 PM, saex  wrote:
>> > Hi
>>
>> > i need to achieve that, show the last tweets of a programatically
>> > given user.
>>
>> > But i need to do it without login on twitter, without using Oauth, and
>> > without registering my app on dev.twitter.com
>>
>> > It is possible? i can't find the way to do it :S
>>
>> You could write some code to parse the HTML manually - it's never
>> going to be good though.
>>
>> If you choose this path I'd recommend writing a webservice to parse
>> the HTML on your request - updating the webservice whenever twitter
>> update their HTML is so much easier than updating the Android app.
>>
>> --
>> Michael Banzonhttp://michaelbanzon.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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: External images in the notification area.

2011-09-07 Thread rich friedel
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

How are you gaining access to the external images?

Are you sure that the files and storage actually are available to your 
application?

Before you do any work with the external storage, you should always call 
getExternalStorageState()
 to 
check whether the media is available.

If not, is the device plugged in with USB? 

Caution: External files can disappear if the user mounts the external 
storage on a computer or removes the media...

 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 obtain the tweets of a programatically given Twitter user without registering my app on dev.twitter.com?

2011-09-07 Thread saex
that sound's affordable, the problem is that i dnt have any skills
about parsing HTML with java

did you know a easy way to do this?

code examples are welcome

and thanks a lot for help me

On 7 sep, 21:00, Michael Banzon  wrote:
> On Wed, Sep 7, 2011 at 7:46 PM, saex  wrote:
> > Hi
>
> > i need to achieve that, show the last tweets of a programatically
> > given user.
>
> > But i need to do it without login on twitter, without using Oauth, and
> > without registering my app on dev.twitter.com
>
> > It is possible? i can't find the way to do it :S
>
> You could write some code to parse the HTML manually - it's never
> going to be good though.
>
> If you choose this path I'd recommend writing a webservice to parse
> the HTML on your request - updating the webservice whenever twitter
> update their HTML is so much easier than updating the Android app.
>
> --
> Michael Banzonhttp://michaelbanzon.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] Git and source code

2011-09-07 Thread Mark Murphy
On Wed, Sep 7, 2011 at 3:01 PM, kypriakos  wrote:
> I am getting connect failures on
> repo init -u git://android.git.kernel.org/platform/manifest.git -b
> froyo
>
> I was able to download the source in the past but not the past couple
> of days. Anything missing?

http://stackoverflow.com/questions/7294796/access-denied-to-android-git-kernel-org/7295506#7295506

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: project contains many error

2011-09-07 Thread rich friedel
have you tried cleaning the project? In the Eclipse toolbar select 
'Project>Clean'

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >