[android-developers] List view and using a loader

2016-12-14 Thread Sebastian Prax
Hello, i have problem with using this code: 
developer.android.com/guide/topics/ui/layout/listview.html
I used the code, everything same, but i had error at this part:

getLoaderManager().initLoader(0, null, this);


This is exception. It has problem with "this":

(MainActivity looking like: public class MainActivity extends ListActivity 
implements LoaderManager.LoaderCallbacks)

Error:(71, 27) error: method initLoader in class LoaderManager cannot be 
applied to given types;
required: int,Bundle,LoaderCallbacks
found: int,,MainActivity
reason: cannot infer type-variable(s) D
(argument mismatch; MainActivity cannot be converted to LoaderCallbacks)
where D is a type-variable:
D extends Object declared in method 
initLoader(int,Bundle,LoaderCallbacks)

Okey, so i tried to make new loader like:

android.app.LoaderManager.LoaderCallbacks loader = new 
android.app.LoaderManager.LoaderCallbacks() {

public Loader onCreateLoader(int id, Bundle args) {
return new CursorLoader(getApplicationContext(), 
ContactsContract.Data.CONTENT_URI,
PROJECTION, SELECTION, null, null);
}

public void onLoadFinished(Loader loader, Cursor data) {
mAdapter.swapCursor(data);
}

public void onLoaderReset(Loader loader) {
mAdapter.swapCursor(null);
}
}

And used "loader" instead of "this" (initLoader(0, null, loader)), but i 
wasnt working too, because of incompatibilty Loader and CursorLoader
 in:

public Loader onCreateLoader(int id, Bundle args) {
return new CursorLoader(getApplicationContext(), 
ContactsContract.Data.CONTENT_URI,
PROJECTION, SELECTION, null, null);

}

Please, can someone help me with solving this problem? 
Thanks very much, Sebastian :)

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


[android-developers] How to get the ID of the apps script inside a spreadsheet

2016-05-13 Thread Sebastian Perdomo
 

My program works like this:


1 - Make a copy of a public google spreadsheet to my drive account (the 
account of the user in the device), with the Drive Api, that works fine

2 - the public google spreadsheet has a apps script inside with a simple 
function, i need to execute that function.

3 - the function in the apps script is executed excelent (with the ID of 
the script), with the Apps script api from android.

the problem is: each time is performed the copy of the spreadsheet, the 
script inside changes the ID, i need a way to get that ID always.


my program works fine, only i need the way of list the apps scripts ID from 
the drive account. 


How to solve this ?


http://stackoverflow.com/questions/37211686/how-to-get-the-id-of-the-apps-script-inside-a-spreadsheet?noredirect=1#comment61968339_37211686

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


[android-developers] Usb problems

2016-04-23 Thread Juan Sebastian Zazipa Martinez
My device don't recognize the usb plug 

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


[android-developers] Redirect file calls by proprietary JNI/NDK to go through a file descriptor

2014-03-09 Thread sebastian nielsen
Hello.
I have a Smart card, called CertGate, that was delivered with a 
properitary, precompiled JNI/NDK library.
The smart card works by having the end user app access a file /cgmstrx.sdx 
in the root of the SD card.

This works by having the end user app read/write APDU's to a interface in 
the JNI library, the JNI library translates those APDU's to writes and 
reads to the cgmstrx.sdx file.

The specification of how APDU's are read/written to this file are 
properitary and not available to the customers of the certgate card.


Now to the problem:
Since the new Android 4.4.2 SD card policy prevents writes to the SD card 
except for the app userspace folder, its not possible to write rawly to the 
SD card, and thus the function of the SD SmartCard is lost.


However, if you use a OPEN_DOCUMENT intent and a file picker in the end 
user app, you could have the end user select the cgmstrx.sdx file in the 
root of SD card, and thus gain r/w permission to this file through a file 
descriptor.


However, I wonder, is it possible to redirect all outgoing file calls 
(read/writes) from a precompiled JNI library, to instead go through the 
file descriptor returned by the intent?

Eg if I could in some way override the raw file open method called by any 
libraries (some proprietary .so files) loaded by my app, to go through my 
app and then I dont open the file, instead I just pass the OPEN_DOCUMENT 
file descriptor directly.

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


Re: [android-developers] Re: Problems with Custom Image View

2013-09-16 Thread Subin Sebastian
On Mon, Sep 16, 2013 at 1:43 PM, Piren gpi...@gmail.com wrote:

 super.onMeasure(heightMeasureSpec, heightMeasureSpec)


+1 for the super.onMeasure(heightMeasureSpec, heightMeasureSpec); but the
problem is solved by using a different layout mechanism. Instead of as a
child, I moved the textview out to anchor to the root relative layout and
it works fine.

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/rl_root

android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=10dp 

LinearLayout
android:id=@+id/linearLayout1
android:layout_width=wrap_content

android:layout_height=wrap_content 


com.viktorq.widgets.IconView
android:id=@+id/iv_order_status
android:layout_width=wrap_content

android:layout_height=fill_parent
android:layout_marginRight=10dp
android:src=@drawable/ic_launcher /

LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content

android:orientation=vertical 


TextView
android:id=@+id/tv_order_id
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=16sp

android:textStyle=bold /


TextView
android:id=@+id/tv_order_date
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=10sp /

TextView
android:id=@+id/tv_laundry_pounds
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView /
/LinearLayout
/LinearLayout

TextView
android:id=@+id/tv_total
android:layout_width=wrap_content

android:layout_height=wrap_content
android:layout_alignBottom=@+id/linearLayout1
android:layout_alignParentRight=true

android:gravity=center_vertical|right
android:text=$0
android:textColor=#578F50

android:textSize=30sp
android:textStyle=bold /

/RelativeLayout




-- 
Thanks  Regards
--
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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


Re: [android-developers] Re: Problems with Custom Image View

2013-09-15 Thread Subin Sebastian
@Piren,
The xml for the row is as below. Please take a look.

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/rl_root

android:layout_width=fill_parent
android:layout_height=fill_parent
android:padding=10dp 

LinearLayout
android:layout_width=match_parent
android:layout_height=wrap_content 

com.viktorq.widgets.IconView

android:id=@+id/iv_order_status
android:layout_width=wrap_content
android:layout_height=fill_parent

android:layout_marginRight=10dp
android:src=@drawable/ic_launcher /

LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content

android:orientation=vertical 


TextView
android:id=@+id/tv_order_id
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=16sp

android:textStyle=bold /


TextView
android:id=@+id/tv_order_date
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView
android:textSize=10sp /

TextView
android:id=@+id/tv_laundry_pounds
android:layout_width=wrap_content

android:layout_height=wrap_content
android:text=TextView /
/LinearLayout

TextView
android:id=@+id/tv_total

android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_weight=1

android:gravity=center_vertical|right
android:text=TextView
android:textColor=#578F50

android:textSize=30sp
android:textStyle=bold /
/LinearLayout

/RelativeLayout


I will also send the bordered screenshot soon.


On Sun, Sep 15, 2013 at 11:53 AM, Piren gpi...@gmail.com wrote:

 How did you define the xml for the row item?
 It would also be helpful if you turn on the developer option to show
 layout borders and provide another screen cap


 On Sunday, September 15, 2013 6:06:54 AM UTC+3, Napster wrote:

 The paste is in here : 
 http://paste.ubuntu.com/**6108587/http://paste.ubuntu.com/6108587/
 And here is a screenshot of the current output.

 [image: Inline image 1]


 On Sun, Sep 15, 2013 at 8:30 AM, Subin Sebastian subinse...@gmail.comwrote:

 Hello Group,

 I have created a custom ImageView to show icons in my list view items.
 The idea is to show, perfectly square icons with each list view items. The
 following is the code fragments I have.

 public class IconView extends ImageView {

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

 @Override
 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
 super.onMeasure(widthMeasureSp**ec, heightMeasureSpec);
 int height = getMeasuredHeight();
 setMeasuredDimension(height, height);
 }}


 and the XML is,

 com.napster.widgets.IconView
 android:id=@+id/iv_order_**status
 android:layout_width=wrap_**content
 android:layout_height=fill_**parent
 android:layout_marginRight=**10dp
 android:background=#567567
 android:src=@drawable/ic_**launcher /


 The problem with this approach is that, the rest of the views in the
 list cell, goes out of display partially. I tried to invalidate() the
 convertView in my adapter's getView() method, but it does not seem to
 work. How to solve this problem?

 --
 Thanks  Regards
 --
 Subin Sebastian
 http://in.linkedin.com/in/**subinsebastienhttp://in.linkedin.com/in/subinsebastien




 --
 Thanks  Regards
 --
 Subin Sebastian
 www.nintriva.com
 http://subinsebastien.tumblr.**com http://subinsebastien.tumblr.com
 http://in.linkedin.com/in/**subinsebastienhttp://in.linkedin.com/in/subinsebastien
 http://plus.google.com/subinhttps://plus.google.com/118262481642737404812
 http://facebook.com/**subinsebastien http://facebook.com/subinsebastien

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




-- 
Thanks  Regards

[android-developers] Problems with Custom Image View

2013-09-14 Thread Subin Sebastian
Hello Group,

I have created a custom ImageView to show icons in my list view items. The
idea is to show, perfectly square icons with each list view items. The
following is the code fragments I have.

public class IconView extends ImageView {

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

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int height = getMeasuredHeight();
setMeasuredDimension(height, height);
}}


and the XML is,

com.napster.widgets.IconView
android:id=@+id/iv_order_status
android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_marginRight=10dp
android:background=#567567
android:src=@drawable/ic_launcher /


The problem with this approach is that, the rest of the views in the list
cell, goes out of display partially. I tried to invalidate() the
convertView in my adapter's getView() method, but it does not seem to
work. How to solve this problem?

-- 
Thanks  Regards
--
Subin Sebastian
http://in.linkedin.com/in/subinsebastien

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


[android-developers] XobotOS - Google should move into C#!

2013-04-29 Thread Sebastian Matusik
Hi ladies and gentlemen, boys and girls, fans and haters of Android. 

Its been quite some time since XobotOS has been released. First when I 
heard about it I were astonished that someone actually pulled off such a 
mad idea - at whats even crazier is that they gained around 30% speed boost.

Considering all the legal disputes between Google and Oracle over Java, I 
though the former will take some steps to free themselves of Oracle by 
adapting XobotOS into Android (so that two virtual machines would run side 
by side for some time).

So, my thoughts aside, what do you guys think about XobotOS?

I would be extremely happy if someone from big G answered this question ;).

PS. I would love to throw away JNI for P/Invoke's ;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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: SdkController app

2013-03-26 Thread Sebastian Mayer
Thanks for the explanation and workaround!

2013/3/26 colin colin...@googlemail.com:
 Yes.  I built my own copy of the SdkController app and managed to track down
 the bug.

 The problem was (and presumably still is) that a string in the protocol
 being sent from the emulator to the app was being corrupted with four
 leading zero bytes.  I didn't investigate the emulator code, but my
 assumption is that a struct-padding issue somewhere means that an extra word
 is being inserted into the stream of data when the emulator is compiled for
 MS Windows, but not for the Mac. (So the proper solution would be to track
 down where this is happening and process the relevant fields individually,
 rather than take the containing struct as a whole.)

 But for my purposes, I came up with a hack in the app file Connection.java.
 The string being corrupted is the channel name, causing the method
 getChannel() to return null -



 public Channel getChannel(String name){

for (Channel channel : mChannels) {

   if (channel.getChannelName().equals(name)) {

  return channel;

}

}

return null;

 }



 So I added a couple of lines within the above for loop to do wildcard
 matches on the only two channels that currently exist (sensor and
 multitouch) -



 if (channel.getChannelName().matches(.*sen.*) name.matches(.*sen.*) )
 {

return channel;

 }

 if (channel.getChannelName().matches(.*multi.*)
 name.matches(.*multi.*) ) {

return channel;

 }



 Ugly, but it got things working.

 To be honest, I didn't then do much with it, so I don't know if there are
 other issues.  The fact that something so fundamental went unnoticed
 suggests there may well be.




























 On Saturday, 23 March 2013 12:22:36 UTC, Sebioff wrote:

 Did you get it working in the meantime? This would be such an awesome
 tool, but I can't get it working either and not many people seem to know
 that this even exists, so it's hard to find help...

 Am Mittwoch, 14. November 2012 00:24:38 UTC+1 schrieb colin:

 Hi,

 Has anybody been able to get the SdkController app to work with the
 emulator?  I found an old thread about this and tried to revive it, but I
 don't think I will be getting a reply there -
 https://groups.google.com/d/topic/adt-dev/TyZiFZ_Ns5Y/discussion.

 Given the video of it working on a Mac from Google IO, I'm wondering if
 there is a problem with the Windows version of the emulator.


 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/s6pQibI0Jb8/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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




