[android-developers] Re: Android : Detect history.back() in WebView

2011-08-26 Thread Aki
Seems like a bug. My code works if I change "history" to any other name. It 
works fine if I do this :

 

and add my JavaScriptInterface as :

 mWebContent.addJavascriptInterface(new JavaScriptInterface(), "android_app"); 
//history.back();



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

2011-08-26 Thread Zsolt Vasvari
Who knows?  And at the same time, Google has really stuck their head
into the sand and banned developers posting these issues on the
official technical issue forum:

http://www.google.com/support/forum/p/Android+Market/thread?tid=296b9269d8a130dc&hl=en





On Aug 26, 12:36 pm, vinith  wrote:
> HI,
>
> I have tested in-app purchase in Android 2.1, 2.2, 2.3 and was able to
> complete the in-app purchase process till a couple of days back.
>
> But yesterday onwards I am receiving response as "Your order is
> processing. Your item will be available in a few minutes." in android
> 2.2 & 2.3 while doing in-app purchase. And I am not able to make a
> purchase even after waiting for 1 hour.
>
> It works perfect in android 2.1.
>
> Also a new update was released for Android Market application
> yesterday or so.
>
> I am not sure why this is happening in 2.2 and 2.3.
> Kindly advice.

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


[android-developers] Re: In-App Billing forces screen orientation change

2011-08-26 Thread Zsolt Vasvari
SO why does that matter?  Fix your app so it can handle the
orientation change temporarily.  Since the Checkout it's presumably
covering your window, it should be fairly easy to just do nothing when
the orientation flips on you unexpectedly.



On Aug 26, 2:56 pm, groob  wrote:
> The problem is that my application, temporary covered by Google
> Checkout, is changing its orientation.
> Normally it would not react on it, keeping the display in portrait.
> Only when billing popup appears it is happening and is definitely
> unwanted behaviour.
>
> On Aug 26, 1:16 am, TreKing  wrote:
>
>
>
> > On Thu, Aug 25, 2011 at 5:37 PM, groob  wrote:
>
> > Solution to what? You didn't state a problem.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Error for getActivity() in alarm manager

2011-08-26 Thread Sumedh
Hi ,
trying to develope an application for scheduling the task using the
AlarmManager.
but getting an error "The method getActivity() is undefined for the
type TestBroadcastActivity"
My class is:-

public class TestBroadcastActivity extends BroadcastReceiver
{
@Override
 public void onReceive(Context context, Intent intent)
 {
   try
   {
 Bundle bundle = intent.getExtras();
 String message = bundle.getString("alarm_message");
 Intent newIntent = new Intent(context,
TestBroadcastActivity.class);
 newIntent.putExtra("alarm_message", message);
 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(newIntent);
}
   catch (Exception e)
   {
  e.printStackTrace();
   }
 }
 private void setRecurringAlarm(Context context)
 {
try
{
Calendar updateTime = Calendar.getInstance();
updateTime.setTimeZone(TimeZone.getTimeZone("GMT"));
updateTime.set(Calendar.HOUR_OF_DAY, 11);
updateTime.set(Calendar.MINUTE, 45);
Intent downloader = new Intent(context,
TestBroadcastActivity.class);
PendingIntent recurringDownload =
PendingIntent.getBroadcast(context,0, downloader,
PendingIntent.FLAG_CANCEL_CURRENT);
AlarmManager alarms =
(AlarmManager)getActivity().getSystemService(context.ALARM_SERVICE);
alarms.setInexactRepeating(AlarmManager.RTC_WAKEUP,updateTime.getTimeInMillis(),AlarmManager.INTERVAL_DAY,
recurringDownload);
}
catch (Exception e)
{
System.out.println("Exception-->>"+e);
}
}
}

I have imported all the related packages, but unable to fix the error.
Please help me,
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] Reading a MIFARE 1k TAG from 2.3.4 Nexus S

2011-08-26 Thread Ankit Maheshwari
Hey all ,
can any body please help me with the code to read a MIFARE 1k CARD,
i.e it UID and data from a specific blocks .. asuming that i know both
the keys ,
any kinda help will be really appreciated .. really need help
badly ...



Thanks
Ankit

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


[android-developers] what's main basic difference between mpeg4 and h264 codec

2011-08-26 Thread Naveen
what's main basic difference between mpeg4 and h264  codec

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


[android-developers] image btton problem

2011-08-26 Thread Ratheesh Valamchuzhy
Hi All

In the below fig, the corner  image button have some white image , i want to
change it
how can i do it..
plse help me



http://schemas.android.com/apk/res/android";
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:screenOrientation="portrait"
  android:orientation="vertical" >





  
  
  
[image: device1.png]



the button image i use is


[image: sign up.png]







-- 
-- 
ωιтн яєgαя∂ѕ
Ratheesh * *...

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

2011-08-26 Thread Kumar Bibek
Use a png image, that has transparent padding. Your image seems to have  a
opaque padding background.

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



On Fri, Aug 26, 2011 at 1:01 PM, Ratheesh Valamchuzhy
wrote:

>
>
>
> Hi All
>
> In the below fig, the corner  image button have some white image , i want
> to change it
> how can i do it..
> plse help me
>
>
> 
>xmlns:android="http://schemas.android.com/apk/res/android";
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>   android:screenOrientation="portrait"
>   android:orientation="vertical" >
>
>
>  android:layout_height="44dip"
> android:id="@+id/toolbar"
> android:layout_alignParentTop="true"
> android:background="@drawable/toolbar"
> android:text="SIGN IN"
> android:gravity="center"
> android:textSize="18px"
> android:textColor="#000"
> android:layout_width="fill_parent">
> 
>
>  android:layout_alignParentRight="true"
>   android:layout_alignParentTop="true"
>   android:id="@+id/skridttaellerHome"
>   android:src="@drawable/signup"
>   android:focusable="true"
>   android:background="#fff"
>
>   android:scaleType="fitXY"
>   android:layout_width="62dip"
>   android:layout_height="32dip"
>   android:layout_marginTop="6dip"
>   android:layout_marginBottom="6dip"
>   android:layout_marginRight="6dip">
>   
>   
> [image: device1.png]
>
>
>
> the button image i use is
>
>
> [image: sign up.png]
>
>
>
>
>
>
>
> --
> --
> ωιтн яєgαя∂ѕ
> Ratheesh * *...
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] How to record voice(audio) while call

2011-08-26 Thread Michael Banzon
On Fri, Aug 26, 2011 at 8:46 AM, GopalaKrishnan D  wrote:
> My Problem is how to record voice

I don't know how far along the process you are - but when I tried it I
had an example working in the emulator. Moving it to the phone made it
useless though. As far as I could tell at the time it was because the
calls where processed by hardware and NOT by software. This made the
voice of the "local" end recordable but as the other end was routed
directly to the speaker it was impossible to record with software.

As MM wrote you could record both sides of the conversation if the
speakerphone feature was enabled (which is just like recording one
side of the conversation). Most Market apps I have studied use this
approach. Individual handset makers could deviate from the
hardware-only path - but so far I have testet on about eight different
handsets (HTC, SE, Samsung, Motorola) and none had the ability.

If I am wrong about my assumptions I would very much like to be corrected ;-)

For code samples to record audio I recommend you do a *insert
favourite search engine* search.

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


[android-developers] Unable to Uncheck CheckBox on ListView

2011-08-26 Thread RobinDroid
Dear All,
I have problem on unchecking the checkbox when a menu is fired.?
I am using a baseAdapter where i have a getView() method as such:
---
public View getView(final int position, View view, ViewGroup parent) {
final ViewHolder viewHolder;
if (view == null) {
viewHolder = new ViewHolder();
view = layoutInfalter.inflate(R.layout.inbox_row, null);
viewHolder.checkBox = (CheckBox)
view.findViewById(R.id.inboxCheckId);
if (INBOX_VIEW_MODE == -1) {
viewHolder.checkBox.setVisibility(View.GONE);
} else {
InboxEmailAdapter.setInboxViewMode(1);
viewHolder.checkBox.setVisibility(View.VISIBLE);
checkedItems = new ArrayList();

viewHolder.checkBox.setOnCheckedChangeListener(new
OnCheckedChangeListener() {

@Override
public void 
onCheckedChanged(CompoundButton buttonView, boolean
isChecked) {
if(isChecked){

viewHolder.checkBox.setId(inboxEmailList.get(position).getId());

checkedItems.add(viewHolder.checkBox.getId());
}

}
});
}
viewHolder.emailFrom = (TextView)
view.findViewById(R.id.inboxFrom);
viewHolder.emailSubject = (TextView)
view.findViewById(R.id.inboxSubject);
view.setTag(viewHolder);

} else {
viewHolder = (ViewHolder) view.getTag();
}

viewHolder.emailFrom.setText(inboxEmailList.get(position).getFrom());

viewHolder.emailSubject.setText(inboxEmailList.get(position).getSubject());

return view;
}
---
On my activity:

I have a listView populated with checkbox?
I select checkbox, it is being selected.
On my Menu i have cancel button which on click should uncheck the
selected checkbox?
I am not being able to perform this?


Any helps would really help me

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


Re: [android-developers] Re: The emulator died when I execute ping in adb shell repeatly

