Hi, im building an RSS Reader and am having a little trouble if anyone could help me out.
im trying to open my app when a subscribe rss link in a browser is pressed, but at the moment it is displaying my app in the browser instead of launching the app!!
can anyone help with is issue?
below is my manifest, thanks
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.RSS_Viewer"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:name=".Globals"
android:icon="@drawable/rssicon"
android:label="@string/app_name" android:logo="@drawable/rssicon">
<activity
android:name=".RSS_ViewerActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="itpc" />
<data android:scheme="pcast" />
<data android:scheme="feed" />
<data android:scheme="feeds" />
<data android:scheme="rss" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/xml" android:scheme="http" />
<data android:mimeType="application/rss+xml" android:scheme="http" />
<data android:mimeType="application/atom+xml" android:scheme="http" />
<data android:mimeType="text/xml" android:scheme="https" />
<data android:mimeType="application/rss+xml" android:scheme="https" />
<data android:mimeType="application/atom+xml" android:scheme="https" />
</intent-filter>
</activity>
<activity android:name="RSSFeedActivity"></activity>
<activity android:name="com.CertificateAuthentication.Authenticator"></activity>
</application>
</manifest>
Okay guys need some help !
This is a noob question but is it possible to port android 4.2 gallery to our device ?
here is the apk link : http://d-h.st/1Rm
We can use android resizer for resizing but will that help ? Even if it is possible , the xml s need modifications - can anyone help try ?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
maybe its hard or impossible? may be i guess
yabyuh22 said:
maybe its hard or impossible? may be i guess
Click to expand...
Click to collapse
i know most probably impossible btw atleast we give it a try !
then best of luck brow..i dont know about porting sorry
why bother porting when Quickpic exists?,
looks exactly the same
well...fist of all you can try by install it or put it to /system/app without any app modification. some of app from higher version android are still compatible with the old one.
kurotsugi said:
well...fist of all you can try by install it or put it to /system/app without any app modification. some of app from higher version android are still compatible with the old one.
Click to expand...
Click to collapse
It doesn't install! And I tried putting it in system/apps and then changing the permission to rw r r but that doesn't work either!
can you decompile it and check the minimum api?
kurotsugi said:
can you decompile it and check the minimum api?
Click to expand...
Click to collapse
Okay will do that and report (gotta do bit of research first)
Deleted
The min api level is 10 that means jellybean and up
nope...API 10 is the API used in gingerbread system. it means its possible to port it to your device. btw, are sure it is 10? can you show me the content of androidmanifest.xml file?
<manifest package="com.google.android.gallery3d" versionCode="40001" versionName="1.1.40001">
<original-package name="com.android.gallery3d">
</original-package>
<uses-sdk minSdkVersion="10" targetSdkVersion="16">
</uses-sdk>
<permission protectionLevel="2" name="com.google.android.gallery3d.permission.GALLERY_PROVIDER">
</permission>
<permission label="resource_id:0x7f0a0121" protectionLevel="1" description="resource_id:0x7f0a0122" permissionGroup="android.permission-group.PERSONAL_INFO" name="com.google.android.gallery3d.permission.PICASA_STORE">
</permission>
<uses-permission name="android.permission.ACCESS_COARSE_LOCATION">
</uses-permission>
<uses-permission name="android.permission.ACCESS_FINE_LOCATION">
</uses-permission>
<uses-permission name="android.permission.ACCESS_NETWORK_STATE">
</uses-permission>
<uses-permission name="android.permission.CAMERA">
</uses-permission>
<uses-permission name="android.permission.GET_ACCOUNTS">
</uses-permission>
<uses-permission name="android.permission.INTERNET">
</uses-permission>
<uses-permission name="android.permission.MANAGE_ACCOUNTS">
</uses-permission>
<uses-permission name="android.permission.NFC">
</uses-permission>
<uses-permission name="android.permission.READ_SMS">
</uses-permission>
<uses-permission name="android.permission.READ_SYNC_SETTINGS">
</uses-permission>
<uses-permission name="android.permission.RECEIVE_BOOT_COMPLETED">
</uses-permission>
<uses-permission name="android.permission.RECORD_AUDIO">
</uses-permission>
<uses-permission name="android.permission.SET_WALLPAPER">
</uses-permission>
<uses-permission name="android.permission.USE_CREDENTIALS">
</uses-permission>
<uses-permission name="android.permission.VIBRATE">
</uses-permission>
<uses-permission name="android.permission.WAKE_LOCK">
</uses-permission>
<uses-permission name="android.permission.WRITE_EXTERNAL_STORAGE">
</uses-permission>
<uses-permission name="android.permission.WRITE_SETTINGS">
</uses-permission>
<uses-permission name="android.permission.WRITE_SYNC_SETTINGS">
</uses-permission>
<uses-permission name="com.google.android.providers.gsf.permission.READ_GSERVICES">
</uses-permission>
<uses-permission name="com.google.android.apps.plus.permission.PICASA_STORE">
</uses-permission>
<supports-screens anyDensity="true" smallScreens="false" largeScreens="true" normalScreens="true">
</supports-screens>
<application logo="resource_id:0x7f030001" icon="resource_id:0x7f030001" label="resource_id:0x7f0a0000" largeHeap="true" hardwareAccelerated="true" name="com.android.gallery3d.app.GalleryAppImpl" theme="resource_id:0x7f0c0043">
<uses-library required="false" name="com.google.android.media.effects">
</uses-library>
<activity configChanges="1184" label="resource_id:0x7f0a0186" name="com.android.gallery3d.app.MovieActivity">
<intent-filter>
<action name="android.intent.action.VIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.BROWSABLE">
</category>
<data scheme="rtsp">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.VIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.BROWSABLE">
</category>
<data scheme="http">
</data>
<data scheme="https">
</data>
<data scheme="content">
</data>
<data scheme="file">
</data>
<data mimeType="video/mpeg4">
</data>
<data mimeType="video/mp4">
</data>
<data mimeType="video/3gp">
</data>
<data mimeType="video/3gpp">
</data>
<data mimeType="video/3gpp2">
</data>
<data mimeType="video/webm">
</data>
<data mimeType="video/avi">
</data>
<data mimeType="application/sdp">
</data>
</intent-filter>
<intent-filter>
</intent-filter>
<action name="android.intent.action.VIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.BROWSABLE">
</category>
<data scheme="http">
</data>
<data scheme="https">
</data>
<data mimeType="audio/x-mpegurl">
</data>
<data mimeType="audio/mpegurl">
</data>
<data mimeType="application/vnd.apple.mpegurl">
</data>
<data mimeType="application/x-mpegurl">
</data>
</activity>
</application>
<activity configChanges="1184" label="resource_id:0x7f0a0000" name="com.android.gallery3d.app.Gallery">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.LAUNCHER">
</category>
<category name="android.intent.category.APP_GALLERY">
</category>
</intent-filter>
<intent-filter>
<action name="android.intent.action.GET_CONTENT">
</action>
<category name="android.intent.category.OPENABLE">
</category>
<data mimeType="vnd.android.cursor.dir/image">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.GET_CONTENT">
</action>
<category name="android.intent.category.OPENABLE">
</category>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="image/*">
</data>
<data mimeType="video/*">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.VIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="vnd.android.cursor.dir/image">
</data>
<data mimeType="vnd.android.cursor.dir/video">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.VIEW">
</action>
<action name="com.android.camera.action.REVIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.BROWSABLE">
</category>
<data scheme="">
</data>
<data scheme="http">
</data>
<data scheme="https">
</data>
<data scheme="content">
</data>
<data scheme="file">
</data>
<data mimeType="image/bmp">
</data>
<data mimeType="image/jpeg">
</data>
<data mimeType="image/gif">
</data>
<data mimeType="image/png">
</data>
<data mimeType="image/x-ms-bmp">
</data>
<data mimeType="image/vnd.wap.wbmp">
</data>
</intent-filter>
<intent-filter>
<action name="com.android.camera.action.REVIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.BROWSABLE">
</category>
<data scheme="http">
</data>
<data scheme="https">
</data>
<data scheme="content">
</data>
<data scheme="file">
</data>
<data mimeType="video/mpeg4">
</data>
<data mimeType="video/mp4">
</data>
<data mimeType="video/3gp">
</data>
<data mimeType="video/3gpp">
</data>
<data mimeType="video/3gpp2">
</data>
<data mimeType="application/sdp">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.PICK">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="image/*">
</data>
<data mimeType="video/*">
</data>
</intent-filter>
<intent-filter>
<action name="android.intent.action.PICK">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="vnd.android.cursor.dir/image">
</data>
<data mimeType="vnd.android.cursor.dir/video">
</data>
</intent-filter>
</activity>
<activity-alias targetActivity="com.android.gallery3d.app.Gallery" configChanges="1184" label="resource_id:0x7f0a0000" name="com.cooliris.media.Gallery">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
</intent-filter>
</activity-alias>
<activity taskAffinity="" launchMode="3" label="resource_id:0x7f0a0000" name="com.android.gallery3d.app.UsbDeviceActivity">
<intent-filter>
<action name="android.hardware.usb.action.USB_DEVICE_ATTACHED">
</action>
</intent-filter>
<meta-data resource="resource_id:0x7f070001" name="android.hardware.usb.action.USB_DEVICE_ATTACHED">
</meta-data>
</activity>
<activity configChanges="1184" name="com.android.gallery3d.app.Wallpaper" theme="resource_id:0x1030010">
<intent-filter label="resource_id:0x7f0a01a1">
<action name="android.intent.action.ATTACH_DATA">
</action>
<data mimeType="image/*">
</data>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
<intent-filter label="resource_id:0x7f0a0000">
<action name="android.intent.action.SET_WALLPAPER">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
<meta-data resource="resource_id:0x7f070006" name="android.wallpaper.preview">
</meta-data>
</activity>
<activity configChanges="1184" process=":crop" label="resource_id:0x7f0a0197" name="com.android.gallery3d.app.CropImage">
<intent-filter label="resource_id:0x7f0a0197">
<action name="com.android.camera.action.CROP">
</action>
<data scheme="http">
</data>
<data scheme="https">
</data>
<data scheme="content">
</data>
<data scheme="file">
</data>
<data scheme="">
</data>
<data mimeType="image/*">
</data>
<data mimeType="vnd.android.cursor.item/vnd.android.gallery3d.picasa.photo">
</data>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.ALTERNATIVE">
</category>
<category name="android.intent.category.SELECTED_ALTERNATIVE">
</category>
</intent-filter>
</activity>
<activity label="resource_id:0x7f0a0198" name="com.android.gallery3d.app.TrimVideo">
<intent-filter label="resource_id:0x7f0a0198">
<action name="com.android.camera.action.TRIM">
</action>
<data scheme="content">
</data>
<data scheme="file">
</data>
<data mimeType="video/*">
</data>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity>
<permission protectionLevel="2" name="com.android.gallery3d.filtershow.permission.READ">
</permission>
<permission protectionLevel="2" name="com.android.gallery3d.filtershow.permission.WRITE">
</permission>
<provider grantUriPermissions="true" readPermission="com.android.gallery3d.filtershow.permission.READ" writePermission="com.android.gallery3d.filtershow.permission.WRITE" authorities="com.android.gallery3d.filtershow.provider.SharedImageProvider" name="com.android.gallery3d.filtershow.provider.SharedImageProvider">
</provider>
<activity configChanges="1184" label="resource_id:0x7f0a0127" name="com.android.gallery3d.filtershow.FilterShowActivity" theme="resource_id:0x7f0c0043">
<intent-filter>
<action name="android.intent.action.EDIT">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="image/*">
</data>
</intent-filter>
<intent-filter>
<action name="action_nextgen_edit">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<data mimeType="image/*">
</data>
</intent-filter>
</activity>
<uses-library required="false" name="com.google.android.media.effects">
</uses-library>
<activity configChanges="1184" name="com.android.gallery3d.settings.GallerySettings" theme="resource_id:0x7f0c0043">
<intent-filter>
<action name="android.intent.action.MANAGE_NETWORK_USAGE">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity>
<provider grantUriPermissions="true" exported="true" permission="com.google.android.gallery3d.permission.GALLERY_PROVIDER" authorities="com.google.android.gallery3d.provider" name="com.android.gallery3d.provider.GalleryProvider">
</provider>
<provider authorities="com.google.android.gallery3d.GooglePhotoProviderRestricted" exported="true" name="com.google.android.picasasync.PicasaOpenFileProvider">
</provider>
<service name="com.google.android.picasastore.PicasaStoreFacade$DummyService">
<intent-filter>
<action name="com.google.android.picasasync.SyncAdapter">
</action>
</intent-filter>
<meta-data value="85" name="com.google.android.picasasync.priority">
</meta-data>
<meta-data value="false" name="com.google.android.picasasync.enable-down-sync">
</meta-data>
<meta-data value="com.google.android.gallery3d.GooglePhotoProviderRestricted" name="com.google.android.picasasync.authority">
</meta-data>
</service>
<provider exported="true" permission="com.google.android.gallery3d.permission.PICASA_STORE" label="resource_id:0x7f0a011b" authorities="com.google.android.gallery3d.GooglePhotoProvider" name="com.google.android.picasasync.PicasaContentProvider0">
</provider>
<service label="Picasa Sync Service" name="com.google.android.picasasync.PicasaSyncService">
<intent-filter>
<action name="android.content.SyncAdapter">
</action>
</intent-filter>
<meta-data resource="resource_id:0x7f070004" name="android.content.SyncAdapter">
</meta-data>
</service>
<receiver name="com.google.android.picasasync.ConnectivityReceiver">
<intent-filter>
<action name="android.net.conn.CONNECTIVITY_CHANGE">
</action>
<action name="android.net.conn.BACKGROUND_DATA_SETTING_CHANGED">
</action>
</intent-filter>
</receiver>
<service name="com.google.android.picasasync.ConnectivityReceiver$AsyncService">
</service>
<receiver name="com.google.android.picasasync.BatteryReceiver">
<intent-filter>
<action name="android.intent.action.ACTION_POWER_CONNECTED">
</action>
<action name="android.intent.action.ACTION_POWER_DISCONNECTED">
</action>
</intent-filter>
</receiver>
<provider authorities="com.google.android.gallery3d.PicasaStore" exported="true" permission="com.google.android.gallery3d.permission.PICASA_STORE" name="com.google.android.picasastore.PicasaPhotoContentProvider0">
</provider>
<service name="com.google.android.picasastore.PicasaStoreFacade$DummyService">
<intent-filter>
<action name="com.google.android.picasastore.PACKAGE_METADATA_LOOKUP">
</action>
</intent-filter>
<meta-data value="32" name="com.google.android.picasastore.priority">
</meta-data>
<meta-data value="com.google.android.gallery3d.PicasaStore" name="com.google.android.picasastore.authority">
</meta-data>
</service>
<receiver name="com.android.gallery3d.onetimeinitializer.AutoSyncCarryOverFromICSReceiver">
<intent-filter>
<action name="android.intent.action.BOOT_COMPLETED">
</action>
</intent-filter>
</receiver>
<service name="com.android.gallery3d.onetimeinitializer.AutoSyncCarryOverFromICSReceiver$AsyncService">
</service>
<activity name="com.android.gallery3d.gadget.WidgetClickHandler">
</activity>
<activity configChanges="1184" name="com.android.gallery3d.app.DialogPicker" theme="resource_id:0x7f0c0046">
</activity>
<activity configChanges="1184" name="com.android.gallery3d.app.AlbumPicker" theme="resource_id:0x7f0c0046">
</activity>
<activity configChanges="1184" name="com.android.gallery3d.gadget.WidgetTypeChooser" theme="resource_id:0x7f0c0042">
</activity>
<activity label="resource_id:0x7f0a011c" name="com.android.gallery3d.app.LicensesActivity" theme="resource_id:0x1030073">
</activity>
<activity icon="resource_id:0x7f030000" clearTaskOnLaunch="true" name="com.android.camera.CameraActivity" theme="resource_id:0x7f0c0005" configChanges="1184" label="resource_id:0x7f0a0064" windowSoftInputMode="35" taskAffinity="com.google.android.camera.CameraActivity">
<intent-filter>
<action name="android.media.action.IMAGE_CAPTURE">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
<intent-filter>
<action name="android.media.action.STILL_IMAGE_CAMERA">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity>
<activity icon="resource_id:0x7f030000" clearTaskOnLaunch="true" excludeFromRecents="true" name="com.android.camera.SecureCameraActivity" theme="resource_id:0x7f0c0005" configChanges="1184" label="resource_id:0x7f0a0064" windowSoftInputMode="35" taskAffinity="com.google.android.camera.SecureCameraActivity">
<intent-filter>
<action name="android.media.action.STILL_IMAGE_CAMERA_SECURE">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
<intent-filter>
<action name="android.media.action.IMAGE_CAPTURE_SECURE">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity>
<activity-alias targetActivity="com.android.camera.CameraActivity" icon="resource_id:0x7f030000" label="resource_id:0x7f0a0064" name="com.android.camera.CameraLauncher">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
<category name="android.intent.category.DEFAULT">
</category>
<category name="android.intent.category.LAUNCHER">
</category>
</intent-filter>
</activity-alias>
<activity-alias targetActivity="com.android.camera.CameraActivity" icon="resource_id:0x7f030000" label="resource_id:0x7f0a0064" name="com.android.camera.Camera">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity-alias>
<activity-alias targetActivity="com.android.camera.CameraActivity" icon="resource_id:0x7f030002" label="resource_id:0x7f0a0065" name="com.android.camera.VideoCamera">
<intent-filter>
<action name="android.media.action.VIDEO_CAMERA">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
<intent-filter>
<action name="android.media.action.VIDEO_CAPTURE">
</action>
<category name="android.intent.category.DEFAULT">
</category>
</intent-filter>
</activity-alias>
<receiver label="resource_id:0x7f0a01c9" name="com.android.gallery3d.gadget.PhotoAppWidgetProvider">
<intent-filter>
<action name="android.appwidget.action.APPWIDGET_UPDATE">
</action>
</intent-filter>
<meta-data resource="resource_id:0x7f070007" name="android.appwidget.provider">
</meta-data>
</receiver>
<receiver name="com.android.gallery3d.app.PackagesMonitor">
<intent-filter>
<action name="android.intent.action.PACKAGE_ADDED">
</action>
<action name="android.intent.action.PACKAGE_REMOVED">
</action>
<action name="android.intent.action.PACKAGE_CHANGED">
</action>
<data scheme="package">
</data>
</intent-filter>
</receiver>
<service name="com.android.gallery3d.app.PackagesMonitor$AsyncService">
</service>
<receiver name="com.android.camera.CameraButtonIntentReceiver">
<intent-filter>
<action name="android.intent.action.CAMERA_BUTTON">
</action>
</intent-filter>
</receiver>
<receiver name="com.android.camera.DisableCameraReceiver">
<intent-filter>
<action name="android.intent.action.BOOT_COMPLETED">
</action>
</intent-filter>
</receiver>
<service permission="android.permission.BIND_REMOTEVIEWS" name="com.android.gallery3d.gadget.WidgetService">
</service>
<activity configChanges="1184" name="com.android.gallery3d.gadget.WidgetConfigure" theme="resource_id:0x1030010">
<intent-filter>
<action name="android.appwidget.action.APPWIDGET_CONFIGURE">
</action>
</intent-filter>
</activity>
<activity clearTaskOnLaunch="true" screenOrientation="0" name="com.google.android.apps.lightcycle.ProtectedPanoramaCaptureActivity" theme="resource_id:0x1030007" configChanges="1184" label="resource_id:0x7f0a00b2" windowSoftInputMode="35" taskAffinity="com.google.android.camera">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
</intent-filter>
</activity>
<service name="com.google.android.apps.lightcycle.panorama.StitchingService">
</service>
</manifest>
i think it uses grid layout. eventhough grid layout is backported to gb devices using a gridlayout support library, devs mostly wont use that since its abit complicated backporting even with libraries.i myself has failed yo do that many times.
this could be a reason why its not working.
may be decompiling xml layouts, adding the code for gridlayout support library, mention the library in manifest file and copying the jar file of library to the apps libs folder and recompling may do the trick.
Sent from my GT-S5360 using xda app-developers app
jaison thomas said:
i think it uses grid layout. eventhough grid layout is backported to gb devices using a gridlayout support library, devs mostly wont use that since its abit complicated backporting even with libraries.i myself has failed yo do that many times.
this could be a reason why its not working.
may be decompiling xml layouts, adding the code for gridlayout support library, mention the library in manifest file and copying the jar file of library to the apps libs folder and recompling may do the trick.
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Wow thanks mate- finally some hope I really didn't understand some of the things you've said for am a noob but I'll do some research and try again!
Again thanks for great info!
dont know whether tht is a solution for this app. but thts how grid layout should be made to work in gb devices.search google for how to make a grid layout fot gingerbeard.that will provide a a good idea wht to do next.
Sent from my GT-S5360 using xda app-developers app
I created an app in landscape and no matter how many methods I try I can't remove the status bar. Any ideas? I can post the app if you like.
In your AndroidManifest.xml add the following in your activity tag:
Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
You'd then have something like this:
Code:
<activity android:name="ActivityName"
android:label="@string/activityName"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
patedit said:
In your AndroidManifest.xml add the following in your activity tag:
Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
You'd then have something like this:
Code:
<activity android:name="ActivityName"
android:label="@string/activityName"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
Click to expand...
Click to collapse
This is my whole android manifest. I use a program that digitally signs my apk and it has features. One of the features is to auto add the fullscreen code and this is what it did.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- ****
**** Generated by AppToMaret on Tue Apr 09 00:09:23 EDT 2013
**** If you wish, you can update this file to your needs.
**** If updating, it has to be done prior to clicking 'Create New .apk' button AppToMarket
**** However, please make sure that your updates WILL NOT break the functionality.
**** For example, removing permissions, could cause runtime exceptions
****
-->
<manifest android:versionCode="1"
android:installLocation="auto" android:versionName="1.2" package="com.appbuilder.u28941p382992"
xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:resizeable="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" />
<application android:label="Led Zeppelin Guitar Book" android:icon="@drawable/icon">
<activity android:label="@string/app_name" android:name=".AppBuilder" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SplashScreen" android:screenOrientation="portrait" />
<activity android:name=".PushNotification.AppPushNotification" android:screenOrientation="portrait" />
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation" />
<activity android:name=".GPSNotification.GPSLocationMap" android:screenOrientation="portrait">
<uses-library android:name="com.google.android.maps" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:name=".GPSNotification.GPSLocationText" android:screenOrientation="portrait" />
<activity android:name="com.ibuildapp.romanblack.CalculatorPlugin.CalculatorPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/calculator" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.CallPlugin.CallPlugin" android:screenOrientation="portrait" />
<activity android:name="com.ibuildapp.romanblack.ImagesPlugin.ImagesPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/images" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.ImagesPlugin.ImagesDetails" android:configChanges="orientation" />
<activity android:theme="@*android:style/Theme.Dialog" android:name="com.ibuildapp.romanblack.ImagesPlugin.ImagesBottomPanel" />
<activity android:name="com.ibuildapp.romanblack.ContactPlugin.ContactPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/contacts" />
</intent-filter>
</activity>
<service android:name=".PushNotification.AppPushNotificationReceiver" />
<service android:name=".GPSNotification.GPSService">
<action android:name="android.intent.action.BOOT_COMPLETED" />
</service>
<activity android:name="com.ibuildapp.romanblack.WebPlugin.WebPlugin" android:configChanges="keyboard|keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/web" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.CustomFormPlugin.CustomFormPlugin" android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/customform" />
</intent-filter>
</activity>
<activity android:label="Email" android:name="com.ibuildapp.romanblack.EmailPlugin.EmailPlugin">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/email" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Dialog" android:name="com.ibuildapp.romanblack.EmailPlugin.addfile" />
<activity android:theme="@*android:style/Theme.Dialog" android:name="com.ibuildapp.romanblack.EmailPlugin.dellfile" />
<activity android:theme="@*android:style/Theme.Dialog" android:name="com.ibuildapp.romanblack.EmailPlugin.filelist" />
<activity android:name="com.ibuildapp.romanblack.ECommercePlugin.ECommercePlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/ecom" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.ECommercePlugin.ECommerceBuy" android:screenOrientation="portrait" />
<activity android:name="com.ibuildapp.romanblack.ECommercePlugin.ECommerceDetails" android:screenOrientation="portrait" android:configChanges="keyboardHidden" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.paypal.android.MEP.PayPalActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:name="com.ibuildapp.romanblack.MapPlugin.MapPlugin">
<uses-library android:name="com.google.android.maps" />
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/map" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.MapPlugin.MapBottomPanel" />
<activity android:name="com.ibuildapp.romanblack.MapPlugin.WebViewer" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.MediaPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/media" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.MusicPlayer" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.VideoPlayer" android:configChanges="orientation" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.AudioPlayer" android:configChanges="orientation" />
<service android:name="com.ibuildapp.romanblack.MediaPlugin.BackGroundMusicService" />
<activity android:name="com.ibuildapp.romanblack.TablePlugin.TablePlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/table" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.TablePlugin.TableDetails" />
<activity android:name="com.ibuildapp.romanblack.CouponPlugin.CouponPlugin">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/coupon" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.CouponPlugin.CouponDetails" />
<activity android:name="com.ibuildapp.romanblack.CameraPlugin.CameraPlugin" android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/camera" />
</intent-filter>
</activity>
<activity android:label="Facebook" android:name="com.ibuildapp.romanblack.CameraPlugin.CameraFacebookSharing" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp/picture" />
</intent-filter>
</activity>
<activity android:label="Twitter" android:name="com.ibuildapp.romanblack.CameraPlugin.CameraTwitterSharing" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp/picture" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.NewsPlugin.NewsPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/rss" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.NewsPlugin.FeedDetails" />
<activity android:name="com.ibuildapp.romanblack.NewsPlugin.EventsNotification" />
<activity android:name="com.ibuildapp.romanblack.NewsPlugin.EventsNotificationView" />
<activity android:name="com.ibuildapp.romanblack.TwitterPlugin.TwitterPlugin" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="ibuildapp.romanblack/twit" />
</intent-filter>
</activity>
<activity android:name="com.ibuildapp.romanblack.TwitterPlugin.Description" android:screenOrientation="portrait" />
<activity android:label="TicTacToe" android:name="com.ibuildapp.username.TicTacToe.MainActivity" />
<receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.appbuilder.u28941p382992" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.appbuilder.u28941p382992" />
</intent-filter>
</receiver>
<uses-library android:name="com.google.android.maps" />
<activity android:name="com.ibuildapp.romanblack.WebPlugin.WebPlugin" android:configChanges="keyboard|keyboardHidden|orientation" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.MediaPlugin" android:screenOrientation="portrait" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.MusicPlayer" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.VideoPlayer" android:configChanges="orientation" />
<activity android:name="com.ibuildapp.romanblack.MediaPlugin.AudioPlayer" android:configChanges="orientation" />
<service android:name="com.ibuildapp.romanblack.MediaPlugin.BackGroundMusicService" />
</application>
<permission android:name="com.appbuilder.u28941p382992.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.appbuilder.u28941p382992.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" />
</manifest>
Try to add
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
at
<application android:label="Led Zeppelin Guitar Book" android:icon="@drawable/icon">
:fingers-crossed:
Ndaoud360 said:
Led Zeppelin Guitar Book
Click to expand...
Click to collapse
Cool.
nikwen said:
Cool.
Click to expand...
Click to collapse
Yea pretty much got a series going where I make guitar books for a bunch of bands. It has tabs for every single song done by the band with some video lessons and biographies of every band member. I have about 5 on play store right now but there paid Not much just $1.10.
mariozawa said:
Try to add
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
at
<application android:label="Led Zeppelin Guitar Book" android:icon="@drawable/icon">
:fingers-crossed:
Click to expand...
Click to collapse
It did not work.
Just checked you code and saw that there are two supports-screens tags.
(Although it will not solve your problem.)
---------- Post added at 08:17 PM ---------- Previous post was at 08:15 PM ----------
Ndaoud360 said:
It did not work.
Click to expand...
Click to collapse
EDIT: Not confirmed. Works now. I put it in the manifes tag. It needs to be in the application tag.
However, it results in GB design.
If it still does not work for you, try doing it in the Java code: http://www.vogella.com/blog/2011/02/28/android-hidding-the-status-and-title-bar/
There's another way of doing this. In your onCreate, before you load your content xml
// turn off the window's title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);
//this makes sure you actually use the whole window now that the title bar is gone
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
setContentView(R.layout.main);
nikwen said:
Just checked you code and saw that there are two supports-screens tags.
(Although it will not solve your problem.)
---------- Post added at 08:17 PM ---------- Previous post was at 08:15 PM ----------
EDIT: Not confirmed. Works now. I put it in the manifes tag.
However, it results in GB design.
If it still does not work for you, try doing it in the Java code: http://www.vogella.com/blog/2011/02/28/android-hidding-the-status-and-title-bar/
Click to expand...
Click to collapse
What is the manifest tag?
Ndaoud360 said:
What is the manifest tag?
Click to expand...
Click to collapse
It is the first tag after <xml ... >.
However, it needs to be in the application tag to work.
---------- Post added at 12:14 AM ---------- Previous post was at 12:10 AM ----------
Are you talking about the Paypal Activity? Remove the * between the @ and android:style.
---------- Post added at 12:17 AM ---------- Previous post was at 12:14 AM ----------
Adding the line to the application tag will not do anything. The style attribute of the activity overrides the theme. So try removing the * as said above.
nikwen said:
It is the first tag after <xml ... >.
However, it needs to be in the application tag to work.
---------- Post added at 12:14 AM ---------- Previous post was at 12:10 AM ----------
Are you talking about the Paypal Activity? Remove the * between the @ and android:style.
---------- Post added at 12:17 AM ---------- Previous post was at 12:14 AM ----------
Adding the line to the application tag will not do anything. The style attribute of the activity overrides the theme. So try removing the * as said above.
Click to expand...
Click to collapse
Removing * did not work
Ndaoud360 said:
Removing * did not work
Click to expand...
Click to collapse
Then try to replace that line by the one given in the second post. That way it will be just for this one Activity.
If you want it to work for all Activities, remove that one line and add it to the application tag.
nikwen said:
Then try to replace that line by the one given in the second post. That way it will be just for this one Activity.
If you want it to work for all Activities, remove that one line and add it to the application tag.
Click to expand...
Click to collapse
Nope did not work.
Ndaoud360 said:
Nope did not work.
Click to expand...
Click to collapse
Strange.
Do you want it to be just for the Paypal Activity?
---------- Post added at 05:31 PM ---------- Previous post was at 05:12 PM ----------
You say that you want your app to run in landscape mode.
However, I cannot find the part in the manifest where you declare that.
Add the following to every activity which should run in landscape mode:
Code:
android:screenOrientation="landscape"
nikwen said:
Strange.
Do you want it to be just for the Paypal Activity?
---------- Post added at 05:31 PM ---------- Previous post was at 05:12 PM ----------
You say that you want your app to run in landscape mode.
However, I cannot find the part in the manifest where you declare that.
Add the following to every activity which should run in landscape mode:
Code:
android:screenOrientation="landscape"
Click to expand...
Click to collapse
Well yea it's a bit strange what I did. At the time I did not know how to make the main menu of the app go into landscape so I just rotated all the images and it appears as if it is landscape but the phone see's it as portrait. So the status bar is located as if it's portrait.
Ndaoud360 said:
Well yea it's a bit strange what I did. At the time I did not know how to make the main menu of the app go into landscape so I just rotated all the images and it appears as if it is landscape but the phone see's it as portrait. So the status bar is located as if it's portrait.
Click to expand...
Click to collapse
And for which Activity do you want to remove the status bar?
nikwen said:
And for which Activity do you want to remove the status bar?
Click to expand...
Click to collapse
Well the whole app pretty much.
And the manifest you posted. Is it the one after your program adding the fullscreen code? Because there is no fullscreen code.
Maybe you could try running it without this programm, built by Eclipse.
If you do so, try this:
mariozawa said:
Try to add
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
at
<application android:label="Led Zeppelin Guitar Book" android:icon="@drawable/icon">
:fingers-crossed:
Click to expand...
Click to collapse
Maybe your signing program removes the code.
nikwen said:
And the manifest you posted. Is it the one after your program adding the fullscreen code? Because there is no fullscreen code.
Maybe you could try running it without this programm, built by Eclipse.
If you do so, try this:
Maybe your signing program removes the code.
Click to expand...
Click to collapse
Actually the program adds this
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.paypal.android.MEP.PayPalActivity" android:configChanges="keyboardHidden|orientation" />
hey,
i'm trying to make an app in android studio and get some errors in my androidmanifest.xml when using inspect code.
This is my first app and i'm sure i missed something essential...pls help
My xml file looks like this:
<manifest xmlns:android="...."
android:versionCode="1"
android:versionName="1.0"
package="com.standby.custom">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="18"/>
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:resizeable="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:launchMode="singleInstance" android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".DeviceStateReceiver" />
<service android:name="com.standby.custom.services.ReceiverRegisterService" />
<receiver android:name=".PackageChangeReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" androidath="com.standby.custom" />
</intent-filter>
</receiver>
<receiver android:name=".BootUpReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>
and i get this error messages:
Cannot resolve symbol '.MainActivity' (at line 34)
Cannot resolve symbol '.DeviceStateReceiver' (at line 40)
Cannot resolve symbol 'com.standby.custom.services.ReceiverRegisterService' (at line 41)
Cannot resolve symbol '.PackageChangeReceiver' (at line 42)
Cannot resolve symbol '.BootUpReceiver' (at line 50)
Does anyone know what I missed?
Tks
First of all, please use
Code:
tags for your code.
Is this the right package all of your classes can be found in?
[CODE]package="com.standby.custom"
Try to enter the full package name for all android:name attributes. Like this:
Code:
android:name="my.package.name.MainActivity"
(replace my.package.name by the package MainActivity is in.)
I am trying to delete an image file from sdcard.The following code works fine with the emulator but when I'm testing it on my Nexus phone there is a black frame exists in the folder for each deleted image.So, after following posts in relation to similar issue my code looks like below. I've just started learning android programming and got stuck at this point.I'll really appreciate your help
String sdcard_path=Environment.getExternalStorageDirectory().getAbsolutePath()+"/Expense_image";
File cacheFile =new File (sdcard_path,imageLocation);
if(cacheFile.exists()){
boolean deleted=cacheFile.delete();
Log.i("Deletion check","deleted:"+deleted);
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
Manifest.xml
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<activity
android:name=".deleteRecord"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.refat.myexpensev1.DELETERECORD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
</intent-filter>
</activity>