[android-developers] Do we need a license from MPEG-LA for AVC H.264 MediaCodecs?

2013-01-14 Thread Sebastian Mauer
Hi there,

I am currently working on an app that would utilize the capabalities of the 
devices H.264 codec exposed via the new MediaCodec API. I assume
the vendor's have to pay the respective royalties to the MPEG-LA for 
shipping a device with an H.264 capable encoder. But is this true?
Can I legally (and without paying any extra royalties) use the system 
encoders?

[1] mentions that the rules of MPEG-LA require that if Company A uses 
Company B's encoder in their product, Company A must pay the fees, not 
Company B.

I know this mailinglist might not be the right address for licensing 
questions but I just hope any one of you already had to examine this 
situation.

Greetings,

Sebastian

[1] http://mailman.videolan.org/pipermail/x264-devel/2010-July/007508.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] Read out status bar messages?

2012-11-19 Thread Sebastian Heyn
Not thinking of spy apps, but maybe an app that forwards these status 
messages to an external device via BT (like an in-car display etc)
That app could be signed by google or whatever, as I would not mind to let 
anyone look at my dirty sources ;-))


Am Dienstag, 18. September 2012 19:59:30 UTC+2 schrieb Kristopher Micinski:

 If it were, it would be a security hole, which is why I ask why you 
 want to do so, because it implies you might want to write a spy app.. 

 kris 

 On Tue, Sep 18, 2012 at 1:12 PM, BearTi mlrt...@gmail.com javascript: 
 wrote: 
  Ok, thanks... are u really sure? :-) 
  
  
  
  
  Am Dienstag, 18. September 2012 19:05:02 UTC+2 schrieb Kristopher 
 Micinski: 
  
  It is not.  Why do you want to? 
  
  kris 
  
  On Tue, Sep 18, 2012 at 12:51 PM, BearTi mlrt...@gmail.com wrote: 
   Hi, 
   
   short question: 
   
   (How) Is it possible to read out and/or delete the message in status 
 bar 
   from another app? 
   
   
   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-d...@googlegroups.com 
   To unsubscribe from this group, send email to 
   android-developers+unsubscr...@googlegroups.com javascript: 
   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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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] Set up box development

2012-11-08 Thread sebastian ortiz
Hello
This is my first post on this group, some weeks ago I began to explore the 
Android world, and I would like to know if some of you have had experience 
with a development project over set up boxes
I am planning to buy a single piece for testing this is the link

http://haho.en.alibaba.com/product/548497135-212224247/HD_1080P_Google_TV_box_set_top_box_with_DVB_T2_antenna.html

My doubts are:
1. I can use the same tools as in development for mobiles?
2. What IDEs or tools I need to download?
3. Is there an specific API reference, forums, community for this kind of 
development?
4. All the information I can get for learn more about, coding, API, 
debugging, etc

Thanks you all :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] About accessing List View items from a different Thread

2012-09-27 Thread Subin Sebastian
Thanks Justin, and Blake.
I was not aware of Loaders. I will try both the approaches, and will give
feedback soon.
-- 
Thanks  Regards
--
Subin Sebastian

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

[android-developers] Google Play Content Policy

2012-08-21 Thread Sebastian Nowak
Hello,
I've just received an email from Google telling me that one of my apps 
violates developer terms and I have 7 days to comply. Here's what they say:

---
*REASON FOR WARNING*: Violation of the 
spamhttps://play.google.com/about/developer-content-policy.html#spam 
provisions 
of the Content Policy.

   - Do not post repetitive content.
   - Product descriptions should not be misleading or loaded with keywords 
   in an attempt to manipulate ranking or relevancy in the store’s search 
   results.

Your application will be removed if you do not make modifications to your 
application’s description to bring it into compliance within 7 days of the 
issuance of this notification
---

As far as I can understand the reason they think the app description is 
loaded with keywords, I seriously have no idea what does the Do not post 
repetitive content refers to. Does it mean there are other apps like this 
in the market? Mine was first, most innovative and is the most popular in 
its category. Or maybe it's because something is repeating in the 
description (well, it isn't)?

The question is - what is that point of Content Policy referring to?

Thanks

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

Re: [android-developers] Re: Google Play Content Policy

2012-08-21 Thread Sebastian Nowak
Oh right, I knew I forgot about something :)
https://play.google.com/store/apps/details?id=com.amuse

2012/8/21 RichardC richard.crit...@googlemail.com:
 Link to your app(s) on the market please, or we will have to use our psychic
 powers :)


 On Tuesday, August 21, 2012 10:01:06 AM UTC+1, Sebastian Nowak wrote:

 Hello,
 I've just received an email from Google telling me that one of my apps
 violates developer terms and I have 7 days to comply. Here's what they say:

 ---
 REASON FOR WARNING: Violation of the spam provisions of the Content
 Policy.

 Do not post repetitive content.
 Product descriptions should not be misleading or loaded with keywords in
 an attempt to manipulate ranking or relevancy in the store’s search results.

 Your application will be removed if you do not make modifications to your
 application’s description to bring it into compliance within 7 days of the
 issuance of this notification
 ---

 As far as I can understand the reason they think the app description is
 loaded with keywords, I seriously have no idea what does the Do not post
 repetitive content refers to. Does it mean there are other apps like this
 in the market? Mine was first, most innovative and is the most popular in
 its category. Or maybe it's because something is repeating in the
 description (well, it isn't)?

 The question is - what is that point of Content Policy referring to?

 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] Re: About one of my app idea | Please share your thoughts.

2012-07-28 Thread Subin Sebastian
Thanks Nobu.

On Wed, Jul 25, 2012 at 8:46 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 But apart from normal text+image pages, I'm planning to include simple
 animations,
 audio background and touch events along with the content.


 Please do not try to reinvent the Internet of the late 1990ies. GIF
 animations and background MIDI music galore popped into my mind while
 reading this... :-/


 This is to provide a better reading experience to the users.


 People got very distracted by that. It distracts you from reading and
 doesn't improve the reading experience. Unless you are trying to pull off
 something interactive for children, I think then it's ok to have.


Actually, I'm targeting kids comics. Say for example some Cinderella story
with
on touch animations and sound effects etc.



 The main problem I see here is that you'll have to invent a format /
 standard / desktop software for creating that multimedia content. It's
 highly unlikely that book authors are ready to adopt that. You'd need lots
 of marketing and traveling around to book fairs etc. for convincing them
 into doing work for a single platform (Android) and proprietary format
 invented by you.

 And in the end of the day you'll have to ask yourself the following
 question: how is that interactive print format any different than an HTML
 page with embedded multimedia contents?


You re right upto an extend. The ides is still in incubation. I have seen
apps like
Kobo out there which excels with text only contents.



  I'm planning to use Urban Airship as the backend.


 As far as I know they just provide a unified push service for several
 platforms. What do you mean with using them as a backend?


They have in-app purchases, subscriptions management etc.



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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

[android-developers] About one of my app idea | Please share your thoughts.

2012-07-24 Thread Subin Sebastian
Hi Devs,

I'm here for some valuable suggestions from you people. I'm planning to
develop a book store app for Android,
something like iBooks for iPhone. But apart from normal text+image pages,
I'm planning to include simple animations,
audio background and touch events along with the content. This is to
provide a better reading experience to the users.
The base idea is to release books into this app as a paid in-app purchase.
Books as I mentioned contains text, images
animations, audio, and on touch events. I'm planning to use Urban Airship
as the backend.

In which direction I should go? Do you have some suggestions for me? Please
share your thoughts on this.

Thanks  Regards
-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2012-06-07 Thread Subin Sebastian
Can anyone help me out on this?

On Wed, Jun 6, 2012 at 6:42 PM, Subin Sebastian subinsebast...@gmail.comwrote:

 I have an activity named *One *and the layout xml for that activity is
 here :* *https://gist.github.com/2881650
 And the code for this activity class is here :
 https://gist.github.com/2881736
 In the tabhost, I have added a tab and another activity *Two *is running
 inside the tab.
 The weird problem is that, I'm not able to type something in the textbox
 above the Tabhost in the parent layout. I'm attaching the build for this
 code
 for reference as well. Someone please suggest me a solution.

 Thanks  Regards
 --
 Subin Sebastian
 http://subinsebastien.tumblr.com
 http://in.linkedin.com/in/subinsebastien
 http://plus.google.com/subinhttps://plus.google.com/118262481642737404812
 http://facebook.com/subinsebastien




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

[android-developers] Issue with TabHost Without Tab activity

2012-06-06 Thread Subin Sebastian
I have an activity named *One *and the layout xml for that activity is here
:* *https://gist.github.com/2881650
And the code for this activity class is here :
https://gist.github.com/2881736
In the tabhost, I have added a tab and another activity *Two *is running
inside the tab.
The weird problem is that, I'm not able to type something in the textbox
above the Tabhost in the parent layout. I'm attaching the build for this
code
for reference as well. Someone please suggest me a solution.

Thanks  Regards
-- 
Subin Sebastian
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

simple.apk
Description: application/vnd.android.package-archive


[android-developers] Options missing in Android SDK Manager when started from Eclipse

2012-05-10 Thread Sebastian Krysmanski
Hi,

is there a special reason why the Tools menu in the Android SDK Manager 
is missing most of its menu items (including Options...) when started 
from Eclipse.

https://lh3.googleusercontent.com/-ZOUJfrEBGvY/T6qHRimqz7I/AAg/BWnAnhmqak8/s1600/android-sdk-manager-eclipse.png

https://lh5.googleusercontent.com/-uAYoDSx9Atc/T6qHkc2VvPI/AAo/Vm_SxTp04-s/s1600/android-sdk-manager-standalone.png








I've verified this behavior on Windows 7 and Linux (Ubuntu) with the newest 
tools installed.

Regards
Sebastian

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

2012-04-12 Thread Sebastian
Hello all, just subsribed, i'n new, i used this tutorial to make mai
tabbed application.
 the problem is that in one of the tabs a want gravity set cu bottom,
the main.xml is similar to the one on the site, and my tab layout is
like this:

LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:orientation=vertical
  android:layout_width=match_parent
  android:layout_height=match_parent
  android:layout_gravity=bottom

  !-- Screen Design for Photos --
  TextView android:text=test field
android:padding=15dip
android:textSize=18dip
android:layout_width=fill_parent
android:layout_height=wrap_content /
/LinearLayout

but the tab uses top gravity, can anyone give me a hint of what i'm
doing wrong?
thanks in advance

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


[android-developers] Prevent Android USB Host (OTG) from suspend

2012-03-19 Thread Sebastian


I'm working on a USB gadget which is intended to be used with USB Host 
(OTG) enabled Android devices. My gadget consumes a fair amount of power 
(~30-40mA) and is completely powered by the host. I've been able to power 
and control it with my Motorola Xoom (Android version 3.2) but I got one*big
* problem:

Every time the screen goes off, the USB host sends a *suspend* command 
which indicates to reduce power consumption to  2.5mA! When the screen 
goes/is on USB gets resumed to normal power.

Since I *absolutely need* to have 'full power' all the time, please help me 
and post some hints how I could prevent the USB host to go to suspend mode. 
I tried a full wake lock, but it didn't help :(

Thank you in advance


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

Re: [android-developers] Prevent Android USB Host (OTG) from suspend

2012-03-19 Thread Sebastian
Okay thanks for your help.

Seems like the Xoom sends a USB suspend command, but still sources (enough) 
power.
In contrast to that, my Galaxy Nexus does not send a suspend command.

So I will probably just ignore the suspend command...