2011-08-26 Thread David Turner
Besides, the ICMP protocol is not supported in the emulator, so ping will
never work, even if you're root.

2011/8/25 Luiz Carvalho 

> You need root permissions for run ping...
> use this: http://forum.xda-developers.com/showthread.php?t=682828
>
>
> On Jul 28, 11:27 pm, nanhu  wrote:
> > I want to analyse the network health
> >
> > On 7月29日, 上午10时00分, Nick Risaro  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I think that making a simple HttpRequest for a file in the server is a
> best
> > > solution, I'm assuming you want to do a health check.
> >
> > > On Thu, Jul 28, 2011 at 10:53 PM, nanhu 
> wrote:
> > > > our program need topinga host repeatly
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Detection where the application is launched from History

2011-08-26 Thread Hiko
Hello,everyone.

I would like to know how to detect where the application is launched
from
History when that application is started to launch.

currently, I try to use Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY to
be able to do that.
But, this method is not possible to detect.

My implementation with this is as below.


--
 if ( (orgintent.getFlags() &
Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) > 0 ){
Log.d(TAG,"LAUNCHED FROM HISTORY");
tabHost.setCurrentTab(1);
}
--

please let me know if you know the solution...

Best Regards,

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

2011-08-26 Thread Zsolt Vasvari
Obviously, given just that code, it's impossible to know to what's
wrong, but initialized checkedItems in getView() looks very incorrect
to me.

On Aug 26, 3:48 pm, RobinDroid  wrote:
> Dear All,
> I have problem on unchecking the checkbox when a menu is fired.?
> I am using a baseAdapter where i have a getView() method as such:
> ---­---­-
> public View getView(final int position, View view, ViewGroup parent) {
>                 final ViewHolder viewHolder;
>                 if (view == null) {
>                         viewHolder = new ViewHolder();
>                         view = layoutInfalter.inflate(R.layout.inbox_row, 
> null);
>                         viewHolder.checkBox = (CheckBox)
> view    .findViewById(R.id.inboxCheckId);
>                         if (INBOX_VIEW_MODE == -1) {
>                                 viewHolder.checkBox.setVisibility(View.GONE);
>                         } else {
>                                 InboxEmailAdapter.setInboxViewMode(1);
>                                 
> viewHolder.checkBox.setVisibility(View.VISIBLE);
>                                 checkedItems = new ArrayList();
>                                 
> viewHolder.checkBox.setOnCheckedChangeListener(new
> OnCheckedChangeListener() {
>
>                                         @Override
>                                         public void 
> onCheckedChanged(CompoundButton buttonView, boolean
> isChecked) {
>                                                 if(isChecked){
>
> viewHolder.checkBox.setId(inboxEmailList.get(position).getId());
>                                                         
> checkedItems.add(viewHolder.checkBox.getId());
>                                                 }
>
>                                         }
>                                 });
>                         }
>                         viewHolder.emailFrom = (TextView)
> view.findViewById(R.id.inboxFrom);
>                         viewHolder.emailSubject = (TextView)
> view.findViewById(R.id.inboxSubject);
>                         view.setTag(viewHolder);
>
>                 } else {
>                         viewHolder = (ViewHolder) view.getTag();
>                 }
>
> viewHolder.emailFrom.setText(inboxEmailList.get(position).getFrom());
>
> viewHolder.emailSubject.setText(inboxEmailList.get(position).getSubject());
>
>                 return view;
>         }
> ---­---­-
> On my activity:
>
> I have a listView populated with checkbox?
> I select checkbox, it is being selected.
> On my Menu i have cancel button which on click should uncheck the
> selected checkbox?
> I am not being able to perform this?
>
> Any helps would really help me

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


[android-developers] Re: what's main basic difference between mpeg4 and h264 codec

2011-08-26 Thread Zsolt Vasvari
Before coming to the Android SDK forum, I assume you exhausted all
other more appropriate venues to get an answer, such as Google Search,
WIkipedia



On Aug 26, 3:22 pm, Naveen  wrote:
> what's main basic difference between mpeg4 and h264  codec

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] The way to get coordinate of any element on activity

2011-08-26 Thread Vicky Wang
What tool can help to get coordinate of element?

Thank you a lot.

On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang  wrote:

> Hi ,all
> What way to get coordinate of any element on activity? Thank you for your
> help.
>
>
> Thanks.
>

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

Re: [android-developers] image btton problem

2011-08-26 Thread Ratheesh Valamchuzhy
The image is a png image...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] The way to get coordinate of any element on activity

2011-08-26 Thread Yahor Paulavets
Hello,

int[] xy = new int[2];
anyView.getLocationOnScreen(xy);
// enjoy

Best regards,
Yahor

On Fri, Aug 26, 2011 at 11:30 AM, Vicky Wang  wrote:

> What tool can help to get coordinate of element?
>
> Thank you a lot.
>
>
> On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang  wrote:
>
>> Hi ,all
>> What way to get coordinate of any element on activity? Thank you for your
>> help.
>>
>>
>> Thanks.
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] The way to get coordinate of any element on activity

2011-08-26 Thread Yahor Paulavets
Tool: hierarchy viewer at 'tool' dir in sdk.

Best regards,
Yahor

On Fri, Aug 26, 2011 at 11:54 AM, Yahor Paulavets <
ypaulav...@agilefusion.com> wrote:

> Hello,
>
> int[] xy = new int[2];
> anyView.getLocationOnScreen(xy);
> // enjoy
>
> Best regards,
> Yahor
>
>
> On Fri, Aug 26, 2011 at 11:30 AM, Vicky Wang  wrote:
>
>> What tool can help to get coordinate of element?
>>
>> Thank you a lot.
>>
>>
>> On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang  wrote:
>>
>>> Hi ,all
>>> What way to get coordinate of any element on activity? Thank you for your
>>> help.
>>>
>>>
>>> Thanks.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] The way to get coordinate of any element on activity

2011-08-26 Thread Vicky Wang
Thanks a lot for your response.
I also have another question, sorry for that.
No idea to get the view instance on activity, because the view on activity
is not in my application, it is on another activity.
How can I get the view?
Thanks again.


On Fri, Aug 26, 2011 at 4:55 PM, Yahor Paulavets  wrote:

> Tool: hierarchy viewer at 'tool' dir in sdk.
>
> Best regards,
> Yahor
>
>
> On Fri, Aug 26, 2011 at 11:54 AM, Yahor Paulavets <
> ypaulav...@agilefusion.com> wrote:
>
>> Hello,
>>
>> int[] xy = new int[2];
>> anyView.getLocationOnScreen(xy);
>> // enjoy
>>
>> Best regards,
>> Yahor
>>
>>
>> On Fri, Aug 26, 2011 at 11:30 AM, Vicky Wang  wrote:
>>
>>> What tool can help to get coordinate of element?
>>>
>>> Thank you a lot.
>>>
>>>
>>> On Thu, Aug 25, 2011 at 4:04 PM, Vicky Wang  wrote:
>>>
 Hi ,all
 What way to get coordinate of any element on activity? Thank you for
 your help.


 Thanks.

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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's main basic difference between mpeg4 and h264 codec

2011-08-26 Thread Yahor Paulavets
Hello,

Answer: http://www.lmsify.com/3D479

Best regards,
Yahor

On Fri, Aug 26, 2011 at 11:13 AM, Zsolt Vasvari  wrote:

> Before coming to the Android SDK forum, I assume you exhausted all
> other more appropriate venues to get an answer, such as Google Search,
> WIkipedia
>
>
>
> On Aug 26, 3:22 pm, Naveen  wrote:
> > what's main basic difference between mpeg4 and h264  codec
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: In-App Billing forces screen orientation change

2011-08-26 Thread groob
Imagine that my application is a game and not all games are suitable
to be displayed in both orientations.
This is why I'm forcing PORTRAIT in my manifest.

Although it is clearly requested, when Google Checkout window appears
my manifest request is simply ignored and my game turns to landscape.
I'd gladly handle the orientation change, but don't know why. The best
way IMO is to ignore it, but I find no way to achieve it.



On Aug 26, 9:06 am, Zsolt Vasvari  wrote:
> SO why does that matter?  Fix your app so it can handle the
> orientation change temporarily.  Since the Checkout it's presumably
> covering your window, it should be fairly easy to just do nothing when
> the orientation flips on you unexpectedly.
>
> On Aug 26, 2:56 pm, groob  wrote:
>
>
>
>
>
>
>
> > The problem is that my application, temporary covered by Google
> > Checkout, is changing its orientation.
> > Normally it would not react on it, keeping the display in portrait.
> > Only when billing popup appears it is happening and is definitely
> > unwanted behaviour.
>
> > On Aug 26, 1:16 am, TreKing  wrote:
>
> > > On Thu, Aug 25, 2011 at 5:37 PM, groob  
> > > wrote:
>
> > > Solution to what? You didn't state a problem.
>
> > > ---
> > >  --
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices- Hide quoted text -
>
> > - Show quoted text -

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


[android-developers] how to display Smiley/Emoji in android edittext?

2011-08-26 Thread vijayakumar M
Hi guys ,

how to display Smiley/Emoji in android edittext? please help me friends.

-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.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: Android : Detect history.back() in WebView

2011-08-26 Thread Aki
O maybe this was intentional. Can anybody, *please*, say something?

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

