Wednesday, August 24, 2011
[Android] resource string-ek kiolvasasa
Tuesday, August 23, 2011
[Android] EditText beallitasok
Wednesday, August 17, 2011
[Android] AlrertDialog, Toast es Notification uzenetek megjelenitesere
The Android SDK offers three main types of notifications – enough to cover all of your needs:
In this tutorial, we will cover all three notification types.
View megjelenitese ures ListView eseten [Android]
network elerhetoseg ellenorzese Androidon
Tuesday, August 09, 2011
Screenshot keszitese Android device-rol
- USB Debugging legyen bekapcsolva a device-on (Settings/Application/Developement)
- USB kabelen legyen radugva a gepre a device.
- Davlik Debug Monitor Service inditasa (android-sdk\tools\ddms.bat)
- Device/Screen capture
Monday, August 08, 2011
Thursday, August 04, 2011
Wednesday, August 03, 2011
Most tud MPEG_4_SP video encodolast a MediaRecorder vagy nem???
The table below describes the media format support built into the Android platform. Note that any given mobile device may provide support for additional formats or file types not listed in the table.
Note: Media codecs that are not guaranteed to be available on all Android platform versions are accordingly noted in parentheses—for example "(Android 3.0+)".
Type | Format / Codec | Encoder | Decoder | Details | Supported File Type(s) / Container Formats |
---|---|---|---|---|---|
Audio | AAC LC/LTP | • | • | Mono/Stereo content in any combination of standard bit rates up to 160 kbps and sampling rates from 8 to 48kHz | 3GPP (.3gp), and MPEG-4 (.mp4, .m4a). ADTS raw AAC (.aac, decode only, ADIF not supported, Android 3.1+). |
HE-AACv1 (AAC+) | • | ||||
HE-AACv2 (enhanced AAC+) | • | ||||
AMR-NB | • | • | 4.75 to 12.2 kbps sampled @ 8kHz | 3GPP (.3gp) | |
AMR-WB | • | • | 9 rates from 6.60 kbit/s to 23.85 kbit/s sampled @ 16kHz | 3GPP (.3gp) | |
FLAC | • (Android 3.1+) | Mono/Stereo (no multichannel). Sample rates up to 48 kHz (but up to 44.1 kHz is recommended on devices with 44.1 kHz output, as the 48 to 44.1 kHz downsampler does not include a low-pass filter). 16-bit recommended; no dither applied for 24-bit. | FLAC (.flac) only | ||
MP3 | • | Mono/Stereo 8-320Kbps constant (CBR) or variable bit-rate (VBR) | MP3 (.mp3) | ||
MIDI | • | MIDI Type 0 and 1. DLS Version 1 and 2. XMF and Mobile XMF. Support for ringtone formats RTTTL/RTX, OTA, and iMelody | Type 0 and 1 (.mid, .xmf, .mxmf). Also RTTTL/RTX (.rtttl, .rtx), OTA (.ota), and iMelody (.imy) | ||
Ogg Vorbis | • | Ogg (.ogg) | |||
PCM/WAVE | • | 8- and 16-bit linear PCM (rates up to limit of hardware) | WAVE (.wav) | ||
Image | JPEG | • | • | Base+progressive | JPEG (.jpg) |
GIF | • | GIF (.gif) | |||
PNG | • | • | PNG (.png) | ||
BMP | • | BMP (.bmp) | |||
Video | H.263 | • | • | 3GPP (.3gp) and MPEG-4 (.mp4) | |
H.264 AVC | • (Android 3.0+) | • | Baseline Profile (BP) | 3GPP (.3gp) and MPEG-4 (.mp4). MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+) | |
MPEG-4 SP | • | 3GPP (.3gp) | |||
VP8 | • (Android 2.3.3+) | WebM (.webm) |
Android SDK version ellenorzese kodbol
Build.VERSION_CODES
.Tuesday, August 02, 2011
setVideoSize legyen a setVideoEncoder elott
onDestoy-onCreate kikapcsolasa forgatasnal
If the configuration of the device (as defined by the Resources.Configuration
class) changes, then anything displaying a user interface will need to update to match that configuration. Because Activity is the primary mechanism for interacting with the user, it includes special support for handling configuration changes.
Unless you specify otherwise, a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be destroyed, going through the normal activity lifecycle process of onPause()
,onStop()
, and onDestroy()
as appropriate. If the activity had been in the foreground or visible to the user, once onDestroy()
is called in that instance then a new instance of the activity will be created, with whatever savedInstanceState the previous instance had generated from onSaveInstanceState(Bundle)
.
This is done because any application resource, including layout files, can change based on any configuration value. Thus the only safe way to handle a configuration change is to re-retrieve all resources, including layouts, drawables, and strings. Because activities must already know how to save their state and re-create themselves from that state, this is a convenient way to have an activity restart itself with a new configuration.
In some special cases, you may want to bypass restarting of your activity based on one or more types of configuration changes. This is done with the android:configChanges
attribute in its manifest. For any types of configuration changes you say that you handle there, you will receive a call to your current activity's onConfigurationChanged(Configuration)
method instead of being restarted. If a configuration change involves any that you do not handle, however, the activity will still be restarted and onConfigurationChanged(Configuration)
will not be called.
public static final int configChanges
Specify one or more configuration changes that the activity will handle itself. If not specified, the activity will be restarted if any of these configuration changes happen in the system. Otherwise, the activity will remain running and itsActivity.onConfigurationChanged
method called with the new configuration.
Note that all of these configuration changes can impact the resource values seen by the application, so you will generally need to re-retrieve all resources (including view layouts, drawables, etc) to correctly handle any configuration change.
These values must be kept in sync with those in ActivityInfo
and include/utils/ResourceTypes.h.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
mcc | 0x0001 | The IMSI MCC has changed, that is a SIM has been detected and updated the Mobile Country Code. |
mnc | 0x0002 | The IMSI MNC has changed, that is a SIM has been detected and updated the Mobile Network Code. |
locale | 0x0004 | The locale has changed, that is the user has selected a new language that text should be displayed in. |
touchscreen | 0x0008 | The touchscreen has changed. Should never normally happen. |
keyboard | 0x0010 | The keyboard type has changed, for example the user has plugged in an external keyboard. |
keyboardHidden | 0x0020 | The keyboard or navigation accessibility has changed, for example the user has slid the keyboard out to expose it. Note that despite its name, this applied to any accessibility: keyboard or navigation. |
navigation | 0x0040 | The navigation type has changed. Should never normally happen. |
orientation | 0x0080 | The screen orientation has changed, that is the user has rotated the device. |
screenLayout | 0x0100 | The screen layout has changed. This might be caused by a different display being activated. |
uiMode | 0x0200 | The global user interface mode has changed. For example, going in or out of car mode, night mode changing, etc. |
screenSize | 0x0400 | The current available screen size has changed. If applications don't target at least HONEYCOMB_MR2 then the activity will always handle this itself (the change will not result in a restart). This represents a change in the currently available size, so will change when the user switches between landscape and portrait. |
smallestScreenSize | 0x0800 | The physical screen size has changed. If applications don't target at least HONEYCOMB_MR2 then the activity will always handle this itself (the change will not result in a restart). This represents a change in size regardless of orientation, so will only change when the actual physical screen size has changed such as switching to an external display. |
fontScale | 0x40000000 | The font scaling factor has changed, that is the user has selected a new global font size. |