Am Montag, 19. März 2012 11:16:09 UTC+1 schrieb Mark Murphy (a Commons Guy):

 On Mon, Mar 19, 2012 at 4:38 AM, Sebastian
  Since I absolutely need to have 'full power' all the time, please help me
  and post some hints how I could prevent the USB host to go to suspend 
 mode.
  I tried a full wake lock, but it didn't help :(

 With a full WakeLock, the screen does not turn off. Are you saying
 that the power dropped anyway after some period of time?

 Regardless, this sounds like it might be XOOM-specific, in which case
 you may be better served asking over on the MOTODEV support boards.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!



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

Re: [android-developers] Re: About Phone GAP

2011-12-02 Thread Subin Sebastian
Hi All,

The thing is that Phonegap and Sencha/JQuery mobile are not the same.
Phonegap is a framework which extends Android Webview. Sencha/JQMob
provides a wrapper to HTML/CSS to make it UX friendly. I have used phonegap
to run applications on Android before I started with native programming.
Phonegap cloud build is good place to hold source code and to build apps
for different platforms. But it doesn't mean that PhoneGap is the only
solution to develop cross platform mobile applications!!!

AnscaMobile's corona is a far more effective way. Even though they only
priced options and package becomes heavier, it is professionally written -
even for gaming! Anyway, I dont like PhoneGap or Corona just because of
their poor performance over native or NDK applications on Android.

Regards

On Sat, Dec 3, 2011 at 3:42 AM, Miguel Morales therevolti...@gmail.comwrote:

 It's ok for what it is.
 But, it's just all the layers of abstraction in HTML/JS that make it
 really slow.
 I doubt they will gain much more speed on mobile devices, perhaps by using
 hardware acceleartion.

 In either case, it's slow and it looks and feels like crap.
 But it's perfect for simple apps, users just want things that work.
  Although they prefer things that work well.


 On Fri, Dec 2, 2011 at 1:42 AM, ghenne g...@nsbasic.com wrote:

 For an alternative to working with HTML/CSS/JS, have a look at NS
 Basic/App Studio http://www.nsbasic.com/app. It's got a drag and drop
 interface for creating forms and lets you code in a subset of VB or in
 JavaScript. The projects can be deployed as web apps or through a built in
 interface to PhoneGap.

 It makes life much easier for people coming from VB like environments.

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




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

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] how i use google app engine for android

2011-12-02 Thread Subin Sebastian
Hi Yesh,

GAE is a perfect place to run computationally heavy applications. GAE
instances are completely self managed cloud servers. It is not clear that
why do you want to use GAE for your application anyway. GAE servers respond
the same way as other web-servers do. But GAE is much reliable and easy to
use. Coding and deployment and even version controlling is easy as we speak
on GAE. If you want to know more about how to use it, deploy - you can
directly contact me as this list is specifically for Android threads. I
hope you know how to make an http client in Android by the way!

Regards.

On Fri, Dec 2, 2011 at 5:35 AM, yash kumar er.yashkumar...@gmail.comwrote:

 i want to use google app engine in android.how can i use what is best
 resource for that and what are the benifits of using google app engine

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2011-12-02 Thread Subin Sebastian
Devie,

How about throwing an intent with a bundle of data. I'm not sure how it
would work with the geolocation app, but if you really need it I could take
a look.

Regards

On Fri, Dec 2, 2011 at 11:28 PM, Davie davie1...@gmail.com wrote:

 Any ideas on how to pass the native naviation app a geolocation and
 start navigating from an android app?

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com/
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] TabHost and sub-activities

2011-12-02 Thread Subin Sebastian
Hi wBishop,

You should probably show us the code you have developed so far. I think it
is not big issue to run controlled child activities.

Thanks


On Fri, Dec 2, 2011 at 3:42 PM, wBishop walterb...@gmail.com wrote:

 Howdy,

 I'm using tabactivity to navigate between activities. In one activity
 when I press a butto I call other activity that's under the tab host.
 In other words: I have the following:

 Tab1:
  - Activity 1
 Tab2:
  - Activity 2
- Sub-activity 1

 When I press the tab2 while I'm on sub-activity I wanted to return to
 Activity 2, but I'm starting to run out of ideias on how to do this.

 Do you know how can I accomplish this?

 Thanks

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Need A web xml parsing code... Urgently please

2011-12-02 Thread Subin Sebastian
Hi Aniket,

You might probably want to take a look at SAX or JSoup.
By the way : http://www.catb.org/~esr/faqs/smart-questions.html

Regards.

On Fri, Dec 2, 2011 at 10:47 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 When I run that code, it never returns from -

 iHaveTheSkillToDoMyOwnWork()

 :-)

 Regards

 On Dec 2, 7:51 am, Streets Of Boston flyingdutc...@gmail.com wrote:
  Sorry Treking,
  But the example you provided won't work. He asked for Urgent*ly* ...
 slight
  typo on your part, can happen to the best of us
  :-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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2011-12-02 Thread Subin Sebastian
Hi Xiao,

OnKey*();

Regards

On Thu, Dec 1, 2011 at 8:37 PM, Xiao-long Gou xiaolong@gmail.comwrote:

 Hey, guys.

 I just want to see where should I call setError(),if I want validation
 information to be poped each time the content is changed.

 Regards,
 XLG

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




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Hide bottom status bar in Android 3.2 Honeycomb!

2011-11-01 Thread Sebastian Tomaszewski
Hello guys,

If this subject was already discussed somewhere in the forums with the
solution without ROOTing the device, I would like to apologize ahead of
time...

As we know that the Bottom Status Bar in the Android Honeycomb takes lots
of real-estate on the Tablet screen, since this is the case and one of my
applications that I am creating needs that space, is there someway to hide
it without ROOTING the device?

I research a lot on this subject and I haven't found any solutions that I
am looking for and at the same time I don't understand why there isn't way
to do that now (hide it, shrink it, move it, whatever) ...  What I
understand is that if some people will remove that completely, the users
will be stuck in that program and the only way to get out is to restart the
device...At the same time I would like to argue that the developer should
know better...

As fun ROOTING the system sounds, I again would like stay away from that

The following link contains some in depth discussion on this subject, since
March 10th, 2011... In fact some people did an in depth analysis on this
subject with the potential solutions... Does anyone know if this will be an
option in the near future without ROOTING the device?  If so, does anyone
know how of the near future that is going to be, because I am really on a
tight deadline here?
http://code.google.com/p/android/issues/detail?id=15408

Please let me know if have any answers to my questions and I would like to
thank you ahead of time..

Thank you and Best Regards,



Sebo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Hide bottom status bar in Android 3.2 Honeycomb!

2011-11-01 Thread Sebastian Tomaszewski
SIGHT... THank you  [?]...

On Tue, Nov 1, 2011 at 9:59 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Tue, Nov 1, 2011 at 12:24 PM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:
  As we know that the Bottom Status Bar in the Android Honeycomb takes
 lots of
  real-estate on the Tablet screen, since this is the case and one of my
  applications that I am creating needs that space, is there someway to
 hide
  it without ROOTING the device?

 No.

  I research a lot on this subject and I haven't found any solutions that
 I am
  looking for and at the same time I don't understand why there isn't way
 to
  do that now (hide it, shrink it, move it, whatever) ...

 Because users need to be able to control their devices, and the
 control buttons on tablets are in the system bar.

  What I understand
  is that if some people will remove that completely, the users will be
 stuck
  in that program and the only way to get out is to restart the device...At
  the same time I would like to argue that the developer should know
  better...

 Malware authors say the same thing.

  Does anyone know if this will be an
  option in the near future without ROOTING the device?

 I will be stunned if it is ever an option for developers to attack
 users this way. Users might have options for getting rid of the bar,
 and the OS (on its own or via modded ROMs) might switch to some other
 model where the bar is only sporadically visible.

  If so, does anyone
  know how of the near future that is going to be, because I am really on a
  tight deadline here?

 Even if Android 4.1/5.0/whatever the J release is were to add this
 feature, it will be late 2013 before a preponderance of devices runs
 that version of Android or higher. That would not seem to fit with any
 likely definition of tight deadline.

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

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

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


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

[android-developers] Proper usage of Fragments + ActionBar

2011-10-19 Thread Sebastian Roth
Hi everyone:

Guess I need some help on how to use the ActionBar in combination with
Fragments.

Simple App Structure:
 Activity A
  Fragment 1
  Fragment 2

Activity A loads, starts Fragment 1. Fragment one contains code to set
the ActionBar:

@Override
public void onResume() {
super.onResume();

ActionBar bar = getSupportActivity().getSupportActionBar();
bar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
bar.setListNavigationCallbacks(new
SimpleSpinnerArrayAdapter(getActivity()), this);
}

At some point, Activity A starts Fragment 2, by adding it to the stack
and overlaying. Also, Fragment 2 will revert the ActionBar to the
plain one.

public void showStationList(View view) {
String tag = (String) view.getTag();
if (tag != null  tag.length()  0) {
FragmentTransaction ft =
getSupportFragmentManager().beginTransaction();
StationListDialog fragment = new StationListDialog(tag.split(,));
ft.add(R.id.f_long_distance, fragment);
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.addToBackStack(null);
ft.commit();
}
}


Problem is: When pressing the back button, means when coming back to
Fragment A, the ActionBar is not restored to the state Fragment A
needs it.

I guess onResume is wrong (as it's not called as well). But I cannot
find the proper place to put this into.

Any suggestion?

Thanks,
Sebastian

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

2011-10-19 Thread Subin Sebastian
On Tue, Oct 18, 2011 at 9:55 PM, Chenna chenn...@gmail.com wrote:

 Thanks Subin.

 I tried to create a shape with rectangle with rounded corners  in xml
 and added this as a background to VideoView.

Not as background of the VideoView. Rather create a parent layout for
VideoView, and set the shape as the background for the parent view.

 But did not displayed
 video.

 How http://qik.com/ created videoViews?

 thanks
 Chenna

 On Oct 18, 12:43 pm, Subin Sebastian subinsebast...@gmail.com wrote:
  Chenna,
 
  Did you try creating a parent view with rounded corners for the video
 view?
 
 
 
 
 
 
 
 
 
  On Tue, Oct 18, 2011 at 6:17 AM, Chenna chenn...@gmail.com wrote:
   Hi
 
   I am doing a live video stream and displaying in video view. But this
   video view is in rectangle. But i want to display video in a curved
   shape. How to draw a video view into a required shape.
 
   thanks
   Chenna
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Subin Sebastianwww.nintriva.comhttp://
 in.linkedin.com/in/subinsebastienhttp://plus.google.com/subin
 https://plus.google.com/118262481642737404812
 http://facebook.com/subinsebastien

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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

Re: [android-developers] Display Video view in a curved shape

2011-10-18 Thread Subin Sebastian
Chenna,

Did you try creating a parent view with rounded corners for the video view?

On Tue, Oct 18, 2011 at 6:17 AM, Chenna chenn...@gmail.com wrote:

 Hi

 I am doing a live video stream and displaying in video view. But this
 video view is in rectangle. But i want to display video in a curved
 shape. How to draw a video view into a required shape.

 thanks
 Chenna

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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2011-10-17 Thread Subin Sebastian
Hi Vani,

Hope you will probably be using an array list in your application. I cannot
specifically answer you unless I see the code. Anyway, if you are using
ArrayListYourDataType type implementation, sort the list using a getter
method in YourDataType class. Then you can adapt the data into the list
view. You can check my article
herehttp://subinsebastien.tumblr.com/post/11471793017/extending-listview-in-androidif
you wish. If you can share the mentioned code, may be I can work
something out.

Regards
-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2011-10-17 Thread Subin Sebastian
@Dileep,

:) Read lbendlin's mail again...

On Mon, Oct 17, 2011 at 5:55 PM, dileep discover.dile...@gmail.com wrote:

 Thanks Ibendlin.
 How not to put code into .apk?
 Regards
 Dileep

 On Oct 17, 4:43 pm, lbendlin l...@bendlin.us wrote:
  You cannot prevent this from happening. The only way to stop code
 generation
  from .apk is not to put the code into the .apk. If you have a
 client/server
  app, move more logic to 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




-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2011-10-14 Thread Subin Sebastian
@Vani,

It is not clear that what data you are adapting to the ListView. Anyway, use
some standard algorithms to sort yourData by date just before a line
something like this in your code appears.

yourListView.this.getListView().setAdapter(new
yourAdapter(yourListView.this, R.layout.your_row, yourData));