2011-08-26 Thread skink


vijayakumar M wrote:
> Hi guys ,
>
> how to display Smiley/Emoji in android edittext? please help me friends.
>
> --
>
>
>
>
> "Nobody can go back and start a new beginning, but anyone can start today
> and make a new ending"
> -
> Thanks,
> Regards,
> νιנαソαkum@r M
> BloG:http://iamvijayakumar.blogspot.com/

Use SpannableStringBuilder and its setSpan method

pskinklder and its setSpan method

pskink

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

2011-08-26 Thread vijayakumar M
ok..pskink,

then how to add multible emoji in edittext?

On Fri, Aug 26, 2011 at 3:15 PM, skink  wrote:

>
>
> vijayakumar M wrote:
> > Hi guys ,
> >
> > how to display Smiley/Emoji in android edittext? please help me friends.
> >
> > --
> >
> >
> >
> >
> > "Nobody can go back and start a new beginning, but anyone can start today
> > and make a new ending"
> > -
> > Thanks,
> > Regards,
> > νιנαソαkum@r M
> > BloG:http://iamvijayakumar.blogspot.com/
>
> Use SpannableStringBuilder and its setSpan method
>
> pskinklder and its setSpan method
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

2011-08-26 Thread skink


On Aug 26, 11:49 am, vijayakumar M  wrote:
> ok..pskink,
>
> then how to add multible emoji in edittext?
>
>
>
>
>
> On Fri, Aug 26, 2011 at 3:15 PM, skink  wrote:
>
> > vijayakumar M wrote:
> > > Hi guys ,
>
> > > how to display Smiley/Emoji in android edittext? please help me friends.
>
> > > --
>
> > > "Nobody can go back and start a new beginning, but anyone can start today
> > > and make a new ending"
> > > -
> > > Thanks,
> > > Regards,
> > > νιנαソαkum@r M
> > > BloG:http://iamvijayakumar.blogspot.com/
>
> > Use SpannableStringBuilder and its setSpan method
>
> > pskinklder and its setSpan method
>
> > pskink
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
>
> "Nobody can go back and start a new beginning, but anyone can start today
> and make a new ending"
> -
> Thanks,
> Regards,
> νιנαソαkum@r M
> BloG:http://iamvijayakumar.blogspot.com/
> Mob.No:09048382536(Kerala)
> Mob.No:09751076707(TN)

Call setSpan multiple times?

pskink

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

2011-08-26 Thread rickrvo
I'm out of options... :\ can anyone send me these libs already
compiled by email please? I would really appreciate it! :\ I'm running
out of time trying to get this to work on my project...

Thanks

