[android-developers] how to disable the enlarge

2012-01-01 Thread Perry
hi,
I am using following method to create a bitmap and canvas.

myBG = Bitmap.createBitmap(theScreenWidth, theuserScreenHeight,
Config.ARGB_);
Canvas myCanvas = new Canvas(myBG);

After I draw something to myBG and use drawbitmap method to canvas.
I found that the myBG be enlarged. Who can tell me how fix this
problem?
thanks a lot!

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


[android-developers] Re: Setting TabSpec Content using Source Code

2012-01-01 Thread Dancing Fingers
The obvious answer is to set the id manually: inputLayout.setId(1);

Chris

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

2012-01-01 Thread Kristopher Micinski
Look into 'ndk-gdb'

It doesn't look entirely well documented, but you should be able to
attach, set breakpoints, etc.., as usual

kris

On Wed, Dec 28, 2011 at 12:46 AM, praveen.bvb...@gmail.com
praveen.bvb...@gmail.com wrote:
 Hi all,
        I need the procedure to debug native source code of Android.
 Its not like i am developing an application which uses native code. I
 want to debug the native code for applications which Android provides
 by default. Somebody please help me. 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

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

2012-01-01 Thread felix
hi all
 i want to get the list of running applications icons and show on
the widget,
 now i can get the icons in activity or service but i don`t know
how to get icons in widget and how to send a icon from a service to a
widget.

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

2012-01-01 Thread port443
OK, I found a kind of way out; not perfect though.

I create two MediaPlayer instances (primary and secondary); I also
create three files.
I have a thread which reads HTTP stream and buffers N seconds to first
file.
Second file goes to secondary player's prepare method.
Third file is played by primary player.
After playback is finished, both players and buffers are rotated.

This works almost well, but:
- there's an audible gap when switching players.
- I'd switch from files to memory buffers/streams, but I have no idea
how to make MediaPlayer play from Stream directly :( I have streams
of 16-32kbps and buffers of 5-10 seconds so memory is not an issue at
all.

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

2012-01-01 Thread Ali Chousein
Recently I wrote a blog on handling screen layout change in Android to
share my experiences on this subject. Hope it'll be useful for other
developers.
http://android-screen-layout.blogspot.com/

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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


[android-developers] How to stream audio

2012-01-01 Thread Giuseppe
Dear experts,
I would like to stream one way the audio from device A to device B.
The device could be on mobile network or inside two different wlan.

Please suggest what approach to use and if some example available.

Thank you in advance.
G.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Advanced Touch Control: passing touch event from one view to another

2012-01-01 Thread Sky
Bump. I've tried everything I can think of. I'm definitely going to
need a pointer to move forward on this.

If my description above is not adequate I can post code or even make
my app available so you can see the behavior I am talking about.

On Dec 29 2011, 6:28 pm, Sky myonceinalifet...@gmail.com wrote:
 I have one custom made view that I can drag across the screen
 horizontally. Within this view is a ScrollView. I already have it so I
 can decide whether the user is dragging across the screen horizontally
 or vertically, enabling/disabling the onTouchEvent() for the
 appropriate views. However the newly enabled view doesn't regaincontroluntil 
 the user has releasedtouchand presses down once more.

 So I believe the onTouchEvent in the view that has currentcontrol
 must pass off thetouchevent (MotionEvent) to the other view.

 I have tried simply calling the onTouchEvent() as well as
 dispatchTouchEvent.

 I have tried creating the MotionEvent.ACTION_UP event for the current
 view and then passing the MotionEvent.ACTION_DOWN followed by
 MotionEvent.ACTION_MOVE to the view I want to gaincontrol.

 Nothing works.

 Can anyone help? I hope my explanation of what I'm doing is sufficient!

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

2012-01-01 Thread James Black
I found that dx.jar was not in platform-tools/lib so I copied it from
platforms\android-3\tools\lib and that may have fixed my problem.  At
least everything is compiling, and the emulator started up.

Should dx.jar be with the SDK?

On Dec 31 2011, 10:51 pm, James Black planiturth...@gmail.com wrote:
 I looked at another two projects that use a different library and I
 have a different problem that is new, as I had recently built this and
 put it on the market:
 R cannot be resolved to a variable

 For this line:
 case R.id.clear_menu:

 I have the ids defined in the library, as they are shared for both
 projects, and this used to work.

 So, I think the fact that I am not copying the res files from the
 library to the actual projects may be the problem, which to me seems
 to be a bug.

 On Dec 31, 10:20 pm, James Black planiturth...@gmail.com wrote:







  I recently updated my SDK, and in one project I am getting this error:

  !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
  !MESSAGE Unknown error: java.lang.NullPointerException
  !STACK 0
  java.lang.NullPointerException
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
  th(AaptParser.java:721)
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
  er.java:473)
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
  r.java:370)
  at
  com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui 
  ld(PostCompilerBuilder.java:599)
  at
  org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
  at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
  199)
  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
  321)
  at
  org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
  at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
  at
  org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
  at org.eclipse.core.internal.resources.Project.build(Project.java:124)
  at
  com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementa 
  lDebugBuild(ProjectHelper.java:961)
  at
  com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Lau 
  nchConfigDelegate.java:146)
  at
  org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
  ion.java:854)
  at
  org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
  ion.java:703)
  at
  org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja 
  va:928)
  at
  org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

  I have this in project.properties:
  android.library.reference.1=../BookTrackerLib

  java.runtime.version=1.6.0_29-b11

  [image: image.png]

  For my project, everything is done in the library, so here is my main
  activity:
  public class BookTrackerActivity extends BookTrackerLibActivity {
  public void onCreate(Bundle savedInstanceState) {
  mContext = this;
  super.onCreate(savedInstanceState);

  }
  }

  I don't know what else may be needed to help solve this problem.  I have
  cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
  the main project, still have the same error.
  --
  I know that you believe you understand what you think I said, but I'm not
  sure you realize that what you heard is not what I meant.
  - Robert McCloskey

   image.png
  14KViewDownload

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


Re: [android-developers] How to stream audio

2012-01-01 Thread Michael Banzon
This problem is not Android specific.

To have multiple clients on different networks (and probably behind
different firewalls/proxies/etc.) communicating you'll need to
introduce some kind of middle man (call it a server if you like).

On Sun, Jan 1, 2012 at 11:18 PM, Giuseppe porcelli.giuse...@gmail.com wrote:
 Dear experts,
 I would like to stream one way the audio from device A to device B.
 The device could be on mobile network or inside two different wlan.

 Please suggest what approach to use and if some example available.

 Thank you in advance.
 G.

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



-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] Can't see Hello World on AVD Unable to create sensors port:

2012-01-01 Thread OpaSmurf
Attempting to use Hello Android as confirmation that my ADK is
working.  Have installed tools on Linux and XP with same results.
Divide and conquer approach appears to exonerate eclipse.  The
following terminal commands give the same result without eclipse.  An
incredible animated virtual android appears without the expected
text.  The error message ...  Connection refused appears.  My thanks
to Albert Pi for answering my previous post.

opa@opa-desktop:~/android-sdk-linux/tools$ emulator -avd my_avd 

[1] 16686

opa@opa-desktop:~/android-sdk-linux/tools$ emulator: WARNING: Unable
to create sensors port: Connection refused


My version of the ADK appears out of sync with the following pages:
1 http://developer.android.com/sdk/installing.html  Note: latest ADK
has separated SDK and AVD
android opens SDK manager only.  Use “android create avd -n
another_avd -t 1” for example to create an AVD
2 http://guide/developing/building/building-cmdline.html page fails to
load
3 http://developer.android.com/resources/tutorials/hello-world.html
Note: ref 5 below
4 http://developer.android.com/guide/developing/devices/index.html
Note: ref 5 below
5 
http://developer.android.com/guide/developing/devices/managing-avds-cmdline.html
Note: See for creating an AVD target

It would appear that the warning about the sensor port would be a good
place to start. Are there any suggestions out there on how to start
tracking this down?

Thanks,
Opa

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

2012-01-01 Thread Fred Stluka

Dreamtrove,

Sounds like a job for RelativeLayout.

See:
http://developer.android.com/resources/tutorials/views/index.html
http://developer.android.com/resources/tutorials/views/hello-relativelayout.html
http://developer.android.com/guide/topics/ui/declaring-layout.html

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 12/29/11 3:36 PM, Dreamtrove wrote:

Okay, I'm just beginning this project. I've been programming for many
years but I'm new to Android. I did the hello world and a few other
test apps and now I want to start my first real app, which is going to
be an input method. I've got some Android books stacked up here and am
holding an animal book right now, but there's nothing here on good
layout control. I end up with a flow layout, which may work for many
things, but it makes for a sucky on screen input. I'd appreciate any
ideas.

Here are the specs that I want to aim for:

1) I want to be able to place the keys exactly where I want them
2) I want them to register on finger down, I'll explain below*
3) I'm considering key registering by collision like a video game
rather than by button, but that is probably too complicated for a
first time out, so I'll just stick with the other two for now.

* On many on screen input methods, if not most, the key registers on
finger up. The problem with this is if I hit  G and then hit an O
before letting go of the G, most devices will give me the G but not
the O, and some will even give me a J instead, as a compromise of the
two locations. I know this problem isn't unique to android because it
happens on a few iOS apps as well. So, what I'd like to do is register
a finger down event, and have that trigger a routine that sticks
things in a buffer, to be released as text out on a finger up, but I
digress

I really have to tackle the layout issue, so, starting with, absolute
layout, or what would be really nice is layout as % of total screen
so each key could be 10% of the screen width for qwerty, and then
again for asdfg, only with a left margin of 2.5% and a right one of
7.5% (or a key there, like enter, or the elusive apostrophe.)

Also, I'm thinking that I want to possibly be able to resize this
keyboard for tablets, (this is mostly a tablet app, you can't really
finger type on a phone.) If I resize it, then it just has to be some %
of an abstract size that the app creates, and then that can be
translated to the user's screen size.

Anyway, sorry this post was longer than intended. Any ideas for better
layout control?



--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2012-01-01 Thread gjs
Hi,

Sure, try my app http://market.android.com/details?id=com.imageotag

Regards

On Dec 29 2011, 11:48 pm, henke54 henk...@gmail.com wrote:
 Can it be possible that a Android camera can 'capture' the correct 4
 'dimensions' : latitude / longitude / altitude / direction of photo/
 image-taken , so that everybody can 'reproduce' the exact place-and-
 direction-of-taken-photo to share with somebody else in streetview or
 google maps ???

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

2012-01-01 Thread jc
On Dec 29 2011, 10:06 pm, Jonathan jlani...@gmail.com wrote:
 And how in the world do they get a 2/3 scaling factor?

HDPI density is 240 dpi, see 
http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_HIGH

if dp = px / (dpi/160) and dp = px * scaling factor then scaling
factor = 1 / (dpi/160)

hence, hdpi scaling factor is 1 / (240/160) or 160/240 resulting in 2/3

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Advanced Touch Control: passing touch event from one view to another

2012-01-01 Thread Yang Bo
Sorry,I donnot quite get you. Are the views in the same activity?
在 2011-12-30 上午10:31,Sky myonceinalifet...@gmail.com写道:

 I have one custom made view that I can drag across the screen
 horizontally. Within this view is a ScrollView. I already have it so I
 can decide whether the user is dragging across the screen horizontally
 or vertically, enabling/disabling the onTouchEvent() for the
 appropriate views. However the newly enabled view doesn't regain
 control until the user has released touch and presses down once more.

 So I believe the onTouchEvent in the view that has current control
 must pass off the touch event (MotionEvent) to the other view.

 I have tried simply calling the onTouchEvent() as well as
 dispatchTouchEvent.

 I have tried creating the MotionEvent.ACTION_UP event for the current
 view and then passing the MotionEvent.ACTION_DOWN followed by
 MotionEvent.ACTION_MOVE to the view I want to gain control.

 Nothing works.

 Can anyone help? I hope my explanation of what I'm doing is sufficient!

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

2012-01-01 Thread Eric
Hi all,

I'm using the following code to launch the Contacts Picker:

Intent intent = new Intent(Intent.ACTION_PICK,
ContactsContract.Contacts.CONTENT_URI);
//another display style:
//intent.setType
(android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
startActivityForResult(intent, 1);

It works, but I would like to add filtering such that some contacts
are not shown. My desired display criterion is:

- Only show contacts that have Home phone, Work phone, Mobile phone or
Pager.

Contacts that have only Work Fax, E-mail, etc etc  should not be
shown.

Is it possible to add such filtering? Thank you.

Regards,
Eric

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

2012-01-01 Thread Alex Fu
Can someone provide an example as to how this function,
http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View,
java.lang.Object, boolean), would work?  As with a ListView, you need
an adapter. Which adapter does this function uses? The same adapter
for your ListView? If so how would you determine if the footer view is
being passed, assuming your footer view has a different view structure
compared to the rows in your ListView. I tried searching for examples
but nothing comes up... Can someone please shed some light on this
function?

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

2012-01-01 Thread VenomVendor™
Remove images from the Folder drawable-mdpi, drawable-ldpi,
 Just put High Definition images in drawable-hdpi.
i wld suggest u to test the APK file directly in the Tab,
if u dont have, atleast configure the emulator Properly

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


[android-developers] Re: Android unit testing with ContentProviders and databases

2012-01-01 Thread Diego Torres Milano
The best solution is probably a RenamingDelegatingContext, that will
allow your tests to use a different database than your 'live' one.
There are examples of RenamingDelegatingContext and other mock
injections in Android Application Testing Guide [http://
www.packtpub.com/android-application-testing-guide/book].

On Dec 31 2011, 2:20 am, Stephan Wiesner testexpe...@googlemail.com
wrote:
 I guess you gave the obvious answer yourself: Don't hardcode the name.
 Use a variable, maybe a system setting or something from a config file
 that can be accessed by all your apps and put an if/else block in your
 provider

 Greetings from Berne,
 Stephan

 On 31 Dez., 01:05, barry barry.drinkwa...@gmail.com wrote:







  I have an app that uses a ContentProvider to serve data instead of
  directly accessing the database. The application is working as
  expected but I have a problem with unit tests: how can I force the
  ContentProvider to use a test database rather than a 'live' one? If I
  wasn't using a ContentProvider I could pass a different database name
  to the Constructor of my `SQLiteOpenHelper` sublass, but now the
  database is created with a call to onCreate() in my ContentProvider:

          @Override
          public boolean onCreate()
          {
                  UKMPGDataProvider.init(getContext(), 
  Constants.DATABASE_NAME);
                  return (UKMPGDataProvider.getWritableDatabase() == null) ? 
  false :
  true;
          }

  As you can see, the database name is hardcoded.

  Is there a way to pass a test name into the ContentProvider?

--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why doesn't the ADT show me the javadoc for a class in android.jar when I have the javadoc path set for the jar?

2012-01-01 Thread David Karr
This may be completely Eclipse-specific, but perhaps not.

I find it's very inconsistent whether I can get Eclipse to show me the 
Javadoc for an Android class or method, even when I appear to have valid 
javadoc attached to the android.jar file.

For instance, right now I'm viewing a class in a sample application that 
references SQLiteDatabase. There are no compile errors, so I have all of my 
dependencies properly set.  I hover on the class name reference and force 
the javadoc to display, it prints the class name as 
android.database.sqlite.SQLiteDatabase, but it says Note: This element 
has no attached source and the Javadoc could not be found in the attached 
Javadoc..

I then went into the Project Explorer and expanded the Android 2.3.3 
library, exposing the android.jar file. I right-clicked on that and 
selected Properties. I clicked on Javadoc Location. It's currently set to 
Javadoc URL and the Javadoc location path was set to the path to the 
reference directory in the android SDK. I clicked Validate and it said 
Location is likely valid.

Just in case, I verified that android/database/sqlite/SQLiteDatabase.html 
exists at the root of the javadoc tree.

So why is it not showing the javadoc for this class?

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

2012-01-01 Thread Teena sharma
Thanxs

On Mon, Jan 2, 2012 at 10:08 AM, VenomVendor™ yoganandh2...@gmail.comwrote:

 Remove images from the Folder drawable-mdpi, drawable-ldpi,
  Just put High Definition images in drawable-hdpi.
 i wld suggest u to test the APK file directly in the Tab,
 if u dont have, atleast configure the emulator Properly

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

2012-01-01 Thread chander
Hi, Happy new year to all..

I am writing a code for simple navigation between different pages in
android application. I created a Button and then on Click event i am
setting my ContentView. i have written same code for 2 buttons working
fine. but when i am writing click event for 3rd button and it
navigates to a page named encrpyt_file.xml. its not working. its
giving Null pointer exception. please check the code.

btnEncFile = (Button)findViewById(R.id.btnEncFile);

// at this line btnEncFile value is coming Null, i checked it using
breakpoints so it is giving NullPointerException

  btnEncFile.setOnClickListener(new View.OnClickListener()
{

public void onClick(View v)
{
setContentView(R.layout.encrypt_file);
}
});

why this exception is coming, i have written the this code many times
in my applications but this time i can't understand why its giving
null pointer.

please suggest me something if i am missing out something?

2- encrypt_file.xml

?xml version=1.0 encoding=utf-8?
AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical
Button
android:id=@+id/btnEncFile
android:layout_width=match_parent
android:layout_height=50dp
android:drawableLeft=@drawable/icon
android:text=Encrypt File/

/AbsoluteLayout



Thanks
Chandra Mohan

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

2012-01-01 Thread Mukesh Srivastav
OMG. Chander you need to read and understand the basics of Android !

There is a way to call or navigate from one activity to other is using
Intent.

secondly, not sure,why are you using AbsoulteLayout ?

Please start reading the Android documentation, to start with below is the
link for your reference.

http://developer.android.com/resources/tutorials/hello-world.html





Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Mon, Jan 2, 2012 at 12:34 PM, chander mohan.c...@gmail.com wrote:

 Hi, Happy new year to all..

 I am writing a code for simple navigation between different pages in
 android application. I created a Button and then on Click event i am
 setting my ContentView. i have written same code for 2 buttons working
 fine. but when i am writing click event for 3rd button and it
 navigates to a page named encrpyt_file.xml. its not working. its
 giving Null pointer exception. please check the code.

 btnEncFile = (Button)findViewById(R.id.btnEncFile);

 // at this line btnEncFile value is coming Null, i checked it using
 breakpoints so it is giving NullPointerException

  btnEncFile.setOnClickListener(new View.OnClickListener()
{

public void onClick(View v)
{
setContentView(R.layout.encrypt_file);
}
});

 why this exception is coming, i have written the this code many times
 in my applications but this time i can't understand why its giving
 null pointer.

 please suggest me something if i am missing out something?

 2- encrypt_file.xml

 ?xml version=1.0 encoding=utf-8?
 AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical
Button
android:id=@+id/btnEncFile
android:layout_width=match_parent
android:layout_height=50dp
android:drawableLeft=@drawable/icon
android:text=Encrypt File/

 /AbsoluteLayout



 Thanks
 Chandra Mohan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Code folder(pjsua) is missing in the folder(CsipSimple-src-org-pjsip)

2012-01-01 Thread vishal singh
Hi all,
 Thanks for great development.
 I am using CSipsimple project,but when today I checkout the project
from trunk (http://csipsimple.googlecode.com/svn/trunk/) and ported in
the eclipse i got the errors.

I searched that error and compare with other checkout code the one
code folder(pjsua) is missing in the folder(CsipSimple-src-org-
pjsip).The pjsua folder is not presnt from that i am gotting error in
project.

Please help me, How to add the  missing code on the
http://csipsimple.googlecode.com/svn/trunk/
of pjsua folder in the path CsipSimple-src-org-pjsip

Thanks
Vishal Singh

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