Hope that helps.
-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812
http://www.facebook.com/subinsebastien

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

2011-10-12 Thread Subin Sebastian
Hi Perry,

You can use Android animation for the same.
Add the following code into a file in res/anim, say rotation.xml

?xml version=1.0 encoding=utf-8?
rotate xmlns:android=http://schemas.android.com/apk/res/android;
android:fromDegrees=0 -- you can change these
android:toDegrees=360-- values as required
android:toYScale=0.0 --noscaling
android:pivotX=50% --the pivot is
android:pivotY=50% --the center of the image
android:duration=4000 --rotates in 4 seconds
/

Then, in your activity,

final ImageView yourImage = (ImageView) findViewById(R.id.your_image_file);
final Animation yourRotation =
AnimationUtils.loadAnimation(getApplicationContext(),R.anim.rotation);
yourImage.startAnimation(yourRotation);
yourRotation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationEnd(Animation animation) {
Intent i = new Intent(Fromclass.this, Toclass.class);
startActivity(i);
}
});


Hope this is useful for your requirement.

Thanks
-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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

2011-10-11 Thread Subin Sebastian
Hi Kristoffer,

Hope you were following the tutorial I've posted in the last response. I've
figured out a way to do your requirement. The idea is to clear all the tabs
which is loaded before in onClick of the button inside one of the view. You
can move that code into yout on_preference_change (or what ever you are
using). Anyway, I'm not sure this is the optimal way to do the same, but it
works!

Thanks

public class HelloTabActivity extends TabActivity {
int verified = 1;
TabHost mTabHst;
View view1,view2;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mTabHst = getTabHost();
view1 =
((LayoutInflater)getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_one,(ViewGroup)
mTabHst.getChildAt(2));
view2 =
((LayoutInflater)getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE)).inflate(R.layout.layout_two,(ViewGroup)
mTabHst.getChildAt(2));
view1.findViewById(R.id.button1).setOnClickListener(new
OnClickListener(){
@Override
public void onClick(View arg0) {
verified = 0;
setTabs();
}
});
setTabs();
mTabHst.setCurrentTab(0);
}
private void setTabs(){
Resources res = getResources();
mTabHst.clearAllTabs();

mTabHst.addTab(mTabHst.newTabSpec(tab_test1).setIndicator(One,res.getDrawable(R.drawable.one)).setContent(new
TabContentFactory() {
@Override
public View createTabContent(String tag) {
//int verified = pref.getInt(verified, 0);
if (verified == 1)
return view1;
else
return view2;
}
}));
}
}

-- 
Subin Sebastian
www.nintriva.com
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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

2011-10-08 Thread Subin Sebastian
Hi Kristoffer,
As I understand from your question, I think you need to set a
different content for the main tab when you change a specific
preference in the settings tab. If I'm not wrong the below tutorial
will help you to do so.

http://subinsebastien.tumblr.com/post/6783812456/android-tab-layout

In the above code, instead of passing a new TabSpec, create one
reusable tabspec like,
TabHost.TabSpec spec =
mTabHst.newTabSpec(tab_test1).setIndicator(One,res.getDrawable(R.drawable.one)).setContent(i);

In your method which is triggered on change of specific preference,
use the following code.

spec = spec.setContent(your_new_activity);

I think this code should work, but I did not tested it yet. Please let
me know if anything goes wrong.

Thanks

On 10/9/11, Kristoffer kris.isak.v...@gmail.com wrote:
 Hello.

 Iam not sure this is possible to do but here is what i need to do.

 Iam now creating two tabs one for the main page and one for the
 settings.
 Lets call them main.java and setting.java

 When i change a thing on the setting.java page then i need to show a
 different intent (main1.java) when the user push the main tab.

 Is this possible in some way?

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


-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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


Re: [android-developers] Video in WebView

2011-10-08 Thread Subin Sebastian
Hello Siva,
I suggest you to put your code here for someone to find out why it
doesn't do that.

Regards.

On 10/9/11, Siva Prakash siva.yuvan2...@gmail.com wrote:
 Hi

 Im trying to load a video in WebView but it doesnt do that? Any settings
 need to be marked?

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


-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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

2011-10-06 Thread Sebastian Tomaszewski
Anyone?

On Wed, Oct 5, 2011 at 11:50 AM, Sebastian Tomaszewski 
stomasze101...@gmail.com wrote:

 BTW, where can I find that APP, I can't find it


 On Wed, Oct 5, 2011 at 11:45 AM, Sebastian Tomaszewski 
 stomasze101...@gmail.com wrote:

 Thank you for your reply... I will look on this


 On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.comwrote:

 you need to install an application called sbj 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





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

2011-10-06 Thread Sebastian Tomaszewski
Thank u...
On Oct 6, 2011 4:11 PM, Kristopher Micinski krismicin...@gmail.com
wrote:
 I don't think anyone has any advice because this is just a bad idea...

 A service shouldn't directly touch the UI, it just doesn't make sense...

 The point of a service is to *not* touch the UI...

 Somebody already told you this, yet you brushed off their comment and
 asked again.

 If you want to change the UI, and need to do it from a service, send a
 message to some UI code that tells it to make the necessary changes.

 Kris

 On Thu, Oct 6, 2011 at 12:17 PM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:
 Anyone?

 On Wed, Oct 5, 2011 at 11:50 AM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:

 BTW, where can I find that APP, I can't find it

 On Wed, Oct 5, 2011 at 11:45 AM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:

 Thank you for your reply... I will look on this

 On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.com
 wrote:

 you need to install an application called sbj 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


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

2011-10-05 Thread Sebastian Tomaszewski
Marcin,
Point well taken, but this doesn't help me...   Just a side note, my APP
will not be published on the market.Again your comment doesn't help
me here, but thanks...


Sebo
On Wed, Oct 5, 2011 at 2:26 AM, Marcin Orlowski webnet.andr...@gmail.comwrote:

 And why you want to enforce certain screen orientation for non UI element
 like service? It's makes no much sense. If you really need certain
 orientation for your *Activity*, enforce it there, either via code or
 manifest. Otherwise keep your hands off of this unless you love users to
 give you names.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *



   On 4 October 2011 19:05, Sebastian Tomaszewski stomasze101...@gmail.com
  wrote:

   Guys,
 Would you by any chance know if there is a way to set a Screen Orientation
 in Service?   What I want is to set my android device to a specific
 Orientation at all times.   The orientation that I am setting it too is not
 available currently on my device, but I can set it programmatically   My
 thought was to set the Service in the background at all times which will
 keep that orientation.   I don't want to root my device... Unless you guys
 think that there are some other ways to do this...

 Any suggestions?  Please let me know.


 Thank you and Best Regards,


 Sebo

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

2011-10-05 Thread Sebastian Tomaszewski
Thank you for your reply... I will look on this

On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.comwrote:

 you need to install an application called sbj 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


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

2011-10-05 Thread Sebastian Tomaszewski
Quick question, does it rquire rooting the phone?

On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.comwrote:

 you need to install an application called sbj 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


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

2011-10-05 Thread Sebastian Tomaszewski
BTW, where can I find that APP, I can't find it

On Wed, Oct 5, 2011 at 11:45 AM, Sebastian Tomaszewski 
stomasze101...@gmail.com wrote:

 Thank you for your reply... I will look on this


 On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.comwrote:

 you need to install an application called sbj 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




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

2011-10-04 Thread Sebastian Tomaszewski
Guys,
Would you by any chance know if there is a way to set a Screen Orientation
in Service?   What I want is to set my android device to a specific
Orientation at all times.   The orientation that I am setting it too is not
available currently on my device, but I can set it programmatically   My
thought was to set the Service in the background at all times which will
keep that orientation.   I don't want to root my device... Unless you guys
think that there are some other ways to do this...

Any suggestions?  Please let me know.


Thank you and Best Regards,


Sebo

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

2011-09-27 Thread Sebastian Tomaszewski
Question, How did you use those two files in order to get this for you to
work?  Please let me know.

Thanks

On Tue, Sep 27, 2011 at 5:21 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 This worked for me:

 https://gist.github.com/**1233900 https://gist.github.com/1233900

 26.09.2011 19:19, Coolblue2000 пишет:

 I need a driver for my Sony S1 tablet. I have enabled USB Debugging
 but my computer can only see the tablet as USB storage device and AVD
 manager can't see the tablet as a device.

 I also have a desire HD and simply downloaded the htc adb driver,
 installed it and everything works fine. I however can not find a
 driver on the sony site and their tech support simply told me I needed
 the google usb driver which I already have installed..

 Does anyone have any idea how I get this working?


 --
 Kostya Vasilyev


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] Sony S1 adb driver

2011-09-27 Thread Sebastian Tomaszewski
Kostya,
Thank you for your response.  I greatly appreciate it.  I ddi everything as
you specified, but for some reason it still doesn't work for me.  Is there
any specific SONY driver that you loaded?  Please let me know.

Thank you again,


Sebo

On Tue, Sep 27, 2011 at 10:45 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 I added 0x054C on a line by itself to adb_usb.ini (located in
 %USERPROFILE%\.android).

 And added the other snippet to android_winusb.inf in the standard Google
 USB driver (under [Google.NTamd64], since my system is 64-bit, use
 [Google.NTx86] for 32-bit, or add in both places at once).

 After configuring the driver, I also had to do adb kill / adb start before
 it showed up in adb devices.

 -- Kostya

 27.09.2011 21:11, Sebastian Tomaszewski пишет:

 Question, How did you use those two files in order to get this for you to
 work?  Please let me know.

 Thanks

 On Tue, Sep 27, 2011 at 5:21 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 This worked for me:

 https://gist.github.com/1233900

 26.09.2011 19:19, Coolblue2000 пишет:

 I need a driver for my Sony S1 tablet. I have enabled USB Debugging
 but my computer can only see the tablet as USB storage device and AVD
 manager can't see the tablet as a device.

 I also have a desire HD and simply downloaded the htc adb driver,
 installed it and everything works fine. I however can not find a
 driver on the sony site and their tech support simply told me I needed
 the google usb driver which I already have installed..

 Does anyone have any idea how I get this working?


 --
 Kostya Vasilyev


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


 --
 Kostya Vasilyev

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

2011-09-27 Thread Sebastian Tomaszewski
yeah, I enabled it I am missing something and it is prbably something
simple that I will hit my head over the wall once I find it... :) Thank
you again.



On Tue, Sep 27, 2011 at 1:00 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 No, I couldn't find any drivers on Sony's site...

 Did you remember to enable debugging in the tablet's Settings, it's under
 Applications?

 27.09.2011 23:48, Sebastian Tomaszewski пишет:

 Kostya,
 Thank you for your response.  I greatly appreciate it.  I ddi everything
 as you specified, but for some reason it still doesn't work for me.  Is
 there any specific SONY driver that you loaded?  Please let me know.
 Thank you again,

 Sebo


  --
 Kostya Vasilyev

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] Sony S1 adb driver

2011-09-27 Thread Sebastian Tomaszewski
Kostya,
Another quick question, are you using Eclipse?  Please let me know.

Thanks,


Sebo

On Tue, Sep 27, 2011 at 1:00 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 No, I couldn't find any drivers on Sony's site...

 Did you remember to enable debugging in the tablet's Settings, it's under
 Applications?

 27.09.2011 23:48, Sebastian Tomaszewski пишет:

 Kostya,
 Thank you for your response.  I greatly appreciate it.  I ddi everything
 as you specified, but for some reason it still doesn't work for me.  Is
 there any specific SONY driver that you loaded?  Please let me know.
 Thank you again,

 Sebo


  --
 Kostya Vasilyev

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] Sony S1 adb driver

2011-09-27 Thread Sebastian Tomaszewski
Kostya, thank you for fowarding this...
Okay, I was able to find my problem thank you
On Tue, Sep 27, 2011 at 2:47 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 I certainly am, Eclipse 3.7 on Windows 7 / 64bit.

 Here is my tweaked android_winusb.inf:

 http://pastebin.com/nET9v1pr

 And here is my adb_usb.ini, goes into %USERPROFILE%\.android:

 http://pastebin.com/wBs0gaCR

 What I did was (just got the tablet this afternoon):

 - Tweaked the driver .inf file, tweaked adb_usb.ini

 - Brought up the Device Manager, manually associated the modified driver
 with the tablet's ADB device (it initially showed up as missing the
 drivers).

 - Restarted adb with adb kill-server / adb start-server, then typed
 adb devices and the tablet was listed in the output.

 Hope this helps.
 -- Kostya

 28.09.2011 1:36, Sebastian Tomaszewski пишет:

 Kostya,
 Another quick question, are you using Eclipse?  Please let me know.

 Thanks,


 Sebo


 --
 Kostya Vasilyev

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