On 25 Ago, 11:19, rickrvo  wrote:
> I ran this:  $ . build/envsetup.sh  inside ~/bin/WORKING_COPY folder
> and it returned this:
> including device/htc/passion/vendorsetup.sh
> including device/samsung/crespo4g/vendorsetup.sh
> including device/samsung/crespo/vendorsetup.sh
> including sdk/bash_completion/adb.bash
>
> Then I went into the source folder and did:
> $ m -j16 clean-libcrypto clean-libssl clean-openssl clean-ssltest
> Couldn't locate the top of the tree.  Try setting TOP.
>
> I even tried to run this:    source ~/bin/WORKING_DIRECTORY/build/
> envsetup.sh    inside the source folder but it didn't return anything
> and still m or mm commands return the try setting top message
>
> On 11 Ago, 13:56, Amit Pundir  wrote:
>
>
>
>
>
>
>
> > On Fri, Aug 5, 2011 at 3:27 PM, rickrvo  wrote:
> > > I can't get m nor mm commands to work. both say to try setting top...
>
> > > help please :\
>
> > How did you run "envsetup.sh"? It is a script which will set your build
> > environment for AOSP.
>
> > You should use it like this -->
>
> > $ source $(AOSP_ROOT)/build/envsetup.sh
> >               where AOSP_ROOT is the AOSP root directory.
>
> > This will export "m" and "mm" commands.
>
> > Regards,
> > Amit Pundir
>
> > > On 4 Ago, 15:53, rickrvo  wrote:
> > > > I've read the instructions... and ran the envsetup.sh but didn't
> > > > realize that it must be ran on the openssl folder and not on
> > > > working_directory folder...
>
> > > > after running from openssl folder: m -j16 clean-libcrypto clean-libssl
> > > > clean-openssl clean-ssltest
> > > > Couldn't locate the top of the tree.  Try setting TOP.
>
> > > > What is TOP? How do I set it? :\
>
> > > > It's hard just to build a openssl version for android... I don't get
> > > > why every project has only the source available for people to compile
> > > > themselves... and not a lib.so for a direct download... then what
> > > > happens is that noobs like me fill forums with questions... lol and
> > > > some may seem stupid... but for me with almost no experience in linux
> > > > is a pain in the a** lol
>
> > > > On 4 Ago, 15:21, Nikolay Elenkov  wrote:
>
> > > > > On Thu, Aug 4, 2011 at 11:13 PM, rickrvo  wrote:
> > > > > > I've managed to build the ASOP and ran envsetup.sh but still can't
> > > > > > find m and mm commands... :\
>
> > > > > Did you read the instructions? Or the shell script?
>
> > > > > Invoke ". build/envsetup.sh" from your shell to add the following
> > > > > functions to  your environment:
> > > > > - croot:   Changes directory to the top of the tree.
> > > > > - m:       Makes from the top of the tree.
> > > > > - mm:      Builds all of the modules in the current directory.
> > > > > - mmm:     Builds all of the modules in the supplied directories.
> > > > > - cgrep:   Greps on all local C/C++ files.
> > > > > - jgrep:   Greps on all local Java files.
> > > > > - resgrep: Greps on all local res/*.xml files.
> > > > > - godir:   Go to the directory containing a file.
> > > > > - cmremote: Add git remote for CM Gerrit Review
> > > > > - cmgerrit: Send patch request request to CyanogenMod repos
> > > > > - mka:     Builds using SCHED_BATCH on all processors
> > > > > - reposync: Parallel repo sync using ionice and SCHED_BATCH
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: Unable to Uncheck CheckBox on ListView

2011-08-26 Thread RobinDroid
Why is it so? for me it's working, well my view has slide modification
as i need to hide intially the checkbox and all and as to that reason
my view as above.
Can you suggest me what seems incorrect in the getView() ?

On Aug 26, 1:11 pm, Zsolt Vasvari  wrote:
> Obviously, given just that code, it's impossible to know to what's
> wrong, but initialized checkedItems in getView() looks very incorrect
> to me.
>
> On Aug 26, 3:48 pm, RobinDroid  wrote:
>
>
>
>
>
>
>
> > Dear All,
> > I have problem on unchecking the checkbox when a menu is fired.?
> > I am using a baseAdapter where i have a getView() method as such:
> > --- 
> > ­-- 
> > -­-
> > public View getView(final int position, View view, ViewGroup parent) {
> >                 final ViewHolder viewHolder;
> >                 if (view == null) {
> >                         viewHolder = new ViewHolder();
> >                         view = layoutInfalter.inflate(R.layout.inbox_row, 
> > null);
> >                         viewHolder.checkBox = (CheckBox)
> > view    .findViewById(R.id.inboxCheckId);
> >                         if (INBOX_VIEW_MODE == -1) {
> >                                 
> > viewHolder.checkBox.setVisibility(View.GONE);
> >                         } else {
> >                                 InboxEmailAdapter.setInboxViewMode(1);
> >                                 
> > viewHolder.checkBox.setVisibility(View.VISIBLE);
> >                                 checkedItems = new ArrayList();
> >                                 
> > viewHolder.checkBox.setOnCheckedChangeListener(new
> > OnCheckedChangeListener() {
>
> >                                         @Override
> >                                         public void 
> > onCheckedChanged(CompoundButton buttonView, boolean
> > isChecked) {
> >                                                 if(isChecked){
>
> > viewHolder.checkBox.setId(inboxEmailList.get(position).getId());
> >                                                         
> > checkedItems.add(viewHolder.checkBox.getId());
> >                                                 }
>
> >                                         }
> >                                 });
> >                         }
> >                         viewHolder.emailFrom = (TextView)
> > view.findViewById(R.id.inboxFrom);
> >                         viewHolder.emailSubject = (TextView)
> > view.findViewById(R.id.inboxSubject);
> >                         view.setTag(viewHolder);
>
> >                 } else {
> >                         viewHolder = (ViewHolder) view.getTag();
> >                 }
>
> > viewHolder.emailFrom.setText(inboxEmailList.get(position).getFrom());
>
> > viewHolder.emailSubject.setText(inboxEmailList.get(position).getSubject());
>
> >                 return view;
> >         }
> > --- 
> > ­-- 
> > -­-
> > On my activity:
>
> > I have a listView populated with checkbox?
> > I select checkbox, it is being selected.
> > On my Menu i have cancel button which on click should uncheck the
> > selected checkbox?
> > I am not being able to perform this?
>
> > Any helps would really help me

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


[android-developers] Decompress GZip string in Java

2011-08-26 Thread mugurel cosmin
How can i decomrepss a gzip string in java ?

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 11:00, rickrvo  wrote:
> I'm out of options... :\ can anyone send me these libs already
> compiled by email please? I would really appreciate it! :\ I'm running
> out of time trying to get this to work on my project...
>
> Thanks


Few things:

1) wrong group
2) don't you think that you are asking to be exploited, when asking
people to send you precompiled libraries, especially ones that are
essential for security?

--
Daniel

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


Re: [android-developers] Decompress GZip string in Java

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 11:05, mugurel cosmin  wrote:
> How can i decomrepss a gzip string in java ?

By using appropriate API.

-- 
Daniel Drozdzewski

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


Re: [android-developers] Re: how to display Smiley/Emoji in android edittext?

2011-08-26 Thread vijayakumar M
Hi,


check this below code

 if(position==0){
 spannable = new SpannableString ("");
 Drawable d =
getResources().getDrawable(em.mThumbIds[position]);
 d.setBounds(0, 0, d.getIntrinsicWidth(),
d.getIntrinsicHeight());
   ImageSpan span = new ImageSpan(d,
ImageSpan.ALIGN_BASELINE);
  spannable.setSpan (span,mOutEditText. getText
(). length (),mOutEditText. getText (). length () ,
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
 }
 else if(position==1){
spannable = new SpannableString
("");
Drawable d =
getResources().getDrawable(em.mThumbIds[position]);
d.setBounds(0, 0, d.getIntrinsicWidth(),
d.getIntrinsicHeight());
  ImageSpan span = new ImageSpan(d,
ImageSpan.ALIGN_BASELINE);
 spannable.setSpan (span,mOutEditText.
getText (). length (),mOutEditText. getText (). length () ,
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
}

else if(position==2){
   spannable = new SpannableString ("");
   Drawable d =
getResources().getDrawable(em.mThumbIds[position]);
   d.setBounds(0, 0, d.getIntrinsicWidth(),
d.getIntrinsicHeight());
 ImageSpan span = new ImageSpan(d,
ImageSpan.ALIGN_BASELINE);
spannable.setSpan (span,mOutEditText.
getText (). length (),mOutEditText. getText (). length () ,
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
   }

mOutEditText.setText (spannable);

On Fri, Aug 26, 2011 at 3:27 PM, skink  wrote:

>
>
> On Aug 26, 11:49 am, vijayakumar M  wrote:
> > ok..pskink,
> >
> > then how to add multible emoji in edittext?
> >
> >
> >
> >
> >
> > On Fri, Aug 26, 2011 at 3:15 PM, skink  wrote:
> >
> > > vijayakumar M wrote:
> > > > Hi guys ,
> >
> > > > how to display Smiley/Emoji in android edittext? please help me
> friends.
> >
> > > > --
> >
> > > > "Nobody can go back and start a new beginning, but anyone can start
> today
> > > > and make a new ending"
> > > > -
> > > > Thanks,
> > > > Regards,
> > > > νιנαソαkum@r M
> > > > BloG:http://iamvijayakumar.blogspot.com/
> >
> > > Use SpannableStringBuilder and its setSpan method
> >
> > > pskinklder and its setSpan method
> >
> > > pskink
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> >
> > "Nobody can go back and start a new beginning, but anyone can start today
> > and make a new ending"
> > -
> > Thanks,
> > Regards,
> > νιנαソαkum@r M
> > BloG:http://iamvijayakumar.blogspot.com/
> > Mob.No:09048382536(Kerala)
> > Mob.No:09751076707(TN)
>
> Call setSpan multiple times?
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

2011-08-26 Thread mugurel cosmin
I tried allot of things but non of them work. What could you suggest me to
do ? is it ok to store the gzip into a string from the server ?

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 11:17, mugurel cosmin  wrote:
> I tried allot of things but non of them work. What could you suggest me to
> do ? is it ok to store the gzip into a string from the server ?

Sure it is ok.

Did you even try to Google for answer to your question?

It so happens, that Java at least since version 1.4 has native support
for (G)ZIP.

Go and search for the answer, and I promise you will find it.

-- 
Daniel Drozdzewski

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


Re: [android-developers] Decompress GZip string in Java

2011-08-26 Thread mugurel cosmin
I`m getting an error of type  java.io.IOException: Not in GZIP format,  when
i use GZIPInputStream

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 11:26, mugurel cosmin  wrote:
> I`m getting an error of type  java.io.IOException: Not in GZIP format,  when
> i use GZIPInputStream

Now we are getting somewhere...

How do you create your GZIPInputStream ?

-- 
Daniel Drozdzewski

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


[android-developers] Re: how to display Smiley/Emoji in android edittext?

2011-08-26 Thread skink


On Aug 26, 12:14 pm, vijayakumar M  wrote:
> Hi,
>
> check this below code
>


and your question is ...?

pskink

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

2011-08-26 Thread vijayakumar M
it's not adding multiple emoji..

ex:
1.if i click position 2 emoji.. it's showing position 2 emoji in edittext..
2. then i click position 3 emoji. old emoji replacing postion 3 emoji
displaying why?


On Fri, Aug 26, 2011 at 4:04 PM, skink  wrote:

>
>
> On Aug 26, 12:14 pm, vijayakumar M  wrote:
> > Hi,
> >
> > check this below code
> >
>
>
> and your question is ...?
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

2011-08-26 Thread mugurel cosmin
I`m getting the data from a json array in which i have a gzipped url encoded
string. I`m getting the string url decoding it, converting the string to
bytes array[] , then i create an inputstream from the byte array and
then i`m trying to use GZIPInputStream. In the console i get an error of
unknown format. The server is running UTF-8 and the gzip data is created
with gzcompress from php.

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

2011-08-26 Thread Sumedh

I have resolved the error by

AlarmManager alarms =
(AlarmManager)context.getSystemService(Context.ALARM_SERVICE);

but now at the time of execution getting exception---

08-26 16:29:52.850: ERROR/AndroidRuntime(382): Uncaught handler:
thread main exiting due to uncaught exception
08-26 16:29:53.030: ERROR/AndroidRuntime(382):
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.example.test/
com.example.test.TestBroadcastActivity}: java.lang.ClassCastException:
com.example.test.TestBroadcastActivity
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2417)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.os.Looper.loop(Looper.java:123)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
java.lang.reflect.Method.invokeNative(Native Method)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
java.lang.reflect.Method.invoke(Method.java:521)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
dalvik.system.NativeStart.main(Native Method)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): Caused by:
java.lang.ClassCastException: com.example.test.TestBroadcastActivity
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2409)
08-26 16:29:53.030: ERROR/AndroidRuntime(382): ... 11 more
08-26 16:29:53.250: INFO/Process(66): Sending signal. PID: 382 SIG: 3
08-26 16:29:53.250: INFO/dalvikvm(382): threadid=7: reacting to signal
3
08-26 16:29:53.250: ERROR/dalvikvm(382): Unable to open stack trace
file '/data/anr/traces.txt': Permission denied

what is the exact way to schedule an activity in android?
please help

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


Re: [android-developers] Re: how to display Smiley/Emoji in android edittext?

2011-08-26 Thread skink


vijayakumar M wrote:
> it's not adding multiple emoji..
>
> ex:
> 1.if i click position 2 emoji.. it's showing position 2 emoji in edittext..
> 2. then i click position 3 emoji. old emoji replacing postion 3 emoji
> displaying why?
>
>
> On Fri, Aug 26, 2011 at 4:04 PM, skink  wrote:
>
> >
> >
> > On Aug 26, 12:14 pm, vijayakumar M  wrote:
> > > Hi,
> > >
> > > check this below code
> > >
> >
> >
> > and your question is ...?
> >
> > pskink
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
>
>
>
> --
>
>
>
>
> "Nobody can go back and start a new beginning, but anyone can start today
> and make a new ending"
> -
> Thanks,
> Regards,
> νιנαソαkum@r M
> BloG:http://iamvijayakumar.blogspot.com/
> Mob.No:09048382536(Kerala)
> Mob.No:09751076707(TN)

read setSpan docs:

http://developer.android.com/reference/android/text/Spannable.html

pskinkroid/text/Spannable.html

pskink

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 11:58, mugurel cosmin  wrote:
> I`m getting the data from a json array in which i have a gzipped url encoded
> string. I`m getting the string url decoding it, converting the string to
> bytes array[]     , then i create an inputstream from the byte array and
> then i`m trying to use GZIPInputStream. In the console i get an error of
> unknown format. The server is running UTF-8 and the gzip data is created
> with gzcompress from php.

Few things:

Do you URL encode on the server side?
Do you URLDecode specifying "UTF-8"?
Do you turn the URL decoded String to byte[] also specifying "UTF-8" ?

-- 
Daniel Drozdzewski

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


[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)

2011-08-26 Thread rickrvo
well... yeah but I don't even know if this is going to work... I just
need these libs to see if it fixes some compiling errors... So what am
I doing wrong? why is the Top message?

On 26 Ago, 11:06, Daniel Drozdzewski 
wrote:
> On 26 August 2011 11:00, rickrvo  wrote:
>
> > I'm out of options... :\ can anyone send me these libs already
> > compiled by email please? I would really appreciate it! :\ I'm running
> > out of time trying to get this to work on my project...
>
> > Thanks
>
> Few things:
>
> 1) wrong group
> 2) don't you think that you are asking to be exploited, when asking
> people to send you precompiled libraries, especially ones that are
> essential for security?
>
> --
> Daniel

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


[android-developers] Honeycomb webview render problem

2011-08-26 Thread muckwarrior
I'm having a problem where a webview flickers/jumps at the bottom for
a short period of time. Here's a video that illustrates what I'm
talking about http://www.youtube.com/watch?v=I8s2P4R95r4

This only happens on honeycomb (tested on Xoom and emulator), and
mainly only happens in landscape mode, although I've seen it
occasionally in portrait.

At first I assumed invalid markup was the problem, but I've since
ensured the markup passes W3C validation.

I've created a very basic project that reproduces the problem
http://dl.dropbox.com/u/1256312/WebView%20Test.rar

Am i doing something wrong or is this a bug in Honeycomb?

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

2011-08-26 Thread mugurel cosmin
Yes it is url encode on the server side.


Here is a part of my code:
ArrayList picdata = new ArrayList();
picdata.add((URLDecoder.decode(e.getString("picdata"),"UTF-8")));

InputStream stream = new
ByteArrayInputStream(picdata.get(0).getBytes("UTF-8"));

GZIPInputStream ex = new GZIPInputStream(stream);



The message is unknown format when GZIP.

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

2011-08-26 Thread arun kumar
Hi
 i defined a button at the bottom in the xml fileand i made (listview)
invisible in the xml filein java code i give list view
implementationhere when i click on the button that list view has to
appear ..
Thaks in advance





 

 

  Public class ListView extends Activity{

private ListView lv1;

private String
lv_arr1[]={"Android","iPhone","BlackBerry","AndroidPeople"};
  public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.main);



lv1=(ListView)findViewById(R.id.ListView01);
lv1.setAdapter(new
ArrayAdapter(this,android.R.layout.simple_list_item_1 , lv_arr1));


Button btn=(Button)findViewById(R.id.t1);
btn.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// TODO Auto-generated method stub

 if (((Button) v).isClickable()) {
 ListView btn=(ListView)findViewById(R.id.ListView01);
 ListView01.setVisibility(View.VISIBLE);

 }

}

}
});

}}

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 12:30, rickrvo  wrote:
> well... yeah but I don't even know if this is going to work... I just
> need these libs to see if it fixes some compiling errors... So what am
> I doing wrong? why is the Top message?

Right,

So I can't help you, even if I wanted.
>From *About This Group* :

"Discuss developing Android applications using the SDK:
troubleshooting apps, advice on implementation, strategies for
improving your app's speed and user experience. This group is for
development-related topics only, not for job opportunity
announcements, advertisement, debates about devices, etc."

What you need is Android-Platform group:
http://groups.google.com/group/android-platform

HTH

-- 
Daniel Drozdzewski

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


[android-developers] voltage of the processor and the screen

2011-08-26 Thread Scorpio92
where in the source android can change the voltage of the processor
and the screen?

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

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 12:35, mugurel cosmin  wrote:
> Yes it is url encode on the server side.
>
>
> Here is a part of my code:
> ArrayList picdata = new ArrayList();
> picdata.add((URLDecoder.decode(e.getString("picdata"),"UTF-8")));
>
>                     InputStream stream = new
> ByteArrayInputStream(picdata.get(0).getBytes("UTF-8"));
>
>                     GZIPInputStream ex = new GZIPInputStream(stream);

Any debug?

What is the original string? Then url encoded? then what are the bytes?


-- 
Daniel Drozdzewski

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


[android-developers] Swap x with y axis in Ontouchlistenet to override widget rotation

2011-08-26 Thread mugurel cosmin
How can i swap x to y for rotating an widget vertically with touch elements.

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

2011-08-26 Thread rickrvo
ok thnaks. I'll post my question on that group.

On 26 Ago, 12:41, Daniel Drozdzewski 
wrote:
> On 26 August 2011 12:30, rickrvo  wrote:
>
> > well... yeah but I don't even know if this is going to work... I just
> > need these libs to see if it fixes some compiling errors... So what am
> > I doing wrong? why is the Top message?
>
> Right,
>
> So I can't help you, even if I wanted.
> From *About This Group* :
>
> "Discuss developing Android applications using the SDK:
> troubleshooting apps, advice on implementation, strategies for
> improving your app's speed and user experience. This group is for
> development-related topics only, not for job opportunity
> announcements, advertisement, debates about devices, etc."
>
> What you need is Android-Platform 
> group:http://groups.google.com/group/android-platform
>
> HTH
>
> --
> Daniel Drozdzewski

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


[android-developers] web page as a string?

2011-08-26 Thread bob
What's the easiest way to get a web page as a string?

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


[android-developers] Re: what are the best practices for good coding skills and classes, methods, and variables naming +android

2011-08-26 Thread Jona
For naming res stuff and where to place different files in them
explore the Android sdk platform files that you downloaded.  Also, for
classes variables dtc, ylu could look at the android source files for
Views or other parts of android.

It might not be the best but in case of organizing,properly res stuff
its great!


On Aug 25, 11:39 pm, Mark Ayers  wrote:
> Read Code Complete second edition. It will teach you that and much much
> more.
> On Aug 24, 2011 5:24 AM, "Naveen"  wrote:
>
>
>
> > what are the best practices for good coding skills and classes,
> > methods, and variables naming +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

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

2011-08-26 Thread TreKing
On Fri, Aug 26, 2011 at 4:22 AM, groob  wrote:

> Although it is clearly requested, when Google Checkout window appears my
> manifest request is simply ignored and my game turns to landscape.
>

What PROBLEM is this causing for you?

-
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] web page as a string?

2011-08-26 Thread Daniel Drozdzewski
On 26 August 2011 14:25, bob  wrote:
> What's the easiest way to get a web page as a string?

Use HttpClient.

-- 
Daniel Drozdzewski

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


[android-developers] how to show pop up dialog

2011-08-26 Thread aparna rani
 hiii
   i am implementing change password option. when i press   i want to
shows a pop up window. in popup window


old password: editTextbox
new password: edittext box
retype password: edittext box

ok button cancel button


is it possible do in android.
if it is possible give me some sample code

thank you...

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

Re: [android-developers] Market Filter supports-screens not working like I expected

2011-08-26 Thread toine . diepstraten
Had the same problem, the solution is  as described 
here:

http://developer.android.com/guide/topics/manifest/compatible-screens-element.html

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

[android-developers] Re: GPS vs Network

2011-08-26 Thread kypriakos

I agree - thanks. I ended up testing that last night and you are
right.
SO I check first for the most accurate info (if gps is enable) and if
not
there I get the next available which is the network.

On Aug 25, 11:28 pm, lbendlin  wrote:
> yes, if you register your location listener for both sources you will get
> data from both. That data will contain the accuracy information so you can
> decide which one to use.
>
> if you unsubscribe from the GPS location service then I would expect the
> lastknownlocation to be fed from the network location service.

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

2011-08-26 Thread TreKing
On Fri, Aug 26, 2011 at 9:25 AM, aparna rani  wrote:

> is it possible do in android.
>

Of course.


> if it is possible give me some sample code
>

Try doing your own work, then ask a question when you get stuck. There is
documentation on PopupWindow and Dialog classes. Start by reading that.

-
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: Lazy loading in HorizontalScrollView to prevent Out of Memory issue

2011-08-26 Thread Drezden
Are you loading a large number of images into your
HorizontalScrollView?

If so, then you are probably running out of memory from the Bitmap
creation process.  You need to subsample them so you aren't loading
billboard sized images into your app, like this.

BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 2;
options.inTempStorage = new byte[16*1024];

Bitmap img =
BitmapFactory.decodeStream(getContentResolver().openInputStream(imagePath),null,options);

On Aug 26, 1:00 am, himanshu jain  wrote:
> I want to add lazy loading feature to HorizontalScrollView, It has
> linearlayout as a child and i am addding to linearlayout,
>
> I am interested in listening to the event when the child view is out
> of the visibility area,  I see in linearlayout implementation it does
> not call either dispatchViewVisibility or onDraw on child view , why i
> want that because bitmap attached to the child view can be recycled
> and create bitmap again when child view is visible (well that is a
> separate part ,How can i create that bitmap very fast, I am planning
> to use opengl for that) but the question is how can make such custom
> view.
>
> I can not use gallery view because it does not solve my purpose
>
> I saw that viewgroup has feature of dispatchingViewVisibility and
> dispatchOnDraw but not sure how to use that with
> HorizontalScrollView.?
>
> All i am doing to prevent Out of Memory issue
>
> Any suggestion and help would be appreciated
>
> thanks

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


[android-developers] Re: Recommendation for Android Training

2011-08-26 Thread Guy Cole
There is also "LearnComputer" in SF Bay area.  I have been leading
this course for over two years.

http://www.learncomputer.com/training/android/android-accelerated-development

On Aug 25, 1:19 pm, Rocky  wrote:
> Hi,
> I'm  providing Android training, but i'm suggesting you if it is possible
> join Mark Murphy  :)
>
>
>
> On Fri, Aug 26, 2011 at 1:40 AM, Akos Cz  wrote:
> > Take a look at Marakana.
> >http://marakana.com/training/android/
>
> > They also have a some free educational videos on the TechTV section of
> > their site.
> >http://marakana.com/techtv/index.html
>
> > On Aug 25, 9:09 am, Bsweet  wrote:
> > > Has anyone attended any in person Android development training?  If
> > > so, I would love to hear any recommendations (or classes to avoid).
> > > I'm in Seattle, but willing to travel.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Thanks & Regards
>
> Rakesh Kumar Jha
> Software Developer
> Symphony Services Corp (India) Pvt Ltd
> Bangalore
> (O) +918030274295
> (R) +919886336619

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

2011-08-26 Thread Tommy
hi all:
Now i modified the download android source code 2.3.4 for card
emulation like Fernando's diffs.I make the modified source code on my
vmware+ubuntu success,make the sdk success,and make the download
samsung kernal code success.But now how can i use these changes on my
Nexus S phone?What can i do, step by step to make my Nexus S to be
card emulation. Thanks for any help.

tommy.yang

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Lazy loading in HorizontalScrollView to prevent Out of Memory issue

2011-08-26 Thread himanshu jain
@Drezden

Your correct i am using larger number of images added as child view of
LinearLayout which  is a child view of HorizontalScrollView,
Like OOM issue is happening at different number of images decoded from
BitmapFactory on different devices like Google Nexus it is after 160
images , Xoom 253 images and so on.

For decoding i am already using options and calculating inSampleSize
only not inTempStorage(will it add any improvement if i use it?).

Also i have cache that has soft reference to improve efficiency in
terms of number of images decoded because i am recycling bitmap, but
eventually it will crash due to OOM.


thanks



On Aug 26, 8:42 am, Drezden  wrote:
> Are you loading a large number of images into your
> HorizontalScrollView?
>
> If so, then you are probably running out of memory from the Bitmap
> creation process.  You need to subsample them so you aren't loading
> billboard sized images into your app, like this.
>
> BitmapFactory.Options options = new BitmapFactory.Options();
> options.inSampleSize = 2;
> options.inTempStorage = new byte[16*1024];
>
> Bitmap img =
> BitmapFactory.decodeStream(getContentResolver().openInputStream(imagePath), 
> null,options);
>
> On Aug 26, 1:00 am, himanshu jain  wrote:
>
>
>
>
>
>
>
> > I want to add lazy loading feature to HorizontalScrollView, It has
> > linearlayout as a child and i am addding to linearlayout,
>
> > I am interested in listening to the event when the child view is out
> > of the visibility area,  I see in linearlayout implementation it does
> > not call either dispatchViewVisibility or onDraw on child view , why i
> > want that because bitmap attached to the child view can be recycled
> > and create bitmap again when child view is visible (well that is a
> > separate part ,How can i create that bitmap very fast, I am planning
> > to use opengl for that) but the question is how can make such custom
> > view.
>
> > I can not use gallery view because it does not solve my purpose
>
> > I saw that viewgroup has feature of dispatchingViewVisibility and
> > dispatchOnDraw but not sure how to use that with
> > HorizontalScrollView.?
>
> > All i am doing to prevent Out of Memory issue
>
> > Any suggestion and help would be appreciated
>
> > 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] List Update

2011-08-26 Thread Sivaprakash
Hi

I have a list and when I click any item there will be a pop-up dialog which
will have list of options. If user selects any option I want to change a
status in the list. How to do this with out refreshing the list?

Thanks
Siva

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

2011-08-26 Thread Appaholics
If you change something and want to display it you have to refresh the list.

On Fri, Aug 26, 2011 at 10:24 PM, Sivaprakash <
sivaprakashshanmu...@gmail.com> wrote:

> Hi
>
> I have a list and when I click any item there will be a pop-up dialog which
> will have list of options. If user selects any option I want to change a
> status in the list. How to do this with out refreshing the list?
>
> Thanks
> Siva
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

[android-developers] 1.6 to later versions

2011-08-26 Thread kypriakos

Hi all,

we have some legacy apps running on 1.6 phones. Would 2.1 be the next
(and only probably)
compatible version that such apps can run on without issues? I think
2.2+ is when the apps
may need to be modified. Is that a correct assessment?

Thanks

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


[android-developers] Re: Deadlocks when switching from GLSurfaceView to SurfaceView

2011-08-26 Thread MobileVisuals
I think the reason for my problems is that I use 10 GLSurfaceViews,
each with their own renderer. This means that 10 renderers and 10 3d
threads are started at the beginning of the app.

I tried to redesign the app with just one GLSurfaceView. The idea was
to reload the GLSurfaceView with findViewById(R.id.glview) and then
call setRenderer
everytime a new 3d visual is shown. It is only possible to call
setRenderer one time in the life cycle of a  GLSurfaceView. So I
called invalidate on the GLSurfaceView and set it to null, after using
it. I still got
"java.lang.IllegalStateException: setRenderer has already been called
for this instance."
the next time I tried to load a GLSurfaceView and set a renderer. This
is strange, because I set the instance to null. Is there some way to
avoid this? Or maybe this is not a good approach?

Is the best approach to have one GLSurfaceView with just one Renderer
instead of one GLSurfaceView with 10 different renderers?



On Aug 25, 3:01 pm, MobileVisuals  wrote:
> Yes, there is one activity for the 2d GUI, which is implemented with
> SurfaceView. That GUI has a list with 10 3d visuals, that you can
> choose to view. When you choose to view a 3d visual, a GLSurfaceView
> is shown. You can then go back to the 2d menu. You can then choose
> another 3d visual. Another GLSurfaceView is then shown. You can then
> go back to the 2d menu and so on... This usually works but the
> GLSurfaceView freezes for a few seconds in about 10% of the cases,
> where the user wants to go back to the 2d menu.
>
> On Aug 25, 12:38 pm, RichardC  wrote:
>
> > In your original post did you actually mean 10 (ten) GLSurfaceViews in
> > one activity?
>
> > On Aug 25, 10:05 am, MobileVisuals  wrote:
>
> > > I debugged this on Logcat and got the following messages, when it
> > > switched from GLSurfaceView to SurfaceView, but freezed:
>
> > > handle 0x494900 still locked (state=4001)
> > > WARN/WindowManager(53): No window to dispatch pointer action 1
> > > WARN/InputManagerService(53): Window already focused, ignoring focus
> > > gain of: com.android.internal.view.IInputMethodClient$Stub
> > > $Proxy@43d3c260
>
> > > Does anyone know how I can avoid this?
>
> > > On Aug 24, 9:54 pm, MobileVisuals  wrote:
>
> > > > My app switches between a SurfaceView and 10 GLSurfaceViews. It can
> > > > swith to the GLSurfaceViews without problem, but sometimes the
> > > > displayed GLSurfaceView freezes when I try to switch back to the
> > > > SurfaceView,
> > > > I assume this is a threading issue.
>
> > > > I used suspend() and resume() to control the  SurfaceView before, but
> > > > then I read this can result in deadlocks. So I changed it to
> > > > yield(),but the problem remained. I use onResume() and onPause to
> > > > control the GLSurfaceViews. I can't find any yield method that I can
> > > > use for the GLSurfaceView thread. Is there a better way to control the
> > > > GLSurfaceView? Can onResume() and onPause result in deadlocks?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread Frank
Dear All,

I am having some difficulty getting an EditText widget work properly
in a PopupWindow class.

When it is used in a PopupWindow and double clicked/long pressed,
nothing happens. However, when it is put in an AlertDialog, double
click selects the text in it and brings up a built-in text tool bar at
the top. Does anyone know the cause of this? Thank you very much.


Regards,
Frank

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

2011-08-26 Thread Kristopher Micinski
Hmm... in my experience not too many things have been dropped out of
the APIs from 1.6 onward.  Maybe that's incorrect, but I didn't really
have any problems taking 1.6 apps and putting them on newer devices.
(I never went higher than 2.3, you'd probably want to change layouts,
etc... for tablets, but that seems like a problem because of the fact
that it's a different screen, etc...)

What kind of problems did you expect?  And can you just throw it on a
device or emulator and see what happens?

(I'll give one example of where I did have trouble:  I used to read
bookmarks / browser history, you can't anymore.)

Kris

On Fri, Aug 26, 2011 at 1:00 PM, kypriakos  wrote:
>
> Hi all,
>
> we have some legacy apps running on 1.6 phones. Would 2.1 be the next
> (and only probably)
> compatible version that such apps can run on without issues? I think
> 2.2+ is when the apps
> may need to be modified. Is that a correct assessment?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] reading choices from spinners

2011-08-26 Thread erik wagner
Hi all, I have a very simple game that I'm trying to do for learning
purposes.  One of the options is selecting the number of players (2-4)
via a spinner.  When a choice is made from the spinner I am moving the
value to a string and then using that string in a series of if/else if
statements to (eventually) handle the option.  I am running into the
problem where the condition that (to me) seems like it should be true
is evaluating to false.
If I select "Two", the value moved to the variable is "Two" but the
check for the variable == "Two" isn't getting hit.
(hope that was all clear, backstory may not be needed but better safe
than vague).  Anyway, the spinner's OnSelectedItemListener...

public class MyPlayerOnItemSelectedListener implements
OnItemSelectedListener {
public void onItemSelected(AdapterView parent, View view, int
pos, long id) {
String strResult;
strResult = parent.getItemAtPosition(pos).toString();
if (strResult == "Two") {
Toast.makeText(parent.getContext(), "this is the result 
when
one is selected", Toast.LENGTH_LONG).show();
} else if (strResult == "Three") {
Toast.makeText(parent.getContext(), "three players /" +
strResult + "/", Toast.LENGTH_LONG).show();
} else if (strResult == "Four") {
Toast.makeText(parent.getContext(), "four",
Toast.LENGTH_LONG).show();
} else {
Toast.makeText(parent.getContext(), "something else /" +
strResult + "/", Toast.LENGTH_LONG).show();
}

}
public void onNothingSelected(AdapterView parent) {

}
}

No matter what I select using this code the Toast shows as "something
else /" + what the value actually is + "/".  i.e. if I chose 'Two' the
toast reads "something else /Two/".
Any help would be greatly appreciated on this.  I'm certain it is
something very fundamental that I'm just missing.  Thanks in advance
Erik Wagner

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

2011-08-26 Thread authorwjf
Hello,

I have a question concerning how classes are loaded at runtime and I
am hoping someone out there has the inside scoop.  Basically I am
supporting an app that has a significant following.  The app parses
JSON responses from a web server.  A handful of users are getting a
JSON parse error.  The common thread is these users all seem to have a
particular model of phone.

With the help of a couple very committed users, I was able to get a
lot of app level network logging.  What I see is the following
element as part of a larger JSON response giving me trouble:

"virtualGuests":[]

The response is loaded into a JSON array like this:

JSONArray guests = result.getJSONArray("virtualGuests");

where result is a JSON object that contains among other things the
empty virtual guest array.

The problem appears to be that on 99% of the phones where my app runs,
guests is returned as an empty JSON array, but on a handful of phones,
guests comes back NULL.  I've even went so far as to re-inject the
recorded network stream into the program and the same input "appears"
to produce different output in the case of an HTC Desire.

The best I could figure is that perhaps the JAR file on this device
that handles the JSON manipulation (I'm importing org.json.JSONArray),
is different on the devices where the user seems to encounter this
problem.  That said, I'm not even all that familiar with how the
import works in JAVA, and how similar the JRE process is on Android to
the desktop environment.

I believe I can work around this issue now that I know where the
problem is manifesting.  But I'd appreciate if someone out there can
explain to me better how classes I import into my app get resolved at
runtime so I am confident this is my issue and might give me some idea
of what I may need to look out for in the future if I continue parsing
JSON in this manner.

Thanks in advance to anyone who takes the time to respond!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread IcedNet
http://developer.android.com/reference/android/widget/PopupWindow.html

Depending on how it is instantiated, it may be non-focusable by
default...

Peace,
Dan


On Aug 26, 1:09 pm, Frank  wrote:
> Dear All,
>
> I am having some difficulty getting an EditText widget work properly
> in a PopupWindow class.
>
> When it is used in a PopupWindow and double clicked/long pressed,
> nothing happens. However, when it is put in an AlertDialog, double
> click selects the text in it and brings up a built-in text tool bar at
> the top. Does anyone know the cause of this? Thank you very much.
>
> Regards,
> Frank

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread Frank
Hi Dan,

Actually, the PopupWindow was made focusable. I can tap on EditText
and use the keyboard to input text. But just the long press/double tap
won't select any text.

Frank

On Aug 26, 12:19 pm, IcedNet  wrote:
> http://developer.android.com/reference/android/widget/PopupWindow.html
>
> Depending on how it is instantiated, it may be non-focusable by
> default...
>
> Peace,
> Dan
>
> On Aug 26, 1:09 pm, Frank  wrote:
>
>
>
>
>
>
>
> > Dear All,
>
> > I am having some difficulty getting an EditText widget work properly
> > in a PopupWindow class.
>
> > When it is used in a PopupWindow and double clicked/long pressed,
> > nothing happens. However, when it is put in an AlertDialog, double
> > click selects the text in it and brings up a built-in text tool bar at
> > the top. Does anyone know the cause of this? Thank you very much.
>
> > Regards,
> > Frank

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

2011-08-26 Thread Mike Adams
I've spent the last hour or two looking at file storage methods and so
on. Cant quite see what i want.

I want some data files to come installed in the apk and i want to be
able to open them.

I sort of know how you can put images in the res directory but this is
going to be data not images and i'm hopeing to read them similar to
reading any other kind of text file.  I tried openFileInput() but i
cant even figure out where to put the files for that. I got the path
something like Data/Data/etc but clueless where that is.

The reason to include them in apk is i want them to download the data
the program needs when they install the program.

thanks
Mike

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

2011-08-26 Thread TreKing
On Fri, Aug 26, 2011 at 5:49 PM, Mike Adams  wrote:

> I want some data files to come installed in the apk and i want to be able
> to open them.
>
> I sort of know how you can put images in the res directory but this
> is going to be data not images and i'm hopeing to read them similar
> to reading any other kind of text file.
>

http://developer.android.com/guide/topics/resources/providing-resources.html

See "raw" directory.

-
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: New (?) market bug: most free games are GONE

2011-08-26 Thread Indicator Veritatis
You don't have to look only on the Android Market from Google. You can
also look at Getjar.com or slideme.org. Both have lots of free games,
without the shenanigans Google has been imposing on us.

The biggest 'problem' with these other two sites is that their
installers do not come pre-iinstalled on the phone like Google's. But
ironically enough, you can find the getjar installer on Google's
Android Market!

On Aug 25, 8:29 am, Jim Graham  wrote:
> On Thu, Aug 25, 2011 at 10:23:02PM +0800, Christopher Van Kirk wrote:
> > I would point out that it's not just the free games that suffer from
> > this, all apps appear to be similarly limited.
>
> Of that I am certain.  I only mentioned free games because I'm looking
> for a bunch of new ones to keep me occupied while I'm back in the cancer
> care center at the hospital (as, I'm depressed to have to say, a patient).
> My laptop is no longer portable (monitor dead, needs an external
> monitor), I can't afford a tablet, so it's my Motorola Bravo (MB520)
> phone or nothing.
>
> Later,
>    --jim
>
> --
> 73 DE N5IAL (/4)        | "This 'telephone' has too many
> spooky1...@gmail.com    | shortcomings to be seriously considered
> < Running FreeBSD 7.0 > | as a means of communication.  The device
> ICBM / Hurricane:       | is inherently of no value to us."
>    30.44406N 86.59909W  | (Western Union internal memo, 1876)
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: New (?) market bug: most free games are GONE

2011-08-26 Thread Jim Graham
On Fri, Aug 26, 2011 at 04:38:09PM -0700, Indicator Veritatis wrote:
> You don't have to look only on the Android Market from Google. You can
> also look at Getjar.com or slideme.org. Both have lots of free games,
> without the shenanigans Google has been imposing on us.

Thanks.  I knew about soc.io (have my two most recent apps listed
there now, and I might have added my first one, too (not sure, memory
screwed by the first cancer's chemo, etc.).  The soc.io app has to be
installed manually, too.  But there's a problem...trying to install it
via "adb install" locks my Motorola Bravo (MB520) to the point that I
have to pull the battery (it's a very large file).  And now they've
disabled net downloads, even for free apps (this might resume after
next week, but I'm not sure).  So those of us who can't load 3rd-party
apps except from the PC via adb/usb are somewhat screwed.

I'll check those sites out tonight (and maybe load my apps there,
too).  I like the idea of the installer being on the google market.
I would never have imagined that they'd let such a thing happen unless
the temperature in hell reached absolute zero

Just opened up the getjar site.  Nice...thanks!

Later,
   --jim

-- 
73 DE N5IAL (/4)  | 1) "Smoking habanero powder helps defeat that
< Running FreeBSD 7.0 >   |off taste' quite nicely."
spooky1...@gmail.com  | 2) "I figure a couple bong hits of [habanero]
ICBM/Hurr.: / 30.44406N   |powder would defeat just about anything!"
| 86.59909W--seen in Chile-Heads list

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

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


[android-developers] Re: GPS vs Network

2011-08-26 Thread blake
You might have seen this, already, but there is really excellent
documentation on just how to do this, right here:

http://developer.android.com/guide/topics/location/obtaining-user-location.html

-blake

On Aug 26, 7:52 am, kypriakos  wrote:
> I agree - thanks. I ended up testing that last night and you are
> right.
> SO I check first for the most accurate info (if gps is enable) and if
> not
> there I get the next available which is the network.
>
> On Aug 25, 11:28 pm, lbendlin  wrote:
>
>
>
>
>
>
>
> > yes, if you register your location listener for both sources you will get
> > data from both. That data will contain the accuracy information so you can
> > decide which one to use.
>
> > if you unsubscribe from the GPS location service then I would expect the
> > lastknownlocation to be fed from the network location service.

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


[android-developers] Re: Is it possible to give gradient effect using code?

2011-08-26 Thread blake
Sure!  That XML just creates a LinearGradient object.  Look here:

http://developer.android.com/reference/android/graphics/LinearGradient.html

-blake

On Aug 25, 5:23 pm, Ash  wrote:
> Currently I have an XML file which sets the gradient of the button
> background.
> Is it possible to achieve the following using code? If yes, can someone
> please give me a sample?
>
>      android:angle="270"
>     android:startColor="#b3adad"
>     android:endColor="#858080">
> 

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

2011-08-26 Thread blake
The SeaDroid user group has frequent workshops that are a great way to
learn.  Benn Bollay runs them in the F5 office.  I'll be doing a two
day workshop on Concurrent Programming for Android, there, next week.
Stop by

http://www.meetup.com/Seattle-Android-Developers/

... and, of course, shameless pandering for the book.  It really is
pointed at competent programmers that just need to make the jump to
Android.  It's pretty good training and you can do it without missing
the two days of good weather we are having in Seattle, this year.

http://oreilly.com/catalog/0636920010364

-blake

On Aug 25, 9:09 am, Bsweet  wrote:
> Has anyone attended any in person Android development training?  If
> so, I would love to hear any recommendations (or classes to avoid).
> I'm in Seattle, but willing to travel.

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

2011-08-26 Thread blake
I'm with Drezden: I don't think that the code you've cited is
necessarily the code that is at fault.  I'd be inclined to look at the
constructor for com.android.databasetest.DatabaseTest

-blake

On Aug 25, 8:54 am, Abhi  wrote:
> Hi
>
> I have the following piece of code which is resulting in a
> NullPointerException and I am not able to understand why. I am able to
> get the correct size of the bitmap in the Log statement below before
> displaying the image, so up to that point everything is good.
>
> //result is a byte array which contains the jpeg image
>
> ByteArrayInputStream inputStream = new ByteArrayInputStream(result);
> b = BitmapFactory.decodeStream(inputStream);
>
> Log.i(TAG, "Size of bitmap is " + b.getWidth() + " x " +
> b.getHeight());
>
> ImageView imageview1 = (ImageView) findViewById(R.id.ImageV);
> imageview1.setImageBitmap(b);
>
> The exception I am getting is below :
>
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564): FATAL EXCEPTION: main
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.android.databasetest/
> com.android.databasetest.DatabaseTest}: java.lang.NullPointerException
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1821)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 1842)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread.access$1500(ActivityThread.java:132)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.os.Looper.loop(Looper.java:143)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread.main(ActivityThread.java:4263)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> java.lang.reflect.Method.invoke(Method.java:507)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:839)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> dalvik.system.NativeStart.main(Native Method)
>
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564): Caused by:
> java.lang.NullPointerException
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> com.android.databasetest.DatabaseTest.onCreate(DatabaseTest.java:62)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1072)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1785)
> 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     ... 11 more
>
> Any help is appreciated.
>
> Thanks,
>
> AB

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

2011-08-26 Thread Mike Adams
that got it working for me. actually using assets folder i think now but
googling opening raw folder led to pages that covered both sort of
interchangeably.

Mike


On Fri, Aug 26, 2011 at 4:00 PM, TreKing  wrote:

> On Fri, Aug 26, 2011 at 5:49 PM, Mike Adams  wrote:
>
>> I want some data files to come installed in the apk and i want to be able
>> to open them.
>>
>> I sort of know how you can put images in the res directory but this
>> is going to be data not images and i'm hopeing to read them similar
>> to reading any other kind of text file.
>>
>
>
> http://developer.android.com/guide/topics/resources/providing-resources.html
>
> See "raw" directory.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] activity transition animations

2011-08-26 Thread hachi
I am trying to make an activity transition for the switch between
animations. What I want is that if I go from activity A to activity B,
A gets a certain animation. I am adding this statement right after
startActivity() :

overridePendingTransition(0, R.anim.to_right)

the thing is this doesnt work (no animation on A, no animation on B)
but if I reverse it to be overridePendingTransition(R.anim.to_right,
0), B gets an animation, so I know my animation resource file is
legit.

Any ideas? Is this not how to do animation on outgoing activity.

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


[android-developers] Re: activity transition animations

2011-08-26 Thread hachi
i am also using windowIsTranslucent to achieve transparent background
on activity B

On Aug 26, 6:07 pm, hachi  wrote:
> I am trying to make an activity transition for the switch between
> animations. What I want is that if I go from activity A to activity B,
> A gets a certain animation. I am adding this statement right after
> startActivity() :
>
> overridePendingTransition(0, R.anim.to_right)
>
> the thing is this doesnt work (no animation on A, no animation on B)
> but if I reverse it to be overridePendingTransition(R.anim.to_right,
> 0), B gets an animation, so I know my animation resource file is
> legit.
>
> Any ideas? Is this not how to do animation on outgoing activity.

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

2011-08-26 Thread groob
The problem is that my application is still visible behind Google
Checkout popup and since it has never supported landscape orientation
(and never will be), the display is corrupted and may affect user
experience.

This may not sound like a PROBLEM for you, but it is not the matter of
the discussion.

I believe that a problem with disabling screen rotation is good enough
to ask a question here.



On Aug 26, 3:35 pm, TreKing  wrote:
> On Fri, Aug 26, 2011 at 4:22 AM, groob  wrote:
> > Although it is clearly requested, when Google Checkout window appears my
> > manifest request is simply ignored and my game turns to landscape.
>
> What PROBLEM is this causing for you?
>
> -
> 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] How to attach audio file in program

2011-08-26 Thread GopalaKrishnan D
how to attach audio file in my app and want to send particular email address

-- 
~* Regards*
*GopalaKrishnan D*

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

2011-08-26 Thread TreKing
On Fri, Aug 26, 2011 at 8:59 PM, groob  wrote:

> The problem is that my application is still visible behind Google Checkout
> popup and since it has never supported landscape orientation (and never will
> be), the display is corrupted and may affect user experience.
>

OK, this is all I was trying to get at - the display is corrupted - that's
your problem. OK.

Usually a "problem" on this group is a crash or not knowing how to achieve
specific functionality and I was not understanding how this orientation
change was adversely effecting your app's functionality.

If I understand you correctly now, there is no adverse effect (your app
doesn't crash for example), but you don't want it to happen because it looks
bad to you. Correct?

Well if that's the case, I don't know. If no one else has an answer for you,
I'd check b.android.com and see if it's filed as a bug and if not, maybe
file one. Of course, I suspect this is intended behavior - the app on top is
what determines the current orientation and the phone can only have one
configuration at a time, so the top-most one takes over - I think.

P.S. - Even if your app is never intended to be used in landscape, you still
have to handle properly restoring your app's state, since your app will go
through the same cycle via other means (like pressing Home and coming back
to it a while later). So you may just have to bite the bullet here and
handle the orientation change.

-
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: image btton problem

2011-08-26 Thread Amit

Use png with transparency. I use gimp for this.

Thanks,
A

On Aug 26, 1:54 pm, Ratheesh Valamchuzhy  wrote:
> The image is a png image...

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

2011-08-26 Thread Zsolt Vasvari
I would just draw a solid background of a color your choice.  I assume
that the Checkout window takes most of the screen.



On Aug 27, 9:59 am, groob  wrote:
> The problem is that my application is still visible behind Google
> Checkout popup and since it has never supported landscape orientation
> (and never will be), the display is corrupted and may affect user
> experience.
>
> This may not sound like a PROBLEM for you, but it is not the matter of
> the discussion.
>
> I believe that a problem with disabling screen rotation is good enough
> to ask a question here.
>
> On Aug 26, 3:35 pm, TreKing  wrote:
>
>
>
> > On Fri, Aug 26, 2011 at 4:22 AM, groob  wrote:
> > > Although it is clearly requested, when Google Checkout window appears my
> > > manifest request is simply ignored and my game turns to landscape.
>
> > What PROBLEM is this causing for you?
>
> > ---­--
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread Zsolt Vasvari
I've noticed this behavior in the built-in Android apps as well,
sometimes you cannot long tap on fields.I think it's probably a
bug.

On Aug 27, 4:50 am, Frank  wrote:
> Hi Dan,
>
> Actually, the PopupWindow was made focusable. I can tap on EditText
> and use the keyboard to input text. But just the long press/double tap
> won't select any text.
>
> Frank
>
> On Aug 26, 12:19 pm, IcedNet  wrote:
>
>
>
> >http://developer.android.com/reference/android/widget/PopupWindow.html
>
> > Depending on how it is instantiated, it may be non-focusable by
> > default...
>
> > Peace,
> > Dan
>
> > On Aug 26, 1:09 pm, Frank  wrote:
>
> > > Dear All,
>
> > > I am having some difficulty getting an EditText widget work properly
> > > in a PopupWindow class.
>
> > > When it is used in a PopupWindow and double clicked/long pressed,
> > > nothing happens. However, when it is put in an AlertDialog, double
> > > click selects the text in it and brings up a built-in text tool bar at
> > > the top. Does anyone know the cause of this? Thank you very much.
>
> > > Regards,
> > > Frank- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Freemium Model with In-App Purchases

2011-08-26 Thread Andy
Hi makjaveli,

i recieved a Lodsys letter 2 Days ago. Same Problem here. I have a button in 
my app linked to the Android Market. It's simply a button with a underlaying 
http Link pointing to the payed app URL. I can't think of a szenario where 
this can be proteced by a patent, because it a common/trivial link 
mechanisam found everywhere in the net , websites, apps, mobile apps, 
whatsoever.

Because I'm only a hobby programmer while my app sold like 250 times ( maybe 
100 to US) I'm not sure what to do. I read their article on "what are we 
charging"
http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.html and 
thought it would be a solution to ask for licening an pay them ~ 5$ for the 
past usage.

Has anyone solved his Lodsys claim fast and easy ?

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