2011-09-18 Thread Subin Sebastian
(Button)findViewById(R.id.start).setOnClickListener(new
View.OnClickListener() {
public void onClick(View arg0) {
new Timer().schedule(new TimerTask(){
@Override
public void run() {
new Handler().post(new Runnable(){
@Override
public void run() {
new myAsyncTask().execute();
}
});
}
}, 0, 1);
}
});

I get exception : java.lang.RuntimeException: Can't create handler inside
thread that has not called Looper.prepare()


Thnaks in advance
-- 
Subin Sebastian
http://in.linkedin.com/in/subinsebastien
https://plus.google.com/subinhttps://plus.google.com/118262481642737404812

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

2011-09-03 Thread sebastian nielsen
How I do it? I installed the JDK in the standard dir suggested by the
JDK7 installer.

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

2011-09-02 Thread sebastian nielsen
The picture says more than a tousands of words.
http://data.fuskbugg.se/skalman02/4e61bcb5b3f41_jdk.PNG

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

2011-08-08 Thread Sebastian Tomaszewski
Bring this to the TOP again... See if someone has the potential answers...
Thank you ahead of time


Sebo

On Thu, Aug 4, 2011 at 4:01 PM, Sebastian Tomaszewski 
stomasze101...@gmail.com wrote:

 Hello All,
 I have a little dilema with the Timing on one of my Screen Capture
 applications:

 1. Currenlty I am using the following code in oroder to capture the SCREEN
 SHOT of the device:
 
 v1 = linView.getRootView();
 v1.setDrawingCacheEnabled(*true*);
 bmp = v1.getDrawingCache();
  
 Which gives the following timing when I try to capture every second:
TIME Time to Get Data 1  111MS  2  28MS  3  1MS  4  1MS  5  4MS  6  1MS
   7  1MS  8  1MS  RESTARTED WHILE APP RUNNING- 9  2MS  10  31MS
 11  3MS  12  1MS  13  1MS  RESTARTED WHILE APP RUNNING- 14  1MS
 15  28MS  16  2MS  17  1MS  18  1MS

 As you can see that the very 1st time it takes forever, comparing to the
 other times.  Also, always at the second capture it takes more as well.
 Would anyone know why?  Is there some way that I coudl improve this?

 2. The above code is a lot better from the timing perspective then the
 following code:

 bmp = Bitmap.*createBitmap*(width , height, Bitmap.Config.*ARGB_*);

 canvas = *new* Canvas(bmp);
 3. Finally could anyone tell me if there is another/better way to capture
 the Screen Shot of the device, which could improve my timing?



 Please let me know.

 Thank you and Best Regards,



 Sebo


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

2011-08-04 Thread Sebastian Tomaszewski
Hello All,
I have a little dilema with the Timing on one of my Screen Capture
applications:

1. Currenlty I am using the following code in oroder to capture the SCREEN
SHOT of the device:

v1 = linView.getRootView();
v1.setDrawingCacheEnabled(*true*);
bmp = v1.getDrawingCache();
 
Which gives the following timing when I try to capture every second:
   TIME Time to Get Data 1  111MS  2  28MS  3  1MS  4  1MS  5  4MS  6  1MS
7  1MS  8  1MS  RESTARTED WHILE APP RUNNING- 9  2MS  10  31MS  11
3MS  12  1MS  13  1MS  RESTARTED WHILE APP RUNNING- 14  1MS  15
28MS  16  2MS  17  1MS  18  1MS

As you can see that the very 1st time it takes forever, comparing to the
other times.  Also, always at the second capture it takes more as well.
Would anyone know why?  Is there some way that I coudl improve this?

2. The above code is a lot better from the timing perspective then the
following code:

bmp = Bitmap.*createBitmap*(width , height, Bitmap.Config.*ARGB_*);

canvas = *new* Canvas(bmp);
3. Finally could anyone tell me if there is another/better way to capture
the Screen Shot of the device, which could improve my timing?



Please let me know.

Thank you and Best Regards,



Sebo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-28 Thread Sebastian Tomaszewski
Putting this to the top to see if someone has an answer...  thank you
 On Jul 25, 2011 11:20 AM, Sebastian Tomaszewski stomasze101...@gmail.com
wrote:
 Do any of you guys know an answer to this.. Just wondering...

 On Fri, Jul 22, 2011 at 5:24 PM, Sebo stomasze101...@gmail.com wrote:

 Hello All,

 Here is my Problem, I am trying to safe an image (1280x800) into the
 memory and I am running into some timing issues Meaning I want to
 get it done As fast as possible wihtout losing the image sizing and
 crispness I had been trying to resolve this problem for last
 couple of days and I am running always to gotchias (The final
 destination of the Image I want it to be in the SDCARD)

 1. I tried writing directly an image to the SD-CARD and it took about
 about 180 msec
 2. I tried writing to internal cache memory first (160msec) and then
 copying using the FileChannel the image to SDCARD (4msec)

 Does anyone know what would be even faster?
 If there is no faster way to do this, that is fine, but I just want to
 make sure that I visited all of the possible ways.

 Thank you all for your help ahead of time.

 Thank you and Best Regards,


 Sebo
 --- I eat droids for Breakfast

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-28 Thread Sebastian Tomaszewski
Thank u guys, I will give it a shot later ...  thank you again
On Jul 28, 2011 11:42 AM, Miguel Morales therevolti...@gmail.com wrote:
 When writing to the sdcard directly did you wrap your file stream
 around a buffered stream with a 8k buffer?


 On Thu, Jul 28, 2011 at 11:37 AM, Kostya Vasilyev kmans...@gmail.com
wrote:
 Your timings don't seem that bad - 180 ms for approximately 3 MB image
(you
 didn't write anything about compression) is about 16 MB / sec.

 I'd recommend you run some kind of compression on the image data. It
doesn't
 have to be anything fancy that gets you the minimum possible image size,
but
 rather the opposite - something that can reduce the file size, while
taking
 less time than it will save on I/O.

 -- Kostya

 28.07.2011 22:20, Sebastian Tomaszewski пишет:

 Putting this to the top to see if someone has an answer...  thank you

 On Jul 25, 2011 11:20 AM, Sebastian Tomaszewski 
stomasze101...@gmail.com
 wrote:
 Do any of you guys know an answer to this.. Just wondering...

 On Fri, Jul 22, 2011 at 5:24 PM, Sebo stomasze101...@gmail.com wrote:

 Hello All,

 Here is my Problem, I am trying to safe an image (1280x800) into the
 memory and I am running into some timing issues Meaning I want to
 get it done As fast as possible wihtout losing the image sizing and
 crispness I had been trying to resolve this problem for last
 couple of days and I am running always to gotchias (The final
 destination of the Image I want it to be in the SDCARD)

 1. I tried writing directly an image to the SD-CARD and it took about
 about 180 msec
 2. I tried writing to internal cache memory first (160msec) and then
 copying using the FileChannel the image to SDCARD (4msec)

 Does anyone know what would be even faster?
 If there is no faster way to do this, that is fine, but I just want to
 make sure that I visited all of the possible ways.

 Thank you all for your help ahead of time.

 Thank you and Best Regards,


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

 --
 Kostya Vasilyev

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



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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-26 Thread Sebastian Tomaszewski
Hello Mark,
Thank you for your reply, I greatly appreciate it.
Fortunately...come on...  :)... I guess there is a reason behinid it
is there?
So does that mean that android:priority=*2147483647* didn't do anything
for me in my Manifest.   I read somewhere that this could have helped?... A
little bit confused here, but maybe I might have misread this...
http://developer.android.com/guide/topics/manifest/intent-filter-element.html#priority

Nevertheless, would the application that is running be considred as
Foreground Process?  Please let me know.

Thank you and Best Regards,


Sebo

On Tue, Jul 26, 2011 at 4:20 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Fri, Jul 22, 2011 at 8:31 PM, Sebo stomasze101...@gmail.com wrote:
  Quick question, do you know if there is a way to turn off any APPS
  that run in the background (e-mail/GPS...), so my application while it
  is running won't be interrupted at all(Except for the OS of
  course)?

 Fortunately, this is not possible.

  OR is there a way to tell when my application starts that my APP is
  the highest prioiryt in the whole system?

 The foreground process is already the highest prioiryt [sic] in the
 whole system.

    I tried setting my
  Acitivity prioity (In the Manifest) to the highest possible and that
  didn't work that well.

 There is no Acitivity prioity (In the Manifest).

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

 Android Training in NYC: http://marakana.com/training/android/

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-26 Thread Sebastian Tomaszewski
CHEERS... :)... That is completely understandable... Thanks...

On Tue, Jul 26, 2011 at 10:49 AM, Streets Of Boston flyingdutc...@gmail.com
 wrote:

 Yes, it's fortunately. :-)

 It's 'fortunately' for the developers of the e-mail/GPS/etc apps. If your
 app could take (almost) all CPU cycles, their apps will no longer run for
 some period of time and who knows what detrimental effects that could have
 on their apps. Then they would come to the android-developers group asking
 how they can avoid other apps from taking all the processing cycles or how
 they can set the priority even higher.


 --
  You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-26 Thread Sebastian Tomaszewski
Nathan,
Sorry I haven't read your e-mail prior to sending my last response, but one
more thing, again I understand the criticality of reason why we don't want
to do it Just to clarify, I don't want to maliciously  KILL the
processes running in the background.  I am currently writing an APP, which
won't be ever on the MARKET for the ANDROID community to
use.  Instead this APP will be used for my company purposes.  The reason why
I was asking to do that is because I wanted to make sure that nothing else
interrupts me while I am running  (it is very time critical application that
I am writing)...

Is there someway that I could learn how to do this?   If there are ways, I
understand why you won't be able to give me the examples for that on this
post, but is there someway that I could contact someone in ANDROID DEV group
that will be able to provide me with this information

Previously in this thread it was mentioned that The foreground process is
already the highest prioiryt [sic] in the whole system., does anyone know
what that means?

Thank you,


Sebo



On Tue, Jul 26, 2011 at 11:43 AM, Sebastian Tomaszewski 
stomasze101...@gmail.com wrote:

 CHEERS... :)... That is completely understandable... Thanks...

   On Tue, Jul 26, 2011 at 10:49 AM, Streets Of Boston 
 flyingdutc...@gmail.com wrote:

 Yes, it's fortunately. :-)

 It's 'fortunately' for the developers of the e-mail/GPS/etc apps. If your
 app could take (almost) all CPU cycles, their apps will no longer run for
 some period of time and who knows what detrimental effects that could have
 on their apps. Then they would come to the android-developers group asking
 how they can avoid other apps from taking all the processing cycles or how
 they can set the priority even higher.


 --
  You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-26 Thread Sebastian Tomaszewski
Dianne,
Thank you for the explenation.  I greatly appreciate it.

Sebo

On Tue, Jul 26, 2011 at 11:47 AM, Dianne Hackborn hack...@android.comwrote:

 android:priority is for IntentFilter matching, it has nothing to do with
 thread priority.  Also third party apps can't get an android:priority  0.

   On Tue, Jul 26, 2011 at 10:37 AM, Sebastian Tomaszewski 
 stomasze101...@gmail.com wrote:

   Hello Mark,
 Thank you for your reply, I greatly appreciate it.
 Fortunately...come on...  :)... I guess there is a reason behinid it
 is there?
 So does that mean that android:priority=*2147483647* didn't do
 anything for me in my Manifest.   I read somewhere that this could have
 helped?... A little bit confused here, but maybe I might have misread
 this...

 http://developer.android.com/guide/topics/manifest/intent-filter-element.html#priority

 Nevertheless, would the application that is running be considred as
 Foreground Process?  Please let me know.

 Thank you and Best Regards,


 Sebo

On Tue, Jul 26, 2011 at 4:20 AM, Mark Murphy 
 mmur...@commonsware.comwrote:

 On Fri, Jul 22, 2011 at 8:31 PM, Sebo stomasze101...@gmail.com wrote:
  Quick question, do you know if there is a way to turn off any APPS
  that run in the background (e-mail/GPS...), so my application while it
  is running won't be interrupted at all(Except for the OS of
  course)?

 Fortunately, this is not possible.

  OR is there a way to tell when my application starts that my APP is
  the highest prioiryt in the whole system?

 The foreground process is already the highest prioiryt [sic] in the
 whole system.

    I tried setting my
  Acitivity prioity (In the Manifest) to the highest possible and that
  didn't work that well.

 There is no Acitivity prioity (In the Manifest).

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

 Android Training in NYC: http://marakana.com/training/android/

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


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




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

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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-26 Thread Sebastian Tomaszewski
Mr. Mark,
Thank you, I greatly appreciate your help and clarifications.  Sorry about
the typo...

Regards,


Sebo

On Tue, Jul 26, 2011 at 1:24 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Jul 26, 2011 at 3:01 PM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:
  processes running in the background.  I am currently writing an APP,
 which
  won't be ever on the MARKET for the ANDROID community to
  use.  Instead this APP will be used for my company purposes.  The reason
 why
  I was asking to do that is because I wanted to make sure that nothing
 else
  interrupts me while I am running  (it is very time critical application
 that
  I am writing)...

 Don't allow other applications on the device. This may involve your
 firm purchasing its own devices from a device manufacturer or taking
 other steps to get rid of other applications.

  Previously in this thread it was mentioned that The foreground process
 is
  already the highest prioiryt [sic] in the whole system., does anyone
 know
  what that means?

 The [sic] is referring to your typo. The foreground process is
 whatever application is on the screen.

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

 Android Training in NYC: http://marakana.com/training/android/

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


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

2011-07-25 Thread Sebastian Tomaszewski
You are right that works alot better...   I am only 1 msec off what
expect  before it was about 10 sec off what I expected...  thank you for
clarifying this...  I greatly appreciate it   sebo
 On Jul 25, 2011 4:46 PM, Nick Risaro nris...@gmail.com wrote:
 If you run your app on eclipse, i.e. without making an apk and installing
it
 on the phone, you always run with the debug flag in true.

 If you want to run 100% in normal mode you have to make an APK file and
 install it on a real phone.

 On Mon, Jul 25, 2011 at 4:54 PM, Christophe 
 christophe.lebesner...@gmail.com wrote:

 I'm using eclipse but I run the app using the normal mode, not the
 debug mode.


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

2011-07-25 Thread Sebastian Tomaszewski
Hello all,
Nikolay, thank you for posting this problem that you are seeing. I get the
same problem when I use this timer in my code and I have no idea what could
be the issue...  If anyone know the reason why or how to improve it, I would
greatly appreciate the answer as well.
The followinig are some questions that come into my mind:
1. Is there some more occurate timer out there?
2. Could this potentially be because there are many other applications
runnign in the background?
3. Is there someway to turn off those applications?
NOTE: I posted questions 2 and 3 in my earlier post and didn't get a
responses...

Thank you again for all of your help and I greatly appreciate your response.


Sebo

On Mon, Jul 25, 2011 at 11:25 AM, Christophe 
christophe.lebesner...@gmail.com wrote:

 hello Nikolay,

 I have updated my code, following your suggestion :

 public ListLong times = new ArrayListLong();
 CountDownTimer countDown = new CountDownTimer(Integer.MAX_VALUE, 1000)
 {
@Override
public void onTick(long millisUntilFinished) {
times.add(System.currentTimeMillis());
}

 };

 and after a while I display the time between two call to onTick with
 a loop over my list :

 for (int i = 1; i  times.size(); i++) {
System.out.println(times.get(i) - times.get(i - 1));
 }

 And I have something like this :

 07-25 18:18:37.281: INFO/System.out(408): 1034
 07-25 18:18:37.281: INFO/System.out(408): 1031
 07-25 18:18:37.281: INFO/System.out(408): 1017
 07-25 18:18:37.281: INFO/System.out(408): 1018
 07-25 18:18:37.291: INFO/System.out(408): 1011
 07-25 18:18:37.291: INFO/System.out(408): 1019
 ...

 I'm not expecting the precision of an atomic clock, but the error
 margin here is huge !

 On Jul 25, 8:06 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
  On Jul 26, 2011 3:00 AM, Christophe christophe.lebesner...@gmail.com
   wrote:
 
 
 
   Log can be expensive = I have tried to run the same code with a
   good old System.out.println and the problem is still there.
 
  That goes to the same log buffer, so no change is to be expected. Make a
  list of Long and push currentTimeMillis on each call. Then dump the list
 to
  log and see what this gives 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-25 Thread Sebastian Tomaszewski
Do any of you guys know an answer to this.. Just wondering...

On Fri, Jul 22, 2011 at 5:24 PM, Sebo stomasze101...@gmail.com wrote:

 Hello All,

 Here is my Problem, I am trying to safe an image (1280x800) into the
 memory and I am running into some timing issues Meaning I want to
 get it done As fast as possible wihtout losing the image sizing and
 crispness I had been trying to resolve this problem for last
 couple of days and I am running always to gotchias (The final
 destination of the Image I want it to be in the SDCARD)

 1.  I tried writing directly an image to the SD-CARD and it took about
 about 180 msec
 2. I tried writing to internal cache memory first (160msec) and then
 copying using the FileChannel the image to SDCARD (4msec)

 Does anyone know what would be even faster?
 If there is no faster way to do this, that is fine, but I just want to
 make sure that I visited all of the possible ways.

 Thank you all for your help ahead of time.

 Thank you and Best Regards,


 Sebo
 --- I eat droids for Breakfast

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-25 Thread Sebastian Tomaszewski
Do any of you guys know an answer to this.. Just wondering...


On Fri, Jul 22, 2011 at 5:31 PM, Sebo stomasze101...@gmail.com wrote:

 Hello All,
 Quick question, do you know if there is a way to turn off any APPS
 that run in the background (e-mail/GPS...), so my application while it
 is running won't be interrupted at all(Except for the OS of
 course)?.   BOTTOM line the following is what I would like to do:
 1. As soon as my APP Enters, it would turn off the other background
 APPS/Services/Tasks (Except for OS) from running.
 2. Perform operations without being interrupted
 3. On the exit, the APP would re-enable all of those apps to run?

 OR is there a way to tell when my application starts that my APP is
 the highest prioiryt in the whole system?  I tried setting my
 Acitivity prioity (In the Manifest) to the highest possible and that
 didn't work that well.

 Please let me know if you have any suggestions..

 I greatly appreciate it.



 Sebo
 -- DROIDS for LUNCH... ANyone?

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

2011-07-05 Thread sebastian bossert
How can I pre-allocate the memory needed in Bitmap.createBitmap(..) so
the GC doesn't run? I'm writing a realtime game so the GC should not
run, at the moment my game stutters every few frames (2sec). Here's
the code bugging me:

this.bmp = Bitmap.createBitmap(SPRITESHEET, Bird.mCurFrame *
BIG_W[mUseBird], 0,
BIG_W[mUseBird], BIG_H[mUseBird], mat, true);
super.drawPlaceable(canv);

mat.preScale((float)0.6, (float)0.6);
this.bmp = Bitmap.createBitmap(SPRITESHEET, Bird.mCurFrame *
BIG_W[mUseBird], 0,
BIG_W[mUseBird], BIG_H[mUseBird], mat, true);

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

2011-05-17 Thread Sebastian Breit
I'm interested in developing an Android app that is able to connect
two android devices and stream audio so they are able to talk. Not as
sofisticated as Skype :)
What libraries or methods would you recommend me to use?  Ive
programmed a lot of things but never something like that (audio and
streaming). Is it possible to record from the microphone and stream it
while recording?
Ive seen that the Audiorecord api provides the recorded audio in
buffers...that's a start... but for sending and receiving it?
any ideas?
thanx!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SIP API in Android 2.3 with IP/Port problems

2011-05-02 Thread Sebastian
Hello everyone,

for a while now I've been playing around with the SipDemo in the 2.3
SDK.
The documentation on Android's developer page is nicely written, but
not a lot.
It does not explain anything about IPs, ports, NAT and STUN.
I know how this stuff is supposed to work, but it doesn't say how
Android's SIP API handles it. Or does it handle NATs at all...

Here, someone mentioned that the API does do some tests for public IP
and port, but it's the first time I read it:
http://code.google.com/p/android/issues/detail?id=14043can=1q=sip%20ipcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

But now to my problem:
When I deploy the SipDemo as-is either to my device connected to WiFi
or to the emulator, provide my credentials (I know they work with
SipDroid and other SIP apps) the SipDemo displays registration
failed.
I did some sniffing and found out the packets sent to the SipServer
all include the devices or emulators local IP, not my NAT's public
one.
The server replies correctly that RFC1918 IPs are not allowed.

I added a STUN test to the SipDemo and successfully retrieved my
public IP and port. But I can't find a way how to pass it on to my
created SipProfile or the SipManager.


My question:
Has anyone ever made an application working with the SIP API behind a
NAT?
How does the API handle NATs? How can I pass the information I got
from my own STUN client to the SIP API?

Any help is appreciated.

PS: I know SipDroid and a lot of other SIP implementations, but they
all do not use the built-in API.

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


Re: [android-developers] Re: In-app billing problem

2011-04-10 Thread Sebastian Pereyro
Hi,

Thanks for your info Ishihata, very useful. Now I am thinking more and more
that this is a market issue.

I am having the problem on a Motorola Cliq with Android 2.1-update1. I am in
the US, so I don't think it is related to the country you are testing from.

I would suggest adding your information here:
http://code.google.com/p/android/issues/detail?id=16042q=in-app%20billingcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

http://code.google.com/p/android/issues/detail?id=16042q=in-app%20billingcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars
Thanks

Seba


On Sat, Apr 9, 2011 at 2:27 AM, ishihata ishihata.k.t...@gmail.com wrote:

 Hello,

 I am worried of the same problem, too.
 Logcat says as follows.
 WARN/GTalkService(1268): [DataMsgMgr] broadcast intent callback:
 result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT
 cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }
 WARN/GTalkService(1268): TODO: implement reportNoReceiverError!

 I think that this problem happens on Android 1.6 and 2.1, but does not
 happen on Android 2.2.
 I tried the dungeons example with some models and followings are the
 result.
 NG means this problem happened.

 IS01 (Android 1.6) NG
 IS03 (Android 2.1) NG
 IS04 (Android 2.1) NG
 IS05 (Android 2.2) OK
 IS06 (Android 2.2) OK
 Desire (Android 2.2) OK
 Desire HD (Android 2.2) OK
 003SH (Android 2.2) OK
 005SH (Andoird 2.2) OK
 Libero (Android 2.2) OK
 Streak (Android 2.2) OK
 Xperia (Android 2.1) NG
 T-01C (Android 2.1) NG

 # I am in Japan so there are many local models for Japan...

 Isn't this a bug of the market app?

 On Apr 9, 5:19 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  FWIW,
 
  It's still not working for me - although it worked fine two or three
  days ago.
 
  Same phone, same account, same modified Dungeons sample. In fact, I made
  no changes at all.
 
  Now purchases for android.test.* are sent to Market, but never get any
  response. This is as if I was running the unsigned debug build on my
  test phone, but I'm running a signed release build. I even tried
  removing and adding back the test account in Market profile, no change.
 
  They are presently rolling out per-country pricing for in-app billing,
  perhaps it's related.
 
  PS - I don't see a way to set country-specific prices in my console. All
  I see is USD with no way to choose another currency. Their email said
  available immediately.
 
  -- Kostya
 
  09.04.2011 4:23, Seba ?:
 
   Hi Ivan/Kostya,
 
   I am having the exact same problem, and I am also seeing the same
   output regarding the GTalkService.
 
   Seba
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Kostya Vasilyev --http://kmansoft.wordpress.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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSL certpath error, Issue in Android or on server side?!

2011-04-07 Thread Sebastian Wagner
From my point of view one of those ROOT CA's is missing: 
https://www.thawte.com/roots/index.html

Accepting all Cert's to workaround does not work either.

Importing the ROOT CA into the application like described here: 
http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certificates/ 
was no solution too.

I also tried various ordering with Intermediate CA + Root CA. 

It seems like either the solution is very tricky or it is simply not 
possible.

Funny thing that the number of topics about Cert problems did rise sharply 
since August 2010. Seems like since that date Thawte has published a new 
Root CA.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSL certpath error, Issue in Android or on server side?!

2011-04-07 Thread Sebastian Wagner
okay command aborted :))

With the help of this code I was able to accept any Cert: 
http://www.google.com/codesearch/p?hl=de#HWjuhIdT4ps/trunk/src/org/transdroid/util/FakeSocketFactory.java

bit still it was quite tricky to find it out


Sebastian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SSL certpath error, Issue in Android or on server side?!

2011-04-05 Thread Sebastian Wagner
Hi everybody,

I cannot connect to the URL https://umbreit.e-bookshelf.de with the 
HTTPClient.

It *seems* like this Issue is also ours: 
http://code.google.com/p/android/issues/detail?id=1946#c19

Could someone verify that from the team if its an Android or a problem on 
the server side?


Thanks
Sebastian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SSL certpath error, Issue in Android or on server side?!

2011-04-05 Thread Sebastian Wagner
it seems like we actually run into a common Issue of multiple users: The 
ROOT Certificate of Thawte is not imported yet.

thawte Primary Root CA (Root) Thawte SSL CA (intermediate) does not work

Verisign Class 3 Public Primary Certification Authority (Root) Thawte SGC CA 
(Intermediate) works !

Was there some kind of update that Thawte certificates that is not shift to 
Android Platform yet?

I am testing with Android 2.2

similar to what is described here:
http://code.google.com/p/android/issues/detail?id=10807

Can someone confirm this?


Thanks
Sebastian Wagner 
http://openmeetings.googlecode.com

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

Re: [android-developers] WifiLock and WakeLock regarding large downloads

2011-03-29 Thread Sebastian Roth
Hold on a second here:

device policy of shutting down wifi and switching to 3g after 15 minutes of
screen off

- that means if I'm at home sleeping (with WiFI enabled), the device will
not use WiFi but 3G over night?

Can you confirm this? Where is this specified?

On Tue, Mar 29, 2011 at 10:41 AM, Irfan Sheriff isher...@gmail.com wrote:

 WifiLock keeps the device on Wifi and prevents the device policy of
 shutting down wifi and switching to 3g after 15 minutes of screen off.

 Holding a wifilock should normally be sufficient to complete a download
 since even in the power optimized state (screen off), the device should
 still wake up on packet reception and they should get handled by the device
 - though the packet loss in screen off state tends to be higher and the
 download will be slower.

 If you want to ensure the cpu is awake the whole time, you can hold a
 wakelock as well.

 Thanks


 On Mon, Mar 28, 2011 at 10:31 AM, Mark Carter mjc1...@googlemail.comwrote:

 From what I gather, WifiLock and WakeLock work completely independently
 and if you are downloading a large file over Wifi then you will need to
 acquire both locks??

 Ideally, you would want something like this:

 1. Acquire partial WakeLock
 2. Preparing to download large file, check whether on Wifi or not.
 3. If on Wifi, then acquire WifiLock. If not, then prevent device
 switching to Wifi (is this possible?)
 4. Start download
 5. When download has finished, release all locks.

 Is this correct?

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


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


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

[android-developers] android:textAppearance on button

2011-03-21 Thread Sebastian Roth
Hello:

Suppose I have this button:

Button
android:layout_width=179dp
android:layout_height=match_parent
android:layout_centerHorizontal=true

android:background=@drawable/bg_act_incall_actions_end_call

android:text=End Call
android:textAppearance=@style/TextInCallEndCallButton
style=@style/SimpleBlackShadow
/

and a TextInCallEndCallButton style:

style name=TextInCallEndCallButton
item name=android:textSize20sp/item
item name=android:textColor#ff/item
item name=android:textStylebold/item
/style

The button color (the text) will stay BLACK.

Now, when I'm setting android:textColor directly on the Button, it works.

So, supposed textAppearance is not working, the button label would still be
BOLD and in the specified size of 20sp.

Is this a bug to report or a behavior to avoid?

Android 2.2, HTC Desire.

Thanks!

Sebastian

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

2011-03-18 Thread Sebastian Roth
Hi again:

I was mistaken and will close the question soon.

Indeed *textAppearance* works very well. What I did not consider is that the
properties I was using shadow** are for the entire element and are not
being considered text properties, and as such will be ignored when using
textAppearance.

For the elements noticed in the stackoverflow question, I might simply
haven't seen it as #33 on light gray background looks like black.. sorry
 thx.

BR,
Sebastian

On Thu, Mar 17, 2011 at 11:29 PM, Sebastian Roth
sebastian.r...@gmail.comwrote:

 [shamelessly copied from
 http://stackoverflow.com/questions/5337680/using-androidtextappearance-on-textview-edittext-fails-but-style-worksas
  I believe we have proficient API aware people reading here ;-)]

 Hello,

 I'm facing a problem that TextView or EditText *text* styling via
 textAppearance doesn't work or only works via the style attribute, which
 isn't useful, if that element in particular is being styled with non-text
 parameters.

 In detail, I'm using:
 TextView ... style=@styles/MyStyle

 and
 TextView ... android:textAppearance=@styles/MyStyle

 whereas styles/MyStyle is defined as :
 style name=MyStyle
 item name=android:textStylebold/item
 /style

 This will only render the 1st TextView bold, but not the 2nd one.

 Do I miss a point in the textAppearance usage here?

 Thanks everyone,
 Sebastian


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

2011-03-17 Thread Sebastian Roth
[shamelessly copied from
http://stackoverflow.com/questions/5337680/using-androidtextappearance-on-textview-edittext-fails-but-style-worksas
I believe we have proficient API aware people reading here ;-)]

Hello,

I'm facing a problem that TextView or EditText *text* styling via
textAppearance doesn't work or only works via the style attribute, which
isn't useful, if that element in particular is being styled with non-text
parameters.

In detail, I'm using:
TextView ... style=@styles/MyStyle

and
TextView ... android:textAppearance=@styles/MyStyle

whereas styles/MyStyle is defined as :
style name=MyStyle
item name=android:textStylebold/item
/style

This will only render the 1st TextView bold, but not the 2nd one.

Do I miss a point in the textAppearance usage here?

Thanks everyone,
Sebastian

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

2011-03-15 Thread Sebastian Lindström
Anyone? Please!

On 10 mar, 10:35, Sebastian Lindström sebastian.lindst...@gmail.com
wrote:
 This is my code, and i have the following as childs of my manifest-tag
 in the manifest-file:
   uses-permission android:name=android.permission.CAMERA /
   uses-permission android:name=android.permission.INTERNET /
   uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/

  uses-feature android:name=android.hardware.camera /
  uses-feature android:name=android.hardware.camera.autofocus /
  uses-feature android:name=android.hardware.camera.flash /

 @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

         getWindow().setFormat(PixelFormat.UNKNOWN);
         surfaceView = (SurfaceView)findViewById(R.id.camerapreview);
         surfaceHolder = surfaceView.getHolder();

         surfaceHolder.addCallback(this);

 surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

         controlInflater = LayoutInflater.from(getBaseContext());
         View viewControl = controlInflater.inflate(R.layout.control,
 null);
         LayoutParams layoutParamsControl
                 = new LayoutParams(LayoutParams.FILL_PARENT,
                 LayoutParams.FILL_PARENT);
         this.addContentView(viewControl, layoutParamsControl);

         Button buttonTakePicture =
 (Button)findViewById(R.id.takepicture);
         buttonTakePicture.setOnClickListener(new
 Button.OnClickListener(){
                         public void onClick(View arg0) {
                                 // TODO Auto-generated method stub
                                 if (previewing){
                                         camera.takePicture(
                                                         myShutterCallback,
                                                         myPictureCallback_RAW,
                                                         myPictureCallback_PV,
                                                         
 myPictureCallback_JPG);
                                 }
                         }});

     }

  ShutterCallback myShutterCallback = new ShutterCallback(){

                 public void onShutter() {
                         // TODO Auto-generated method stub

                 }};

         PictureCallback myPictureCallback_RAW = new PictureCallback(){

                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                 }};
         PictureCallback myPictureCallback_PV = new PictureCallback(){

                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                 }};

         PictureCallback myPictureCallback_JPG = new PictureCallback(){
                 public void onPictureTaken(byte[] data, Camera cam) {
                         // TODO Auto-generated method stub

                         Bitmap bitmapPicture
                                 = BitmapFactory.decodeByteArray(data, 0, 
 data.length);
                         try{
                         String path =
 Environment.getExternalStorageDirectory().toString();
                         String name = test_img.jpg;
                         OutputStream fOut = null;
                         File file = new File(path, name);
                         fOut = new FileOutputStream(file);

                         bitmapPicture.compress(Bitmap.CompressFormat.JPEG, 5,
 fOut);
                         fOut.flush();
                         fOut.close();

 MediaStore.Images.Media.insertImage(getContentResolver(),file.getAbsolutePath(),file.getName(),file.getName());

                         Upload upload = new Upload();
                         upload.put(bitmapPicture);

            } catch (Exception e) {
                e.printStackTrace();
             }

                 }};

         public void surfaceChanged(SurfaceHolder holder, int format, int
 width,
                         int height) {

                 if (camera != null){
                         try {
                                 camera.setPreviewDisplay(surfaceHolder);
                                 camera.startPreview();
                                 previewing = true;
                         } catch (IOException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                         }
                 }
         }

         public void surfaceCreated(SurfaceHolder holder) {
                 // TODO Auto-generated method stub
                 camera = Camera.open();
         }

         public void surfaceDestroyed(SurfaceHolder holder) {
                 // TODO Auto-generated method stub
                 camera.stopPreview();
                 camera.release

[android-developers] Re: HTC Hero getPicture failed error

2011-03-10 Thread Sebastian Lindström
 EXTRAs ?

 On Mar 9, 4:05 pm, Sebastian Lindström sebastian.lindst...@gmail.com
 wrote:

  I am trying to get my app to use the camera preview to take a snap. It
  works fine in the emulators and on HTC Wildfire. But when i run the
  app on my HTC Hero i get some errors in LogCat when the onPictureTaken-
  event executes. The following errors occurs only when i try to take a
  pic with my app on HTC Hero:

  03-09 22:03:17.161: ERROR/mm-camera-ctrlcmd(11988):
  config_proc_CAMERA_START_SNAPSHOT: state is not correct ctrl-state =
  11

  03-09 22:02:09.801: ERROR/QualcommCameraHardware(11988):
  native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 7 error Connection
  timed out

  03-09 22:02:09.801: ERROR/QualcommCameraHardware(11988): getPicture
  failed!

  Does anyone know what this means and how to prevent it?

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


[android-developers] HTC Hero getPicture failed error

2011-03-09 Thread Sebastian Lindström
I am trying to get my app to use the camera preview to take a snap. It
works fine in the emulators and on HTC Wildfire. But when i run the
app on my HTC Hero i get some errors in LogCat when the onPictureTaken-
event executes. The following errors occurs only when i try to take a
pic with my app on HTC Hero:

03-09 22:03:17.161: ERROR/mm-camera-ctrlcmd(11988):
config_proc_CAMERA_START_SNAPSHOT: state is not correct ctrl-state =
11

03-09 22:02:09.801: ERROR/QualcommCameraHardware(11988):
native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 7 error Connection
timed out

03-09 22:02:09.801: ERROR/QualcommCameraHardware(11988): getPicture
failed!

Does anyone know what this means and how to prevent it?

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


[android-developers] Re: Google Nexus S - Secure storage

2011-03-05 Thread sebastian nielsen
Another idea I have, is to use a RFID card/tag compatible with Nexus S
which contains such a secure element and has some sort of Challenge-
response scheme. Is the tag reader always active, or is it only active
when a app requests it active?

Then I could just put the secure tag behind the battery cover, and
since the tag reader has anticollision, the tag reader could handle
both the extra tag and any external tag.

Any ideas of secure tags (It should support encryption onboard, if
it symmetric or asymmetric or keyed HMAC does not matter) that is
compatible with the Nexus S RFID reader?. The key loaded into token
should not be retrieveable.

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

2011-03-03 Thread sebastian nielsen
The keys should survive a compromise which consist of both rooting and
cloning a device.
Eg, If I leave my device on a table in a train, and one year later,
finds my device again, I should be sure that my keys are not
compromised. (If a adversial *uses* my key does'nt matter).
In other words, If I have my device in my hand, I want to be sure that
nobody has a copy of my encryption key, even if the device has been
compromised prior to getting the device in my hand.

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

2011-03-03 Thread sebastian nielsen
Also found some on the internet, about Nexus S having a PN65N which
according to sources of the internet, is a SmartMX security chip
combined with a NFC chip.

Any ideas on how to use this security chip? Eg writing data
(generating/writing RSA keys or writing symmetric keys) into the chip,
extracting generated _public_ keys and also use the keys for
encryption/decryption?

Any ideas on how to do it in Android?

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


[android-developers] Re: Google Nexus S - Secure storage

2011-03-03 Thread sebastian nielsen
Marc Petit-Huguenin: How did you get one bought (cant find any buy
option, and It would be good if you could point me to a webstore that
sells those secure MicroSD cards) and how much do they cost?

Nikolay: In this case, the security is about singulary. The key should
be copy protected, but it does not need to be use-protected because I
want to be sure, that if I leave the phone on a table, go on toilet,
come back and take it back, I can be sure that nobody has access to my
key, even if they impersonated me in that little brief amount of time
that I was on toilet for example.
Having the key stored in software (eg software token or in standard
phone memory), the key is no longer secure, since if I leave my phone
out of sight even for a brief amount of time, its possible that
somebody just copied my key.
If I store the key in software, I would need to have 100 % of sight of
the phone all the times, else the key could be regarded as
compromised.

In other words, if I have the phone in my hand, I should be
*absolutely* confident in that nobody can authenticate as me.

Another example, I lend my device to my friend for the purpose that my
friend can log in to my account for a brief time. When I then get the
device back from my friend, I want to be sure that my friend doesn't
have a copy of my private key and can log in as me, in case we stop
being friends and sabotage for 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] Google Nexus S - Secure storage

2011-03-02 Thread sebastian nielsen
Does Google Nexus S have some sort of secure storage in the phone
backed up by a security chip?
In other words, a storage where keys can either be imported (when
talking about symmetric keys) or generated (when talking about
asymmetric RSA keys), and the symmetric key or the private portion of
the asymmetric key can *NEVER* be extracted or read in any way after
import/generation, it can only be used for encrypting/decrypting.

Of course, if the nexus one DOES have such a security chip, is it
tamper resistant? (eg will it self-zeroize if any attempt is done to
read the keys physically?, as a security measure against phone cloning/
emulation)

And how is such keys generated/imported/used in Android then? (and of
course, about asymmetric keys, there would need to be possible to
extract the public portion of the key too)

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

2011-02-23 Thread Sebastian Roth
Have you tried tuning eclipse.ini options to enable higher memory limits?
Sometimes, if a java app is running 100% it could be related to the garbage
collector collecting (or, trying to) memory all the time.

Else I would try uninstalling unneeded plugins.

BR,
Seb, not an eclipse user anymore

On Wed, Feb 23, 2011 at 5:51 PM, String sterling.ud...@googlemail.comwrote:

 I was quite pleased this morning to see the official, final release of the
 Honeycomb SDK as level 11, and naturally launched into the (quite lengthy)
 download and install process... only to be really disappointed by the truly
 abysmal performance of the thing.

 Every aspect seems to have gotten much, much slower since r10. I mean, I'm
 used (and resigned) to each successive SDK version getting slower, but this
 is an order of magnitude worse than any release before it. The r11 emulator
 is, if anything, even slower than the r10 preview was, but the real problem
 is the ADT in Eclipse. I started a Clean of a medium-sized project before I
 began writing this post, and at this moment, it's still grinding away on it.
 And when it's doing so, Eclipse is essentially unresponsive - I wouldn't
 mind so much if it was just doing its thing in the background, letting me
 get on and do mine, but no. It's just spinning.

 My only hope is that this is a bug that made it through into the release. I
 say this because, with r11, my Eclipse process shows as consuming 100% of
 its CPU core all the time, whether it's visibly doing anything or not.
 Xavier, if you're reading this - and I know you often monitor this group
 after an ADT release - please respond.

 For the record, I'm running Helios 3.6.1 and Vista Business on dual 2.4GHz
 cores with 4GB RAM.

 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

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

2011-02-15 Thread Sebastian Roth
On Tue, Feb 15, 2011 at 3:19 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 My problem was solved like this..
 myDB.execSQL(DELETE FROM favourites where month=' +str1+ ' );


Pls. *don't* use this style of writing SQL queries!

JAlexoid (Aleksandr Panzin) had a good suggestion for you.

The reason is SQL Injection. Pls. have a read here:
http://en.wikipedia.org/wiki/SQL_injection

BR,
Sebastian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Accesing RILD without recompiling the whole Framework and OS image

2011-01-14 Thread Sebastian Ganame
Hi Dev Team,
 I would like to know if there's any way I can access the RILD
(for sending AT commands directly to the modem), even from outside the
Android Java Stack. I know that Phone Framework internal class would
give me access to do so, but of course we don't have access to it from
the SDK, then that's not a chance.
 However, if the RILD is the only one that communicates to the
radio, I was thinking that probably I can do that from outside the
Android Stack, going directly to the RIL daemon from a C++ application
perhaps.
 What I need is not to control SIM or place calls, but need
advance detailed radio parameters that the API is not exposing, and
are only retrievable thru AT Commands to radio.
 Regards,

Sebastian

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

2010-12-04 Thread Sebastian
Hello,

currently I'm using AIDL to send various amounts of data from one
process to another.
The amount of data does vary between some bytes and up to several
megabytes (stream).

What is the optimal/maximum size for *one* pass of data through an
AIDL call?
And which size should be used, keeping memory usage and speed (time
needed for each AIDL call) in mind?

Regards
Sebastian

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


[android-developers] Re: Problem with own permissions

2010-09-14 Thread Sebastian
Is there anybody who can help me with this?

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


[android-developers] Problem with own permissions

2010-09-03 Thread Sebastian
Hello,

I have an application which has some of it's activities restricted via
my own permission. The permission is published in the manifest of the
application A and a second application B should request this
permission and then be able to call an activity from app A. Both
applications belong to me and are signed with the same certificate
(they share the same keystore and alias/password from it).

The manifest of app A looks like this:

manifest
permission
android:name=com.sebastian.example.EXAMPLE_PERMISSION
android:label=@string/permisson_label
android:description=@string/permisson_description
android:protectionLevel=signature
/permission

application
activity android:name=.ui.Example
 
android:permission=com.sebastian.example.EXAMPLE_PERMISSION
/activity
/application

uses-permission
android:name=com.sebastian.example.EXAMPLE_PERMISSION/uses-
permission
/manifest


App A is installed *before* app B and I can call the activity from the
inside of app A. The manifest of app B looks like this:


manifest
application
activity android:name=.ui.Example2
/activity
/application

uses-permission
android:name=com.sebastian.example.EXAMPLE_PERMISSION/uses-
permission
/manifest

Application A gets granted the permission but app B gets never granted
the permission! Logcat tells me about this during the installation and
the app crashes with an security exception when trying to start the
activity from app A.

What the heck am I doing wrong? Could it be something with the
application signing? Please help me, I'm totally out of ideas.

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


[android-developers] Re: Problem with own permissions

2010-09-03 Thread Sebastian
I forgot to write that the activity from app A has set
android:exported=true
in the manifest! That should not be the problem.

On 3 Sep., 15:20, Sebastian mail.sebastian.schu...@googlemail.com
wrote:
 Hello,

 I have an application which has some of it's activities restricted via
 my own permission. The permission is published in the manifest of the
 application A and a second application B should request this
 permission and then be able to call an activity from app A. Both
 applications belong to me and are signed with the same certificate
 (they share the same keystore and alias/password from it).

 The manifest of app A looks like this:

 manifest
     permission
 android:name=com.sebastian.example.EXAMPLE_PERMISSION
         android:label=@string/permisson_label
         android:description=@string/permisson_description
         android:protectionLevel=signature
     /permission

     application
         activity android:name=.ui.Example

 android:permission=com.sebastian.example.EXAMPLE_PERMISSION
         /activity
     /application

     uses-permission
 android:name=com.sebastian.example.EXAMPLE_PERMISSION/uses-
 permission
 /manifest

 App A is installed *before* app B and I can call the activity from the
 inside of app A. The manifest of app B looks like this:

 manifest
     application
         activity android:name=.ui.Example2
         /activity
     /application

     uses-permission
 android:name=com.sebastian.example.EXAMPLE_PERMISSION/uses-
 permission
 /manifest

 Application A gets granted the permission but app B gets never granted
 the permission! Logcat tells me about this during the installation and
 the app crashes with an security exception when trying to start the
 activity from app A.

 What the heck am I doing wrong? Could it be something with the
 application signing? Please help me, I'm totally out of ideas.

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

2010-08-21 Thread Sebastian Muehr
Thank you.
I analyzed the the getTeamNames() method. There was a bug that created
null-values.
Now everything works as expected.
Thanks again.

- Sebastian Muehr -

On 21 Aug., 14:57, Shashidhar shashi.zep...@gmail.com wrote:
 I have experienced the same error for my custom adapter.
 The problem is that when you scroll down it tries to construct the view to
 be shown on the list.
 In my case I was assigning null values for one of the spinner which is part
 of my list view item.

 Check if there are any null values in your *game.getTeamNames()* method's
 result.

 Thanks,
 Shashidhar

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

2010-08-20 Thread Sebastian Muehr
On 20 Aug., 19:17, TreKing treking...@gmail.com wrote:
 You probably need to provide more information, like what you adapter looks
 like, how you've implemented getView(), and what, exactly, you're doing when
 you get this error.

This is all I implemented:

setContentView(R.layout.new_career);
ListView lv = (ListView) findViewById(R.id.listview_newCareer);
lv.setTextFilterEnabled(true);
lv.setAdapter(new ArrayAdapterString(getApplicationContext(),
R.layout.item_team, game.getTeamNames()));

new_career.xml:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

ListView
android:id=@+id/listview_newCareer
android:layout_width=fill_parent
android:layout_height=wrap_content
/

/LinearLayout

item_team.xml:
?xml version=1.0 encoding=utf-8?
TextView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
/

All I do when getting this error is scrolling through the list.
At about the half of the list I get the error.
In the upper half I can scroll normally without any problems.

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

2010-08-19 Thread Sebastian Muehr
In one of my projects I've got a ListView with hundreds of elements.
But when scrolling through this list I get the following error:

08-19 18:58:57.269: ERROR/AndroidRuntime(261):
java.lang.NullPointerException
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:
355)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.AbsListView.obtainView(AbsListView.java:1256)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.ListView.measureHeightOfChildren(ListView.java:1147)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.ListView.onMeasure(ListView.java:1060)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.View.measure(View.java:7964)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
888)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.View.measure(View.java:7964)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.View.measure(View.java:7964)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:464)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.View.measure(View.java:7964)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.View.measure(View.java:7964)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.ViewRoot.performTraversals(ViewRoot.java:763)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.os.Looper.loop(Looper.java:123)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
java.lang.reflect.Method.invokeNative(Native Method)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
java.lang.reflect.Method.invoke(Method.java:521)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
08-19 18:58:57.269: ERROR/AndroidRuntime(261): at
dalvik.system.NativeStart.main(Native Method)


Can anyone help me with this issue?
I'm glad about any hint that you can give me.

- Sebastian Muehr -

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

2010-07-29 Thread Sebastian Mauer
Hi there,

I am m currently trying to incorporate multiple Sliding Drawers into
one of my Views. Unfortunately I haven't been able to position them
next to each other at the bottom of the screen. As default they
handles will overlap each other in the order they have been attached
to the parent View.

One ugly workaround woud be to add the necessary margin by making the
outer handle's graphics bigger (ie. adding transparent space to the
left or right) and attach them to the parent view in the right order.
However this doesn't work for more than 2 drawers (I need 3 of them),
as the transparent areas of the handle's still count as target when
clicked on them.

Anyone know how I can position the handles of multiple drawer's
handles, so that they don't overlap and be all clickable?

Greetings,

Sebastian

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


  1   2   >